diff --git a/CHANGELOG.md b/CHANGELOG.md index 70b54c29..37399ff6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [Unreleased] (1.8.68) +### Changed +- Update to [TDLib v1.8.68](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.68). +- **(Breaking!)** `Object.Extra` has been renamed to `Object.ExtraData`, to free room for certain new TDLib properties also named `extra`. + ## [1.8.67] - 2026-08-27 ### Changed - Update to [TDLib v1.8.67](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.67). diff --git a/Directory.Build.props b/Directory.Build.props index 42e70ae9..b95fa866 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT - 1.8.67 + 1.8.68 diff --git a/Scripts/Get-TlFiles.ps1 b/Scripts/Get-TlFiles.ps1 index 219f72b7..c061e1a6 100644 --- a/Scripts/Get-TlFiles.ps1 +++ b/Scripts/Get-TlFiles.ps1 @@ -3,7 +3,7 @@ # SPDX-License-Identifier: MIT param( - [string] $CommitHash = 'bc9c263e2bfee06aaab41e82db51a103376030bc', + [string] $CommitHash = 'c15d3f5a5de6e3ba5839822c451152e5e18bb700', [string] $TdApiUrl = "https://github.com/tdlib/td/raw/$CommitHash/td/generate/scheme/td_api.tl", [string] $SourceRoot = "$PSScriptRoot/..", diff --git a/TdLib.Api/Functions/AcceptCall.cs b/TdLib.Api/Functions/AcceptCall.cs index b3c008cf..5abf8f36 100644 --- a/TdLib.Api/Functions/AcceptCall.cs +++ b/TdLib.Api/Functions/AcceptCall.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Accepts an incoming call /// - public static partial class TdApi + public class AcceptCall : Function { /// - /// Accepts an incoming call + /// Data type for serialization /// - public class AcceptCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "acceptCall"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "acceptCall"; - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public int CallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The call protocols supported by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protocol")] - public CallProtocol Protocol { get; set; } - } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public int CallId { get; set; } /// - /// Accepts an incoming call + /// The call protocols supported by the application /// - public static Task AcceptCallAsync( - this IClient client, int callId = default, CallProtocol protocol = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("protocol")] + public CallProtocol Protocol { get; set; } + } + + /// + /// Accepts an incoming call + /// + public static Task AcceptCallAsync( + this IClient client, int callId = default, CallProtocol protocol = default) + { + return client.ExecuteAsync(new AcceptCall { - return client.ExecuteAsync(new AcceptCall - { - CallId = callId, Protocol = protocol - }); - } + CallId = callId, Protocol = protocol + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AcceptOauthRequest.cs b/TdLib.Api/Functions/AcceptOauthRequest.cs index 7b13457c..030b1562 100644 --- a/TdLib.Api/Functions/AcceptOauthRequest.cs +++ b/TdLib.Api/Functions/AcceptOauthRequest.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. + /// May return an empty link if just a toast about successful login has to be shown /// - public static partial class TdApi + public class AcceptOauthRequest : Function { /// - /// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. - /// May return an empty link if just a toast about successful login has to be shown + /// Data type for serialization /// - public class AcceptOauthRequest : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "acceptOauthRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "acceptOauthRequest"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// URL of the OAuth deep link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The matching code chosen by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("match_code")] - public string MatchCode { get; set; } + /// + /// URL of the OAuth deep link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_write_access")] - public bool AllowWriteAccess { get; set; } + /// + /// The matching code chosen by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("match_code")] + public string MatchCode { get; set; } - /// - /// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_phone_number_access")] - public bool AllowPhoneNumberAccess { get; set; } - } + /// + /// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_write_access")] + public bool AllowWriteAccess { get; set; } /// - /// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. - /// May return an empty link if just a toast about successful login has to be shown + /// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number /// - public static Task AcceptOauthRequestAsync( - this IClient client, string url = default, string matchCode = default, bool allowWriteAccess = default, bool allowPhoneNumberAccess = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_phone_number_access")] + public bool AllowPhoneNumberAccess { get; set; } + } + + /// + /// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. + /// May return an empty link if just a toast about successful login has to be shown + /// + public static Task AcceptOauthRequestAsync( + this IClient client, string url = default, string matchCode = default, bool allowWriteAccess = default, bool allowPhoneNumberAccess = default) + { + return client.ExecuteAsync(new AcceptOauthRequest { - return client.ExecuteAsync(new AcceptOauthRequest - { - Url = url, MatchCode = matchCode, AllowWriteAccess = allowWriteAccess, AllowPhoneNumberAccess = allowPhoneNumberAccess - }); - } + Url = url, MatchCode = matchCode, AllowWriteAccess = allowWriteAccess, AllowPhoneNumberAccess = allowPhoneNumberAccess + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AcceptTermsOfService.cs b/TdLib.Api/Functions/AcceptTermsOfService.cs index a15c1940..23d2b031 100644 --- a/TdLib.Api/Functions/AcceptTermsOfService.cs +++ b/TdLib.Api/Functions/AcceptTermsOfService.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Accepts Telegram terms of service /// - public static partial class TdApi + public class AcceptTermsOfService : Function { /// - /// Accepts Telegram terms of service + /// Data type for serialization /// - public class AcceptTermsOfService : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "acceptTermsOfService"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "acceptTermsOfService"; - /// - /// Terms of service identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("terms_of_service_id")] - public string TermsOfServiceId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Accepts Telegram terms of service + /// Terms of service identifier /// - public static Task AcceptTermsOfServiceAsync( - this IClient client, string termsOfServiceId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("terms_of_service_id")] + public string TermsOfServiceId { get; set; } + } + + /// + /// Accepts Telegram terms of service + /// + public static Task AcceptTermsOfServiceAsync( + this IClient client, string termsOfServiceId = default) + { + return client.ExecuteAsync(new AcceptTermsOfService { - return client.ExecuteAsync(new AcceptTermsOfService - { - TermsOfServiceId = termsOfServiceId - }); - } + TermsOfServiceId = termsOfServiceId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ActivateStoryStealthMode.cs b/TdLib.Api/Functions/ActivateStoryStealthMode.cs index 2ed0dfdf..05c27a90 100644 --- a/TdLib.Api/Functions/ActivateStoryStealthMode.cs +++ b/TdLib.Api/Functions/ActivateStoryStealthMode.cs @@ -3,46 +3,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds + /// and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only /// - public static partial class TdApi + public class ActivateStoryStealthMode : Function { /// - /// Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds - /// and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only + /// Data type for serialization /// - public class ActivateStoryStealthMode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "activateStoryStealthMode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "activateStoryStealthMode"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds - /// and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only - /// - public static Task ActivateStoryStealthModeAsync( - this IClient client) + /// + /// Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds + /// and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only + /// + public static Task ActivateStoryStealthModeAsync( + this IClient client) + { + return client.ExecuteAsync(new ActivateStoryStealthMode { - return client.ExecuteAsync(new ActivateStoryStealthMode - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddBotMediaPreview.cs b/TdLib.Api/Functions/AddBotMediaPreview.cs index 666349ed..1339be82 100644 --- a/TdLib.Api/Functions/AddBotMediaPreview.cs +++ b/TdLib.Api/Functions/AddBotMediaPreview.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language /// - public static partial class TdApi + public class AddBotMediaPreview : Function { /// - /// Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language + /// Data type for serialization /// - public class AddBotMediaPreview : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addBotMediaPreview"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addBotMediaPreview"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot. The bot must be owned and must have the main Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code for which preview is added. If empty, then the preview will be shown to all users for whose languages there are no dedicated previews. - /// If non-empty, then there must be an official language pack of the same name, which is returned by getLocalizationTargetInfo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Identifier of the target bot. The bot must be owned and must have the main Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Content of the added preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public InputStoryContent Content { get; set; } - } + /// + /// A two-letter ISO 639-1 language code for which preview is added. If empty, then the preview will be shown to all users for whose languages there are no dedicated previews. + /// If non-empty, then there must be an official language pack of the same name, which is returned by getLocalizationTargetInfo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language + /// Content of the added preview /// - public static Task AddBotMediaPreviewAsync( - this IClient client, long botUserId = default, string languageCode = default, InputStoryContent content = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public InputStoryContent Content { get; set; } + } + + /// + /// Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language + /// + public static Task AddBotMediaPreviewAsync( + this IClient client, long botUserId = default, string languageCode = default, InputStoryContent content = default) + { + return client.ExecuteAsync(new AddBotMediaPreview { - return client.ExecuteAsync(new AddBotMediaPreview - { - BotUserId = botUserId, LanguageCode = languageCode, Content = content - }); - } + BotUserId = botUserId, LanguageCode = languageCode, Content = content + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddBotSecondaryUsername.cs b/TdLib.Api/Functions/AddBotSecondaryUsername.cs new file mode 100644 index 00000000..61412581 --- /dev/null +++ b/TdLib.Api/Functions/AddBotSecondaryUsername.cs @@ -0,0 +1,62 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Adds a secondary username to a bot. Can be called only if userTypeBot.can_be_edited, the bot has no secondary username and the current user has Telegram Premium subscription. + /// May return an error with a message "OWNER_USERNAMES_LIMIT_EXCEEDED" if the current user already owns at least getOption("secondary_bot_username_count_max") bots with a secondary username + /// + public class AddBotSecondaryUsername : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "addBotSecondaryUsername"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + + /// + /// The new secondary username; must be non-empty. Use checkBotUsername to check username validness + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } + } + + /// + /// Adds a secondary username to a bot. Can be called only if userTypeBot.can_be_edited, the bot has no secondary username and the current user has Telegram Premium subscription. + /// May return an error with a message "OWNER_USERNAMES_LIMIT_EXCEEDED" if the current user already owns at least getOption("secondary_bot_username_count_max") bots with a secondary username + /// + public static Task AddBotSecondaryUsernameAsync( + this IClient client, long botUserId = default, string username = default) + { + return client.ExecuteAsync(new AddBotSecondaryUsername + { + BotUserId = botUserId, Username = username + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddChatFolderByInviteLink.cs b/TdLib.Api/Functions/AddChatFolderByInviteLink.cs index 75880fcd..329897e0 100644 --- a/TdLib.Api/Functions/AddChatFolderByInviteLink.cs +++ b/TdLib.Api/Functions/AddChatFolderByInviteLink.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a chat folder by an invite link /// - public static partial class TdApi + public class AddChatFolderByInviteLink : Function { /// - /// Adds a chat folder by an invite link + /// Data type for serialization /// - public class AddChatFolderByInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addChatFolderByInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addChatFolderByInviteLink"; - /// - /// Invite link for the chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the chats added to the chat folder. The chats are automatically joined if they aren't joined yet - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// Invite link for the chat folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } /// - /// Adds a chat folder by an invite link + /// Identifiers of the chats added to the chat folder. The chats are automatically joined if they aren't joined yet /// - public static Task AddChatFolderByInviteLinkAsync( - this IClient client, string inviteLink = default, long[] chatIds = default) + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } + } + + /// + /// Adds a chat folder by an invite link + /// + public static Task AddChatFolderByInviteLinkAsync( + this IClient client, string inviteLink = default, long[] chatIds = default) + { + return client.ExecuteAsync(new AddChatFolderByInviteLink { - return client.ExecuteAsync(new AddChatFolderByInviteLink - { - InviteLink = inviteLink, ChatIds = chatIds - }); - } + InviteLink = inviteLink, ChatIds = chatIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddChatMember.cs b/TdLib.Api/Functions/AddChatMember.cs index 91faca12..2c0e71e3 100644 --- a/TdLib.Api/Functions/AddChatMember.cs +++ b/TdLib.Api/Functions/AddChatMember.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats. Returns information about members that weren't added /// - public static partial class TdApi + public class AddChatMember : Function { /// - /// Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats. Returns information about members that weren't added + /// Data type for serialization /// - public class AddChatMember : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addChatMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addChatMember"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forward_limit")] - public int ForwardLimit { get; set; } - } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats. Returns information about members that weren't added + /// The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot /// - public static Task AddChatMemberAsync( - this IClient client, long chatId = default, long userId = default, int forwardLimit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forward_limit")] + public int ForwardLimit { get; set; } + } + + /// + /// Adds a new member to a chat; requires can_invite_users member right. Members can't be added to private or secret chats. Returns information about members that weren't added + /// + public static Task AddChatMemberAsync( + this IClient client, long chatId = default, long userId = default, int forwardLimit = default) + { + return client.ExecuteAsync(new AddChatMember { - return client.ExecuteAsync(new AddChatMember - { - ChatId = chatId, UserId = userId, ForwardLimit = forwardLimit - }); - } + ChatId = chatId, UserId = userId, ForwardLimit = forwardLimit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddChatMembers.cs b/TdLib.Api/Functions/AddChatMembers.cs index 7d99dd10..54cdedc8 100644 --- a/TdLib.Api/Functions/AddChatMembers.cs +++ b/TdLib.Api/Functions/AddChatMembers.cs @@ -3,57 +3,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is available only in supergroups and channels. + /// This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added /// - public static partial class TdApi + public class AddChatMembers : Function { /// - /// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is available only in supergroups and channels. - /// This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added + /// Data type for serialization /// - public class AddChatMembers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addChatMembers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addChatMembers"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the users to be added to the chat. The maximum number of added users is 20 for supergroups and 100 for channels - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is available only in supergroups and channels. - /// This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added + /// Identifiers of the users to be added to the chat. The maximum number of added users is 20 for supergroups and 100 for channels /// - public static Task AddChatMembersAsync( - this IClient client, long chatId = default, long[] userIds = default) + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } + } + + /// + /// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is available only in supergroups and channels. + /// This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added + /// + public static Task AddChatMembersAsync( + this IClient client, long chatId = default, long[] userIds = default) + { + return client.ExecuteAsync(new AddChatMembers { - return client.ExecuteAsync(new AddChatMembers - { - ChatId = chatId, UserIds = userIds - }); - } + ChatId = chatId, UserIds = userIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddChatToList.cs b/TdLib.Api/Functions/AddChatToList.cs index e204f69e..47769821 100644 --- a/TdLib.Api/Functions/AddChatToList.cs +++ b/TdLib.Api/Functions/AddChatToList.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed /// - public static partial class TdApi + public class AddChatToList : Function { /// - /// Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed + /// Data type for serialization /// - public class AddChatToList : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addChatToList"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addChatToList"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat list. Use getChatListsToAddChat to get suitable chat lists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed + /// The chat list. Use getChatListsToAddChat to get suitable chat lists /// - public static Task AddChatToListAsync( - this IClient client, long chatId = default, ChatList chatList = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } + } + + /// + /// Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed + /// + public static Task AddChatToListAsync( + this IClient client, long chatId = default, ChatList chatList = default) + { + return client.ExecuteAsync(new AddChatToList { - return client.ExecuteAsync(new AddChatToList - { - ChatId = chatId, ChatList = chatList - }); - } + ChatId = chatId, ChatList = chatList + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddChatWelcomeMessage.cs b/TdLib.Api/Functions/AddChatWelcomeMessage.cs index ef6cfc36..0dbdf3eb 100644 --- a/TdLib.Api/Functions/AddChatWelcomeMessage.cs +++ b/TdLib.Api/Functions/AddChatWelcomeMessage.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat /// - public static partial class TdApi + public class AddChatWelcomeMessage : Function { /// - /// Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat + /// Data type for serialization /// - public class AddChatWelcomeMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addChatWelcomeMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addChatWelcomeMessage"; - /// - /// The identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, - /// inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, - /// inputMessageLocation, inputMessageVenue, inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, + /// inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, + /// inputMessageLocation, inputMessageVenue, inputMessageContact /// - public static Task AddChatWelcomeMessageAsync( - this IClient client, long chatId = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat + /// + public static Task AddChatWelcomeMessageAsync( + this IClient client, long chatId = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new AddChatWelcomeMessage { - return client.ExecuteAsync(new AddChatWelcomeMessage - { - ChatId = chatId, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddChecklistTasks.cs b/TdLib.Api/Functions/AddChecklistTasks.cs index 0b6adff6..984da164 100644 --- a/TdLib.Api/Functions/AddChecklistTasks.cs +++ b/TdLib.Api/Functions/AddChecklistTasks.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds tasks to a checklist in a message /// - public static partial class TdApi + public class AddChecklistTasks : Function { /// - /// Adds tasks to a checklist in a message + /// Data type for serialization /// - public class AddChecklistTasks : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addChecklistTasks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addChecklistTasks"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the checklist. Use messageProperties.can_add_tasks to check whether the tasks can be added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// List of added tasks - /// - [JsonProperty("tasks", ItemConverterType = typeof(Converter))] - public InputChecklistTask[] Tasks { get; set; } - } + /// + /// Identifier of the message containing the checklist. Use messageProperties.can_add_tasks to check whether the tasks can be added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Adds tasks to a checklist in a message + /// List of added tasks /// - public static Task AddChecklistTasksAsync( - this IClient client, long chatId = default, long messageId = default, InputChecklistTask[] tasks = default) + [JsonProperty("tasks", ItemConverterType = typeof(Converter))] + public InputChecklistTask[] Tasks { get; set; } + } + + /// + /// Adds tasks to a checklist in a message + /// + public static Task AddChecklistTasksAsync( + this IClient client, long chatId = default, long messageId = default, InputChecklistTask[] tasks = default) + { + return client.ExecuteAsync(new AddChecklistTasks { - return client.ExecuteAsync(new AddChecklistTasks - { - ChatId = chatId, MessageId = messageId, Tasks = tasks - }); - } + ChatId = chatId, MessageId = messageId, Tasks = tasks + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddContact.cs b/TdLib.Api/Functions/AddContact.cs index c7827f3a..99d43b4d 100644 --- a/TdLib.Api/Functions/AddContact.cs +++ b/TdLib.Api/Functions/AddContact.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a user to the contact list or edits an existing contact by their user identifier /// - public static partial class TdApi + public class AddContact : Function { /// - /// Adds a user to the contact list or edits an existing contact by their user identifier + /// Data type for serialization /// - public class AddContact : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addContact"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The contact to add or edit; phone number may be empty and needs to be specified only if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contact")] - public ImportedContact Contact { get; set; } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Pass true to share the current user's phone number with the new contact. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("share_phone_number")] - public bool SharePhoneNumber { get; set; } - } + /// + /// The contact to add or edit; phone number may be empty and needs to be specified only if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contact")] + public ImportedContact Contact { get; set; } /// - /// Adds a user to the contact list or edits an existing contact by their user identifier + /// Pass true to share the current user's phone number with the new contact. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. /// - public static Task AddContactAsync( - this IClient client, long userId = default, ImportedContact contact = default, bool sharePhoneNumber = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("share_phone_number")] + public bool SharePhoneNumber { get; set; } + } + + /// + /// Adds a user to the contact list or edits an existing contact by their user identifier + /// + public static Task AddContactAsync( + this IClient client, long userId = default, ImportedContact contact = default, bool sharePhoneNumber = default) + { + return client.ExecuteAsync(new AddContact { - return client.ExecuteAsync(new AddContact - { - UserId = userId, Contact = contact, SharePhoneNumber = sharePhoneNumber - }); - } + UserId = userId, Contact = contact, SharePhoneNumber = sharePhoneNumber + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddCustomServerLanguagePack.cs b/TdLib.Api/Functions/AddCustomServerLanguagePack.cs index cffa204d..6d0fc4d0 100644 --- a/TdLib.Api/Functions/AddCustomServerLanguagePack.cs +++ b/TdLib.Api/Functions/AddCustomServerLanguagePack.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization /// - public static partial class TdApi + public class AddCustomServerLanguagePack : Function { /// - /// Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization + /// Data type for serialization /// - public class AddCustomServerLanguagePack : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addCustomServerLanguagePack"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addCustomServerLanguagePack"; - /// - /// Identifier of a language pack to be added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization + /// Identifier of a language pack to be added /// - public static Task AddCustomServerLanguagePackAsync( - this IClient client, string languagePackId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } + } + + /// + /// Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization + /// + public static Task AddCustomServerLanguagePackAsync( + this IClient client, string languagePackId = default) + { + return client.ExecuteAsync(new AddCustomServerLanguagePack { - return client.ExecuteAsync(new AddCustomServerLanguagePack - { - LanguagePackId = languagePackId - }); - } + LanguagePackId = languagePackId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddFavoriteSticker.cs b/TdLib.Api/Functions/AddFavoriteSticker.cs index 8c98de9d..184acc7e 100644 --- a/TdLib.Api/Functions/AddFavoriteSticker.cs +++ b/TdLib.Api/Functions/AddFavoriteSticker.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. + /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to favorite stickers /// - public static partial class TdApi + public class AddFavoriteSticker : Function { /// - /// Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. - /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to favorite stickers + /// Data type for serialization /// - public class AddFavoriteSticker : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addFavoriteSticker"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addFavoriteSticker"; - /// - /// Sticker file to add - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. - /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to favorite stickers + /// Sticker file to add /// - public static Task AddFavoriteStickerAsync( - this IClient client, InputFile sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } + } + + /// + /// Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. + /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to favorite stickers + /// + public static Task AddFavoriteStickerAsync( + this IClient client, InputFile sticker = default) + { + return client.ExecuteAsync(new AddFavoriteSticker { - return client.ExecuteAsync(new AddFavoriteSticker - { - Sticker = sticker - }); - } + Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddFileToDownloads.cs b/TdLib.Api/Functions/AddFileToDownloads.cs index da83533b..521351c7 100644 --- a/TdLib.Api/Functions/AddFileToDownloads.cs +++ b/TdLib.Api/Functions/AddFileToDownloads.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. + /// If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file /// - public static partial class TdApi + public class AddFileToDownloads : Function { /// - /// Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. - /// If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file + /// Data type for serialization /// - public class AddFileToDownloads : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addFileToDownloads"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addFileToDownloads"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the file to download - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier of the message with the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the file to download + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the message with the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("priority")] - public int Priority { get; set; } - } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. - /// If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file + /// Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first /// - public static Task AddFileToDownloadsAsync( - this IClient client, int fileId = default, long chatId = default, long messageId = default, int priority = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("priority")] + public int Priority { get; set; } + } + + /// + /// Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates. + /// If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent of download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file + /// + public static Task AddFileToDownloadsAsync( + this IClient client, int fileId = default, long chatId = default, long messageId = default, int priority = default) + { + return client.ExecuteAsync(new AddFileToDownloads { - return client.ExecuteAsync(new AddFileToDownloads - { - FileId = fileId, ChatId = chatId, MessageId = messageId, Priority = priority - }); - } + FileId = fileId, ChatId = chatId, MessageId = messageId, Priority = priority + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddGiftCollectionGifts.cs b/TdLib.Api/Functions/AddGiftCollectionGifts.cs index 21e14fc0..b43d39a1 100644 --- a/TdLib.Api/Functions/AddGiftCollectionGifts.cs +++ b/TdLib.Api/Functions/AddGiftCollectionGifts.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds gifts to the beginning of a previously created collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection /// - public static partial class TdApi + public class AddGiftCollectionGifts : Function { /// - /// Adds gifts to the beginning of a previously created collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// Data type for serialization /// - public class AddGiftCollectionGifts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addGiftCollectionGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addGiftCollectionGifts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user or the channel chat that owns the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("collection_id")] - public int CollectionId { get; set; } + /// + /// Identifier of the user or the channel chat that owns the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Identifier of the gifts to add to the collection; 1-getOption("gift_collection_size_max") identifiers. - /// - [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] - public string[] ReceivedGiftIds { get; set; } - } + /// + /// Identifier of the gift collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_id")] + public int CollectionId { get; set; } /// - /// Adds gifts to the beginning of a previously created collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// Identifier of the gifts to add to the collection; 1-getOption("gift_collection_size_max") identifiers. /// - public static Task AddGiftCollectionGiftsAsync( - this IClient client, MessageSender ownerId = default, int collectionId = default, string[] receivedGiftIds = default) + [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] + public string[] ReceivedGiftIds { get; set; } + } + + /// + /// Adds gifts to the beginning of a previously created collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// + public static Task AddGiftCollectionGiftsAsync( + this IClient client, MessageSender ownerId = default, int collectionId = default, string[] receivedGiftIds = default) + { + return client.ExecuteAsync(new AddGiftCollectionGifts { - return client.ExecuteAsync(new AddGiftCollectionGifts - { - OwnerId = ownerId, CollectionId = collectionId, ReceivedGiftIds = receivedGiftIds - }); - } + OwnerId = ownerId, CollectionId = collectionId, ReceivedGiftIds = receivedGiftIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddLocalMessage.cs b/TdLib.Api/Functions/AddLocalMessage.cs index dc642def..729bf566 100644 --- a/TdLib.Api/Functions/AddLocalMessage.cs +++ b/TdLib.Api/Functions/AddLocalMessage.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message /// - public static partial class TdApi + public class AddLocalMessage : Function { /// - /// Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message + /// Data type for serialization /// - public class AddLocalMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addLocalMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addLocalMessage"; - /// - /// Target chat; channel direct messages chats aren't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sender of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Target chat; channel direct messages chats aren't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Information about the message or story to be replied; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Identifier of the sender of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Pass true to disable notification for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_notification")] - public bool DisableNotification { get; set; } + /// + /// Information about the message or story to be replied; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// The content of the message to be added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// Pass true to disable notification for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_notification")] + public bool DisableNotification { get; set; } /// - /// Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message + /// The content of the message to be added /// - public static Task AddLocalMessageAsync( - this IClient client, long chatId = default, MessageSender senderId = default, InputMessageReplyTo replyTo = default, bool disableNotification = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message + /// + public static Task AddLocalMessageAsync( + this IClient client, long chatId = default, MessageSender senderId = default, InputMessageReplyTo replyTo = default, bool disableNotification = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new AddLocalMessage { - return client.ExecuteAsync(new AddLocalMessage - { - ChatId = chatId, SenderId = senderId, ReplyTo = replyTo, DisableNotification = disableNotification, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, SenderId = senderId, ReplyTo = replyTo, DisableNotification = disableNotification, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddLogMessage.cs b/TdLib.Api/Functions/AddLogMessage.cs index 50d253da..b332ae60 100644 --- a/TdLib.Api/Functions/AddLogMessage.cs +++ b/TdLib.Api/Functions/AddLogMessage.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a message to TDLib internal log. Can be called synchronously /// - public static partial class TdApi + public class AddLogMessage : Function { /// - /// Adds a message to TDLib internal log. Can be called synchronously + /// Data type for serialization /// - public class AddLogMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addLogMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addLogMessage"; - /// - /// The minimum verbosity level needed for the message to be logged; 0-1023 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verbosity_level")] - public int VerbosityLevel { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of a message to log - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// The minimum verbosity level needed for the message to be logged; 0-1023 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verbosity_level")] + public int VerbosityLevel { get; set; } /// - /// Adds a message to TDLib internal log. Can be called synchronously + /// Text of a message to log /// - public static Task AddLogMessageAsync( - this IClient client, int verbosityLevel = default, string text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } + } + + /// + /// Adds a message to TDLib internal log. Can be called synchronously + /// + public static Task AddLogMessageAsync( + this IClient client, int verbosityLevel = default, string text = default) + { + return client.ExecuteAsync(new AddLogMessage { - return client.ExecuteAsync(new AddLogMessage - { - VerbosityLevel = verbosityLevel, Text = text - }); - } + VerbosityLevel = verbosityLevel, Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddLoginPasskey.cs b/TdLib.Api/Functions/AddLoginPasskey.cs index a8c06f8d..b780ef99 100644 --- a/TdLib.Api/Functions/AddLoginPasskey.cs +++ b/TdLib.Api/Functions/AddLoginPasskey.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a passkey allowed to be used for the login by the current user and returns the added passkey. Call getPasskeyParameters to get parameters for creating of the passkey /// - public static partial class TdApi + public class AddLoginPasskey : Function { /// - /// Adds a passkey allowed to be used for the login by the current user and returns the added passkey. Call getPasskeyParameters to get parameters for creating of the passkey + /// Data type for serialization /// - public class AddLoginPasskey : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addLoginPasskey"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addLoginPasskey"; - /// - /// JSON-encoded client data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("client_data")] - public string ClientData { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Passkey attestation object - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("attestation_object")] - public byte[] AttestationObject { get; set; } - } + /// + /// JSON-encoded client data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("client_data")] + public string ClientData { get; set; } /// - /// Adds a passkey allowed to be used for the login by the current user and returns the added passkey. Call getPasskeyParameters to get parameters for creating of the passkey + /// Passkey attestation object /// - public static Task AddLoginPasskeyAsync( - this IClient client, string clientData = default, byte[] attestationObject = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("attestation_object")] + public byte[] AttestationObject { get; set; } + } + + /// + /// Adds a passkey allowed to be used for the login by the current user and returns the added passkey. Call getPasskeyParameters to get parameters for creating of the passkey + /// + public static Task AddLoginPasskeyAsync( + this IClient client, string clientData = default, byte[] attestationObject = default) + { + return client.ExecuteAsync(new AddLoginPasskey { - return client.ExecuteAsync(new AddLoginPasskey - { - ClientData = clientData, AttestationObject = attestationObject - }); - } + ClientData = clientData, AttestationObject = attestationObject + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddMessageReaction.cs b/TdLib.Api/Functions/AddMessageReaction.cs index e7e99f88..f727be94 100644 --- a/TdLib.Api/Functions/AddMessageReaction.cs +++ b/TdLib.Api/Functions/AddMessageReaction.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a reaction or a tag to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message /// - public static partial class TdApi + public class AddMessageReaction : Function { /// - /// Adds a reaction or a tag to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message + /// Data type for serialization /// - public class AddMessageReaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addMessageReaction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addMessageReaction"; - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Type of the reaction to add. Use addPendingPaidMessageReaction instead to add the paid reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Pass true if the reaction is added with a big animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_big")] - public bool IsBig { get; set; } + /// + /// Type of the reaction to add. Use addPendingPaidMessageReaction instead to add the paid reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } - /// - /// Pass true if the reaction needs to be added to recent reactions; tags are never added to the list of recent reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("update_recent_reactions")] - public bool UpdateRecentReactions { get; set; } - } + /// + /// Pass true if the reaction is added with a big animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_big")] + public bool IsBig { get; set; } /// - /// Adds a reaction or a tag to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message + /// Pass true if the reaction needs to be added to recent reactions; tags are never added to the list of recent reactions /// - public static Task AddMessageReactionAsync( - this IClient client, long chatId = default, long messageId = default, ReactionType reactionType = default, bool isBig = default, bool updateRecentReactions = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("update_recent_reactions")] + public bool UpdateRecentReactions { get; set; } + } + + /// + /// Adds a reaction or a tag to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message + /// + public static Task AddMessageReactionAsync( + this IClient client, long chatId = default, long messageId = default, ReactionType reactionType = default, bool isBig = default, bool updateRecentReactions = default) + { + return client.ExecuteAsync(new AddMessageReaction { - return client.ExecuteAsync(new AddMessageReaction - { - ChatId = chatId, MessageId = messageId, ReactionType = reactionType, IsBig = isBig, UpdateRecentReactions = updateRecentReactions - }); - } + ChatId = chatId, MessageId = messageId, ReactionType = reactionType, IsBig = isBig, UpdateRecentReactions = updateRecentReactions + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddNetworkStatistics.cs b/TdLib.Api/Functions/AddNetworkStatistics.cs index 98fe280e..07a31f76 100644 --- a/TdLib.Api/Functions/AddNetworkStatistics.cs +++ b/TdLib.Api/Functions/AddNetworkStatistics.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds the specified data to data usage statistics. Can be called before authorization /// - public static partial class TdApi + public class AddNetworkStatistics : Function { /// - /// Adds the specified data to data usage statistics. Can be called before authorization + /// Data type for serialization /// - public class AddNetworkStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addNetworkStatistics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addNetworkStatistics"; - /// - /// The network statistics entry with the data to be added to statistics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("entry")] - public NetworkStatisticsEntry Entry { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds the specified data to data usage statistics. Can be called before authorization + /// The network statistics entry with the data to be added to statistics /// - public static Task AddNetworkStatisticsAsync( - this IClient client, NetworkStatisticsEntry entry = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("entry")] + public NetworkStatisticsEntry Entry { get; set; } + } + + /// + /// Adds the specified data to data usage statistics. Can be called before authorization + /// + public static Task AddNetworkStatisticsAsync( + this IClient client, NetworkStatisticsEntry entry = default) + { + return client.ExecuteAsync(new AddNetworkStatistics { - return client.ExecuteAsync(new AddNetworkStatistics - { - Entry = entry - }); - } + Entry = entry + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddOffer.cs b/TdLib.Api/Functions/AddOffer.cs index 45b080a3..6ce47af6 100644 --- a/TdLib.Api/Functions/AddOffer.cs +++ b/TdLib.Api/Functions/AddOffer.cs @@ -3,66 +3,68 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post. + /// Returns the sent message /// - public static partial class TdApi + public class AddOffer : Function { /// - /// Sends a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post. - /// Returns the sent message + /// Data type for serialization /// - public class AddOffer : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addOffer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addOffer"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message in the chat which will be sent as suggested post. Use messageProperties.can_add_offer to check whether an offer can be added - /// or messageProperties.can_edit_suggested_post_info to check whether price or time of sending of the post can be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Options to be used to send the message. New information about the suggested post must always be specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("options")] - public MessageSendOptions Options { get; set; } - } + /// + /// Identifier of the message in the chat which will be sent as suggested post. Use messageProperties.can_add_offer to check whether an offer can be added + /// or messageProperties.can_edit_suggested_post_info to check whether price or time of sending of the post can be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Sends a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post. - /// Returns the sent message + /// Options to be used to send the message. New information about the suggested post must always be specified /// - public static Task AddOfferAsync( - this IClient client, long chatId = default, long messageId = default, MessageSendOptions options = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("options")] + public MessageSendOptions Options { get; set; } + } + + /// + /// Sends a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post. + /// Returns the sent message + /// + public static Task AddOfferAsync( + this IClient client, long chatId = default, long messageId = default, MessageSendOptions options = default) + { + return client.ExecuteAsync(new AddOffer { - return client.ExecuteAsync(new AddOffer - { - ChatId = chatId, MessageId = messageId, Options = options - }); - } + ChatId = chatId, MessageId = messageId, Options = options + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddPendingLiveStoryReaction.cs b/TdLib.Api/Functions/AddPendingLiveStoryReaction.cs index 50dc5871..bb8b4d88 100644 --- a/TdLib.Api/Functions/AddPendingLiveStoryReaction.cs +++ b/TdLib.Api/Functions/AddPendingLiveStoryReaction.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds pending paid reaction in a live story group call. Can't be used in live stories posted by the current user. + /// Call commitPendingLiveStoryReactions or removePendingLiveStoryReactions to actually send all pending reactions when the undo timer is over or abort the sending /// - public static partial class TdApi + public class AddPendingLiveStoryReaction : Function { /// - /// Adds pending paid reaction in a live story group call. Can't be used in live stories posted by the current user. - /// Call commitPendingLiveStoryReactions or removePendingLiveStoryReactions to actually send all pending reactions when the undo timer is over or abort the sending + /// Data type for serialization /// - public class AddPendingLiveStoryReaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addPendingLiveStoryReaction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addPendingLiveStoryReaction"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_group_call_message_star_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Adds pending paid reaction in a live story group call. Can't be used in live stories posted by the current user. - /// Call commitPendingLiveStoryReactions or removePendingLiveStoryReactions to actually send all pending reactions when the undo timer is over or abort the sending + /// Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_group_call_message_star_count_max") /// - public static Task AddPendingLiveStoryReactionAsync( - this IClient client, int groupCallId = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Adds pending paid reaction in a live story group call. Can't be used in live stories posted by the current user. + /// Call commitPendingLiveStoryReactions or removePendingLiveStoryReactions to actually send all pending reactions when the undo timer is over or abort the sending + /// + public static Task AddPendingLiveStoryReactionAsync( + this IClient client, int groupCallId = default, long starCount = default) + { + return client.ExecuteAsync(new AddPendingLiveStoryReaction { - return client.ExecuteAsync(new AddPendingLiveStoryReaction - { - GroupCallId = groupCallId, StarCount = starCount - }); - } + GroupCallId = groupCallId, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddPendingPaidMessageReaction.cs b/TdLib.Api/Functions/AddPendingPaidMessageReaction.cs index 2b558bb1..57b5b1ca 100644 --- a/TdLib.Api/Functions/AddPendingPaidMessageReaction.cs +++ b/TdLib.Api/Functions/AddPendingPaidMessageReaction.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message /// - public static partial class TdApi + public class AddPendingPaidMessageReaction : Function { /// - /// Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message + /// Data type for serialization /// - public class AddPendingPaidMessageReaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addPendingPaidMessageReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addPendingPaidMessageReaction"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_reaction_star_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is set from the message bubble - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PaidReactionType Type { get; set; } - } + /// + /// Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_reaction_star_count_max") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } /// - /// Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message + /// Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is set from the message bubble /// - public static Task AddPendingPaidMessageReactionAsync( - this IClient client, long chatId = default, long messageId = default, long starCount = default, PaidReactionType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PaidReactionType Type { get; set; } + } + + /// + /// Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message + /// + public static Task AddPendingPaidMessageReactionAsync( + this IClient client, long chatId = default, long messageId = default, long starCount = default, PaidReactionType type = default) + { + return client.ExecuteAsync(new AddPendingPaidMessageReaction { - return client.ExecuteAsync(new AddPendingPaidMessageReaction - { - ChatId = chatId, MessageId = messageId, StarCount = starCount, Type = type - }); - } + ChatId = chatId, MessageId = messageId, StarCount = starCount, Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddPollOption.cs b/TdLib.Api/Functions/AddPollOption.cs index 70e36eb3..0856203b 100644 --- a/TdLib.Api/Functions/AddPollOption.cs +++ b/TdLib.Api/Functions/AddPollOption.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds an option to a poll /// - public static partial class TdApi + public class AddPollOption : Function { /// - /// Adds an option to a poll + /// Data type for serialization /// - public class AddPollOption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addPollOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addPollOption"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the poll belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the poll. Use messagePoll.can_add_option to check whether an option can be added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the poll belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option")] - public InputPollOption Option { get; set; } - } + /// + /// Identifier of the message containing the poll. Use messagePoll.can_add_option to check whether an option can be added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Adds an option to a poll + /// The new option /// - public static Task AddPollOptionAsync( - this IClient client, long chatId = default, long messageId = default, InputPollOption option = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("option")] + public InputPollOption Option { get; set; } + } + + /// + /// Adds an option to a poll + /// + public static Task AddPollOptionAsync( + this IClient client, long chatId = default, long messageId = default, InputPollOption option = default) + { + return client.ExecuteAsync(new AddPollOption { - return client.ExecuteAsync(new AddPollOption - { - ChatId = chatId, MessageId = messageId, Option = option - }); - } + ChatId = chatId, MessageId = messageId, Option = option + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddProfileAudio.cs b/TdLib.Api/Functions/AddProfileAudio.cs index 517f4981..5da48660 100644 --- a/TdLib.Api/Functions/AddProfileAudio.cs +++ b/TdLib.Api/Functions/AddProfileAudio.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds an audio file to the beginning of the profile audio files of the current user /// - public static partial class TdApi + public class AddProfileAudio : Function { /// - /// Adds an audio file to the beginning of the profile audio files of the current user + /// Data type for serialization /// - public class AddProfileAudio : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addProfileAudio"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addProfileAudio"; - /// - /// The audio to add - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public InputAudio Audio { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds an audio file to the beginning of the profile audio files of the current user + /// The audio to add /// - public static Task AddProfileAudioAsync( - this IClient client, InputAudio audio = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public InputAudio Audio { get; set; } + } + + /// + /// Adds an audio file to the beginning of the profile audio files of the current user + /// + public static Task AddProfileAudioAsync( + this IClient client, InputAudio audio = default) + { + return client.ExecuteAsync(new AddProfileAudio { - return client.ExecuteAsync(new AddProfileAudio - { - Audio = audio - }); - } + Audio = audio + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddProxy.cs b/TdLib.Api/Functions/AddProxy.cs index 9deb06c9..b47d9fe4 100644 --- a/TdLib.Api/Functions/AddProxy.cs +++ b/TdLib.Api/Functions/AddProxy.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a proxy server for network requests. Can be called before authorization /// - public static partial class TdApi + public class AddProxy : Function { /// - /// Adds a proxy server for network requests. Can be called before authorization + /// Data type for serialization /// - public class AddProxy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addProxy"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The proxy to add - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy")] - public Proxy Proxy { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to immediately enable the proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("enable")] - public bool Enable { get; set; } + /// + /// The proxy to add + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy")] + public Proxy Proxy { get; set; } - /// - /// Comment to set for the proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("comment")] - public string Comment { get; set; } - } + /// + /// Pass true to immediately enable the proxy + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("enable")] + public bool Enable { get; set; } /// - /// Adds a proxy server for network requests. Can be called before authorization + /// Comment to set for the proxy /// - public static Task AddProxyAsync( - this IClient client, Proxy proxy = default, bool enable = default, string comment = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + } + + /// + /// Adds a proxy server for network requests. Can be called before authorization + /// + public static Task AddProxyAsync( + this IClient client, Proxy proxy = default, bool enable = default, string comment = default) + { + return client.ExecuteAsync(new AddProxy { - return client.ExecuteAsync(new AddProxy - { - Proxy = proxy, Enable = enable, Comment = comment - }); - } + Proxy = proxy, Enable = enable, Comment = comment + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddQuickReplyShortcutInlineQueryResultMessage.cs b/TdLib.Api/Functions/AddQuickReplyShortcutInlineQueryResultMessage.cs index 5cb3f38c..825ceb71 100644 --- a/TdLib.Api/Functions/AddQuickReplyShortcutInlineQueryResultMessage.cs +++ b/TdLib.Api/Functions/AddQuickReplyShortcutInlineQueryResultMessage.cs @@ -3,79 +3,81 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. + /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message /// - public static partial class TdApi + public class AddQuickReplyShortcutInlineQueryResultMessage : Function { /// - /// Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. - /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message + /// Data type for serialization /// - public class AddQuickReplyShortcutInlineQueryResultMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addQuickReplyShortcutInlineQueryResultMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addQuickReplyShortcutInlineQueryResultMessage"; - /// - /// Name of the target shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_name")] - public string ShortcutName { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to_message_id")] - public long ReplyToMessageId { get; set; } + /// + /// Name of the target shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_name")] + public string ShortcutName { get; set; } - /// - /// Identifier of the inline query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } + /// + /// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to_message_id")] + public long ReplyToMessageId { get; set; } - /// - /// Identifier of the inline query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result_id")] - public string ResultId { get; set; } + /// + /// Identifier of the inline query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } - /// - /// Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hide_via_bot")] - public bool HideViaBot { get; set; } - } + /// + /// Identifier of the inline query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result_id")] + public string ResultId { get; set; } /// - /// Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. - /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message + /// Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username") /// - public static Task AddQuickReplyShortcutInlineQueryResultMessageAsync( - this IClient client, string shortcutName = default, long replyToMessageId = default, long queryId = default, string resultId = default, bool hideViaBot = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("hide_via_bot")] + public bool HideViaBot { get; set; } + } + + /// + /// Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. + /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message + /// + public static Task AddQuickReplyShortcutInlineQueryResultMessageAsync( + this IClient client, string shortcutName = default, long replyToMessageId = default, long queryId = default, string resultId = default, bool hideViaBot = default) + { + return client.ExecuteAsync(new AddQuickReplyShortcutInlineQueryResultMessage { - return client.ExecuteAsync(new AddQuickReplyShortcutInlineQueryResultMessage - { - ShortcutName = shortcutName, ReplyToMessageId = replyToMessageId, QueryId = queryId, ResultId = resultId, HideViaBot = hideViaBot - }); - } + ShortcutName = shortcutName, ReplyToMessageId = replyToMessageId, QueryId = queryId, ResultId = resultId, HideViaBot = hideViaBot + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddQuickReplyShortcutMessage.cs b/TdLib.Api/Functions/AddQuickReplyShortcutMessage.cs index 70d18d9c..2850454e 100644 --- a/TdLib.Api/Functions/AddQuickReplyShortcutMessage.cs +++ b/TdLib.Api/Functions/AddQuickReplyShortcutMessage.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. + /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message /// - public static partial class TdApi + public class AddQuickReplyShortcutMessage : Function { /// - /// Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. - /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message + /// Data type for serialization /// - public class AddQuickReplyShortcutMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addQuickReplyShortcutMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addQuickReplyShortcutMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Name of the target shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_name")] - public string ShortcutName { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to_message_id")] - public long ReplyToMessageId { get; set; } + /// + /// Name of the target shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_name")] + public string ShortcutName { get; set; } - /// - /// The content of the message to be added; inputMessagePaidMedia, inputMessageForwarded and inputMessageLiveLocation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to_message_id")] + public long ReplyToMessageId { get; set; } /// - /// Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. - /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message + /// The content of the message to be added; inputMessagePaidMedia, inputMessageForwarded and inputMessageLiveLocation /// - public static Task AddQuickReplyShortcutMessageAsync( - this IClient client, string shortcutName = default, long replyToMessageId = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Adds a message to a quick reply shortcut. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. + /// The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message + /// + public static Task AddQuickReplyShortcutMessageAsync( + this IClient client, string shortcutName = default, long replyToMessageId = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new AddQuickReplyShortcutMessage { - return client.ExecuteAsync(new AddQuickReplyShortcutMessage - { - ShortcutName = shortcutName, ReplyToMessageId = replyToMessageId, InputMessageContent = inputMessageContent - }); - } + ShortcutName = shortcutName, ReplyToMessageId = replyToMessageId, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddQuickReplyShortcutMessageAlbum.cs b/TdLib.Api/Functions/AddQuickReplyShortcutMessageAlbum.cs index 9c5ddf21..889db689 100644 --- a/TdLib.Api/Functions/AddQuickReplyShortcutMessageAlbum.cs +++ b/TdLib.Api/Functions/AddQuickReplyShortcutMessageAlbum.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds 2-10 messages grouped together into an album to a quick reply shortcut. Currently, only audio, document, photo and video messages can be grouped into an album. + /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages /// - public static partial class TdApi + public class AddQuickReplyShortcutMessageAlbum : Function { /// - /// Adds 2-10 messages grouped together into an album to a quick reply shortcut. Currently, only audio, document, photo and video messages can be grouped into an album. - /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// Data type for serialization /// - public class AddQuickReplyShortcutMessageAlbum : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addQuickReplyShortcutMessageAlbum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addQuickReplyShortcutMessageAlbum"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Name of the target shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_name")] - public string ShortcutName { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to_message_id")] - public long ReplyToMessageId { get; set; } + /// + /// Name of the target shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_name")] + public string ShortcutName { get; set; } - /// - /// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media - /// - [JsonProperty("input_message_contents", ItemConverterType = typeof(Converter))] - public InputMessageContent[] InputMessageContents { get; set; } - } + /// + /// Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to_message_id")] + public long ReplyToMessageId { get; set; } /// - /// Adds 2-10 messages grouped together into an album to a quick reply shortcut. Currently, only audio, document, photo and video messages can be grouped into an album. - /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media /// - public static Task AddQuickReplyShortcutMessageAlbumAsync( - this IClient client, string shortcutName = default, long replyToMessageId = default, InputMessageContent[] inputMessageContents = default) + [JsonProperty("input_message_contents", ItemConverterType = typeof(Converter))] + public InputMessageContent[] InputMessageContents { get; set; } + } + + /// + /// Adds 2-10 messages grouped together into an album to a quick reply shortcut. Currently, only audio, document, photo and video messages can be grouped into an album. + /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// + public static Task AddQuickReplyShortcutMessageAlbumAsync( + this IClient client, string shortcutName = default, long replyToMessageId = default, InputMessageContent[] inputMessageContents = default) + { + return client.ExecuteAsync(new AddQuickReplyShortcutMessageAlbum { - return client.ExecuteAsync(new AddQuickReplyShortcutMessageAlbum - { - ShortcutName = shortcutName, ReplyToMessageId = replyToMessageId, InputMessageContents = inputMessageContents - }); - } + ShortcutName = shortcutName, ReplyToMessageId = replyToMessageId, InputMessageContents = inputMessageContents + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddRecentSticker.cs b/TdLib.Api/Functions/AddRecentSticker.cs index 0ddd30be..b25661d9 100644 --- a/TdLib.Api/Functions/AddRecentSticker.cs +++ b/TdLib.Api/Functions/AddRecentSticker.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. + /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to recent stickers /// - public static partial class TdApi + public class AddRecentSticker : Function { /// - /// Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. - /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to recent stickers + /// Data type for serialization /// - public class AddRecentSticker : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addRecentSticker"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addRecentSticker"; - /// - /// Pass true to add the sticker to the list of stickers recently attached to photo or video files; pass false to add the sticker to the list of recently sent stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_attached")] - public bool IsAttached { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker file to add - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Pass true to add the sticker to the list of stickers recently attached to photo or video files; pass false to add the sticker to the list of recently sent stickers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_attached")] + public bool IsAttached { get; set; } /// - /// Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. - /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to recent stickers + /// Sticker file to add /// - public static Task AddRecentStickerAsync( - this IClient client, bool isAttached = default, InputFile sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } + } + + /// + /// Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. + /// Only stickers belonging to a sticker set or in WEBP or WEBM format can be added to this list. Emoji stickers can't be added to recent stickers + /// + public static Task AddRecentStickerAsync( + this IClient client, bool isAttached = default, InputFile sticker = default) + { + return client.ExecuteAsync(new AddRecentSticker { - return client.ExecuteAsync(new AddRecentSticker - { - IsAttached = isAttached, Sticker = sticker - }); - } + IsAttached = isAttached, Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddRecentlyFoundChat.cs b/TdLib.Api/Functions/AddRecentlyFoundChat.cs index 6966ddd8..20aa4399 100644 --- a/TdLib.Api/Functions/AddRecentlyFoundChat.cs +++ b/TdLib.Api/Functions/AddRecentlyFoundChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first /// - public static partial class TdApi + public class AddRecentlyFoundChat : Function { /// - /// Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first + /// Data type for serialization /// - public class AddRecentlyFoundChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addRecentlyFoundChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addRecentlyFoundChat"; - /// - /// Identifier of the chat to add - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first + /// Identifier of the chat to add /// - public static Task AddRecentlyFoundChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first + /// + public static Task AddRecentlyFoundChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new AddRecentlyFoundChat { - return client.ExecuteAsync(new AddRecentlyFoundChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddSavedAnimation.cs b/TdLib.Api/Functions/AddSavedAnimation.cs index b9afeb1d..24c76910 100644 --- a/TdLib.Api/Functions/AddSavedAnimation.cs +++ b/TdLib.Api/Functions/AddSavedAnimation.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. + /// Only non-secret video animations with MIME type "video/mp4" can be added to the list /// - public static partial class TdApi + public class AddSavedAnimation : Function { /// - /// Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. - /// Only non-secret video animations with MIME type "video/mp4" can be added to the list + /// Data type for serialization /// - public class AddSavedAnimation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addSavedAnimation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addSavedAnimation"; - /// - /// The animation file to be added. Only animations known to the server (i.e., successfully sent via a message) can be added to the list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public InputFile Animation { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. - /// Only non-secret video animations with MIME type "video/mp4" can be added to the list + /// The animation file to be added. Only animations known to the server (i.e., successfully sent via a message) can be added to the list /// - public static Task AddSavedAnimationAsync( - this IClient client, InputFile animation = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public InputFile Animation { get; set; } + } + + /// + /// Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. + /// Only non-secret video animations with MIME type "video/mp4" can be added to the list + /// + public static Task AddSavedAnimationAsync( + this IClient client, InputFile animation = default) + { + return client.ExecuteAsync(new AddSavedAnimation { - return client.ExecuteAsync(new AddSavedAnimation - { - Animation = animation - }); - } + Animation = animation + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddSavedNotificationSound.cs b/TdLib.Api/Functions/AddSavedNotificationSound.cs index dd3c9fbb..6f8d853a 100644 --- a/TdLib.Api/Functions/AddSavedNotificationSound.cs +++ b/TdLib.Api/Functions/AddSavedNotificationSound.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed /// - public static partial class TdApi + public class AddSavedNotificationSound : Function { /// - /// Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed + /// Data type for serialization /// - public class AddSavedNotificationSound : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addSavedNotificationSound"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addSavedNotificationSound"; - /// - /// Notification sound file to add - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sound")] - public InputFile Sound { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed + /// Notification sound file to add /// - public static Task AddSavedNotificationSoundAsync( - this IClient client, InputFile sound = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sound")] + public InputFile Sound { get; set; } + } + + /// + /// Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed + /// + public static Task AddSavedNotificationSoundAsync( + this IClient client, InputFile sound = default) + { + return client.ExecuteAsync(new AddSavedNotificationSound { - return client.ExecuteAsync(new AddSavedNotificationSound - { - Sound = sound - }); - } + Sound = sound + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddStickerToSet.cs b/TdLib.Api/Functions/AddStickerToSet.cs index ab946dd0..6ca2fdf4 100644 --- a/TdLib.Api/Functions/AddStickerToSet.cs +++ b/TdLib.Api/Functions/AddStickerToSet.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a new sticker to a set /// - public static partial class TdApi + public class AddStickerToSet : Function { /// - /// Adds a new sticker to a set + /// Data type for serialization /// - public class AddStickerToSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addStickerToSet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addStickerToSet"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Sticker set owner; ignored for regular users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker set name. The sticker set must be owned by the current user, and contain less than 200 stickers for custom emoji sticker sets and less than 120 otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Sticker set owner; ignored for regular users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Sticker to add to the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public NewSticker Sticker { get; set; } - } + /// + /// Sticker set name. The sticker set must be owned by the current user, and contain less than 200 stickers for custom emoji sticker sets and less than 120 otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Adds a new sticker to a set + /// Sticker to add to the set /// - public static Task AddStickerToSetAsync( - this IClient client, long userId = default, string name = default, NewSticker sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public NewSticker Sticker { get; set; } + } + + /// + /// Adds a new sticker to a set + /// + public static Task AddStickerToSetAsync( + this IClient client, long userId = default, string name = default, NewSticker sticker = default) + { + return client.ExecuteAsync(new AddStickerToSet { - return client.ExecuteAsync(new AddStickerToSet - { - UserId = userId, Name = name, Sticker = sticker - }); - } + UserId = userId, Name = name, Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddStoryAlbumStories.cs b/TdLib.Api/Functions/AddStoryAlbumStories.cs index 4811ae65..69bcd34c 100644 --- a/TdLib.Api/Functions/AddStoryAlbumStories.cs +++ b/TdLib.Api/Functions/AddStoryAlbumStories.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds stories to the beginning of a previously created story album. If the album is owned by a supergroup or a channel chat, then + /// requires can_edit_stories administrator right in the chat. Returns the changed album /// - public static partial class TdApi + public class AddStoryAlbumStories : Function { /// - /// Adds stories to the beginning of a previously created story album. If the album is owned by a supergroup or a channel chat, then - /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// Data type for serialization /// - public class AddStoryAlbumStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addStoryAlbumStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addStoryAlbumStories"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that owns the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_id")] - public int StoryAlbumId { get; set; } + /// + /// Identifier of the chat that owns the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the stories to add to the album; 1-getOption("story_album_size_max") identifiers. - /// - [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] - public int[] StoryIds { get; set; } - } + /// + /// Identifier of the story album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_id")] + public int StoryAlbumId { get; set; } /// - /// Adds stories to the beginning of a previously created story album. If the album is owned by a supergroup or a channel chat, then - /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// Identifier of the stories to add to the album; 1-getOption("story_album_size_max") identifiers. /// - public static Task AddStoryAlbumStoriesAsync( - this IClient client, long chatId = default, int storyAlbumId = default, int[] storyIds = default) + [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] + public int[] StoryIds { get; set; } + } + + /// + /// Adds stories to the beginning of a previously created story album. If the album is owned by a supergroup or a channel chat, then + /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// + public static Task AddStoryAlbumStoriesAsync( + this IClient client, long chatId = default, int storyAlbumId = default, int[] storyIds = default) + { + return client.ExecuteAsync(new AddStoryAlbumStories { - return client.ExecuteAsync(new AddStoryAlbumStories - { - ChatId = chatId, StoryAlbumId = storyAlbumId, StoryIds = storyIds - }); - } + ChatId = chatId, StoryAlbumId = storyAlbumId, StoryIds = storyIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddTextCompositionStyle.cs b/TdLib.Api/Functions/AddTextCompositionStyle.cs index 9cbe0455..ccf3a0d4 100644 --- a/TdLib.Api/Functions/AddTextCompositionStyle.cs +++ b/TdLib.Api/Functions/AddTextCompositionStyle.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a custom text composition style to the list of used by the user styles. May return an error with a message "TONES_SAVED_TOO_MANY" + /// if the maximum number of added custom styles getOption("added_text_composition_style_count_max") has been reached /// - public static partial class TdApi + public class AddTextCompositionStyle : Function { /// - /// Adds a custom text composition style to the list of used by the user styles. May return an error with a message "TONES_SAVED_TOO_MANY" - /// if the maximum number of added custom styles getOption("added_text_composition_style_count_max") has been reached + /// Data type for serialization /// - public class AddTextCompositionStyle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addTextCompositionStyle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addTextCompositionStyle"; - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds a custom text composition style to the list of used by the user styles. May return an error with a message "TONES_SAVED_TOO_MANY" - /// if the maximum number of added custom styles getOption("added_text_composition_style_count_max") has been reached + /// Name of the style /// - public static Task AddTextCompositionStyleAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Adds a custom text composition style to the list of used by the user styles. May return an error with a message "TONES_SAVED_TOO_MANY" + /// if the maximum number of added custom styles getOption("added_text_composition_style_count_max") has been reached + /// + public static Task AddTextCompositionStyleAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new AddTextCompositionStyle { - return client.ExecuteAsync(new AddTextCompositionStyle - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AddWebBrowserSettingsException.cs b/TdLib.Api/Functions/AddWebBrowserSettingsException.cs index 176a1d97..7aec0e7f 100644 --- a/TdLib.Api/Functions/AddWebBrowserSettingsException.cs +++ b/TdLib.Api/Functions/AddWebBrowserSettingsException.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds a special handling for the opening of the specified URL /// - public static partial class TdApi + public class AddWebBrowserSettingsException : Function { /// - /// Adds a special handling for the opening of the specified URL + /// Data type for serialization /// - public class AddWebBrowserSettingsException : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addWebBrowserSettingsException"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "addWebBrowserSettingsException"; - /// - /// Pass true if the specified website must be opened in an external browser; pass false to open it in the in-app browser. There can be at most 100 exceptions in each list of the exceptions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("open_external_browser")] - public bool OpenExternalBrowser { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Pass true if the specified website must be opened in an external browser; pass false to open it in the in-app browser. There can be at most 100 exceptions in each list of the exceptions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("open_external_browser")] + public bool OpenExternalBrowser { get; set; } /// - /// Adds a special handling for the opening of the specified URL + /// URL of the website /// - public static Task AddWebBrowserSettingsExceptionAsync( - this IClient client, bool openExternalBrowser = default, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Adds a special handling for the opening of the specified URL + /// + public static Task AddWebBrowserSettingsExceptionAsync( + this IClient client, bool openExternalBrowser = default, string url = default) + { + return client.ExecuteAsync(new AddWebBrowserSettingsException { - return client.ExecuteAsync(new AddWebBrowserSettingsException - { - OpenExternalBrowser = openExternalBrowser, Url = url - }); - } + OpenExternalBrowser = openExternalBrowser, Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AllowBotToSendMessages.cs b/TdLib.Api/Functions/AllowBotToSendMessages.cs index 609f9939..f74999f2 100644 --- a/TdLib.Api/Functions/AllowBotToSendMessages.cs +++ b/TdLib.Api/Functions/AllowBotToSendMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Allows the specified bot to send messages to the user /// - public static partial class TdApi + public class AllowBotToSendMessages : Function { /// - /// Allows the specified bot to send messages to the user + /// Data type for serialization /// - public class AllowBotToSendMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "allowBotToSendMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "allowBotToSendMessages"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Allows the specified bot to send messages to the user + /// Identifier of the target bot /// - public static Task AllowBotToSendMessagesAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Allows the specified bot to send messages to the user + /// + public static Task AllowBotToSendMessagesAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new AllowBotToSendMessages { - return client.ExecuteAsync(new AllowBotToSendMessages - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AllowUnpaidMessagesFromUser.cs b/TdLib.Api/Functions/AllowUnpaidMessagesFromUser.cs index 10a5053d..13580382 100644 --- a/TdLib.Api/Functions/AllowUnpaidMessagesFromUser.cs +++ b/TdLib.Api/Functions/AllowUnpaidMessagesFromUser.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Allows the specified user to send unpaid private messages to the current user by adding a rule to userPrivacySettingAllowUnpaidMessages /// - public static partial class TdApi + public class AllowUnpaidMessagesFromUser : Function { /// - /// Allows the specified user to send unpaid private messages to the current user by adding a rule to userPrivacySettingAllowUnpaidMessages + /// Data type for serialization /// - public class AllowUnpaidMessagesFromUser : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "allowUnpaidMessagesFromUser"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "allowUnpaidMessagesFromUser"; - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to refund the user previously paid messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("refund_payments")] - public bool RefundPayments { get; set; } - } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Allows the specified user to send unpaid private messages to the current user by adding a rule to userPrivacySettingAllowUnpaidMessages + /// Pass true to refund the user previously paid messages /// - public static Task AllowUnpaidMessagesFromUserAsync( - this IClient client, long userId = default, bool refundPayments = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("refund_payments")] + public bool RefundPayments { get; set; } + } + + /// + /// Allows the specified user to send unpaid private messages to the current user by adding a rule to userPrivacySettingAllowUnpaidMessages + /// + public static Task AllowUnpaidMessagesFromUserAsync( + this IClient client, long userId = default, bool refundPayments = default) + { + return client.ExecuteAsync(new AllowUnpaidMessagesFromUser { - return client.ExecuteAsync(new AllowUnpaidMessagesFromUser - { - UserId = userId, RefundPayments = refundPayments - }); - } + UserId = userId, RefundPayments = refundPayments + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerCallbackQuery.cs b/TdLib.Api/Functions/AnswerCallbackQuery.cs index fb4c8ca0..805a7f96 100644 --- a/TdLib.Api/Functions/AnswerCallbackQuery.cs +++ b/TdLib.Api/Functions/AnswerCallbackQuery.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the result of a callback query; for bots only /// - public static partial class TdApi + public class AnswerCallbackQuery : Function { /// - /// Sets the result of a callback query; for bots only + /// Data type for serialization /// - public class AnswerCallbackQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerCallbackQuery"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerCallbackQuery"; - /// - /// Identifier of the callback query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("callback_query_id")] - public long CallbackQueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the answer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Identifier of the callback query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("callback_query_id")] + public long CallbackQueryId { get; set; } - /// - /// Pass true to show an alert to the user instead of a toast notification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_alert")] - public bool ShowAlert { get; set; } + /// + /// Text of the answer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// URL to be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Pass true to show an alert to the user instead of a toast notification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_alert")] + public bool ShowAlert { get; set; } - /// - /// Time during which the result of the query can be cached, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cache_time")] - public int CacheTime { get; set; } - } + /// + /// URL to be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } /// - /// Sets the result of a callback query; for bots only + /// Time during which the result of the query can be cached, in seconds /// - public static Task AnswerCallbackQueryAsync( - this IClient client, long callbackQueryId = default, string text = default, bool showAlert = default, string url = default, int cacheTime = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("cache_time")] + public int CacheTime { get; set; } + } + + /// + /// Sets the result of a callback query; for bots only + /// + public static Task AnswerCallbackQueryAsync( + this IClient client, long callbackQueryId = default, string text = default, bool showAlert = default, string url = default, int cacheTime = default) + { + return client.ExecuteAsync(new AnswerCallbackQuery { - return client.ExecuteAsync(new AnswerCallbackQuery - { - CallbackQueryId = callbackQueryId, Text = text, ShowAlert = showAlert, Url = url, CacheTime = cacheTime - }); - } + CallbackQueryId = callbackQueryId, Text = text, ShowAlert = showAlert, Url = url, CacheTime = cacheTime + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerChatJoinRequestQuery.cs b/TdLib.Api/Functions/AnswerChatJoinRequestQuery.cs index 0615b398..7d516a09 100644 --- a/TdLib.Api/Functions/AnswerChatJoinRequestQuery.cs +++ b/TdLib.Api/Functions/AnswerChatJoinRequestQuery.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the result of a chat join query; for bots only /// - public static partial class TdApi + public class AnswerChatJoinRequestQuery : Function { /// - /// Sets the result of a chat join query; for bots only + /// Data type for serialization /// - public class AnswerChatJoinRequestQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerChatJoinRequestQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerChatJoinRequestQuery"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result")] - public ChatJoinRequestResult Result { get; set; } + /// + /// Identifier of the query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } - /// - /// URL of the Web App to open - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// The result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result")] + public ChatJoinRequestResult Result { get; set; } /// - /// Sets the result of a chat join query; for bots only + /// URL of the Web App to open /// - public static Task AnswerChatJoinRequestQueryAsync( - this IClient client, long queryId = default, ChatJoinRequestResult result = default, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Sets the result of a chat join query; for bots only + /// + public static Task AnswerChatJoinRequestQueryAsync( + this IClient client, long queryId = default, ChatJoinRequestResult result = default, string url = default) + { + return client.ExecuteAsync(new AnswerChatJoinRequestQuery { - return client.ExecuteAsync(new AnswerChatJoinRequestQuery - { - QueryId = queryId, Result = result, Url = url - }); - } + QueryId = queryId, Result = result, Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerCustomQuery.cs b/TdLib.Api/Functions/AnswerCustomQuery.cs index 4c28a3a3..6cdff7cd 100644 --- a/TdLib.Api/Functions/AnswerCustomQuery.cs +++ b/TdLib.Api/Functions/AnswerCustomQuery.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Answers a custom query; for bots only /// - public static partial class TdApi + public class AnswerCustomQuery : Function { /// - /// Answers a custom query; for bots only + /// Data type for serialization /// - public class AnswerCustomQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerCustomQuery"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerCustomQuery"; - /// - /// Identifier of a custom query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_query_id")] - public long CustomQueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// JSON-serialized answer to the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } - } + /// + /// Identifier of a custom query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_query_id")] + public long CustomQueryId { get; set; } /// - /// Answers a custom query; for bots only + /// JSON-serialized answer to the query /// - public static Task AnswerCustomQueryAsync( - this IClient client, long customQueryId = default, string data = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } + } + + /// + /// Answers a custom query; for bots only + /// + public static Task AnswerCustomQueryAsync( + this IClient client, long customQueryId = default, string data = default) + { + return client.ExecuteAsync(new AnswerCustomQuery { - return client.ExecuteAsync(new AnswerCustomQuery - { - CustomQueryId = customQueryId, Data = data - }); - } + CustomQueryId = customQueryId, Data = data + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerGuestQuery.cs b/TdLib.Api/Functions/AnswerGuestQuery.cs index 34ad2f73..9b00ad13 100644 --- a/TdLib.Api/Functions/AnswerGuestQuery.cs +++ b/TdLib.Api/Functions/AnswerGuestQuery.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the result of a guest query; for bots only /// - public static partial class TdApi + public class AnswerGuestQuery : Function { /// - /// Sets the result of a guest query; for bots only + /// Data type for serialization /// - public class AnswerGuestQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerGuestQuery"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerGuestQuery"; - /// - /// Identifier of the guest query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("guest_query_id")] - public long GuestQueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The result of the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result")] - public InputInlineQueryResult Result { get; set; } - } + /// + /// Identifier of the guest query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("guest_query_id")] + public long GuestQueryId { get; set; } /// - /// Sets the result of a guest query; for bots only + /// The result of the query /// - public static Task AnswerGuestQueryAsync( - this IClient client, long guestQueryId = default, InputInlineQueryResult result = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("result")] + public InputInlineQueryResult Result { get; set; } + } + + /// + /// Sets the result of a guest query; for bots only + /// + public static Task AnswerGuestQueryAsync( + this IClient client, long guestQueryId = default, InputInlineQueryResult result = default) + { + return client.ExecuteAsync(new AnswerGuestQuery { - return client.ExecuteAsync(new AnswerGuestQuery - { - GuestQueryId = guestQueryId, Result = result - }); - } + GuestQueryId = guestQueryId, Result = result + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerInlineQuery.cs b/TdLib.Api/Functions/AnswerInlineQuery.cs index 79d45df4..b908d183 100644 --- a/TdLib.Api/Functions/AnswerInlineQuery.cs +++ b/TdLib.Api/Functions/AnswerInlineQuery.cs @@ -3,83 +3,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the result of an inline query; for bots only /// - public static partial class TdApi + public class AnswerInlineQuery : Function { /// - /// Sets the result of an inline query; for bots only + /// Data type for serialization /// - public class AnswerInlineQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerInlineQuery"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerInlineQuery"; - /// - /// Identifier of the inline query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("inline_query_id")] - public long InlineQueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if results may be cached and returned only for the user who sent the query. By default, results may be returned to any user who sends the same query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_personal")] - public bool IsPersonal { get; set; } + /// + /// Identifier of the inline query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("inline_query_id")] + public long InlineQueryId { get; set; } - /// - /// Button to be shown above inline query results; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button")] - public InlineQueryResultsButton Button { get; set; } + /// + /// Pass true if results may be cached and returned only for the user who sent the query. By default, results may be returned to any user who sends the same query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_personal")] + public bool IsPersonal { get; set; } - /// - /// The results of the query - /// - [JsonProperty("results", ItemConverterType = typeof(Converter))] - public InputInlineQueryResult[] Results { get; set; } + /// + /// Button to be shown above inline query results; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button")] + public InlineQueryResultsButton Button { get; set; } - /// - /// Allowed time to cache the results of the query, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cache_time")] - public int CacheTime { get; set; } + /// + /// The results of the query + /// + [JsonProperty("results", ItemConverterType = typeof(Converter))] + public InputInlineQueryResult[] Results { get; set; } - /// - /// Offset for the next inline query; pass an empty string if there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// Allowed time to cache the results of the query, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cache_time")] + public int CacheTime { get; set; } /// - /// Sets the result of an inline query; for bots only + /// Offset for the next inline query; pass an empty string if there are no more results /// - public static Task AnswerInlineQueryAsync( - this IClient client, long inlineQueryId = default, bool isPersonal = default, InlineQueryResultsButton button = default, InputInlineQueryResult[] results = default, int cacheTime = default, string nextOffset = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } + } + + /// + /// Sets the result of an inline query; for bots only + /// + public static Task AnswerInlineQueryAsync( + this IClient client, long inlineQueryId = default, bool isPersonal = default, InlineQueryResultsButton button = default, InputInlineQueryResult[] results = default, int cacheTime = default, string nextOffset = default) + { + return client.ExecuteAsync(new AnswerInlineQuery { - return client.ExecuteAsync(new AnswerInlineQuery - { - InlineQueryId = inlineQueryId, IsPersonal = isPersonal, Button = button, Results = results, CacheTime = cacheTime, NextOffset = nextOffset - }); - } + InlineQueryId = inlineQueryId, IsPersonal = isPersonal, Button = button, Results = results, CacheTime = cacheTime, NextOffset = nextOffset + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerPreCheckoutQuery.cs b/TdLib.Api/Functions/AnswerPreCheckoutQuery.cs index b7e18c50..bd92886a 100644 --- a/TdLib.Api/Functions/AnswerPreCheckoutQuery.cs +++ b/TdLib.Api/Functions/AnswerPreCheckoutQuery.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the result of a pre-checkout query; for bots only /// - public static partial class TdApi + public class AnswerPreCheckoutQuery : Function { /// - /// Sets the result of a pre-checkout query; for bots only + /// Data type for serialization /// - public class AnswerPreCheckoutQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerPreCheckoutQuery"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerPreCheckoutQuery"; - /// - /// Identifier of the pre-checkout query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("pre_checkout_query_id")] - public long PreCheckoutQueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An error message, empty on success - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error_message")] - public string ErrorMessage { get; set; } - } + /// + /// Identifier of the pre-checkout query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("pre_checkout_query_id")] + public long PreCheckoutQueryId { get; set; } /// - /// Sets the result of a pre-checkout query; for bots only + /// An error message, empty on success /// - public static Task AnswerPreCheckoutQueryAsync( - this IClient client, long preCheckoutQueryId = default, string errorMessage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("error_message")] + public string ErrorMessage { get; set; } + } + + /// + /// Sets the result of a pre-checkout query; for bots only + /// + public static Task AnswerPreCheckoutQueryAsync( + this IClient client, long preCheckoutQueryId = default, string errorMessage = default) + { + return client.ExecuteAsync(new AnswerPreCheckoutQuery { - return client.ExecuteAsync(new AnswerPreCheckoutQuery - { - PreCheckoutQueryId = preCheckoutQueryId, ErrorMessage = errorMessage - }); - } + PreCheckoutQueryId = preCheckoutQueryId, ErrorMessage = errorMessage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerShippingQuery.cs b/TdLib.Api/Functions/AnswerShippingQuery.cs index 3a024154..5dbe1f9a 100644 --- a/TdLib.Api/Functions/AnswerShippingQuery.cs +++ b/TdLib.Api/Functions/AnswerShippingQuery.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the result of a shipping query; for bots only /// - public static partial class TdApi + public class AnswerShippingQuery : Function { /// - /// Sets the result of a shipping query; for bots only + /// Data type for serialization /// - public class AnswerShippingQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerShippingQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerShippingQuery"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the shipping query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("shipping_query_id")] - public long ShippingQueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Available shipping options - /// - [JsonProperty("shipping_options", ItemConverterType = typeof(Converter))] - public ShippingOption[] ShippingOptions { get; set; } + /// + /// Identifier of the shipping query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("shipping_query_id")] + public long ShippingQueryId { get; set; } - /// - /// An error message, empty on success - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error_message")] - public string ErrorMessage { get; set; } - } + /// + /// Available shipping options + /// + [JsonProperty("shipping_options", ItemConverterType = typeof(Converter))] + public ShippingOption[] ShippingOptions { get; set; } /// - /// Sets the result of a shipping query; for bots only + /// An error message, empty on success /// - public static Task AnswerShippingQueryAsync( - this IClient client, long shippingQueryId = default, ShippingOption[] shippingOptions = default, string errorMessage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("error_message")] + public string ErrorMessage { get; set; } + } + + /// + /// Sets the result of a shipping query; for bots only + /// + public static Task AnswerShippingQueryAsync( + this IClient client, long shippingQueryId = default, ShippingOption[] shippingOptions = default, string errorMessage = default) + { + return client.ExecuteAsync(new AnswerShippingQuery { - return client.ExecuteAsync(new AnswerShippingQuery - { - ShippingQueryId = shippingQueryId, ShippingOptions = shippingOptions, ErrorMessage = errorMessage - }); - } + ShippingQueryId = shippingQueryId, ShippingOptions = shippingOptions, ErrorMessage = errorMessage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerTonConnectRequest.cs b/TdLib.Api/Functions/AnswerTonConnectRequest.cs new file mode 100644 index 00000000..4ae5758a --- /dev/null +++ b/TdLib.Api/Functions/AnswerTonConnectRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Sends an answer for a request received through TON Connect + /// + public class AnswerTonConnectRequest : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerTonConnectRequest"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the TON Connect session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + + /// + /// Identifier of the message with the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + + /// + /// Identifier to trace the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("trace_id")] + public string TraceId { get; set; } + + /// + /// Body of the response + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("body")] + public byte[] Body { get; set; } + } + + /// + /// Sends an answer for a request received through TON Connect + /// + public static Task AnswerTonConnectRequestAsync( + this IClient client, long sessionId = default, long messageId = default, string traceId = default, byte[] body = default) + { + return client.ExecuteAsync(new AnswerTonConnectRequest + { + SessionId = sessionId, MessageId = messageId, TraceId = traceId, Body = body + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AnswerWebAppQuery.cs b/TdLib.Api/Functions/AnswerWebAppQuery.cs index 6fd193d5..1c386164 100644 --- a/TdLib.Api/Functions/AnswerWebAppQuery.cs +++ b/TdLib.Api/Functions/AnswerWebAppQuery.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from which the query originated; for bots only /// - public static partial class TdApi + public class AnswerWebAppQuery : Function { /// - /// Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from which the query originated; for bots only + /// Data type for serialization /// - public class AnswerWebAppQuery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "answerWebAppQuery"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "answerWebAppQuery"; - /// - /// Identifier of the Web App query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_query_id")] - public string WebAppQueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The result of the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result")] - public InputInlineQueryResult Result { get; set; } - } + /// + /// Identifier of the Web App query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_query_id")] + public string WebAppQueryId { get; set; } /// - /// Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from which the query originated; for bots only + /// The result of the query /// - public static Task AnswerWebAppQueryAsync( - this IClient client, string webAppQueryId = default, InputInlineQueryResult result = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("result")] + public InputInlineQueryResult Result { get; set; } + } + + /// + /// Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from which the query originated; for bots only + /// + public static Task AnswerWebAppQueryAsync( + this IClient client, string webAppQueryId = default, InputInlineQueryResult result = default) + { + return client.ExecuteAsync(new AnswerWebAppQuery { - return client.ExecuteAsync(new AnswerWebAppQuery - { - WebAppQueryId = webAppQueryId, Result = result - }); - } + WebAppQueryId = webAppQueryId, Result = result + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ApplyPremiumGiftCode.cs b/TdLib.Api/Functions/ApplyPremiumGiftCode.cs index 1e6f65eb..9718bef4 100644 --- a/TdLib.Api/Functions/ApplyPremiumGiftCode.cs +++ b/TdLib.Api/Functions/ApplyPremiumGiftCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Applies a Telegram Premium gift code /// - public static partial class TdApi + public class ApplyPremiumGiftCode : Function { /// - /// Applies a Telegram Premium gift code + /// Data type for serialization /// - public class ApplyPremiumGiftCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "applyPremiumGiftCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "applyPremiumGiftCode"; - /// - /// The code to apply - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Applies a Telegram Premium gift code + /// The code to apply /// - public static Task ApplyPremiumGiftCodeAsync( - this IClient client, string code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } + } + + /// + /// Applies a Telegram Premium gift code + /// + public static Task ApplyPremiumGiftCodeAsync( + this IClient client, string code = default) + { + return client.ExecuteAsync(new ApplyPremiumGiftCode { - return client.ExecuteAsync(new ApplyPremiumGiftCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ApproveSuggestedPost.cs b/TdLib.Api/Functions/ApproveSuggestedPost.cs index e25ba43e..f9bc168f 100644 --- a/TdLib.Api/Functions/ApproveSuggestedPost.cs +++ b/TdLib.Api/Functions/ApproveSuggestedPost.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Approves a suggested post in a channel direct messages chat /// - public static partial class TdApi + public class ApproveSuggestedPost : Function { /// - /// Approves a suggested post in a channel direct messages chat + /// Data type for serialization /// - public class ApproveSuggestedPost : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "approveSuggestedPost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "approveSuggestedPost"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the suggested post. Use messageProperties.can_be_approved to check whether the suggested post can be approved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. If specified, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_date")] - public int SendDate { get; set; } - } + /// + /// Identifier of the message with the suggested post. Use messageProperties.can_be_approved to check whether the suggested post can be approved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Approves a suggested post in a channel direct messages chat + /// Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. If specified, /// - public static Task ApproveSuggestedPostAsync( - this IClient client, long chatId = default, long messageId = default, int sendDate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("send_date")] + public int SendDate { get; set; } + } + + /// + /// Approves a suggested post in a channel direct messages chat + /// + public static Task ApproveSuggestedPostAsync( + this IClient client, long chatId = default, long messageId = default, int sendDate = default) + { + return client.ExecuteAsync(new ApproveSuggestedPost { - return client.ExecuteAsync(new ApproveSuggestedPost - { - ChatId = chatId, MessageId = messageId, SendDate = sendDate - }); - } + ChatId = chatId, MessageId = messageId, SendDate = sendDate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/AssignStoreTransaction.cs b/TdLib.Api/Functions/AssignStoreTransaction.cs index 89ce67d8..9d15344d 100644 --- a/TdLib.Api/Functions/AssignStoreTransaction.cs +++ b/TdLib.Api/Functions/AssignStoreTransaction.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs server about an in-store purchase. For official applications only /// - public static partial class TdApi + public class AssignStoreTransaction : Function { /// - /// Informs server about an in-store purchase. For official applications only + /// Data type for serialization /// - public class AssignStoreTransaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "assignStoreTransaction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "assignStoreTransaction"; - /// - /// Information about the transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transaction")] - public StoreTransaction Transaction { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Transaction purpose - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("purpose")] - public StorePaymentPurpose Purpose { get; set; } - } + /// + /// Information about the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction")] + public StoreTransaction Transaction { get; set; } /// - /// Informs server about an in-store purchase. For official applications only + /// Transaction purpose /// - public static Task AssignStoreTransactionAsync( - this IClient client, StoreTransaction transaction = default, StorePaymentPurpose purpose = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("purpose")] + public StorePaymentPurpose Purpose { get; set; } + } + + /// + /// Informs server about an in-store purchase. For official applications only + /// + public static Task AssignStoreTransactionAsync( + this IClient client, StoreTransaction transaction = default, StorePaymentPurpose purpose = default) + { + return client.ExecuteAsync(new AssignStoreTransaction { - return client.ExecuteAsync(new AssignStoreTransaction - { - Transaction = transaction, Purpose = purpose - }); - } + Transaction = transaction, Purpose = purpose + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/BanChatMember.cs b/TdLib.Api/Functions/BanChatMember.cs index c7a01f34..fb7568fc 100644 --- a/TdLib.Api/Functions/BanChatMember.cs +++ b/TdLib.Api/Functions/BanChatMember.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first /// - public static partial class TdApi + public class BanChatMember : Function { /// - /// Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first + /// Data type for serialization /// - public class BanChatMember : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "banChatMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "banChatMember"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Member identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_id")] - public MessageSender MemberId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups and if a chat is banned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("banned_until_date")] - public int BannedUntilDate { get; set; } + /// + /// Member identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_id")] + public MessageSender MemberId { get; set; } - /// - /// Pass true to delete all messages in the chat for the user who is being removed. Always true for supergroups and channels - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revoke_messages")] - public bool RevokeMessages { get; set; } - } + /// + /// Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Ignored in basic groups and if a chat is banned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("banned_until_date")] + public int BannedUntilDate { get; set; } /// - /// Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first + /// Pass true to delete all messages in the chat for the user who is being removed. Always true for supergroups and channels /// - public static Task BanChatMemberAsync( - this IClient client, long chatId = default, MessageSender memberId = default, int bannedUntilDate = default, bool revokeMessages = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("revoke_messages")] + public bool RevokeMessages { get; set; } + } + + /// + /// Bans a member in a chat; requires can_restrict_members administrator right. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first + /// + public static Task BanChatMemberAsync( + this IClient client, long chatId = default, MessageSender memberId = default, int bannedUntilDate = default, bool revokeMessages = default) + { + return client.ExecuteAsync(new BanChatMember { - return client.ExecuteAsync(new BanChatMember - { - ChatId = chatId, MemberId = memberId, BannedUntilDate = bannedUntilDate, RevokeMessages = revokeMessages - }); - } + ChatId = chatId, MemberId = memberId, BannedUntilDate = bannedUntilDate, RevokeMessages = revokeMessages + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/BanGroupCallParticipants.cs b/TdLib.Api/Functions/BanGroupCallParticipants.cs index 4f746408..3611e06d 100644 --- a/TdLib.Api/Functions/BanGroupCallParticipants.cs +++ b/TdLib.Api/Functions/BanGroupCallParticipants.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Bans users from a group call not bound to a chat; requires groupCall.is_owned. Only the owner of the group call can invite the banned users back /// - public static partial class TdApi + public class BanGroupCallParticipants : Function { /// - /// Bans users from a group call not bound to a chat; requires groupCall.is_owned. Only the owner of the group call can invite the banned users back + /// Data type for serialization /// - public class BanGroupCallParticipants : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "banGroupCallParticipants"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "banGroupCallParticipants"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of group call participants to ban; identifiers of unknown users from the update updateGroupCallParticipants can be also passed to the method - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Bans users from a group call not bound to a chat; requires groupCall.is_owned. Only the owner of the group call can invite the banned users back + /// Identifiers of group call participants to ban; identifiers of unknown users from the update updateGroupCallParticipants can be also passed to the method /// - public static Task BanGroupCallParticipantsAsync( - this IClient client, int groupCallId = default, long[] userIds = default) + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } + } + + /// + /// Bans users from a group call not bound to a chat; requires groupCall.is_owned. Only the owner of the group call can invite the banned users back + /// + public static Task BanGroupCallParticipantsAsync( + this IClient client, int groupCallId = default, long[] userIds = default) + { + return client.ExecuteAsync(new BanGroupCallParticipants { - return client.ExecuteAsync(new BanGroupCallParticipants - { - GroupCallId = groupCallId, UserIds = userIds - }); - } + GroupCallId = groupCallId, UserIds = userIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/BlockMessageSenderFromReplies.cs b/TdLib.Api/Functions/BlockMessageSenderFromReplies.cs index cdd9a37f..079ce127 100644 --- a/TdLib.Api/Functions/BlockMessageSenderFromReplies.cs +++ b/TdLib.Api/Functions/BlockMessageSenderFromReplies.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Blocks an original sender of a message in the Replies chat /// - public static partial class TdApi + public class BlockMessageSenderFromReplies : Function { /// - /// Blocks an original sender of a message in the Replies chat + /// Data type for serialization /// - public class BlockMessageSenderFromReplies : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "blockMessageSenderFromReplies"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "blockMessageSenderFromReplies"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The identifier of an incoming message in the Replies chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to delete the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("delete_message")] - public bool DeleteMessage { get; set; } + /// + /// The identifier of an incoming message in the Replies chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Pass true to delete all messages from the same sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("delete_all_messages")] - public bool DeleteAllMessages { get; set; } + /// + /// Pass true to delete the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("delete_message")] + public bool DeleteMessage { get; set; } - /// - /// Pass true to report the sender to the Telegram moderators - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("report_spam")] - public bool ReportSpam { get; set; } - } + /// + /// Pass true to delete all messages from the same sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("delete_all_messages")] + public bool DeleteAllMessages { get; set; } /// - /// Blocks an original sender of a message in the Replies chat + /// Pass true to report the sender to the Telegram moderators /// - public static Task BlockMessageSenderFromRepliesAsync( - this IClient client, long messageId = default, bool deleteMessage = default, bool deleteAllMessages = default, bool reportSpam = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("report_spam")] + public bool ReportSpam { get; set; } + } + + /// + /// Blocks an original sender of a message in the Replies chat + /// + public static Task BlockMessageSenderFromRepliesAsync( + this IClient client, long messageId = default, bool deleteMessage = default, bool deleteAllMessages = default, bool reportSpam = default) + { + return client.ExecuteAsync(new BlockMessageSenderFromReplies { - return client.ExecuteAsync(new BlockMessageSenderFromReplies - { - MessageId = messageId, DeleteMessage = deleteMessage, DeleteAllMessages = deleteAllMessages, ReportSpam = reportSpam - }); - } + MessageId = messageId, DeleteMessage = deleteMessage, DeleteAllMessages = deleteAllMessages, ReportSpam = reportSpam + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/BoostChat.cs b/TdLib.Api/Functions/BoostChat.cs index 5ac8b53f..7dbc94fa 100644 --- a/TdLib.Api/Functions/BoostChat.cs +++ b/TdLib.Api/Functions/BoostChat.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Boosts a chat and returns the list of available chat boost slots for the current user after the boost /// - public static partial class TdApi + public class BoostChat : Function { /// - /// Boosts a chat and returns the list of available chat boost slots for the current user after the boost + /// Data type for serialization /// - public class BoostChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "boostChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "boostChat"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of boost slots of the current user from which to apply boosts to the chat - /// - [JsonProperty("slot_ids", ItemConverterType = typeof(Converter))] - public int[] SlotIds { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Boosts a chat and returns the list of available chat boost slots for the current user after the boost + /// Identifiers of boost slots of the current user from which to apply boosts to the chat /// - public static Task BoostChatAsync( - this IClient client, long chatId = default, int[] slotIds = default) + [JsonProperty("slot_ids", ItemConverterType = typeof(Converter))] + public int[] SlotIds { get; set; } + } + + /// + /// Boosts a chat and returns the list of available chat boost slots for the current user after the boost + /// + public static Task BoostChatAsync( + this IClient client, long chatId = default, int[] slotIds = default) + { + return client.ExecuteAsync(new BoostChat { - return client.ExecuteAsync(new BoostChat - { - ChatId = chatId, SlotIds = slotIds - }); - } + ChatId = chatId, SlotIds = slotIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/BuyGiftUpgrade.cs b/TdLib.Api/Functions/BuyGiftUpgrade.cs index bad7be81..385d6763 100644 --- a/TdLib.Api/Functions/BuyGiftUpgrade.cs +++ b/TdLib.Api/Functions/BuyGiftUpgrade.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Pays for upgrade of a regular gift that is owned by another user or channel chat /// - public static partial class TdApi + public class BuyGiftUpgrade : Function { /// - /// Pays for upgrade of a regular gift that is owned by another user or channel chat + /// Data type for serialization /// - public class BuyGiftUpgrade : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "buyGiftUpgrade"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "buyGiftUpgrade"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user or the channel chat that owns the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Prepaid upgrade hash as received along with the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepaid_upgrade_hash")] - public string PrepaidUpgradeHash { get; set; } + /// + /// Identifier of the user or the channel chat that owns the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The Telegram Star amount the user agreed to pay for the upgrade; must be equal to gift.upgrade_star_count - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Prepaid upgrade hash as received along with the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prepaid_upgrade_hash")] + public string PrepaidUpgradeHash { get; set; } /// - /// Pays for upgrade of a regular gift that is owned by another user or channel chat + /// The Telegram Star amount the user agreed to pay for the upgrade; must be equal to gift.upgrade_star_count /// - public static Task BuyGiftUpgradeAsync( - this IClient client, MessageSender ownerId = default, string prepaidUpgradeHash = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Pays for upgrade of a regular gift that is owned by another user or channel chat + /// + public static Task BuyGiftUpgradeAsync( + this IClient client, MessageSender ownerId = default, string prepaidUpgradeHash = default, long starCount = default) + { + return client.ExecuteAsync(new BuyGiftUpgrade { - return client.ExecuteAsync(new BuyGiftUpgrade - { - OwnerId = ownerId, PrepaidUpgradeHash = prepaidUpgradeHash, StarCount = starCount - }); - } + OwnerId = ownerId, PrepaidUpgradeHash = prepaidUpgradeHash, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CanBotSendMessages.cs b/TdLib.Api/Functions/CanBotSendMessages.cs index 1126cc07..b5fae901 100644 --- a/TdLib.Api/Functions/CanBotSendMessages.cs +++ b/TdLib.Api/Functions/CanBotSendMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages /// - public static partial class TdApi + public class CanBotSendMessages : Function { /// - /// Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages + /// Data type for serialization /// - public class CanBotSendMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canBotSendMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "canBotSendMessages"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages + /// Identifier of the target bot /// - public static Task CanBotSendMessagesAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages + /// + public static Task CanBotSendMessagesAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new CanBotSendMessages { - return client.ExecuteAsync(new CanBotSendMessages - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CanPostStory.cs b/TdLib.Api/Functions/CanPostStory.cs index 0de6bc43..3e49b643 100644 --- a/TdLib.Api/Functions/CanPostStory.cs +++ b/TdLib.Api/Functions/CanPostStory.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats /// - public static partial class TdApi + public class CanPostStory : Function { /// - /// Checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats + /// Data type for serialization /// - public class CanPostStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStory"; - /// - /// Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats + /// Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user /// - public static Task CanPostStoryAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats + /// + public static Task CanPostStoryAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new CanPostStory { - return client.ExecuteAsync(new CanPostStory - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CanPurchaseFromStore.cs b/TdLib.Api/Functions/CanPurchaseFromStore.cs index 1e5e9a5d..82bff5c9 100644 --- a/TdLib.Api/Functions/CanPurchaseFromStore.cs +++ b/TdLib.Api/Functions/CanPurchaseFromStore.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether an in-store purchase is possible. Must be called before any in-store purchase. For official applications only /// - public static partial class TdApi + public class CanPurchaseFromStore : Function { /// - /// Checks whether an in-store purchase is possible. Must be called before any in-store purchase. For official applications only + /// Data type for serialization /// - public class CanPurchaseFromStore : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPurchaseFromStore"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPurchaseFromStore"; - /// - /// Transaction purpose - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("purpose")] - public StorePaymentPurpose Purpose { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether an in-store purchase is possible. Must be called before any in-store purchase. For official applications only + /// Transaction purpose /// - public static Task CanPurchaseFromStoreAsync( - this IClient client, StorePaymentPurpose purpose = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("purpose")] + public StorePaymentPurpose Purpose { get; set; } + } + + /// + /// Checks whether an in-store purchase is possible. Must be called before any in-store purchase. For official applications only + /// + public static Task CanPurchaseFromStoreAsync( + this IClient client, StorePaymentPurpose purpose = default) + { + return client.ExecuteAsync(new CanPurchaseFromStore { - return client.ExecuteAsync(new CanPurchaseFromStore - { - Purpose = purpose - }); - } + Purpose = purpose + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CanSendGift.cs b/TdLib.Api/Functions/CanSendGift.cs index a5f45ba3..9490d34d 100644 --- a/TdLib.Api/Functions/CanSendGift.cs +++ b/TdLib.Api/Functions/CanSendGift.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a gift with next_send_date in the future can be sent already /// - public static partial class TdApi + public class CanSendGift : Function { /// - /// Checks whether a gift with next_send_date in the future can be sent already + /// Data type for serialization /// - public class CanSendGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendGift"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendGift"; - /// - /// Identifier of the gift to send - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether a gift with next_send_date in the future can be sent already + /// Identifier of the gift to send /// - public static Task CanSendGiftAsync( - this IClient client, long giftId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } + } + + /// + /// Checks whether a gift with next_send_date in the future can be sent already + /// + public static Task CanSendGiftAsync( + this IClient client, long giftId = default) + { + return client.ExecuteAsync(new CanSendGift { - return client.ExecuteAsync(new CanSendGift - { - GiftId = giftId - }); - } + GiftId = giftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CanSendMessageToUser.cs b/TdLib.Api/Functions/CanSendMessageToUser.cs index 24fc495a..39c8ce7b 100644 --- a/TdLib.Api/Functions/CanSendMessageToUser.cs +++ b/TdLib.Api/Functions/CanSendMessageToUser.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether the current user can message another user or try to create a chat with them /// - public static partial class TdApi + public class CanSendMessageToUser : Function { /// - /// Checks whether the current user can message another user or try to create a chat with them + /// Data type for serialization /// - public class CanSendMessageToUser : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendMessageToUser"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendMessageToUser"; - /// - /// Identifier of the other user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get only locally available information without sending network requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_local")] - public bool OnlyLocal { get; set; } - } + /// + /// Identifier of the other user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Checks whether the current user can message another user or try to create a chat with them + /// Pass true to get only locally available information without sending network requests /// - public static Task CanSendMessageToUserAsync( - this IClient client, long userId = default, bool onlyLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_local")] + public bool OnlyLocal { get; set; } + } + + /// + /// Checks whether the current user can message another user or try to create a chat with them + /// + public static Task CanSendMessageToUserAsync( + this IClient client, long userId = default, bool onlyLocal = default) + { + return client.ExecuteAsync(new CanSendMessageToUser { - return client.ExecuteAsync(new CanSendMessageToUser - { - UserId = userId, OnlyLocal = onlyLocal - }); - } + UserId = userId, OnlyLocal = onlyLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CanTransferOwnership.cs b/TdLib.Api/Functions/CanTransferOwnership.cs index 7b5e9d14..971f1e71 100644 --- a/TdLib.Api/Functions/CanTransferOwnership.cs +++ b/TdLib.Api/Functions/CanTransferOwnership.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether the current session can be used to transfer a chat ownership to another user /// - public static partial class TdApi + public class CanTransferOwnership : Function { /// - /// Checks whether the current session can be used to transfer a chat ownership to another user + /// Data type for serialization /// - public class CanTransferOwnership : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canTransferOwnership"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canTransferOwnership"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Checks whether the current session can be used to transfer a chat ownership to another user - /// - public static Task CanTransferOwnershipAsync( - this IClient client) + /// + /// Checks whether the current session can be used to transfer a chat ownership to another user + /// + public static Task CanTransferOwnershipAsync( + this IClient client) + { + return client.ExecuteAsync(new CanTransferOwnership { - return client.ExecuteAsync(new CanTransferOwnership - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CancelDownloadFile.cs b/TdLib.Api/Functions/CancelDownloadFile.cs index ad23c108..0891b773 100644 --- a/TdLib.Api/Functions/CancelDownloadFile.cs +++ b/TdLib.Api/Functions/CancelDownloadFile.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Stops the downloading of a file. If a file has already been downloaded, does nothing /// - public static partial class TdApi + public class CancelDownloadFile : Function { /// - /// Stops the downloading of a file. If a file has already been downloaded, does nothing + /// Data type for serialization /// - public class CancelDownloadFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "cancelDownloadFile"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "cancelDownloadFile"; - /// - /// Identifier of a file to stop downloading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_if_pending")] - public bool OnlyIfPending { get; set; } - } + /// + /// Identifier of a file to stop downloading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } /// - /// Stops the downloading of a file. If a file has already been downloaded, does nothing + /// Pass true to stop downloading only if it hasn't been started, i.e. request hasn't been sent to server /// - public static Task CancelDownloadFileAsync( - this IClient client, int fileId = default, bool onlyIfPending = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_if_pending")] + public bool OnlyIfPending { get; set; } + } + + /// + /// Stops the downloading of a file. If a file has already been downloaded, does nothing + /// + public static Task CancelDownloadFileAsync( + this IClient client, int fileId = default, bool onlyIfPending = default) + { + return client.ExecuteAsync(new CancelDownloadFile { - return client.ExecuteAsync(new CancelDownloadFile - { - FileId = fileId, OnlyIfPending = onlyIfPending - }); - } + FileId = fileId, OnlyIfPending = onlyIfPending + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CancelPasswordReset.cs b/TdLib.Api/Functions/CancelPasswordReset.cs index 5a579f62..99399b90 100644 --- a/TdLib.Api/Functions/CancelPasswordReset.cs +++ b/TdLib.Api/Functions/CancelPasswordReset.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0 /// - public static partial class TdApi + public class CancelPasswordReset : Function { /// - /// Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0 + /// Data type for serialization /// - public class CancelPasswordReset : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "cancelPasswordReset"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "cancelPasswordReset"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0 - /// - public static Task CancelPasswordResetAsync( - this IClient client) + /// + /// Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0 + /// + public static Task CancelPasswordResetAsync( + this IClient client) + { + return client.ExecuteAsync(new CancelPasswordReset { - return client.ExecuteAsync(new CancelPasswordReset - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CancelPreliminaryUploadFile.cs b/TdLib.Api/Functions/CancelPreliminaryUploadFile.cs index cf9874a7..3708893a 100644 --- a/TdLib.Api/Functions/CancelPreliminaryUploadFile.cs +++ b/TdLib.Api/Functions/CancelPreliminaryUploadFile.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile /// - public static partial class TdApi + public class CancelPreliminaryUploadFile : Function { /// - /// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile + /// Data type for serialization /// - public class CancelPreliminaryUploadFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "cancelPreliminaryUploadFile"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "cancelPreliminaryUploadFile"; - /// - /// Identifier of the file to stop uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile + /// Identifier of the file to stop uploading /// - public static Task CancelPreliminaryUploadFileAsync( - this IClient client, int fileId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } + } + + /// + /// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile + /// + public static Task CancelPreliminaryUploadFileAsync( + this IClient client, int fileId = default) + { + return client.ExecuteAsync(new CancelPreliminaryUploadFile { - return client.ExecuteAsync(new CancelPreliminaryUploadFile - { - FileId = fileId - }); - } + FileId = fileId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CancelRecoveryEmailAddressVerification.cs b/TdLib.Api/Functions/CancelRecoveryEmailAddressVerification.cs index 66027f08..dfbf0a83 100644 --- a/TdLib.Api/Functions/CancelRecoveryEmailAddressVerification.cs +++ b/TdLib.Api/Functions/CancelRecoveryEmailAddressVerification.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Cancels verification of the 2-step verification recovery email address /// - public static partial class TdApi + public class CancelRecoveryEmailAddressVerification : Function { /// - /// Cancels verification of the 2-step verification recovery email address + /// Data type for serialization /// - public class CancelRecoveryEmailAddressVerification : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "cancelRecoveryEmailAddressVerification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "cancelRecoveryEmailAddressVerification"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Cancels verification of the 2-step verification recovery email address - /// - public static Task CancelRecoveryEmailAddressVerificationAsync( - this IClient client) + /// + /// Cancels verification of the 2-step verification recovery email address + /// + public static Task CancelRecoveryEmailAddressVerificationAsync( + this IClient client) + { + return client.ExecuteAsync(new CancelRecoveryEmailAddressVerification { - return client.ExecuteAsync(new CancelRecoveryEmailAddressVerification - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ChangeImportedContacts.cs b/TdLib.Api/Functions/ChangeImportedContacts.cs index da58f097..325a9ae4 100644 --- a/TdLib.Api/Functions/ChangeImportedContacts.cs +++ b/TdLib.Api/Functions/ChangeImportedContacts.cs @@ -3,50 +3,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. + /// Query result depends on the result of the previous query, so only one query is possible at the same time /// - public static partial class TdApi + public class ChangeImportedContacts : Function { /// - /// Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. - /// Query result depends on the result of the previous query, so only one query is possible at the same time + /// Data type for serialization /// - public class ChangeImportedContacts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "changeImportedContacts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "changeImportedContacts"; - /// - /// The new list of contacts to import - /// - [JsonProperty("contacts", ItemConverterType = typeof(Converter))] - public ImportedContact[] Contacts { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. - /// Query result depends on the result of the previous query, so only one query is possible at the same time + /// The new list of contacts to import /// - public static Task ChangeImportedContactsAsync( - this IClient client, ImportedContact[] contacts = default) + [JsonProperty("contacts", ItemConverterType = typeof(Converter))] + public ImportedContact[] Contacts { get; set; } + } + + /// + /// Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. + /// Query result depends on the result of the previous query, so only one query is possible at the same time + /// + public static Task ChangeImportedContactsAsync( + this IClient client, ImportedContact[] contacts = default) + { + return client.ExecuteAsync(new ChangeImportedContacts { - return client.ExecuteAsync(new ChangeImportedContacts - { - Contacts = contacts - }); - } + Contacts = contacts + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ChangeStickerSet.cs b/TdLib.Api/Functions/ChangeStickerSet.cs index e7876aeb..62ac2052 100644 --- a/TdLib.Api/Functions/ChangeStickerSet.cs +++ b/TdLib.Api/Functions/ChangeStickerSet.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Installs/uninstalls or activates/archives a sticker set /// - public static partial class TdApi + public class ChangeStickerSet : Function { /// - /// Installs/uninstalls or activates/archives a sticker set + /// Data type for serialization /// - public class ChangeStickerSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "changeStickerSet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "changeStickerSet"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the sticker set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("set_id")] - public long SetId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of is_installed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_installed")] - public bool IsInstalled { get; set; } + /// + /// Identifier of the sticker set + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("set_id")] + public long SetId { get; set; } - /// - /// The new value of is_archived. A sticker set can't be installed and archived simultaneously - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_archived")] - public bool IsArchived { get; set; } - } + /// + /// The new value of is_installed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_installed")] + public bool IsInstalled { get; set; } /// - /// Installs/uninstalls or activates/archives a sticker set + /// The new value of is_archived. A sticker set can't be installed and archived simultaneously /// - public static Task ChangeStickerSetAsync( - this IClient client, long setId = default, bool isInstalled = default, bool isArchived = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_archived")] + public bool IsArchived { get; set; } + } + + /// + /// Installs/uninstalls or activates/archives a sticker set + /// + public static Task ChangeStickerSetAsync( + this IClient client, long setId = default, bool isInstalled = default, bool isArchived = default) + { + return client.ExecuteAsync(new ChangeStickerSet { - return client.ExecuteAsync(new ChangeStickerSet - { - SetId = setId, IsInstalled = isInstalled, IsArchived = isArchived - }); - } + SetId = setId, IsInstalled = isInstalled, IsArchived = isArchived + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ChangeWebBrowserSettings.cs b/TdLib.Api/Functions/ChangeWebBrowserSettings.cs index f38b1e67..1ae79268 100644 --- a/TdLib.Api/Functions/ChangeWebBrowserSettings.cs +++ b/TdLib.Api/Functions/ChangeWebBrowserSettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes web browser settings /// - public static partial class TdApi + public class ChangeWebBrowserSettings : Function { /// - /// Changes web browser settings + /// Data type for serialization /// - public class ChangeWebBrowserSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "changeWebBrowserSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "changeWebBrowserSettings"; - /// - /// Pass true if links must be opened in an external browser by default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("open_external_browser")] - public bool OpenExternalBrowser { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if a close button must be shown in the in-app browser; for Android app only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("display_close_button")] - public bool DisplayCloseButton { get; set; } - } + /// + /// Pass true if links must be opened in an external browser by default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("open_external_browser")] + public bool OpenExternalBrowser { get; set; } /// - /// Changes web browser settings + /// Pass true if a close button must be shown in the in-app browser; for Android app only /// - public static Task ChangeWebBrowserSettingsAsync( - this IClient client, bool openExternalBrowser = default, bool displayCloseButton = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("display_close_button")] + public bool DisplayCloseButton { get; set; } + } + + /// + /// Changes web browser settings + /// + public static Task ChangeWebBrowserSettingsAsync( + this IClient client, bool openExternalBrowser = default, bool displayCloseButton = default) + { + return client.ExecuteAsync(new ChangeWebBrowserSettings { - return client.ExecuteAsync(new ChangeWebBrowserSettings - { - OpenExternalBrowser = openExternalBrowser, DisplayCloseButton = displayCloseButton - }); - } + OpenExternalBrowser = openExternalBrowser, DisplayCloseButton = displayCloseButton + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationBotToken.cs b/TdLib.Api/Functions/CheckAuthenticationBotToken.cs index b8b766bd..26b389c5 100644 --- a/TdLib.Api/Functions/CheckAuthenticationBotToken.cs +++ b/TdLib.Api/Functions/CheckAuthenticationBotToken.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in /// - public static partial class TdApi + public class CheckAuthenticationBotToken : Function { /// - /// Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in + /// Data type for serialization /// - public class CheckAuthenticationBotToken : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationBotToken"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationBotToken"; - /// - /// The bot token - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in + /// The bot token /// - public static Task CheckAuthenticationBotTokenAsync( - this IClient client, string token = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } + } + + /// + /// Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in + /// + public static Task CheckAuthenticationBotTokenAsync( + this IClient client, string token = default) + { + return client.ExecuteAsync(new CheckAuthenticationBotToken { - return client.ExecuteAsync(new CheckAuthenticationBotToken - { - Token = token - }); - } + Token = token + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationCode.cs b/TdLib.Api/Functions/CheckAuthenticationCode.cs index 5d26d7e5..7f0f7735 100644 --- a/TdLib.Api/Functions/CheckAuthenticationCode.cs +++ b/TdLib.Api/Functions/CheckAuthenticationCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode /// - public static partial class TdApi + public class CheckAuthenticationCode : Function { /// - /// Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode + /// Data type for serialization /// - public class CheckAuthenticationCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationCode"; - /// - /// Authentication code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode + /// Authentication code to check /// - public static Task CheckAuthenticationCodeAsync( - this IClient client, string code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } + } + + /// + /// Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode + /// + public static Task CheckAuthenticationCodeAsync( + this IClient client, string code = default) + { + return client.ExecuteAsync(new CheckAuthenticationCode { - return client.ExecuteAsync(new CheckAuthenticationCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationEmailCode.cs b/TdLib.Api/Functions/CheckAuthenticationEmailCode.cs index 93bc5ca0..b2ccf25e 100644 --- a/TdLib.Api/Functions/CheckAuthenticationEmailCode.cs +++ b/TdLib.Api/Functions/CheckAuthenticationEmailCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the authentication of an email address. Works only when the current authorization state is authorizationStateWaitEmailCode /// - public static partial class TdApi + public class CheckAuthenticationEmailCode : Function { /// - /// Checks the authentication of an email address. Works only when the current authorization state is authorizationStateWaitEmailCode + /// Data type for serialization /// - public class CheckAuthenticationEmailCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationEmailCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationEmailCode"; - /// - /// Email address authentication to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public EmailAddressAuthentication Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the authentication of an email address. Works only when the current authorization state is authorizationStateWaitEmailCode + /// Email address authentication to check /// - public static Task CheckAuthenticationEmailCodeAsync( - this IClient client, EmailAddressAuthentication code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public EmailAddressAuthentication Code { get; set; } + } + + /// + /// Checks the authentication of an email address. Works only when the current authorization state is authorizationStateWaitEmailCode + /// + public static Task CheckAuthenticationEmailCodeAsync( + this IClient client, EmailAddressAuthentication code = default) + { + return client.ExecuteAsync(new CheckAuthenticationEmailCode { - return client.ExecuteAsync(new CheckAuthenticationEmailCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationPasskey.cs b/TdLib.Api/Functions/CheckAuthenticationPasskey.cs index e2572071..98b55448 100644 --- a/TdLib.Api/Functions/CheckAuthenticationPasskey.cs +++ b/TdLib.Api/Functions/CheckAuthenticationPasskey.cs @@ -3,81 +3,83 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is + /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is + /// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword /// - public static partial class TdApi + public class CheckAuthenticationPasskey : Function { /// - /// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is - /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is - /// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// Data type for serialization /// - public class CheckAuthenticationPasskey : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationPasskey"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationPasskey"; - /// - /// Base64url-encoded identifier of the credential - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credential_id")] - public string CredentialId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// JSON-encoded client data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("client_data")] - public string ClientData { get; set; } + /// + /// Base64url-encoded identifier of the credential + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credential_id")] + public string CredentialId { get; set; } - /// - /// Authenticator data of the application that created the credential - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("authenticator_data")] - public byte[] AuthenticatorData { get; set; } + /// + /// JSON-encoded client data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("client_data")] + public string ClientData { get; set; } - /// - /// Cryptographic signature of the credential - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("signature")] - public byte[] Signature { get; set; } + /// + /// Authenticator data of the application that created the credential + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("authenticator_data")] + public byte[] AuthenticatorData { get; set; } - /// - /// User handle of the passkey - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_handle")] - public byte[] UserHandle { get; set; } - } + /// + /// Cryptographic signature of the credential + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("signature")] + public byte[] Signature { get; set; } /// - /// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is - /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is - /// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// User handle of the passkey /// - public static Task CheckAuthenticationPasskeyAsync( - this IClient client, string credentialId = default, string clientData = default, byte[] authenticatorData = default, byte[] signature = default, byte[] userHandle = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_handle")] + public byte[] UserHandle { get; set; } + } + + /// + /// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is + /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is + /// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// + public static Task CheckAuthenticationPasskeyAsync( + this IClient client, string credentialId = default, string clientData = default, byte[] authenticatorData = default, byte[] signature = default, byte[] userHandle = default) + { + return client.ExecuteAsync(new CheckAuthenticationPasskey { - return client.ExecuteAsync(new CheckAuthenticationPasskey - { - CredentialId = credentialId, ClientData = clientData, AuthenticatorData = authenticatorData, Signature = signature, UserHandle = userHandle - }); - } + CredentialId = credentialId, ClientData = clientData, AuthenticatorData = authenticatorData, Signature = signature, UserHandle = userHandle + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationPassword.cs b/TdLib.Api/Functions/CheckAuthenticationPassword.cs index 53e8e2d7..b11c9319 100644 --- a/TdLib.Api/Functions/CheckAuthenticationPassword.cs +++ b/TdLib.Api/Functions/CheckAuthenticationPassword.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword /// - public static partial class TdApi + public class CheckAuthenticationPassword : Function { /// - /// Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword + /// Data type for serialization /// - public class CheckAuthenticationPassword : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationPassword"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationPassword"; - /// - /// The 2-step verification password to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword + /// The 2-step verification password to check /// - public static Task CheckAuthenticationPasswordAsync( - this IClient client, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword + /// + public static Task CheckAuthenticationPasswordAsync( + this IClient client, string password = default) + { + return client.ExecuteAsync(new CheckAuthenticationPassword { - return client.ExecuteAsync(new CheckAuthenticationPassword - { - Password = password - }); - } + Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationPasswordRecoveryCode.cs b/TdLib.Api/Functions/CheckAuthenticationPasswordRecoveryCode.cs index de47d56d..923d35fc 100644 --- a/TdLib.Api/Functions/CheckAuthenticationPasswordRecoveryCode.cs +++ b/TdLib.Api/Functions/CheckAuthenticationPasswordRecoveryCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword /// - public static partial class TdApi + public class CheckAuthenticationPasswordRecoveryCode : Function { /// - /// Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword + /// Data type for serialization /// - public class CheckAuthenticationPasswordRecoveryCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationPasswordRecoveryCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationPasswordRecoveryCode"; - /// - /// Recovery code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recovery_code")] - public string RecoveryCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword + /// Recovery code to check /// - public static Task CheckAuthenticationPasswordRecoveryCodeAsync( - this IClient client, string recoveryCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("recovery_code")] + public string RecoveryCode { get; set; } + } + + /// + /// Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword + /// + public static Task CheckAuthenticationPasswordRecoveryCodeAsync( + this IClient client, string recoveryCode = default) + { + return client.ExecuteAsync(new CheckAuthenticationPasswordRecoveryCode { - return client.ExecuteAsync(new CheckAuthenticationPasswordRecoveryCode - { - RecoveryCode = recoveryCode - }); - } + RecoveryCode = recoveryCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationPremiumPurchase.cs b/TdLib.Api/Functions/CheckAuthenticationPremiumPurchase.cs index 6722f492..52414bb8 100644 --- a/TdLib.Api/Functions/CheckAuthenticationPremiumPurchase.cs +++ b/TdLib.Api/Functions/CheckAuthenticationPremiumPurchase.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase /// - public static partial class TdApi + public class CheckAuthenticationPremiumPurchase : Function { /// - /// Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase + /// Data type for serialization /// - public class CheckAuthenticationPremiumPurchase : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationPremiumPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationPremiumPurchase"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The number of days for which the Telegram Premium subscription will be granted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_day_count")] - public int PremiumDayCount { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// The number of days for which the Telegram Premium subscription will be granted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_day_count")] + public int PremiumDayCount { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } - } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } /// - /// Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase + /// Paid amount, in the smallest units of the currency /// - public static Task CheckAuthenticationPremiumPurchaseAsync( - this IClient client, int premiumDayCount = default, string currency = default, long amount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } + } + + /// + /// Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase + /// + public static Task CheckAuthenticationPremiumPurchaseAsync( + this IClient client, int premiumDayCount = default, string currency = default, long amount = default) + { + return client.ExecuteAsync(new CheckAuthenticationPremiumPurchase { - return client.ExecuteAsync(new CheckAuthenticationPremiumPurchase - { - PremiumDayCount = premiumDayCount, Currency = currency, Amount = amount - }); - } + PremiumDayCount = premiumDayCount, Currency = currency, Amount = amount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckAuthenticationWebToken.cs b/TdLib.Api/Functions/CheckAuthenticationWebToken.cs index bb4bea30..a32f8689 100644 --- a/TdLib.Api/Functions/CheckAuthenticationWebToken.cs +++ b/TdLib.Api/Functions/CheckAuthenticationWebToken.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is + /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation /// - public static partial class TdApi + public class CheckAuthenticationWebToken : Function { /// - /// Checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is - /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation + /// Data type for serialization /// - public class CheckAuthenticationWebToken : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkAuthenticationWebToken"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkAuthenticationWebToken"; - /// - /// The token to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the datacenter of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dc_id")] - public int DcId { get; set; } - } + /// + /// The token to check + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } /// - /// Checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is - /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation + /// Identifier of the datacenter of the user /// - public static Task CheckAuthenticationWebTokenAsync( - this IClient client, string token = default, int dcId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("dc_id")] + public int DcId { get; set; } + } + + /// + /// Checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is + /// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation + /// + public static Task CheckAuthenticationWebTokenAsync( + this IClient client, string token = default, int dcId = default) + { + return client.ExecuteAsync(new CheckAuthenticationWebToken { - return client.ExecuteAsync(new CheckAuthenticationWebToken - { - Token = token, DcId = dcId - }); - } + Token = token, DcId = dcId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckBotUsername.cs b/TdLib.Api/Functions/CheckBotUsername.cs index 0855c388..5084c0b9 100644 --- a/TdLib.Api/Functions/CheckBotUsername.cs +++ b/TdLib.Api/Functions/CheckBotUsername.cs @@ -3,49 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a username can be set for a new bot or assigned as a secondary username to an existing bot. Use checkChatUsername to check username for other chat types /// - public static partial class TdApi + public class CheckBotUsername : Function { /// - /// Checks whether a username can be set for a new bot. Use checkChatUsername to check username for other chat types + /// Data type for serialization /// - public class CheckBotUsername : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkBotUsername"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkBotUsername"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username to be checked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// Username to be checked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } /// - /// Checks whether a username can be set for a new bot. Use checkChatUsername to check username for other chat types + /// Pass true to check whether the username is suitable as a secondary username for an existing bot; pass false to check whether the username is suitable for createBot /// - public static Task CheckBotUsernameAsync( - this IClient client, string username = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_secondary")] + public bool IsSecondary { get; set; } + } + + /// + /// Checks whether a username can be set for a new bot or assigned as a secondary username to an existing bot. Use checkChatUsername to check username for other chat types + /// + public static Task CheckBotUsernameAsync( + this IClient client, string username = default, bool isSecondary = default) + { + return client.ExecuteAsync(new CheckBotUsername { - return client.ExecuteAsync(new CheckBotUsername - { - Username = username - }); - } + Username = username, IsSecondary = isSecondary + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckChatFolderInviteLink.cs b/TdLib.Api/Functions/CheckChatFolderInviteLink.cs index 83091b77..b38851dc 100644 --- a/TdLib.Api/Functions/CheckChatFolderInviteLink.cs +++ b/TdLib.Api/Functions/CheckChatFolderInviteLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder /// - public static partial class TdApi + public class CheckChatFolderInviteLink : Function { /// - /// Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder + /// Data type for serialization /// - public class CheckChatFolderInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatFolderInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatFolderInviteLink"; - /// - /// Invite link to be checked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder + /// Invite link to be checked /// - public static Task CheckChatFolderInviteLinkAsync( - this IClient client, string inviteLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + } + + /// + /// Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder + /// + public static Task CheckChatFolderInviteLinkAsync( + this IClient client, string inviteLink = default) + { + return client.ExecuteAsync(new CheckChatFolderInviteLink { - return client.ExecuteAsync(new CheckChatFolderInviteLink - { - InviteLink = inviteLink - }); - } + InviteLink = inviteLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckChatInviteLink.cs b/TdLib.Api/Functions/CheckChatInviteLink.cs index c91b2d32..ab7722bf 100644 --- a/TdLib.Api/Functions/CheckChatInviteLink.cs +++ b/TdLib.Api/Functions/CheckChatInviteLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the validity of an invite link for a chat and returns information about the corresponding chat /// - public static partial class TdApi + public class CheckChatInviteLink : Function { /// - /// Checks the validity of an invite link for a chat and returns information about the corresponding chat + /// Data type for serialization /// - public class CheckChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatInviteLink"; - /// - /// Invite link to be checked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the validity of an invite link for a chat and returns information about the corresponding chat + /// Invite link to be checked /// - public static Task CheckChatInviteLinkAsync( - this IClient client, string inviteLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + } + + /// + /// Checks the validity of an invite link for a chat and returns information about the corresponding chat + /// + public static Task CheckChatInviteLinkAsync( + this IClient client, string inviteLink = default) + { + return client.ExecuteAsync(new CheckChatInviteLink { - return client.ExecuteAsync(new CheckChatInviteLink - { - InviteLink = inviteLink - }); - } + InviteLink = inviteLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckChatUsername.cs b/TdLib.Api/Functions/CheckChatUsername.cs index 5c2b53e0..01789e59 100644 --- a/TdLib.Api/Functions/CheckChatUsername.cs +++ b/TdLib.Api/Functions/CheckChatUsername.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a username can be set for a chat /// - public static partial class TdApi + public class CheckChatUsername : Function { /// - /// Checks whether a username can be set for a chat + /// Data type for serialization /// - public class CheckChatUsername : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatUsername"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatUsername"; - /// - /// Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username to be checked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Checks whether a username can be set for a chat + /// Username to be checked /// - public static Task CheckChatUsernameAsync( - this IClient client, long chatId = default, string username = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } + } + + /// + /// Checks whether a username can be set for a chat + /// + public static Task CheckChatUsernameAsync( + this IClient client, long chatId = default, string username = default) + { + return client.ExecuteAsync(new CheckChatUsername { - return client.ExecuteAsync(new CheckChatUsername - { - ChatId = chatId, Username = username - }); - } + ChatId = chatId, Username = username + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckCreatedPublicChatsLimit.cs b/TdLib.Api/Functions/CheckCreatedPublicChatsLimit.cs index ee6a5fdc..e3551d42 100644 --- a/TdLib.Api/Functions/CheckCreatedPublicChatsLimit.cs +++ b/TdLib.Api/Functions/CheckCreatedPublicChatsLimit.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium /// - public static partial class TdApi + public class CheckCreatedPublicChatsLimit : Function { /// - /// Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium + /// Data type for serialization /// - public class CheckCreatedPublicChatsLimit : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkCreatedPublicChatsLimit"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkCreatedPublicChatsLimit"; - /// - /// Type of the public chats, for which to check the limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PublicChatType Type { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium + /// Type of the public chats, for which to check the limit /// - public static Task CheckCreatedPublicChatsLimitAsync( - this IClient client, PublicChatType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PublicChatType Type { get; set; } + } + + /// + /// Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium + /// + public static Task CheckCreatedPublicChatsLimitAsync( + this IClient client, PublicChatType type = default) + { + return client.ExecuteAsync(new CheckCreatedPublicChatsLimit { - return client.ExecuteAsync(new CheckCreatedPublicChatsLimit - { - Type = type - }); - } + Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckEmailAddressVerificationCode.cs b/TdLib.Api/Functions/CheckEmailAddressVerificationCode.cs index 25b0ebd8..be14b555 100644 --- a/TdLib.Api/Functions/CheckEmailAddressVerificationCode.cs +++ b/TdLib.Api/Functions/CheckEmailAddressVerificationCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the email address verification code for Telegram Passport /// - public static partial class TdApi + public class CheckEmailAddressVerificationCode : Function { /// - /// Checks the email address verification code for Telegram Passport + /// Data type for serialization /// - public class CheckEmailAddressVerificationCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkEmailAddressVerificationCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkEmailAddressVerificationCode"; - /// - /// Verification code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the email address verification code for Telegram Passport + /// Verification code to check /// - public static Task CheckEmailAddressVerificationCodeAsync( - this IClient client, string code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } + } + + /// + /// Checks the email address verification code for Telegram Passport + /// + public static Task CheckEmailAddressVerificationCodeAsync( + this IClient client, string code = default) + { + return client.ExecuteAsync(new CheckEmailAddressVerificationCode { - return client.ExecuteAsync(new CheckEmailAddressVerificationCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckLoginEmailAddressCode.cs b/TdLib.Api/Functions/CheckLoginEmailAddressCode.cs index 446c53d7..6a019829 100644 --- a/TdLib.Api/Functions/CheckLoginEmailAddressCode.cs +++ b/TdLib.Api/Functions/CheckLoginEmailAddressCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the login email address authentication /// - public static partial class TdApi + public class CheckLoginEmailAddressCode : Function { /// - /// Checks the login email address authentication + /// Data type for serialization /// - public class CheckLoginEmailAddressCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkLoginEmailAddressCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkLoginEmailAddressCode"; - /// - /// Email address authentication to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public EmailAddressAuthentication Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the login email address authentication + /// Email address authentication to check /// - public static Task CheckLoginEmailAddressCodeAsync( - this IClient client, EmailAddressAuthentication code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public EmailAddressAuthentication Code { get; set; } + } + + /// + /// Checks the login email address authentication + /// + public static Task CheckLoginEmailAddressCodeAsync( + this IClient client, EmailAddressAuthentication code = default) + { + return client.ExecuteAsync(new CheckLoginEmailAddressCode { - return client.ExecuteAsync(new CheckLoginEmailAddressCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckOauthRequestMatchCode.cs b/TdLib.Api/Functions/CheckOauthRequestMatchCode.cs index 7be1cb19..5fc4e18e 100644 --- a/TdLib.Api/Functions/CheckOauthRequestMatchCode.cs +++ b/TdLib.Api/Functions/CheckOauthRequestMatchCode.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks a match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise, + /// authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest /// - public static partial class TdApi + public class CheckOauthRequestMatchCode : Function { /// - /// Checks a match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise, - /// authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest + /// Data type for serialization /// - public class CheckOauthRequestMatchCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkOauthRequestMatchCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkOauthRequestMatchCode"; - /// - /// URL of the OAuth deep link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The matching code chosen by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("match_code")] - public string MatchCode { get; set; } - } + /// + /// URL of the OAuth deep link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } /// - /// Checks a match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise, - /// authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest + /// The matching code chosen by the user /// - public static Task CheckOauthRequestMatchCodeAsync( - this IClient client, string url = default, string matchCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("match_code")] + public string MatchCode { get; set; } + } + + /// + /// Checks a match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise, + /// authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest + /// + public static Task CheckOauthRequestMatchCodeAsync( + this IClient client, string url = default, string matchCode = default) + { + return client.ExecuteAsync(new CheckOauthRequestMatchCode { - return client.ExecuteAsync(new CheckOauthRequestMatchCode - { - Url = url, MatchCode = matchCode - }); - } + Url = url, MatchCode = matchCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckPasswordRecoveryCode.cs b/TdLib.Api/Functions/CheckPasswordRecoveryCode.cs index 3249e707..4d21131f 100644 --- a/TdLib.Api/Functions/CheckPasswordRecoveryCode.cs +++ b/TdLib.Api/Functions/CheckPasswordRecoveryCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a 2-step verification password recovery code sent to an email address is valid /// - public static partial class TdApi + public class CheckPasswordRecoveryCode : Function { /// - /// Checks whether a 2-step verification password recovery code sent to an email address is valid + /// Data type for serialization /// - public class CheckPasswordRecoveryCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkPasswordRecoveryCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkPasswordRecoveryCode"; - /// - /// Recovery code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recovery_code")] - public string RecoveryCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether a 2-step verification password recovery code sent to an email address is valid + /// Recovery code to check /// - public static Task CheckPasswordRecoveryCodeAsync( - this IClient client, string recoveryCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("recovery_code")] + public string RecoveryCode { get; set; } + } + + /// + /// Checks whether a 2-step verification password recovery code sent to an email address is valid + /// + public static Task CheckPasswordRecoveryCodeAsync( + this IClient client, string recoveryCode = default) + { + return client.ExecuteAsync(new CheckPasswordRecoveryCode { - return client.ExecuteAsync(new CheckPasswordRecoveryCode - { - RecoveryCode = recoveryCode - }); - } + RecoveryCode = recoveryCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckPhoneNumberCode.cs b/TdLib.Api/Functions/CheckPhoneNumberCode.cs index 2b2c956f..5ed1eb0c 100644 --- a/TdLib.Api/Functions/CheckPhoneNumberCode.cs +++ b/TdLib.Api/Functions/CheckPhoneNumberCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the authentication code and completes the request for which the code was sent if appropriate /// - public static partial class TdApi + public class CheckPhoneNumberCode : Function { /// - /// Checks the authentication code and completes the request for which the code was sent if appropriate + /// Data type for serialization /// - public class CheckPhoneNumberCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkPhoneNumberCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkPhoneNumberCode"; - /// - /// Authentication code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the authentication code and completes the request for which the code was sent if appropriate + /// Authentication code to check /// - public static Task CheckPhoneNumberCodeAsync( - this IClient client, string code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } + } + + /// + /// Checks the authentication code and completes the request for which the code was sent if appropriate + /// + public static Task CheckPhoneNumberCodeAsync( + this IClient client, string code = default) + { + return client.ExecuteAsync(new CheckPhoneNumberCode { - return client.ExecuteAsync(new CheckPhoneNumberCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckPremiumGiftCode.cs b/TdLib.Api/Functions/CheckPremiumGiftCode.cs index b5e89b49..d93d6fd0 100644 --- a/TdLib.Api/Functions/CheckPremiumGiftCode.cs +++ b/TdLib.Api/Functions/CheckPremiumGiftCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a Telegram Premium gift code /// - public static partial class TdApi + public class CheckPremiumGiftCode : Function { /// - /// Returns information about a Telegram Premium gift code + /// Data type for serialization /// - public class CheckPremiumGiftCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkPremiumGiftCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkPremiumGiftCode"; - /// - /// The code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a Telegram Premium gift code + /// The code to check /// - public static Task CheckPremiumGiftCodeAsync( - this IClient client, string code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } + } + + /// + /// Returns information about a Telegram Premium gift code + /// + public static Task CheckPremiumGiftCodeAsync( + this IClient client, string code = default) + { + return client.ExecuteAsync(new CheckPremiumGiftCode { - return client.ExecuteAsync(new CheckPremiumGiftCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckQuickReplyShortcutName.cs b/TdLib.Api/Functions/CheckQuickReplyShortcutName.cs index 9be7340a..4f00e4e8 100644 --- a/TdLib.Api/Functions/CheckQuickReplyShortcutName.cs +++ b/TdLib.Api/Functions/CheckQuickReplyShortcutName.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks validness of a name for a quick reply shortcut. Can be called synchronously /// - public static partial class TdApi + public class CheckQuickReplyShortcutName : Function { /// - /// Checks validness of a name for a quick reply shortcut. Can be called synchronously + /// Data type for serialization /// - public class CheckQuickReplyShortcutName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkQuickReplyShortcutName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkQuickReplyShortcutName"; - /// - /// The name of the shortcut; 1-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks validness of a name for a quick reply shortcut. Can be called synchronously + /// The name of the shortcut; 1-32 characters /// - public static Task CheckQuickReplyShortcutNameAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Checks validness of a name for a quick reply shortcut. Can be called synchronously + /// + public static Task CheckQuickReplyShortcutNameAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new CheckQuickReplyShortcutName { - return client.ExecuteAsync(new CheckQuickReplyShortcutName - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckRecoveryEmailAddressCode.cs b/TdLib.Api/Functions/CheckRecoveryEmailAddressCode.cs index 8a48807a..d4e2da12 100644 --- a/TdLib.Api/Functions/CheckRecoveryEmailAddressCode.cs +++ b/TdLib.Api/Functions/CheckRecoveryEmailAddressCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks the 2-step verification recovery email address verification code /// - public static partial class TdApi + public class CheckRecoveryEmailAddressCode : Function { /// - /// Checks the 2-step verification recovery email address verification code + /// Data type for serialization /// - public class CheckRecoveryEmailAddressCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkRecoveryEmailAddressCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkRecoveryEmailAddressCode"; - /// - /// Verification code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks the 2-step verification recovery email address verification code + /// Verification code to check /// - public static Task CheckRecoveryEmailAddressCodeAsync( - this IClient client, string code = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } + } + + /// + /// Checks the 2-step verification recovery email address verification code + /// + public static Task CheckRecoveryEmailAddressCodeAsync( + this IClient client, string code = default) + { + return client.ExecuteAsync(new CheckRecoveryEmailAddressCode { - return client.ExecuteAsync(new CheckRecoveryEmailAddressCode - { - Code = code - }); - } + Code = code + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckStickerSetName.cs b/TdLib.Api/Functions/CheckStickerSetName.cs index ba5029ed..2dbb259a 100644 --- a/TdLib.Api/Functions/CheckStickerSetName.cs +++ b/TdLib.Api/Functions/CheckStickerSetName.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a name can be used for a new sticker set /// - public static partial class TdApi + public class CheckStickerSetName : Function { /// - /// Checks whether a name can be used for a new sticker set + /// Data type for serialization /// - public class CheckStickerSetName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkStickerSetName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkStickerSetName"; - /// - /// Name to be checked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether a name can be used for a new sticker set + /// Name to be checked /// - public static Task CheckStickerSetNameAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Checks whether a name can be used for a new sticker set + /// + public static Task CheckStickerSetNameAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new CheckStickerSetName { - return client.ExecuteAsync(new CheckStickerSetName - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckWalletBotBalance.cs b/TdLib.Api/Functions/CheckWalletBotBalance.cs new file mode 100644 index 00000000..e1c56372 --- /dev/null +++ b/TdLib.Api/Functions/CheckWalletBotBalance.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns information about balance of the current user in the bot https://t.me/walt; can be used only if getOption("can_use_ton_wallet") + /// + public class CheckWalletBotBalance : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkWalletBotBalance"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + + /// + /// Returns information about balance of the current user in the bot https://t.me/walt; can be used only if getOption("can_use_ton_wallet") + /// + public static Task CheckWalletBotBalanceAsync( + this IClient client) + { + return client.ExecuteAsync(new CheckWalletBotBalance + { + + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CheckWebAppFileDownload.cs b/TdLib.Api/Functions/CheckWebAppFileDownload.cs index 7ac2c36b..652e7640 100644 --- a/TdLib.Api/Functions/CheckWebAppFileDownload.cs +++ b/TdLib.Api/Functions/CheckWebAppFileDownload.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a file can be downloaded and saved locally by Web App request /// - public static partial class TdApi + public class CheckWebAppFileDownload : Function { /// - /// Checks whether a file can be downloaded and saved locally by Web App request + /// Data type for serialization /// - public class CheckWebAppFileDownload : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkWebAppFileDownload"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkWebAppFileDownload"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the bot, providing the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_name")] - public string FileName { get; set; } + /// + /// Identifier of the bot, providing the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// URL of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Name of the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_name")] + public string FileName { get; set; } /// - /// Checks whether a file can be downloaded and saved locally by Web App request + /// URL of the file /// - public static Task CheckWebAppFileDownloadAsync( - this IClient client, long botUserId = default, string fileName = default, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Checks whether a file can be downloaded and saved locally by Web App request + /// + public static Task CheckWebAppFileDownloadAsync( + this IClient client, long botUserId = default, string fileName = default, string url = default) + { + return client.ExecuteAsync(new CheckWebAppFileDownload { - return client.ExecuteAsync(new CheckWebAppFileDownload - { - BotUserId = botUserId, FileName = fileName, Url = url - }); - } + BotUserId = botUserId, FileName = fileName, Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClaimTonConnectRequest.cs b/TdLib.Api/Functions/ClaimTonConnectRequest.cs new file mode 100644 index 00000000..07604207 --- /dev/null +++ b/TdLib.Api/Functions/ClaimTonConnectRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Claims a request received through TON Connect for processing on this device + /// + public class ClaimTonConnectRequest : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "claimTonConnectRequest"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the TON Connect session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + + /// + /// Identifier of the message with the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + + /// + /// Identifier of the request assigned by the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dapp_request_id")] + public string DappRequestId { get; set; } + + /// + /// Pass true to reject the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rejected")] + public bool IsRejected { get; set; } + } + + /// + /// Claims a request received through TON Connect for processing on this device + /// + public static Task ClaimTonConnectRequestAsync( + this IClient client, long sessionId = default, long messageId = default, string dappRequestId = default, bool isRejected = default) + { + return client.ExecuteAsync(new ClaimTonConnectRequest + { + SessionId = sessionId, MessageId = messageId, DappRequestId = dappRequestId, IsRejected = isRejected + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CleanFileName.cs b/TdLib.Api/Functions/CleanFileName.cs index 272337c7..bfc1cc2b 100644 --- a/TdLib.Api/Functions/CleanFileName.cs +++ b/TdLib.Api/Functions/CleanFileName.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously /// - public static partial class TdApi + public class CleanFileName : Function { /// - /// Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously + /// Data type for serialization /// - public class CleanFileName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "cleanFileName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "cleanFileName"; - /// - /// File name or path to the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_name")] - public string FileName { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously + /// File name or path to the file /// - public static Task CleanFileNameAsync( - this IClient client, string fileName = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_name")] + public string FileName { get; set; } + } + + /// + /// Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously + /// + public static Task CleanFileNameAsync( + this IClient client, string fileName = default) + { + return client.ExecuteAsync(new CleanFileName { - return client.ExecuteAsync(new CleanFileName - { - FileName = fileName - }); - } + FileName = fileName + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearAllDraftMessages.cs b/TdLib.Api/Functions/ClearAllDraftMessages.cs index 6dac6377..eda699a2 100644 --- a/TdLib.Api/Functions/ClearAllDraftMessages.cs +++ b/TdLib.Api/Functions/ClearAllDraftMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears message drafts in all chats /// - public static partial class TdApi + public class ClearAllDraftMessages : Function { /// - /// Clears message drafts in all chats + /// Data type for serialization /// - public class ClearAllDraftMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearAllDraftMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearAllDraftMessages"; - /// - /// Pass true to keep local message drafts in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_secret_chats")] - public bool ExcludeSecretChats { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Clears message drafts in all chats + /// Pass true to keep local message drafts in secret chats /// - public static Task ClearAllDraftMessagesAsync( - this IClient client, bool excludeSecretChats = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_secret_chats")] + public bool ExcludeSecretChats { get; set; } + } + + /// + /// Clears message drafts in all chats + /// + public static Task ClearAllDraftMessagesAsync( + this IClient client, bool excludeSecretChats = default) + { + return client.ExecuteAsync(new ClearAllDraftMessages { - return client.ExecuteAsync(new ClearAllDraftMessages - { - ExcludeSecretChats = excludeSecretChats - }); - } + ExcludeSecretChats = excludeSecretChats + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearAutosaveSettingsExceptions.cs b/TdLib.Api/Functions/ClearAutosaveSettingsExceptions.cs index e0a796c7..a7185419 100644 --- a/TdLib.Api/Functions/ClearAutosaveSettingsExceptions.cs +++ b/TdLib.Api/Functions/ClearAutosaveSettingsExceptions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to getAutosaveSettings /// - public static partial class TdApi + public class ClearAutosaveSettingsExceptions : Function { /// - /// Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to getAutosaveSettings + /// Data type for serialization /// - public class ClearAutosaveSettingsExceptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearAutosaveSettingsExceptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearAutosaveSettingsExceptions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to getAutosaveSettings - /// - public static Task ClearAutosaveSettingsExceptionsAsync( - this IClient client) + /// + /// Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to getAutosaveSettings + /// + public static Task ClearAutosaveSettingsExceptionsAsync( + this IClient client) + { + return client.ExecuteAsync(new ClearAutosaveSettingsExceptions { - return client.ExecuteAsync(new ClearAutosaveSettingsExceptions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearImportedContacts.cs b/TdLib.Api/Functions/ClearImportedContacts.cs index 7eaf807b..1cbd0860 100644 --- a/TdLib.Api/Functions/ClearImportedContacts.cs +++ b/TdLib.Api/Functions/ClearImportedContacts.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears all imported contacts, contact list remains unchanged /// - public static partial class TdApi + public class ClearImportedContacts : Function { /// - /// Clears all imported contacts, contact list remains unchanged + /// Data type for serialization /// - public class ClearImportedContacts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearImportedContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearImportedContacts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Clears all imported contacts, contact list remains unchanged - /// - public static Task ClearImportedContactsAsync( - this IClient client) + /// + /// Clears all imported contacts, contact list remains unchanged + /// + public static Task ClearImportedContactsAsync( + this IClient client) + { + return client.ExecuteAsync(new ClearImportedContacts { - return client.ExecuteAsync(new ClearImportedContacts - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearRecentEmojiStatuses.cs b/TdLib.Api/Functions/ClearRecentEmojiStatuses.cs index 2802de02..4b7cb2ef 100644 --- a/TdLib.Api/Functions/ClearRecentEmojiStatuses.cs +++ b/TdLib.Api/Functions/ClearRecentEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears the list of recently used emoji statuses for self status /// - public static partial class TdApi + public class ClearRecentEmojiStatuses : Function { /// - /// Clears the list of recently used emoji statuses for self status + /// Data type for serialization /// - public class ClearRecentEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearRecentEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearRecentEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Clears the list of recently used emoji statuses for self status - /// - public static Task ClearRecentEmojiStatusesAsync( - this IClient client) + /// + /// Clears the list of recently used emoji statuses for self status + /// + public static Task ClearRecentEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new ClearRecentEmojiStatuses { - return client.ExecuteAsync(new ClearRecentEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearRecentReactions.cs b/TdLib.Api/Functions/ClearRecentReactions.cs index 66afe703..c1e319ea 100644 --- a/TdLib.Api/Functions/ClearRecentReactions.cs +++ b/TdLib.Api/Functions/ClearRecentReactions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears the list of recently used reactions /// - public static partial class TdApi + public class ClearRecentReactions : Function { /// - /// Clears the list of recently used reactions + /// Data type for serialization /// - public class ClearRecentReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearRecentReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearRecentReactions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Clears the list of recently used reactions - /// - public static Task ClearRecentReactionsAsync( - this IClient client) + /// + /// Clears the list of recently used reactions + /// + public static Task ClearRecentReactionsAsync( + this IClient client) + { + return client.ExecuteAsync(new ClearRecentReactions { - return client.ExecuteAsync(new ClearRecentReactions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearRecentStickers.cs b/TdLib.Api/Functions/ClearRecentStickers.cs index 18c92898..6bf6bbdf 100644 --- a/TdLib.Api/Functions/ClearRecentStickers.cs +++ b/TdLib.Api/Functions/ClearRecentStickers.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears the list of recently used stickers /// - public static partial class TdApi + public class ClearRecentStickers : Function { /// - /// Clears the list of recently used stickers + /// Data type for serialization /// - public class ClearRecentStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearRecentStickers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearRecentStickers"; - /// - /// Pass true to clear the list of stickers recently attached to photo or video files; pass false to clear the list of recently sent stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_attached")] - public bool IsAttached { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Clears the list of recently used stickers + /// Pass true to clear the list of stickers recently attached to photo or video files; pass false to clear the list of recently sent stickers /// - public static Task ClearRecentStickersAsync( - this IClient client, bool isAttached = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_attached")] + public bool IsAttached { get; set; } + } + + /// + /// Clears the list of recently used stickers + /// + public static Task ClearRecentStickersAsync( + this IClient client, bool isAttached = default) + { + return client.ExecuteAsync(new ClearRecentStickers { - return client.ExecuteAsync(new ClearRecentStickers - { - IsAttached = isAttached - }); - } + IsAttached = isAttached + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearRecentlyFoundChats.cs b/TdLib.Api/Functions/ClearRecentlyFoundChats.cs index 802ad157..621870b9 100644 --- a/TdLib.Api/Functions/ClearRecentlyFoundChats.cs +++ b/TdLib.Api/Functions/ClearRecentlyFoundChats.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears the list of recently found chats /// - public static partial class TdApi + public class ClearRecentlyFoundChats : Function { /// - /// Clears the list of recently found chats + /// Data type for serialization /// - public class ClearRecentlyFoundChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearRecentlyFoundChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearRecentlyFoundChats"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Clears the list of recently found chats - /// - public static Task ClearRecentlyFoundChatsAsync( - this IClient client) + /// + /// Clears the list of recently found chats + /// + public static Task ClearRecentlyFoundChatsAsync( + this IClient client) + { + return client.ExecuteAsync(new ClearRecentlyFoundChats { - return client.ExecuteAsync(new ClearRecentlyFoundChats - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClearSearchedForTags.cs b/TdLib.Api/Functions/ClearSearchedForTags.cs index 940afbde..e4452033 100644 --- a/TdLib.Api/Functions/ClearSearchedForTags.cs +++ b/TdLib.Api/Functions/ClearSearchedForTags.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Clears the list of recently searched for hashtags or cashtags /// - public static partial class TdApi + public class ClearSearchedForTags : Function { /// - /// Clears the list of recently searched for hashtags or cashtags + /// Data type for serialization /// - public class ClearSearchedForTags : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clearSearchedForTags"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "clearSearchedForTags"; - /// - /// Pass true to clear the list of recently searched for cashtags; otherwise, the list of recently searched for hashtags will be cleared - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("clear_cashtags")] - public bool ClearCashtags { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Clears the list of recently searched for hashtags or cashtags + /// Pass true to clear the list of recently searched for cashtags; otherwise, the list of recently searched for hashtags will be cleared /// - public static Task ClearSearchedForTagsAsync( - this IClient client, bool clearCashtags = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("clear_cashtags")] + public bool ClearCashtags { get; set; } + } + + /// + /// Clears the list of recently searched for hashtags or cashtags + /// + public static Task ClearSearchedForTagsAsync( + this IClient client, bool clearCashtags = default) + { + return client.ExecuteAsync(new ClearSearchedForTags { - return client.ExecuteAsync(new ClearSearchedForTags - { - ClearCashtags = clearCashtags - }); - } + ClearCashtags = clearCashtags + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClickAnimatedEmojiMessage.cs b/TdLib.Api/Functions/ClickAnimatedEmojiMessage.cs index adfc692b..8359ed2a 100644 --- a/TdLib.Api/Functions/ClickAnimatedEmojiMessage.cs +++ b/TdLib.Api/Functions/ClickAnimatedEmojiMessage.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played or a 404 error if usual animation needs to be played /// - public static partial class TdApi + public class ClickAnimatedEmojiMessage : Function { /// - /// Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played or a 404 error if usual animation needs to be played + /// Data type for serialization /// - public class ClickAnimatedEmojiMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clickAnimatedEmojiMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "clickAnimatedEmojiMessage"; - /// - /// Chat identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the clicked message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played or a 404 error if usual animation needs to be played + /// Identifier of the clicked message /// - public static Task ClickAnimatedEmojiMessageAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played or a 404 error if usual animation needs to be played + /// + public static Task ClickAnimatedEmojiMessageAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new ClickAnimatedEmojiMessage { - return client.ExecuteAsync(new ClickAnimatedEmojiMessage - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClickChatSponsoredMessage.cs b/TdLib.Api/Functions/ClickChatSponsoredMessage.cs index 4204503f..b09985ff 100644 --- a/TdLib.Api/Functions/ClickChatSponsoredMessage.cs +++ b/TdLib.Api/Functions/ClickChatSponsoredMessage.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the sponsored message text, or the media in the sponsored message /// - public static partial class TdApi + public class ClickChatSponsoredMessage : Function { /// - /// Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the sponsored message text, or the media in the sponsored message + /// Data type for serialization /// - public class ClickChatSponsoredMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clickChatSponsoredMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "clickChatSponsoredMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the sponsored message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sponsored message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the sponsored message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if the media was clicked in the sponsored message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_media_click")] - public bool IsMediaClick { get; set; } + /// + /// Identifier of the sponsored message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Pass true if the user expanded the video from the sponsored message fullscreen before the click - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_fullscreen")] - public bool FromFullscreen { get; set; } - } + /// + /// Pass true if the media was clicked in the sponsored message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_media_click")] + public bool IsMediaClick { get; set; } /// - /// Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the sponsored message text, or the media in the sponsored message + /// Pass true if the user expanded the video from the sponsored message fullscreen before the click /// - public static Task ClickChatSponsoredMessageAsync( - this IClient client, long chatId = default, long messageId = default, bool isMediaClick = default, bool fromFullscreen = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("from_fullscreen")] + public bool FromFullscreen { get; set; } + } + + /// + /// Informs TDLib that the user opened the sponsored chat via the button, the name, the chat photo, a mention in the sponsored message text, or the media in the sponsored message + /// + public static Task ClickChatSponsoredMessageAsync( + this IClient client, long chatId = default, long messageId = default, bool isMediaClick = default, bool fromFullscreen = default) + { + return client.ExecuteAsync(new ClickChatSponsoredMessage { - return client.ExecuteAsync(new ClickChatSponsoredMessage - { - ChatId = chatId, MessageId = messageId, IsMediaClick = isMediaClick, FromFullscreen = fromFullscreen - }); - } + ChatId = chatId, MessageId = messageId, IsMediaClick = isMediaClick, FromFullscreen = fromFullscreen + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClickPremiumSubscriptionButton.cs b/TdLib.Api/Functions/ClickPremiumSubscriptionButton.cs index d538c2b7..200672e8 100644 --- a/TdLib.Api/Functions/ClickPremiumSubscriptionButton.cs +++ b/TdLib.Api/Functions/ClickPremiumSubscriptionButton.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the user clicked Premium subscription button on the Premium features screen /// - public static partial class TdApi + public class ClickPremiumSubscriptionButton : Function { /// - /// Informs TDLib that the user clicked Premium subscription button on the Premium features screen + /// Data type for serialization /// - public class ClickPremiumSubscriptionButton : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clickPremiumSubscriptionButton"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "clickPremiumSubscriptionButton"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Informs TDLib that the user clicked Premium subscription button on the Premium features screen - /// - public static Task ClickPremiumSubscriptionButtonAsync( - this IClient client) + /// + /// Informs TDLib that the user clicked Premium subscription button on the Premium features screen + /// + public static Task ClickPremiumSubscriptionButtonAsync( + this IClient client) + { + return client.ExecuteAsync(new ClickPremiumSubscriptionButton { - return client.ExecuteAsync(new ClickPremiumSubscriptionButton - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ClickVideoMessageAdvertisement.cs b/TdLib.Api/Functions/ClickVideoMessageAdvertisement.cs index 0ae0affe..50eff46b 100644 --- a/TdLib.Api/Functions/ClickVideoMessageAdvertisement.cs +++ b/TdLib.Api/Functions/ClickVideoMessageAdvertisement.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the user clicked a video message advertisement /// - public static partial class TdApi + public class ClickVideoMessageAdvertisement : Function { /// - /// Informs TDLib that the user clicked a video message advertisement + /// Data type for serialization /// - public class ClickVideoMessageAdvertisement : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "clickVideoMessageAdvertisement"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "clickVideoMessageAdvertisement"; - /// - /// Unique identifier of the advertisement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("advertisement_unique_id")] - public long AdvertisementUniqueId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that the user clicked a video message advertisement + /// Unique identifier of the advertisement /// - public static Task ClickVideoMessageAdvertisementAsync( - this IClient client, long advertisementUniqueId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("advertisement_unique_id")] + public long AdvertisementUniqueId { get; set; } + } + + /// + /// Informs TDLib that the user clicked a video message advertisement + /// + public static Task ClickVideoMessageAdvertisementAsync( + this IClient client, long advertisementUniqueId = default) + { + return client.ExecuteAsync(new ClickVideoMessageAdvertisement { - return client.ExecuteAsync(new ClickVideoMessageAdvertisement - { - AdvertisementUniqueId = advertisementUniqueId - }); - } + AdvertisementUniqueId = advertisementUniqueId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/Close.cs b/TdLib.Api/Functions/Close.cs index 8458f3e4..5024094c 100644 --- a/TdLib.Api/Functions/Close.cs +++ b/TdLib.Api/Functions/Close.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization /// - public static partial class TdApi + public class Close : Function { /// - /// Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization + /// Data type for serialization /// - public class Close : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "close"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "close"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization - /// - public static Task CloseAsync( - this IClient client) + /// + /// Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization + /// + public static Task CloseAsync( + this IClient client) + { + return client.ExecuteAsync(new Close { - return client.ExecuteAsync(new Close - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CloseChat.cs b/TdLib.Api/Functions/CloseChat.cs index 8d5979ab..aa170a30 100644 --- a/TdLib.Api/Functions/CloseChat.cs +++ b/TdLib.Api/Functions/CloseChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed /// - public static partial class TdApi + public class CloseChat : Function { /// - /// Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed + /// Data type for serialization /// - public class CloseChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "closeChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "closeChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed + /// Chat identifier /// - public static Task CloseChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed + /// + public static Task CloseChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new CloseChat { - return client.ExecuteAsync(new CloseChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CloseGiftAuction.cs b/TdLib.Api/Functions/CloseGiftAuction.cs index e0940ba5..6e96cf62 100644 --- a/TdLib.Api/Functions/CloseGiftAuction.cs +++ b/TdLib.Api/Functions/CloseGiftAuction.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a gift auction was closed by the user /// - public static partial class TdApi + public class CloseGiftAuction : Function { /// - /// Informs TDLib that a gift auction was closed by the user + /// Data type for serialization /// - public class CloseGiftAuction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "closeGiftAuction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "closeGiftAuction"; - /// - /// Identifier of the gift, which auction was closed - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that a gift auction was closed by the user + /// Identifier of the gift, which auction was closed /// - public static Task CloseGiftAuctionAsync( - this IClient client, long giftId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } + } + + /// + /// Informs TDLib that a gift auction was closed by the user + /// + public static Task CloseGiftAuctionAsync( + this IClient client, long giftId = default) + { + return client.ExecuteAsync(new CloseGiftAuction { - return client.ExecuteAsync(new CloseGiftAuction - { - GiftId = giftId - }); - } + GiftId = giftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CloseSecretChat.cs b/TdLib.Api/Functions/CloseSecretChat.cs index 9518d508..e80b9426 100644 --- a/TdLib.Api/Functions/CloseSecretChat.cs +++ b/TdLib.Api/Functions/CloseSecretChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Closes a secret chat, effectively transferring its state to secretChatStateClosed /// - public static partial class TdApi + public class CloseSecretChat : Function { /// - /// Closes a secret chat, effectively transferring its state to secretChatStateClosed + /// Data type for serialization /// - public class CloseSecretChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "closeSecretChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "closeSecretChat"; - /// - /// Secret chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secret_chat_id")] - public int SecretChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Closes a secret chat, effectively transferring its state to secretChatStateClosed + /// Secret chat identifier /// - public static Task CloseSecretChatAsync( - this IClient client, int secretChatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("secret_chat_id")] + public int SecretChatId { get; set; } + } + + /// + /// Closes a secret chat, effectively transferring its state to secretChatStateClosed + /// + public static Task CloseSecretChatAsync( + this IClient client, int secretChatId = default) + { + return client.ExecuteAsync(new CloseSecretChat { - return client.ExecuteAsync(new CloseSecretChat - { - SecretChatId = secretChatId - }); - } + SecretChatId = secretChatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CloseStory.cs b/TdLib.Api/Functions/CloseStory.cs index d6455c21..d180f055 100644 --- a/TdLib.Api/Functions/CloseStory.cs +++ b/TdLib.Api/Functions/CloseStory.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a story is closed by the user /// - public static partial class TdApi + public class CloseStory : Function { /// - /// Informs TDLib that a story is closed by the user + /// Data type for serialization /// - public class CloseStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "closeStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "closeStory"; - /// - /// The identifier of the poster of the story to close - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// The identifier of the poster of the story to close + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } /// - /// Informs TDLib that a story is closed by the user + /// The identifier of the story /// - public static Task CloseStoryAsync( - this IClient client, long storyPosterChatId = default, int storyId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } + } + + /// + /// Informs TDLib that a story is closed by the user + /// + public static Task CloseStoryAsync( + this IClient client, long storyPosterChatId = default, int storyId = default) + { + return client.ExecuteAsync(new CloseStory { - return client.ExecuteAsync(new CloseStory - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CloseWebApp.cs b/TdLib.Api/Functions/CloseWebApp.cs index 0f0d87b5..642e63cb 100644 --- a/TdLib.Api/Functions/CloseWebApp.cs +++ b/TdLib.Api/Functions/CloseWebApp.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a previously opened Web App was closed /// - public static partial class TdApi + public class CloseWebApp : Function { /// - /// Informs TDLib that a previously opened Web App was closed + /// Data type for serialization /// - public class CloseWebApp : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "closeWebApp"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "closeWebApp"; - /// - /// Identifier of Web App launch, received from openWebApp - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("web_app_launch_id")] - public long WebAppLaunchId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that a previously opened Web App was closed + /// Identifier of Web App launch, received from openWebApp /// - public static Task CloseWebAppAsync( - this IClient client, long webAppLaunchId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("web_app_launch_id")] + public long WebAppLaunchId { get; set; } + } + + /// + /// Informs TDLib that a previously opened Web App was closed + /// + public static Task CloseWebAppAsync( + this IClient client, long webAppLaunchId = default) + { + return client.ExecuteAsync(new CloseWebApp { - return client.ExecuteAsync(new CloseWebApp - { - WebAppLaunchId = webAppLaunchId - }); - } + WebAppLaunchId = webAppLaunchId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CommitPendingLiveStoryReactions.cs b/TdLib.Api/Functions/CommitPendingLiveStoryReactions.cs index dbfcf0b8..99f12b6e 100644 --- a/TdLib.Api/Functions/CommitPendingLiveStoryReactions.cs +++ b/TdLib.Api/Functions/CommitPendingLiveStoryReactions.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Applies all pending paid reactions in a live story group call /// - public static partial class TdApi + public class CommitPendingLiveStoryReactions : Function { /// - /// Applies all pending paid reactions in a live story group call + /// Data type for serialization /// - public class CommitPendingLiveStoryReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "commitPendingLiveStoryReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "commitPendingLiveStoryReactions"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Applies all pending paid reactions in a live story group call + /// Group call identifier /// - public static Task CommitPendingLiveStoryReactionsAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Applies all pending paid reactions in a live story group call + /// + public static Task CommitPendingLiveStoryReactionsAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new CommitPendingLiveStoryReactions { - return client.ExecuteAsync(new CommitPendingLiveStoryReactions - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CommitPendingPaidMessageReactions.cs b/TdLib.Api/Functions/CommitPendingPaidMessageReactions.cs index 46e95c40..9489b972 100644 --- a/TdLib.Api/Functions/CommitPendingPaidMessageReactions.cs +++ b/TdLib.Api/Functions/CommitPendingPaidMessageReactions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Applies all pending paid reactions on a message /// - public static partial class TdApi + public class CommitPendingPaidMessageReactions : Function { /// - /// Applies all pending paid reactions on a message + /// Data type for serialization /// - public class CommitPendingPaidMessageReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "commitPendingPaidMessageReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "commitPendingPaidMessageReactions"; - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Applies all pending paid reactions on a message + /// Identifier of the message /// - public static Task CommitPendingPaidMessageReactionsAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Applies all pending paid reactions on a message + /// + public static Task CommitPendingPaidMessageReactionsAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new CommitPendingPaidMessageReactions { - return client.ExecuteAsync(new CommitPendingPaidMessageReactions - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ComposeRichMessageWithAi.cs b/TdLib.Api/Functions/ComposeRichMessageWithAi.cs index 85ca07c2..ca4b3ee9 100644 --- a/TdLib.Api/Functions/ComposeRichMessageWithAi.cs +++ b/TdLib.Api/Functions/ComposeRichMessageWithAi.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests /// - public static partial class TdApi + public class ComposeRichMessageWithAi : Function { /// - /// Changes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Data type for serialization /// - public class ComposeRichMessageWithAi : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "composeRichMessageWithAi"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "composeRichMessageWithAi"; - /// - /// The original message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public InputRichMessage Message { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass a language code to which the text will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("translate_to_language_code")] - public string TranslateToLanguageCode { get; set; } + /// + /// The original message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public InputRichMessage Message { get; set; } - /// - /// Name of the style of the resulted text; handle updateTextCompositionStyles to get the list of supported styles; pass an empty string to keep the current style of the text or if a custom prompt is used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("style_name")] - public string StyleName { get; set; } + /// + /// Pass a language code to which the text will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("translate_to_language_code")] + public string TranslateToLanguageCode { get; set; } - /// - /// Custom prompt that will be used instead of style_name; 0-getOption("text_composition_style_prompt_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("custom_prompt")] - public string CustomPrompt { get; set; } + /// + /// Name of the style of the resulted text; handle updateTextCompositionStyles to get the list of supported styles; pass an empty string to keep the current style of the text or if a custom prompt is used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("style_name")] + public string StyleName { get; set; } - /// - /// Pass true to add emoji to the text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("add_emojis")] - public bool AddEmojis { get; set; } - } + /// + /// Custom prompt that will be used instead of style_name; 0-getOption("text_composition_style_prompt_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("custom_prompt")] + public string CustomPrompt { get; set; } /// - /// Changes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Pass true to add emoji to the text /// - public static Task ComposeRichMessageWithAiAsync( - this IClient client, InputRichMessage message = default, string translateToLanguageCode = default, string styleName = default, string customPrompt = default, bool addEmojis = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("add_emojis")] + public bool AddEmojis { get; set; } + } + + /// + /// Changes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// + public static Task ComposeRichMessageWithAiAsync( + this IClient client, InputRichMessage message = default, string translateToLanguageCode = default, string styleName = default, string customPrompt = default, bool addEmojis = default) + { + return client.ExecuteAsync(new ComposeRichMessageWithAi { - return client.ExecuteAsync(new ComposeRichMessageWithAi - { - Message = message, TranslateToLanguageCode = translateToLanguageCode, StyleName = styleName, CustomPrompt = customPrompt, AddEmojis = addEmojis - }); - } + Message = message, TranslateToLanguageCode = translateToLanguageCode, StyleName = styleName, CustomPrompt = customPrompt, AddEmojis = addEmojis + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ComposeTextWithAi.cs b/TdLib.Api/Functions/ComposeTextWithAi.cs index 82fd675a..90f913bf 100644 --- a/TdLib.Api/Functions/ComposeTextWithAi.cs +++ b/TdLib.Api/Functions/ComposeTextWithAi.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests /// - public static partial class TdApi + public class ComposeTextWithAi : Function { /// - /// Changes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Data type for serialization /// - public class ComposeTextWithAi : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "composeTextWithAi"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "composeTextWithAi"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The original text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass a language code to which the text will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("translate_to_language_code")] - public string TranslateToLanguageCode { get; set; } + /// + /// The original text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Name of the style of the resulted text; handle updateTextCompositionStyles to get the list of supported styles; pass an empty string to keep the current style of the text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("style_name")] - public string StyleName { get; set; } + /// + /// Pass a language code to which the text will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("translate_to_language_code")] + public string TranslateToLanguageCode { get; set; } - /// - /// Pass true to add emoji to the text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("add_emojis")] - public bool AddEmojis { get; set; } - } + /// + /// Name of the style of the resulted text; handle updateTextCompositionStyles to get the list of supported styles; pass an empty string to keep the current style of the text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("style_name")] + public string StyleName { get; set; } /// - /// Changes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Pass true to add emoji to the text /// - public static Task ComposeTextWithAiAsync( - this IClient client, FormattedText text = default, string translateToLanguageCode = default, string styleName = default, bool addEmojis = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("add_emojis")] + public bool AddEmojis { get; set; } + } + + /// + /// Changes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// + public static Task ComposeTextWithAiAsync( + this IClient client, FormattedText text = default, string translateToLanguageCode = default, string styleName = default, bool addEmojis = default) + { + return client.ExecuteAsync(new ComposeTextWithAi { - return client.ExecuteAsync(new ComposeTextWithAi - { - Text = text, TranslateToLanguageCode = translateToLanguageCode, StyleName = styleName, AddEmojis = addEmojis - }); - } + Text = text, TranslateToLanguageCode = translateToLanguageCode, StyleName = styleName, AddEmojis = addEmojis + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ConfirmBusinessConnectedBot.cs b/TdLib.Api/Functions/ConfirmBusinessConnectedBot.cs index f616b702..1ca3b269 100644 --- a/TdLib.Api/Functions/ConfirmBusinessConnectedBot.cs +++ b/TdLib.Api/Functions/ConfirmBusinessConnectedBot.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Confirms an unconfirmed business connection of the current user from another device /// - public static partial class TdApi + public class ConfirmBusinessConnectedBot : Function { /// - /// Confirms an unconfirmed business connection of the current user from another device + /// Data type for serialization /// - public class ConfirmBusinessConnectedBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "confirmBusinessConnectedBot"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "confirmBusinessConnectedBot"; - /// - /// User identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Confirms an unconfirmed business connection of the current user from another device + /// User identifier of the bot /// - public static Task ConfirmBusinessConnectedBotAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Confirms an unconfirmed business connection of the current user from another device + /// + public static Task ConfirmBusinessConnectedBotAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new ConfirmBusinessConnectedBot { - return client.ExecuteAsync(new ConfirmBusinessConnectedBot - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ConfirmQrCodeAuthentication.cs b/TdLib.Api/Functions/ConfirmQrCodeAuthentication.cs index 31e702a9..4b673554 100644 --- a/TdLib.Api/Functions/ConfirmQrCodeAuthentication.cs +++ b/TdLib.Api/Functions/ConfirmQrCodeAuthentication.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Confirms QR code authentication on another device. Returns created session on success /// - public static partial class TdApi + public class ConfirmQrCodeAuthentication : Function { /// - /// Confirms QR code authentication on another device. Returns created session on success + /// Data type for serialization /// - public class ConfirmQrCodeAuthentication : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "confirmQrCodeAuthentication"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "confirmQrCodeAuthentication"; - /// - /// A link from a QR code. The link must be scanned by the in-app camera - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Confirms QR code authentication on another device. Returns created session on success + /// A link from a QR code. The link must be scanned by the in-app camera /// - public static Task ConfirmQrCodeAuthenticationAsync( - this IClient client, string link = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } + } + + /// + /// Confirms QR code authentication on another device. Returns created session on success + /// + public static Task ConfirmQrCodeAuthenticationAsync( + this IClient client, string link = default) + { + return client.ExecuteAsync(new ConfirmQrCodeAuthentication { - return client.ExecuteAsync(new ConfirmQrCodeAuthentication - { - Link = link - }); - } + Link = link + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ConfirmSession.cs b/TdLib.Api/Functions/ConfirmSession.cs index 86ab91de..af4aae94 100644 --- a/TdLib.Api/Functions/ConfirmSession.cs +++ b/TdLib.Api/Functions/ConfirmSession.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Confirms an unconfirmed session of the current user from another device /// - public static partial class TdApi + public class ConfirmSession : Function { /// - /// Confirms an unconfirmed session of the current user from another device + /// Data type for serialization /// - public class ConfirmSession : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "confirmSession"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "confirmSession"; - /// - /// Session identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("session_id")] - public long SessionId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Confirms an unconfirmed session of the current user from another device + /// Session identifier /// - public static Task ConfirmSessionAsync( - this IClient client, long sessionId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + } + + /// + /// Confirms an unconfirmed session of the current user from another device + /// + public static Task ConfirmSessionAsync( + this IClient client, long sessionId = default) + { + return client.ExecuteAsync(new ConfirmSession { - return client.ExecuteAsync(new ConfirmSession - { - SessionId = sessionId - }); - } + SessionId = sessionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ConnectAffiliateProgram.cs b/TdLib.Api/Functions/ConnectAffiliateProgram.cs index 974ec8c4..4f38fe4f 100644 --- a/TdLib.Api/Functions/ConnectAffiliateProgram.cs +++ b/TdLib.Api/Functions/ConnectAffiliateProgram.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Connects an affiliate program to the given affiliate. Returns information about the connected affiliate program /// - public static partial class TdApi + public class ConnectAffiliateProgram : Function { /// - /// Connects an affiliate program to the given affiliate. Returns information about the connected affiliate program + /// Data type for serialization /// - public class ConnectAffiliateProgram : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectAffiliateProgram"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectAffiliateProgram"; - /// - /// The affiliate to which the affiliate program will be connected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateType Affiliate { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot, which affiliate program is connected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// The affiliate to which the affiliate program will be connected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateType Affiliate { get; set; } /// - /// Connects an affiliate program to the given affiliate. Returns information about the connected affiliate program + /// Identifier of the bot, which affiliate program is connected /// - public static Task ConnectAffiliateProgramAsync( - this IClient client, AffiliateType affiliate = default, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Connects an affiliate program to the given affiliate. Returns information about the connected affiliate program + /// + public static Task ConnectAffiliateProgramAsync( + this IClient client, AffiliateType affiliate = default, long botUserId = default) + { + return client.ExecuteAsync(new ConnectAffiliateProgram { - return client.ExecuteAsync(new ConnectAffiliateProgram - { - Affiliate = affiliate, BotUserId = botUserId - }); - } + Affiliate = affiliate, BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CraftGift.cs b/TdLib.Api/Functions/CraftGift.cs index 8e431640..cd0f1210 100644 --- a/TdLib.Api/Functions/CraftGift.cs +++ b/TdLib.Api/Functions/CraftGift.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Crafts a new gift from other gifts that will be permanently lost /// - public static partial class TdApi + public class CraftGift : Function { /// - /// Crafts a new gift from other gifts that will be permanently lost + /// Data type for serialization /// - public class CraftGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "craftGift"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "craftGift"; - /// - /// Identifier of the gifts to use for crafting. In the case of a successful craft, the resulting gift will have the number of the first gift. - /// - [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] - public string[] ReceivedGiftIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Crafts a new gift from other gifts that will be permanently lost + /// Identifier of the gifts to use for crafting. In the case of a successful craft, the resulting gift will have the number of the first gift. /// - public static Task CraftGiftAsync( - this IClient client, string[] receivedGiftIds = default) + [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] + public string[] ReceivedGiftIds { get; set; } + } + + /// + /// Crafts a new gift from other gifts that will be permanently lost + /// + public static Task CraftGiftAsync( + this IClient client, string[] receivedGiftIds = default) + { + return client.ExecuteAsync(new CraftGift { - return client.ExecuteAsync(new CraftGift - { - ReceivedGiftIds = receivedGiftIds - }); - } + ReceivedGiftIds = receivedGiftIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateBasicGroupChat.cs b/TdLib.Api/Functions/CreateBasicGroupChat.cs index 4e5ff8ac..3b72f73f 100644 --- a/TdLib.Api/Functions/CreateBasicGroupChat.cs +++ b/TdLib.Api/Functions/CreateBasicGroupChat.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an existing chat corresponding to a known basic group /// - public static partial class TdApi + public class CreateBasicGroupChat : Function { /// - /// Returns an existing chat corresponding to a known basic group + /// Data type for serialization /// - public class CreateBasicGroupChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createBasicGroupChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createBasicGroupChat"; - /// - /// Basic group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group_id")] - public long BasicGroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force")] - public bool Force { get; set; } - } + /// + /// Basic group identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group_id")] + public long BasicGroupId { get; set; } /// - /// Returns an existing chat corresponding to a known basic group + /// Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect /// - public static Task CreateBasicGroupChatAsync( - this IClient client, long basicGroupId = default, bool force = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("force")] + public bool Force { get; set; } + } + + /// + /// Returns an existing chat corresponding to a known basic group + /// + public static Task CreateBasicGroupChatAsync( + this IClient client, long basicGroupId = default, bool force = default) + { + return client.ExecuteAsync(new CreateBasicGroupChat { - return client.ExecuteAsync(new CreateBasicGroupChat - { - BasicGroupId = basicGroupId, Force = force - }); - } + BasicGroupId = basicGroupId, Force = force + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateBot.cs b/TdLib.Api/Functions/CreateBot.cs index 50654fdb..d46b1d1d 100644 --- a/TdLib.Api/Functions/CreateBot.cs +++ b/TdLib.Api/Functions/CreateBot.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" + /// if the user already owns the maximum allowed number of bots as per getOption("owned_bot_count_max"). An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error /// - public static partial class TdApi + public class CreateBot : Function { /// - /// Creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" - /// if the user already owns the maximum allowed number of bots as per getOption("owned_bot_count_max"). An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error + /// Data type for serialization /// - public class CreateBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createBot"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the bot that will manage the created bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("manager_bot_user_id")] - public long ManagerBotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the bot; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Identifier of the bot that will manage the created bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manager_bot_user_id")] + public long ManagerBotUserId { get; set; } - /// - /// Username of the bot. The username must end with "bot". Use checkBotUsername to find whether the name is suitable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Name of the bot; 1-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Pass true if the bot is created from an internalLinkTypeRequestManagedBot link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_link")] - public bool ViaLink { get; set; } - } + /// + /// Username of the bot. The username must end with "bot" or a string from updateAllowedBotUsernamePremiumSuffixes case-insensitive. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } /// - /// Creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" - /// if the user already owns the maximum allowed number of bots as per getOption("owned_bot_count_max"). An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error + /// Pass true if the bot is created from an internalLinkTypeRequestManagedBot link /// - public static Task CreateBotAsync( - this IClient client, long managerBotUserId = default, string name = default, string username = default, bool viaLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("via_link")] + public bool ViaLink { get; set; } + } + + /// + /// Creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" + /// if the user already owns the maximum allowed number of bots as per getOption("owned_bot_count_max"). An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error + /// + public static Task CreateBotAsync( + this IClient client, long managerBotUserId = default, string name = default, string username = default, bool viaLink = default) + { + return client.ExecuteAsync(new CreateBot { - return client.ExecuteAsync(new CreateBot - { - ManagerBotUserId = managerBotUserId, Name = name, Username = username, ViaLink = viaLink - }); - } + ManagerBotUserId = managerBotUserId, Name = name, Username = username, ViaLink = viaLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateBusinessChatLink.cs b/TdLib.Api/Functions/CreateBusinessChatLink.cs index da87fd21..15b5f700 100644 --- a/TdLib.Api/Functions/CreateBusinessChatLink.cs +++ b/TdLib.Api/Functions/CreateBusinessChatLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a business chat link for the current account. Requires Telegram Business subscription. There can be up to getOption("business_chat_link_count_max") links created. Returns the created link /// - public static partial class TdApi + public class CreateBusinessChatLink : Function { /// - /// Creates a business chat link for the current account. Requires Telegram Business subscription. There can be up to getOption("business_chat_link_count_max") links created. Returns the created link + /// Data type for serialization /// - public class CreateBusinessChatLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createBusinessChatLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createBusinessChatLink"; - /// - /// Information about the link to create - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_info")] - public InputBusinessChatLink LinkInfo { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Creates a business chat link for the current account. Requires Telegram Business subscription. There can be up to getOption("business_chat_link_count_max") links created. Returns the created link + /// Information about the link to create /// - public static Task CreateBusinessChatLinkAsync( - this IClient client, InputBusinessChatLink linkInfo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link_info")] + public InputBusinessChatLink LinkInfo { get; set; } + } + + /// + /// Creates a business chat link for the current account. Requires Telegram Business subscription. There can be up to getOption("business_chat_link_count_max") links created. Returns the created link + /// + public static Task CreateBusinessChatLinkAsync( + this IClient client, InputBusinessChatLink linkInfo = default) + { + return client.ExecuteAsync(new CreateBusinessChatLink { - return client.ExecuteAsync(new CreateBusinessChatLink - { - LinkInfo = linkInfo - }); - } + LinkInfo = linkInfo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateCall.cs b/TdLib.Api/Functions/CreateCall.cs index 2a5ded9d..edeb78f2 100644 --- a/TdLib.Api/Functions/CreateCall.cs +++ b/TdLib.Api/Functions/CreateCall.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new call /// - public static partial class TdApi + public class CreateCall : Function { /// - /// Creates a new call + /// Data type for serialization /// - public class CreateCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createCall"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user to be called - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The call protocols supported by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protocol")] - public CallProtocol Protocol { get; set; } + /// + /// Identifier of the user to be called + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Pass true to create a video call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video")] - public bool IsVideo { get; set; } - } + /// + /// The call protocols supported by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protocol")] + public CallProtocol Protocol { get; set; } /// - /// Creates a new call + /// Pass true to create a video call /// - public static Task CreateCallAsync( - this IClient client, long userId = default, CallProtocol protocol = default, bool isVideo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video")] + public bool IsVideo { get; set; } + } + + /// + /// Creates a new call + /// + public static Task CreateCallAsync( + this IClient client, long userId = default, CallProtocol protocol = default, bool isVideo = default) + { + return client.ExecuteAsync(new CreateCall { - return client.ExecuteAsync(new CreateCall - { - UserId = userId, Protocol = protocol, IsVideo = isVideo - }); - } + UserId = userId, Protocol = protocol, IsVideo = isVideo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateChatFolder.cs b/TdLib.Api/Functions/CreateChatFolder.cs index 82c24833..d71939e5 100644 --- a/TdLib.Api/Functions/CreateChatFolder.cs +++ b/TdLib.Api/Functions/CreateChatFolder.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates new chat folder. Returns information about the created chat folder. There can be up to getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium /// - public static partial class TdApi + public class CreateChatFolder : Function { /// - /// Creates new chat folder. Returns information about the created chat folder. There can be up to getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium + /// Data type for serialization /// - public class CreateChatFolder : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createChatFolder"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createChatFolder"; - /// - /// The new chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("folder")] - public ChatFolder Folder { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Creates new chat folder. Returns information about the created chat folder. There can be up to getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium + /// The new chat folder /// - public static Task CreateChatFolderAsync( - this IClient client, ChatFolder folder = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("folder")] + public ChatFolder Folder { get; set; } + } + + /// + /// Creates new chat folder. Returns information about the created chat folder. There can be up to getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium + /// + public static Task CreateChatFolderAsync( + this IClient client, ChatFolder folder = default) + { + return client.ExecuteAsync(new CreateChatFolder { - return client.ExecuteAsync(new CreateChatFolder - { - Folder = folder - }); - } + Folder = folder + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateChatFolderInviteLink.cs b/TdLib.Api/Functions/CreateChatFolderInviteLink.cs index 515c354c..da5fa5fe 100644 --- a/TdLib.Api/Functions/CreateChatFolderInviteLink.cs +++ b/TdLib.Api/Functions/CreateChatFolderInviteLink.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included chats /// - public static partial class TdApi + public class CreateChatFolderInviteLink : Function { /// - /// Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included chats + /// Data type for serialization /// - public class CreateChatFolderInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createChatFolderInviteLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createChatFolderInviteLink"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the link; 0-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } - /// - /// Identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link creation - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// Name of the link; 0-32 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included chats + /// Identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link creation /// - public static Task CreateChatFolderInviteLinkAsync( - this IClient client, int chatFolderId = default, string name = default, long[] chatIds = default) + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } + } + + /// + /// Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included chats + /// + public static Task CreateChatFolderInviteLinkAsync( + this IClient client, int chatFolderId = default, string name = default, long[] chatIds = default) + { + return client.ExecuteAsync(new CreateChatFolderInviteLink { - return client.ExecuteAsync(new CreateChatFolderInviteLink - { - ChatFolderId = chatFolderId, Name = name, ChatIds = chatIds - }); - } + ChatFolderId = chatFolderId, Name = name, ChatIds = chatIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateChatInviteLink.cs b/TdLib.Api/Functions/CreateChatInviteLink.cs index e91ef0fb..147cfc18 100644 --- a/TdLib.Api/Functions/CreateChatInviteLink.cs +++ b/TdLib.Api/Functions/CreateChatInviteLink.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat /// - public static partial class TdApi + public class CreateChatInviteLink : Function { /// - /// Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat + /// Data type for serialization /// - public class CreateChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createChatInviteLink"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link name; 0-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Point in time (Unix timestamp) when the link will expire; pass 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } + /// + /// Invite link name; 0-32 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_limit")] - public int MemberLimit { get; set; } + /// + /// Point in time (Unix timestamp) when the link will expire; pass 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } - /// - /// Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit must be 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creates_join_request")] - public bool CreatesJoinRequest { get; set; } - } + /// + /// The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_limit")] + public int MemberLimit { get; set; } /// - /// Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat + /// Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit must be 0 /// - public static Task CreateChatInviteLinkAsync( - this IClient client, long chatId = default, string name = default, int expirationDate = default, int memberLimit = default, bool createsJoinRequest = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("creates_join_request")] + public bool CreatesJoinRequest { get; set; } + } + + /// + /// Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat + /// + public static Task CreateChatInviteLinkAsync( + this IClient client, long chatId = default, string name = default, int expirationDate = default, int memberLimit = default, bool createsJoinRequest = default) + { + return client.ExecuteAsync(new CreateChatInviteLink { - return client.ExecuteAsync(new CreateChatInviteLink - { - ChatId = chatId, Name = name, ExpirationDate = expirationDate, MemberLimit = memberLimit, CreatesJoinRequest = createsJoinRequest - }); - } + ChatId = chatId, Name = name, ExpirationDate = expirationDate, MemberLimit = memberLimit, CreatesJoinRequest = createsJoinRequest + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateChatSubscriptionInviteLink.cs b/TdLib.Api/Functions/CreateChatSubscriptionInviteLink.cs index f0b852fc..ae5807d4 100644 --- a/TdLib.Api/Functions/CreateChatSubscriptionInviteLink.cs +++ b/TdLib.Api/Functions/CreateChatSubscriptionInviteLink.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat /// - public static partial class TdApi + public class CreateChatSubscriptionInviteLink : Function { /// - /// Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat + /// Data type for serialization /// - public class CreateChatSubscriptionInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createChatSubscriptionInviteLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createChatSubscriptionInviteLink"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link name; 0-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Information about subscription plan that will be applied to the users joining the chat via the link. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_pricing")] - public StarSubscriptionPricing SubscriptionPricing { get; set; } - } + /// + /// Invite link name; 0-32 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat + /// Information about subscription plan that will be applied to the users joining the chat via the link. /// - public static Task CreateChatSubscriptionInviteLinkAsync( - this IClient client, long chatId = default, string name = default, StarSubscriptionPricing subscriptionPricing = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_pricing")] + public StarSubscriptionPricing SubscriptionPricing { get; set; } + } + + /// + /// Creates a new subscription invite link for a channel chat. Requires can_invite_users right in the chat + /// + public static Task CreateChatSubscriptionInviteLinkAsync( + this IClient client, long chatId = default, string name = default, StarSubscriptionPricing subscriptionPricing = default) + { + return client.ExecuteAsync(new CreateChatSubscriptionInviteLink { - return client.ExecuteAsync(new CreateChatSubscriptionInviteLink - { - ChatId = chatId, Name = name, SubscriptionPricing = subscriptionPricing - }); - } + ChatId = chatId, Name = name, SubscriptionPricing = subscriptionPricing + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateCommunity.cs b/TdLib.Api/Functions/CreateCommunity.cs index 2109b285..506ff748 100644 --- a/TdLib.Api/Functions/CreateCommunity.cs +++ b/TdLib.Api/Functions/CreateCommunity.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new community for the given chat. Returns identifier of the created community /// - public static partial class TdApi + public class CreateCommunity : Function { /// - /// Creates a new community for the given chat. Returns identifier of the created community + /// Data type for serialization /// - public class CreateCommunity : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createCommunity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createCommunity"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Name of the new community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat in the community; only chats with owned bots and owned basic group, supergroup and channel chats are allowed; - /// basic group chats will be automatically upgraded to supergroup chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Name of the new community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Pass true if the chat will be visible only to administrators of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_chat_hidden")] - public bool IsChatHidden { get; set; } - } + /// + /// Identifier of the chat in the community; only chats with owned bots and owned basic group, supergroup and channel chats are allowed; + /// basic group chats will be automatically upgraded to supergroup chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Creates a new community for the given chat. Returns identifier of the created community + /// Pass true if the chat will be visible only to administrators of the community /// - public static Task CreateCommunityAsync( - this IClient client, string name = default, long chatId = default, bool isChatHidden = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_chat_hidden")] + public bool IsChatHidden { get; set; } + } + + /// + /// Creates a new community for the given chat. Returns identifier of the created community + /// + public static Task CreateCommunityAsync( + this IClient client, string name = default, long chatId = default, bool isChatHidden = default) + { + return client.ExecuteAsync(new CreateCommunity { - return client.ExecuteAsync(new CreateCommunity - { - Name = name, ChatId = chatId, IsChatHidden = isChatHidden - }); - } + Name = name, ChatId = chatId, IsChatHidden = isChatHidden + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateForumTopic.cs b/TdLib.Api/Functions/CreateForumTopic.cs index 002717fd..034f212a 100644 --- a/TdLib.Api/Functions/CreateForumTopic.cs +++ b/TdLib.Api/Functions/CreateForumTopic.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator or can_create_topics member right in the supergroup /// - public static partial class TdApi + public class CreateForumTopic : Function { /// - /// Creates a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator or can_create_topics member right in the supergroup + /// Data type for serialization /// - public class CreateForumTopic : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createForumTopic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createForumTopic"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the topic; 1-128 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if the name of the topic wasn't entered explicitly; for chats with bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_name_implicit")] - public bool IsNameImplicit { get; set; } + /// + /// Name of the topic; 1-128 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon")] - public ForumTopicIcon Icon { get; set; } - } + /// + /// Pass true if the name of the topic wasn't entered explicitly; for chats with bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_name_implicit")] + public bool IsNameImplicit { get; set; } /// - /// Creates a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator or can_create_topics member right in the supergroup + /// Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons /// - public static Task CreateForumTopicAsync( - this IClient client, long chatId = default, string name = default, bool isNameImplicit = default, ForumTopicIcon icon = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public ForumTopicIcon Icon { get; set; } + } + + /// + /// Creates a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator or can_create_topics member right in the supergroup + /// + public static Task CreateForumTopicAsync( + this IClient client, long chatId = default, string name = default, bool isNameImplicit = default, ForumTopicIcon icon = default) + { + return client.ExecuteAsync(new CreateForumTopic { - return client.ExecuteAsync(new CreateForumTopic - { - ChatId = chatId, Name = name, IsNameImplicit = isNameImplicit, Icon = icon - }); - } + ChatId = chatId, Name = name, IsNameImplicit = isNameImplicit, Icon = icon + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateGiftCollection.cs b/TdLib.Api/Functions/CreateGiftCollection.cs index acefa715..4f5e81da 100644 --- a/TdLib.Api/Functions/CreateGiftCollection.cs +++ b/TdLib.Api/Functions/CreateGiftCollection.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a collection from gifts on the current user's or a channel's profile page; requires can_post_messages administrator right in the channel chat. + /// An owner can have up to getOption("gift_collection_count_max") gift collections. The new collection will be added to the end of the gift collection list of the owner. Returns the created collection /// - public static partial class TdApi + public class CreateGiftCollection : Function { /// - /// Creates a collection from gifts on the current user's or a channel's profile page; requires can_post_messages administrator right in the channel chat. - /// An owner can have up to getOption("gift_collection_count_max") gift collections. The new collection will be added to the end of the gift collection list of the owner. Returns the created collection + /// Data type for serialization /// - public class CreateGiftCollection : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createGiftCollection"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createGiftCollection"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user or the channel chat that received the gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the collection; 1-12 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Identifier of the user or the channel chat that received the gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers - /// - [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] - public string[] ReceivedGiftIds { get; set; } - } + /// + /// Name of the collection; 1-12 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Creates a collection from gifts on the current user's or a channel's profile page; requires can_post_messages administrator right in the channel chat. - /// An owner can have up to getOption("gift_collection_count_max") gift collections. The new collection will be added to the end of the gift collection list of the owner. Returns the created collection + /// Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers /// - public static Task CreateGiftCollectionAsync( - this IClient client, MessageSender ownerId = default, string name = default, string[] receivedGiftIds = default) + [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] + public string[] ReceivedGiftIds { get; set; } + } + + /// + /// Creates a collection from gifts on the current user's or a channel's profile page; requires can_post_messages administrator right in the channel chat. + /// An owner can have up to getOption("gift_collection_count_max") gift collections. The new collection will be added to the end of the gift collection list of the owner. Returns the created collection + /// + public static Task CreateGiftCollectionAsync( + this IClient client, MessageSender ownerId = default, string name = default, string[] receivedGiftIds = default) + { + return client.ExecuteAsync(new CreateGiftCollection { - return client.ExecuteAsync(new CreateGiftCollection - { - OwnerId = ownerId, Name = name, ReceivedGiftIds = receivedGiftIds - }); - } + OwnerId = ownerId, Name = name, ReceivedGiftIds = receivedGiftIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateGroupCall.cs b/TdLib.Api/Functions/CreateGroupCall.cs index cf728b76..3a7c99b9 100644 --- a/TdLib.Api/Functions/CreateGroupCall.cs +++ b/TdLib.Api/Functions/CreateGroupCall.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new group call that isn't bound to a chat /// - public static partial class TdApi + public class CreateGroupCall : Function { /// - /// Creates a new group call that isn't bound to a chat + /// Data type for serialization /// - public class CreateGroupCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createGroupCall"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createGroupCall"; - /// - /// Parameters to join the call; pass null to only create call link without joining the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_parameters")] - public GroupCallJoinParameters JoinParameters { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Creates a new group call that isn't bound to a chat + /// Parameters to join the call; pass null to only create call link without joining the call /// - public static Task CreateGroupCallAsync( - this IClient client, GroupCallJoinParameters joinParameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("join_parameters")] + public GroupCallJoinParameters JoinParameters { get; set; } + } + + /// + /// Creates a new group call that isn't bound to a chat + /// + public static Task CreateGroupCallAsync( + this IClient client, GroupCallJoinParameters joinParameters = default) + { + return client.ExecuteAsync(new CreateGroupCall { - return client.ExecuteAsync(new CreateGroupCall - { - JoinParameters = joinParameters - }); - } + JoinParameters = joinParameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateInvoiceLink.cs b/TdLib.Api/Functions/CreateInvoiceLink.cs index 0fc111b7..bab88f74 100644 --- a/TdLib.Api/Functions/CreateInvoiceLink.cs +++ b/TdLib.Api/Functions/CreateInvoiceLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a link for the given invoice; for bots only /// - public static partial class TdApi + public class CreateInvoiceLink : Function { /// - /// Creates a link for the given invoice; for bots only + /// Data type for serialization /// - public class CreateInvoiceLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createInvoiceLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createInvoiceLink"; - /// - /// Unique identifier of business connection on behalf of which to send the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the invoice of the type inputMessageInvoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice")] - public InputMessageContent Invoice { get; set; } - } + /// + /// Unique identifier of business connection on behalf of which to send the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Creates a link for the given invoice; for bots only + /// Information about the invoice of the type inputMessageInvoice /// - public static Task CreateInvoiceLinkAsync( - this IClient client, string businessConnectionId = default, InputMessageContent invoice = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice")] + public InputMessageContent Invoice { get; set; } + } + + /// + /// Creates a link for the given invoice; for bots only + /// + public static Task CreateInvoiceLinkAsync( + this IClient client, string businessConnectionId = default, InputMessageContent invoice = default) + { + return client.ExecuteAsync(new CreateInvoiceLink { - return client.ExecuteAsync(new CreateInvoiceLink - { - BusinessConnectionId = businessConnectionId, Invoice = invoice - }); - } + BusinessConnectionId = businessConnectionId, Invoice = invoice + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateNewBasicGroupChat.cs b/TdLib.Api/Functions/CreateNewBasicGroupChat.cs index a81bdcf1..326a0308 100644 --- a/TdLib.Api/Functions/CreateNewBasicGroupChat.cs +++ b/TdLib.Api/Functions/CreateNewBasicGroupChat.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns information about the newly created chat /// - public static partial class TdApi + public class CreateNewBasicGroupChat : Function { /// - /// Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns information about the newly created chat + /// Data type for serialization /// - public class CreateNewBasicGroupChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createNewBasicGroupChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createNewBasicGroupChat"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifiers of users to be added to the basic group; may be empty to create a basic group without other members - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the new basic group; 1-128 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Identifiers of users to be added to the basic group; may be empty to create a basic group without other members + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } - /// - /// Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_auto_delete_time")] - public int MessageAutoDeleteTime { get; set; } - } + /// + /// Title of the new basic group; 1-128 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } /// - /// Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns information about the newly created chat + /// Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically /// - public static Task CreateNewBasicGroupChatAsync( - this IClient client, long[] userIds = default, string title = default, int messageAutoDeleteTime = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_auto_delete_time")] + public int MessageAutoDeleteTime { get; set; } + } + + /// + /// Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns information about the newly created chat + /// + public static Task CreateNewBasicGroupChatAsync( + this IClient client, long[] userIds = default, string title = default, int messageAutoDeleteTime = default) + { + return client.ExecuteAsync(new CreateNewBasicGroupChat { - return client.ExecuteAsync(new CreateNewBasicGroupChat - { - UserIds = userIds, Title = title, MessageAutoDeleteTime = messageAutoDeleteTime - }); - } + UserIds = userIds, Title = title, MessageAutoDeleteTime = messageAutoDeleteTime + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateNewSecretChat.cs b/TdLib.Api/Functions/CreateNewSecretChat.cs index 8f0e5226..3463ad03 100644 --- a/TdLib.Api/Functions/CreateNewSecretChat.cs +++ b/TdLib.Api/Functions/CreateNewSecretChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new secret chat. Returns the newly created chat /// - public static partial class TdApi + public class CreateNewSecretChat : Function { /// - /// Creates a new secret chat. Returns the newly created chat + /// Data type for serialization /// - public class CreateNewSecretChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createNewSecretChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createNewSecretChat"; - /// - /// Identifier of the target user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Creates a new secret chat. Returns the newly created chat + /// Identifier of the target user /// - public static Task CreateNewSecretChatAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Creates a new secret chat. Returns the newly created chat + /// + public static Task CreateNewSecretChatAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new CreateNewSecretChat { - return client.ExecuteAsync(new CreateNewSecretChat - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateNewStickerSet.cs b/TdLib.Api/Functions/CreateNewStickerSet.cs index ae9fba89..1ce2308a 100644 --- a/TdLib.Api/Functions/CreateNewStickerSet.cs +++ b/TdLib.Api/Functions/CreateNewStickerSet.cs @@ -3,90 +3,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new sticker set. Returns the newly created sticker set /// - public static partial class TdApi + public class CreateNewStickerSet : Function { /// - /// Creates a new sticker set. Returns the newly created sticker set + /// Data type for serialization /// - public class CreateNewStickerSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createNewStickerSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createNewStickerSet"; - /// - /// Sticker set owner; ignored for regular users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker set title; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Sticker set owner; ignored for regular users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_<bot username>"* (*<bot_username>* is case insensitive) for bots; 0-64 characters. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Sticker set title; 1-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Type of the stickers in the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_<bot username>"* (*<bot_username>* is case insensitive) for bots; 0-64 characters. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("needs_repainting")] - public bool NeedsRepainting { get; set; } + /// + /// Type of the stickers in the set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For TGS stickers, uploadStickerFile must be used before the sticker is shown - /// - [JsonProperty("stickers", ItemConverterType = typeof(Converter))] - public NewSticker[] Stickers { get; set; } + /// + /// Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("needs_repainting")] + public bool NeedsRepainting { get; set; } - /// - /// Source of the sticker set; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public string Source { get; set; } - } + /// + /// List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For TGS stickers, uploadStickerFile must be used before the sticker is shown + /// + [JsonProperty("stickers", ItemConverterType = typeof(Converter))] + public NewSticker[] Stickers { get; set; } /// - /// Creates a new sticker set. Returns the newly created sticker set + /// Source of the sticker set; may be empty if unknown /// - public static Task CreateNewStickerSetAsync( - this IClient client, long userId = default, string title = default, string name = default, StickerType stickerType = default, bool needsRepainting = default, NewSticker[] stickers = default, string source = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public string Source { get; set; } + } + + /// + /// Creates a new sticker set. Returns the newly created sticker set + /// + public static Task CreateNewStickerSetAsync( + this IClient client, long userId = default, string title = default, string name = default, StickerType stickerType = default, bool needsRepainting = default, NewSticker[] stickers = default, string source = default) + { + return client.ExecuteAsync(new CreateNewStickerSet { - return client.ExecuteAsync(new CreateNewStickerSet - { - UserId = userId, Title = title, Name = name, StickerType = stickerType, NeedsRepainting = needsRepainting, Stickers = stickers, Source = source - }); - } + UserId = userId, Title = title, Name = name, StickerType = stickerType, NeedsRepainting = needsRepainting, Stickers = stickers, Source = source + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateNewSupergroupChat.cs b/TdLib.Api/Functions/CreateNewSupergroupChat.cs index 3efb411e..9113e963 100644 --- a/TdLib.Api/Functions/CreateNewSupergroupChat.cs +++ b/TdLib.Api/Functions/CreateNewSupergroupChat.cs @@ -3,91 +3,93 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat /// - public static partial class TdApi + public class CreateNewSupergroupChat : Function { /// - /// Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat + /// Data type for serialization /// - public class CreateNewSupergroupChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createNewSupergroupChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createNewSupergroupChat"; - /// - /// Title of the new chat; 1-128 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to create a forum supergroup chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_forum")] - public bool IsForum { get; set; } + /// + /// Title of the new chat; 1-128 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Pass true to create a channel chat; ignored if a forum is created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_channel")] - public bool IsChannel { get; set; } + /// + /// Pass true to create a forum supergroup chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_forum")] + public bool IsForum { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// Pass true to create a channel chat; ignored if a forum is created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_channel")] + public bool IsChannel { get; set; } - /// - /// Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public ChatLocation Location { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_auto_delete_time")] - public int MessageAutoDeleteTime { get; set; } + /// + /// Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public ChatLocation Location { get; set; } - /// - /// Pass true to create a supergroup for importing messages using importMessages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_import")] - public bool ForImport { get; set; } - } + /// + /// Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_auto_delete_time")] + public int MessageAutoDeleteTime { get; set; } /// - /// Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat + /// Pass true to create a supergroup for importing messages using importMessages /// - public static Task CreateNewSupergroupChatAsync( - this IClient client, string title = default, bool isForum = default, bool isChannel = default, string description = default, ChatLocation location = default, int messageAutoDeleteTime = default, bool forImport = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("for_import")] + public bool ForImport { get; set; } + } + + /// + /// Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat + /// + public static Task CreateNewSupergroupChatAsync( + this IClient client, string title = default, bool isForum = default, bool isChannel = default, string description = default, ChatLocation location = default, int messageAutoDeleteTime = default, bool forImport = default) + { + return client.ExecuteAsync(new CreateNewSupergroupChat { - return client.ExecuteAsync(new CreateNewSupergroupChat - { - Title = title, IsForum = isForum, IsChannel = isChannel, Description = description, Location = location, MessageAutoDeleteTime = messageAutoDeleteTime, ForImport = forImport - }); - } + Title = title, IsForum = isForum, IsChannel = isChannel, Description = description, Location = location, MessageAutoDeleteTime = messageAutoDeleteTime, ForImport = forImport + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateOnRampPaymentSession.cs b/TdLib.Api/Functions/CreateOnRampPaymentSession.cs new file mode 100644 index 00000000..c71a27b6 --- /dev/null +++ b/TdLib.Api/Functions/CreateOnRampPaymentSession.cs @@ -0,0 +1,123 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Creates a session for an on-ramp payment + /// + public class CreateOnRampPaymentSession : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "createOnRampPaymentSession"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the on-ramp provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_id")] + public string ProviderId { get; set; } + + /// + /// The cryptocurrency that will be bought + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } + + /// + /// Address to which the cryptocurrency will be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } + + /// + /// Name of the chosen payment method; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_method_name")] + public string PaymentMethodName { get; set; } + + /// + /// ISO 4217 currency code of the currency that will be used for the purchase; pass an empty string if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency")] + public string BaseCurrency { get; set; } + + /// + /// The amount of the cryptocurrency to buy; pass an empty string if the user selected base_currency_amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency_amount")] + public string CryptocurrencyAmount { get; set; } + + /// + /// The amount of the base currency to spend; pass an empty string if the user selected cryptocurrency_amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency_amount")] + public string BaseCurrencyAmount { get; set; } + + /// + /// Memo for the query; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("memo")] + public string Memo { get; set; } + + /// + /// Preferred theme for the WebView; pass "light" for a light theme, "dark" for a dark theme, or leave empty for a default theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public string Theme { get; set; } + + /// + /// The URL opened on successful payment; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("success_return_url")] + public string SuccessReturnUrl { get; set; } + + /// + /// The URL opened on failed payment; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fail_return_url")] + public string FailReturnUrl { get; set; } + } + + /// + /// Creates a session for an on-ramp payment + /// + public static Task CreateOnRampPaymentSessionAsync( + this IClient client, string providerId = default, string cryptocurrency = default, string address = default, string paymentMethodName = default, string baseCurrency = default, string cryptocurrencyAmount = default, string baseCurrencyAmount = default, string memo = default, string theme = default, string successReturnUrl = default, string failReturnUrl = default) + { + return client.ExecuteAsync(new CreateOnRampPaymentSession + { + ProviderId = providerId, Cryptocurrency = cryptocurrency, Address = address, PaymentMethodName = paymentMethodName, BaseCurrency = baseCurrency, CryptocurrencyAmount = cryptocurrencyAmount, BaseCurrencyAmount = baseCurrencyAmount, Memo = memo, Theme = theme, SuccessReturnUrl = successReturnUrl, FailReturnUrl = failReturnUrl + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreatePrivateChat.cs b/TdLib.Api/Functions/CreatePrivateChat.cs index f87dbad2..6ebc343d 100644 --- a/TdLib.Api/Functions/CreatePrivateChat.cs +++ b/TdLib.Api/Functions/CreatePrivateChat.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an existing chat corresponding to a given user /// - public static partial class TdApi + public class CreatePrivateChat : Function { /// - /// Returns an existing chat corresponding to a given user + /// Data type for serialization /// - public class CreatePrivateChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createPrivateChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createPrivateChat"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force")] - public bool Force { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Returns an existing chat corresponding to a given user + /// Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect /// - public static Task CreatePrivateChatAsync( - this IClient client, long userId = default, bool force = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("force")] + public bool Force { get; set; } + } + + /// + /// Returns an existing chat corresponding to a given user + /// + public static Task CreatePrivateChatAsync( + this IClient client, long userId = default, bool force = default) + { + return client.ExecuteAsync(new CreatePrivateChat { - return client.ExecuteAsync(new CreatePrivateChat - { - UserId = userId, Force = force - }); - } + UserId = userId, Force = force + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateRichMessageWithAi.cs b/TdLib.Api/Functions/CreateRichMessageWithAi.cs index 8db4c70a..13072ed2 100644 --- a/TdLib.Api/Functions/CreateRichMessageWithAi.cs +++ b/TdLib.Api/Functions/CreateRichMessageWithAi.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests /// - public static partial class TdApi + public class CreateRichMessageWithAi : Function { /// - /// Creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Data type for serialization /// - public class CreateRichMessageWithAi : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createRichMessageWithAi"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createRichMessageWithAi"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prompt")] - public string Prompt { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass a language code in which the text will be created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prompt")] + public string Prompt { get; set; } - /// - /// Pass true to add emoji to the text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("add_emojis")] - public bool AddEmojis { get; set; } - } + /// + /// Pass a language code in which the text will be created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Pass true to add emoji to the text /// - public static Task CreateRichMessageWithAiAsync( - this IClient client, string prompt = default, string languageCode = default, bool addEmojis = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("add_emojis")] + public bool AddEmojis { get; set; } + } + + /// + /// Creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// + public static Task CreateRichMessageWithAiAsync( + this IClient client, string prompt = default, string languageCode = default, bool addEmojis = default) + { + return client.ExecuteAsync(new CreateRichMessageWithAi { - return client.ExecuteAsync(new CreateRichMessageWithAi - { - Prompt = prompt, LanguageCode = languageCode, AddEmojis = addEmojis - }); - } + Prompt = prompt, LanguageCode = languageCode, AddEmojis = addEmojis + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateSecretChat.cs b/TdLib.Api/Functions/CreateSecretChat.cs index 5592a8cc..0555283a 100644 --- a/TdLib.Api/Functions/CreateSecretChat.cs +++ b/TdLib.Api/Functions/CreateSecretChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an existing chat corresponding to a known secret chat /// - public static partial class TdApi + public class CreateSecretChat : Function { /// - /// Returns an existing chat corresponding to a known secret chat + /// Data type for serialization /// - public class CreateSecretChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createSecretChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createSecretChat"; - /// - /// Secret chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secret_chat_id")] - public int SecretChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns an existing chat corresponding to a known secret chat + /// Secret chat identifier /// - public static Task CreateSecretChatAsync( - this IClient client, int secretChatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("secret_chat_id")] + public int SecretChatId { get; set; } + } + + /// + /// Returns an existing chat corresponding to a known secret chat + /// + public static Task CreateSecretChatAsync( + this IClient client, int secretChatId = default) + { + return client.ExecuteAsync(new CreateSecretChat { - return client.ExecuteAsync(new CreateSecretChat - { - SecretChatId = secretChatId - }); - } + SecretChatId = secretChatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateStoryAlbum.cs b/TdLib.Api/Functions/CreateStoryAlbum.cs index 6cd12deb..75d3d3e7 100644 --- a/TdLib.Api/Functions/CreateStoryAlbum.cs +++ b/TdLib.Api/Functions/CreateStoryAlbum.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates an album of stories; requires can_edit_stories administrator right for supergroup and channel chats /// - public static partial class TdApi + public class CreateStoryAlbum : Function { /// - /// Creates an album of stories; requires can_edit_stories administrator right for supergroup and channel chats + /// Data type for serialization /// - public class CreateStoryAlbum : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createStoryAlbum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createStoryAlbum"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that posted the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the album; 1-12 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Identifier of the chat that posted the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Identifiers of stories to add to the album; 0-getOption("story_album_size_max") identifiers - /// - [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] - public int[] StoryIds { get; set; } - } + /// + /// Name of the album; 1-12 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Creates an album of stories; requires can_edit_stories administrator right for supergroup and channel chats + /// Identifiers of stories to add to the album; 0-getOption("story_album_size_max") identifiers /// - public static Task CreateStoryAlbumAsync( - this IClient client, long storyPosterChatId = default, string name = default, int[] storyIds = default) + [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] + public int[] StoryIds { get; set; } + } + + /// + /// Creates an album of stories; requires can_edit_stories administrator right for supergroup and channel chats + /// + public static Task CreateStoryAlbumAsync( + this IClient client, long storyPosterChatId = default, string name = default, int[] storyIds = default) + { + return client.ExecuteAsync(new CreateStoryAlbum { - return client.ExecuteAsync(new CreateStoryAlbum - { - StoryPosterChatId = storyPosterChatId, Name = name, StoryIds = storyIds - }); - } + StoryPosterChatId = storyPosterChatId, Name = name, StoryIds = storyIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateSupergroupChat.cs b/TdLib.Api/Functions/CreateSupergroupChat.cs index 0739c65d..da45dfd7 100644 --- a/TdLib.Api/Functions/CreateSupergroupChat.cs +++ b/TdLib.Api/Functions/CreateSupergroupChat.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an existing chat corresponding to a known supergroup or channel /// - public static partial class TdApi + public class CreateSupergroupChat : Function { /// - /// Returns an existing chat corresponding to a known supergroup or channel + /// Data type for serialization /// - public class CreateSupergroupChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createSupergroupChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createSupergroupChat"; - /// - /// Supergroup or channel identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force")] - public bool Force { get; set; } - } + /// + /// Supergroup or channel identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Returns an existing chat corresponding to a known supergroup or channel + /// Pass true to create the chat without a network request. In this case all information about the chat except its type, title and photo can be incorrect /// - public static Task CreateSupergroupChatAsync( - this IClient client, long supergroupId = default, bool force = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("force")] + public bool Force { get; set; } + } + + /// + /// Returns an existing chat corresponding to a known supergroup or channel + /// + public static Task CreateSupergroupChatAsync( + this IClient client, long supergroupId = default, bool force = default) + { + return client.ExecuteAsync(new CreateSupergroupChat { - return client.ExecuteAsync(new CreateSupergroupChat - { - SupergroupId = supergroupId, Force = force - }); - } + SupergroupId = supergroupId, Force = force + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateTemporaryPassword.cs b/TdLib.Api/Functions/CreateTemporaryPassword.cs index ee00fef6..a83d4d3c 100644 --- a/TdLib.Api/Functions/CreateTemporaryPassword.cs +++ b/TdLib.Api/Functions/CreateTemporaryPassword.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new temporary password for processing payments /// - public static partial class TdApi + public class CreateTemporaryPassword : Function { /// - /// Creates a new temporary password for processing payments + /// Data type for serialization /// - public class CreateTemporaryPassword : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createTemporaryPassword"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "createTemporaryPassword"; - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time during which the temporary password will be valid, in seconds; must be between 60 and 86400 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("valid_for")] - public int ValidFor { get; set; } - } + /// + /// The 2-step verification password of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } /// - /// Creates a new temporary password for processing payments + /// Time during which the temporary password will be valid, in seconds; must be between 60 and 86400 /// - public static Task CreateTemporaryPasswordAsync( - this IClient client, string password = default, int validFor = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("valid_for")] + public int ValidFor { get; set; } + } + + /// + /// Creates a new temporary password for processing payments + /// + public static Task CreateTemporaryPasswordAsync( + this IClient client, string password = default, int validFor = default) + { + return client.ExecuteAsync(new CreateTemporaryPassword { - return client.ExecuteAsync(new CreateTemporaryPassword - { - Password = password, ValidFor = validFor - }); - } + Password = password, ValidFor = validFor + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateTextCompositionStyle.cs b/TdLib.Api/Functions/CreateTextCompositionStyle.cs index bdb40e39..45036623 100644 --- a/TdLib.Api/Functions/CreateTextCompositionStyle.cs +++ b/TdLib.Api/Functions/CreateTextCompositionStyle.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a custom text composition style. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached /// - public static partial class TdApi + public class CreateTextCompositionStyle : Function { /// - /// Creates a custom text composition style. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached + /// Data type for serialization /// - public class CreateTextCompositionStyle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createTextCompositionStyle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createTextCompositionStyle"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Title of the style; 1-getOption("text_composition_style_title_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the custom emoji corresponding to the style - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } + /// + /// Title of the style; 1-getOption("text_composition_style_title_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prompt")] - public string Prompt { get; set; } + /// + /// Identifier of the custom emoji corresponding to the style + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } - /// - /// Pass true if the current user must be shown as the creator of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_creator")] - public bool ShowCreator { get; set; } - } + /// + /// Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prompt")] + public string Prompt { get; set; } /// - /// Creates a custom text composition style. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached + /// Pass true if the current user must be shown as the creator of the style /// - public static Task CreateTextCompositionStyleAsync( - this IClient client, string title = default, long customEmojiId = default, string prompt = default, bool showCreator = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("show_creator")] + public bool ShowCreator { get; set; } + } + + /// + /// Creates a custom text composition style. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached + /// + public static Task CreateTextCompositionStyleAsync( + this IClient client, string title = default, long customEmojiId = default, string prompt = default, bool showCreator = default) + { + return client.ExecuteAsync(new CreateTextCompositionStyle { - return client.ExecuteAsync(new CreateTextCompositionStyle - { - Title = title, CustomEmojiId = customEmojiId, Prompt = prompt, ShowCreator = showCreator - }); - } + Title = title, CustomEmojiId = customEmojiId, Prompt = prompt, ShowCreator = showCreator + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateTonConnectSession.cs b/TdLib.Api/Functions/CreateTonConnectSession.cs new file mode 100644 index 00000000..e5a44ec8 --- /dev/null +++ b/TdLib.Api/Functions/CreateTonConnectSession.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Creates a TON Connect session; can be used only if getOption("can_use_ton_wallet") + /// + public class CreateTonConnectSession : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "createTonConnectSession"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Hex-encoded public X25519 key of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dapp_client_id")] + public string DappClientId { get; set; } + + /// + /// URL of the manifest of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manifest_url")] + public string ManifestUrl { get; set; } + } + + /// + /// Creates a TON Connect session; can be used only if getOption("can_use_ton_wallet") + /// + public static Task CreateTonConnectSessionAsync( + this IClient client, string dappClientId = default, string manifestUrl = default) + { + return client.ExecuteAsync(new CreateTonConnectSession + { + DappClientId = dappClientId, ManifestUrl = manifestUrl + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateUserTonWallet.cs b/TdLib.Api/Functions/CreateUserTonWallet.cs new file mode 100644 index 00000000..4ab00322 --- /dev/null +++ b/TdLib.Api/Functions/CreateUserTonWallet.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Creates a TON wallet for the specified regular user; can be used only if getOption("can_use_ton_wallet"). The current user must have positive TON wallet balance + /// + public class CreateUserTonWallet : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "createUserTonWallet"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Creates a TON wallet for the specified regular user; can be used only if getOption("can_use_ton_wallet"). The current user must have positive TON wallet balance + /// + public static Task CreateUserTonWalletAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new CreateUserTonWallet + { + UserId = userId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/CreateVideoChat.cs b/TdLib.Api/Functions/CreateVideoChat.cs index afebe975..37263d0d 100644 --- a/TdLib.Api/Functions/CreateVideoChat.cs +++ b/TdLib.Api/Functions/CreateVideoChat.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right /// - public static partial class TdApi + public class CreateVideoChat : Function { /// - /// Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right + /// Data type for serialization /// - public class CreateVideoChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createVideoChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createVideoChat"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of a chat in which the video chat will be created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Group call title; if empty, chat title will be used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Identifier of a chat in which the video chat will be created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 to start the video chat immediately. The date must be at least 10 seconds and at most 8 days in the future - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } + /// + /// Group call title; if empty, chat title will be used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Pass true to create an RTMP stream instead of an ordinary video chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtmp_stream")] - public bool IsRtmpStream { get; set; } - } + /// + /// Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 to start the video chat immediately. The date must be at least 10 seconds and at most 8 days in the future + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } /// - /// Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right + /// Pass true to create an RTMP stream instead of an ordinary video chat /// - public static Task CreateVideoChatAsync( - this IClient client, long chatId = default, string title = default, int startDate = default, bool isRtmpStream = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtmp_stream")] + public bool IsRtmpStream { get; set; } + } + + /// + /// Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right + /// + public static Task CreateVideoChatAsync( + this IClient client, long chatId = default, string title = default, int startDate = default, bool isRtmpStream = default) + { + return client.ExecuteAsync(new CreateVideoChat { - return client.ExecuteAsync(new CreateVideoChat - { - ChatId = chatId, Title = title, StartDate = startDate, IsRtmpStream = isRtmpStream - }); - } + ChatId = chatId, Title = title, StartDate = startDate, IsRtmpStream = isRtmpStream + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeclineGroupCallInvitation.cs b/TdLib.Api/Functions/DeclineGroupCallInvitation.cs index 5ea581bb..1e2069e5 100644 --- a/TdLib.Api/Functions/DeclineGroupCallInvitation.cs +++ b/TdLib.Api/Functions/DeclineGroupCallInvitation.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Declines an invitation to an active group call via messageGroupCall. Can be called both by the sender and the receiver of the invitation /// - public static partial class TdApi + public class DeclineGroupCallInvitation : Function { /// - /// Declines an invitation to an active group call via messageGroupCall. Can be called both by the sender and the receiver of the invitation + /// Data type for serialization /// - public class DeclineGroupCallInvitation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "declineGroupCallInvitation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "declineGroupCallInvitation"; - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message of the type messageGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Declines an invitation to an active group call via messageGroupCall. Can be called both by the sender and the receiver of the invitation + /// Identifier of the message of the type messageGroupCall /// - public static Task DeclineGroupCallInvitationAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Declines an invitation to an active group call via messageGroupCall. Can be called both by the sender and the receiver of the invitation + /// + public static Task DeclineGroupCallInvitationAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new DeclineGroupCallInvitation { - return client.ExecuteAsync(new DeclineGroupCallInvitation - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeclineOauthRequest.cs b/TdLib.Api/Functions/DeclineOauthRequest.cs index cccc6944..78493564 100644 --- a/TdLib.Api/Functions/DeclineOauthRequest.cs +++ b/TdLib.Api/Functions/DeclineOauthRequest.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Declines an OAuth authorization request /// - public static partial class TdApi + public class DeclineOauthRequest : Function { /// - /// Declines an OAuth authorization request + /// Data type for serialization /// - public class DeclineOauthRequest : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "declineOauthRequest"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "declineOauthRequest"; - /// - /// URL of the OAuth deep link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Declines an OAuth authorization request + /// URL of the OAuth deep link /// - public static Task DeclineOauthRequestAsync( - this IClient client, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Declines an OAuth authorization request + /// + public static Task DeclineOauthRequestAsync( + this IClient client, string url = default) + { + return client.ExecuteAsync(new DeclineOauthRequest { - return client.ExecuteAsync(new DeclineOauthRequest - { - Url = url - }); - } + Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeclineSuggestedPost.cs b/TdLib.Api/Functions/DeclineSuggestedPost.cs index a6828af8..8eef99a5 100644 --- a/TdLib.Api/Functions/DeclineSuggestedPost.cs +++ b/TdLib.Api/Functions/DeclineSuggestedPost.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Declines a suggested post in a channel direct messages chat /// - public static partial class TdApi + public class DeclineSuggestedPost : Function { /// - /// Declines a suggested post in a channel direct messages chat + /// Data type for serialization /// - public class DeclineSuggestedPost : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "declineSuggestedPost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "declineSuggestedPost"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the suggested post. Use messageProperties.can_be_declined to check whether the suggested post can be declined - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Comment for the creator of the suggested post; 0-128 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("comment")] - public string Comment { get; set; } - } + /// + /// Identifier of the message with the suggested post. Use messageProperties.can_be_declined to check whether the suggested post can be declined + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Declines a suggested post in a channel direct messages chat + /// Comment for the creator of the suggested post; 0-128 characters /// - public static Task DeclineSuggestedPostAsync( - this IClient client, long chatId = default, long messageId = default, string comment = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + } + + /// + /// Declines a suggested post in a channel direct messages chat + /// + public static Task DeclineSuggestedPostAsync( + this IClient client, long chatId = default, long messageId = default, string comment = default) + { + return client.ExecuteAsync(new DeclineSuggestedPost { - return client.ExecuteAsync(new DeclineSuggestedPost - { - ChatId = chatId, MessageId = messageId, Comment = comment - }); - } + ChatId = chatId, MessageId = messageId, Comment = comment + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DecryptGroupCallData.cs b/TdLib.Api/Functions/DecryptGroupCallData.cs index 9f8617d1..068e6a89 100644 --- a/TdLib.Api/Functions/DecryptGroupCallData.cs +++ b/TdLib.Api/Functions/DecryptGroupCallData.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Decrypts group call data received by tgcalls /// - public static partial class TdApi + public class DecryptGroupCallData : Function { /// - /// Decrypts group call data received by tgcalls + /// Data type for serialization /// - public class DecryptGroupCallData : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "decryptGroupCallData"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "decryptGroupCallData"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier. The call must not be a video chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call participant, which sent the data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Group call identifier. The call must not be a video chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Data channel for which data was encrypted; pass null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data_channel")] - public GroupCallDataChannel DataChannel { get; set; } + /// + /// Identifier of the group call participant, which sent the data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } - /// - /// Data to decrypt - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// Data channel for which data was encrypted; pass null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data_channel")] + public GroupCallDataChannel DataChannel { get; set; } /// - /// Decrypts group call data received by tgcalls + /// Data to decrypt /// - public static Task DecryptGroupCallDataAsync( - this IClient client, int groupCallId = default, MessageSender participantId = default, GroupCallDataChannel dataChannel = default, byte[] data = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } + } + + /// + /// Decrypts group call data received by tgcalls + /// + public static Task DecryptGroupCallDataAsync( + this IClient client, int groupCallId = default, MessageSender participantId = default, GroupCallDataChannel dataChannel = default, byte[] data = default) + { + return client.ExecuteAsync(new DecryptGroupCallData { - return client.ExecuteAsync(new DecryptGroupCallData - { - GroupCallId = groupCallId, ParticipantId = participantId, DataChannel = dataChannel, Data = data - }); - } + GroupCallId = groupCallId, ParticipantId = participantId, DataChannel = dataChannel, Data = data + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteAccount.cs b/TdLib.Api/Functions/DeleteAccount.cs index 8b875672..d18a6756 100644 --- a/TdLib.Api/Functions/DeleteAccount.cs +++ b/TdLib.Api/Functions/DeleteAccount.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. + /// Can be called before authorization when the current authorization state is authorizationStateWaitPassword /// - public static partial class TdApi + public class DeleteAccount : Function { /// - /// Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. - /// Can be called before authorization when the current authorization state is authorizationStateWaitPassword + /// Data type for serialization /// - public class DeleteAccount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteAccount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteAccount"; - /// - /// The reason why the account was deleted; optional - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public string Reason { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 2-step verification password of the current user. If the current user isn't authorized, then an empty string can be passed and account deletion can be canceled within one week - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// The reason why the account was deleted; optional + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public string Reason { get; set; } /// - /// Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. - /// Can be called before authorization when the current authorization state is authorizationStateWaitPassword + /// The 2-step verification password of the current user. If the current user isn't authorized, then an empty string can be passed and account deletion can be canceled within one week /// - public static Task DeleteAccountAsync( - this IClient client, string reason = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. + /// Can be called before authorization when the current authorization state is authorizationStateWaitPassword + /// + public static Task DeleteAccountAsync( + this IClient client, string reason = default, string password = default) + { + return client.ExecuteAsync(new DeleteAccount { - return client.ExecuteAsync(new DeleteAccount - { - Reason = reason, Password = password - }); - } + Reason = reason, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteAllCallMessages.cs b/TdLib.Api/Functions/DeleteAllCallMessages.cs index 2de6842a..70f8d37d 100644 --- a/TdLib.Api/Functions/DeleteAllCallMessages.cs +++ b/TdLib.Api/Functions/DeleteAllCallMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all call messages /// - public static partial class TdApi + public class DeleteAllCallMessages : Function { /// - /// Deletes all call messages + /// Data type for serialization /// - public class DeleteAllCallMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteAllCallMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteAllCallMessages"; - /// - /// Pass true to delete the messages for all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revoke")] - public bool Revoke { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes all call messages + /// Pass true to delete the messages for all users /// - public static Task DeleteAllCallMessagesAsync( - this IClient client, bool revoke = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("revoke")] + public bool Revoke { get; set; } + } + + /// + /// Deletes all call messages + /// + public static Task DeleteAllCallMessagesAsync( + this IClient client, bool revoke = default) + { + return client.ExecuteAsync(new DeleteAllCallMessages { - return client.ExecuteAsync(new DeleteAllCallMessages - { - Revoke = revoke - }); - } + Revoke = revoke + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteAllChatWelcomeMessages.cs b/TdLib.Api/Functions/DeleteAllChatWelcomeMessages.cs index f28155dd..c0581dfd 100644 --- a/TdLib.Api/Functions/DeleteAllChatWelcomeMessages.cs +++ b/TdLib.Api/Functions/DeleteAllChatWelcomeMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat /// - public static partial class TdApi + public class DeleteAllChatWelcomeMessages : Function { /// - /// Deletes all welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat + /// Data type for serialization /// - public class DeleteAllChatWelcomeMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteAllChatWelcomeMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteAllChatWelcomeMessages"; - /// - /// The identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes all welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat + /// The identifier of the chat /// - public static Task DeleteAllChatWelcomeMessagesAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Deletes all welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat + /// + public static Task DeleteAllChatWelcomeMessagesAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new DeleteAllChatWelcomeMessages { - return client.ExecuteAsync(new DeleteAllChatWelcomeMessages - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteAllRecentMessageReactionsFromSender.cs b/TdLib.Api/Functions/DeleteAllRecentMessageReactionsFromSender.cs index 9b0133aa..a44d7946 100644 --- a/TdLib.Api/Functions/DeleteAllRecentMessageReactionsFromSender.cs +++ b/TdLib.Api/Functions/DeleteAllRecentMessageReactionsFromSender.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all recent reactions added by the specified sender in a chat. Supported only for basic groups and supergroups; requires can_delete_messages administrator right /// - public static partial class TdApi + public class DeleteAllRecentMessageReactionsFromSender : Function { /// - /// Deletes all recent reactions added by the specified sender in a chat. Supported only for basic groups and supergroups; requires can_delete_messages administrator right + /// Data type for serialization /// - public class DeleteAllRecentMessageReactionsFromSender : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteAllRecentMessageReactionsFromSender"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteAllRecentMessageReactionsFromSender"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sender of reactions to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes all recent reactions added by the specified sender in a chat. Supported only for basic groups and supergroups; requires can_delete_messages administrator right + /// Identifier of the sender of reactions to delete /// - public static Task DeleteAllRecentMessageReactionsFromSenderAsync( - this IClient client, long chatId = default, MessageSender senderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + } + + /// + /// Deletes all recent reactions added by the specified sender in a chat. Supported only for basic groups and supergroups; requires can_delete_messages administrator right + /// + public static Task DeleteAllRecentMessageReactionsFromSenderAsync( + this IClient client, long chatId = default, MessageSender senderId = default) + { + return client.ExecuteAsync(new DeleteAllRecentMessageReactionsFromSender { - return client.ExecuteAsync(new DeleteAllRecentMessageReactionsFromSender - { - ChatId = chatId, SenderId = senderId - }); - } + ChatId = chatId, SenderId = senderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteAllRevokedChatInviteLinks.cs b/TdLib.Api/Functions/DeleteAllRevokedChatInviteLinks.cs index 74a61ee5..a6991206 100644 --- a/TdLib.Api/Functions/DeleteAllRevokedChatInviteLinks.cs +++ b/TdLib.Api/Functions/DeleteAllRevokedChatInviteLinks.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links /// - public static partial class TdApi + public class DeleteAllRevokedChatInviteLinks : Function { /// - /// Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// Data type for serialization /// - public class DeleteAllRevokedChatInviteLinks : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteAllRevokedChatInviteLinks"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteAllRevokedChatInviteLinks"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of a chat administrator, which links will be deleted. Must be an identifier of the current user for non-owner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_user_id")] - public long CreatorUserId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// User identifier of a chat administrator, which links will be deleted. Must be an identifier of the current user for non-owner /// - public static Task DeleteAllRevokedChatInviteLinksAsync( - this IClient client, long chatId = default, long creatorUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_user_id")] + public long CreatorUserId { get; set; } + } + + /// + /// Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// + public static Task DeleteAllRevokedChatInviteLinksAsync( + this IClient client, long chatId = default, long creatorUserId = default) + { + return client.ExecuteAsync(new DeleteAllRevokedChatInviteLinks { - return client.ExecuteAsync(new DeleteAllRevokedChatInviteLinks - { - ChatId = chatId, CreatorUserId = creatorUserId - }); - } + ChatId = chatId, CreatorUserId = creatorUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteBotMediaPreviews.cs b/TdLib.Api/Functions/DeleteBotMediaPreviews.cs index 3d11ae27..3f330804 100644 --- a/TdLib.Api/Functions/DeleteBotMediaPreviews.cs +++ b/TdLib.Api/Functions/DeleteBotMediaPreviews.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes media previews from the list of media previews of a bot /// - public static partial class TdApi + public class DeleteBotMediaPreviews : Function { /// - /// Deletes media previews from the list of media previews of a bot + /// Data type for serialization /// - public class DeleteBotMediaPreviews : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteBotMediaPreviews"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteBotMediaPreviews"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot. The bot must be owned and must have the main Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Language code of the media previews to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Identifier of the target bot. The bot must be owned and must have the main Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// File identifiers of the media to delete - /// - [JsonProperty("file_ids", ItemConverterType = typeof(Converter))] - public int[] FileIds { get; set; } - } + /// + /// Language code of the media previews to delete + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Deletes media previews from the list of media previews of a bot + /// File identifiers of the media to delete /// - public static Task DeleteBotMediaPreviewsAsync( - this IClient client, long botUserId = default, string languageCode = default, int[] fileIds = default) + [JsonProperty("file_ids", ItemConverterType = typeof(Converter))] + public int[] FileIds { get; set; } + } + + /// + /// Deletes media previews from the list of media previews of a bot + /// + public static Task DeleteBotMediaPreviewsAsync( + this IClient client, long botUserId = default, string languageCode = default, int[] fileIds = default) + { + return client.ExecuteAsync(new DeleteBotMediaPreviews { - return client.ExecuteAsync(new DeleteBotMediaPreviews - { - BotUserId = botUserId, LanguageCode = languageCode, FileIds = fileIds - }); - } + BotUserId = botUserId, LanguageCode = languageCode, FileIds = fileIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteBotSecondaryUsername.cs b/TdLib.Api/Functions/DeleteBotSecondaryUsername.cs new file mode 100644 index 00000000..c1cbc4a4 --- /dev/null +++ b/TdLib.Api/Functions/DeleteBotSecondaryUsername.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Removes a secondary username from a bot. Can be called only if userTypeBot.can_be_edited == true and the bot has a secondary username + /// + public class DeleteBotSecondaryUsername : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteBotSecondaryUsername"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Removes a secondary username from a bot. Can be called only if userTypeBot.can_be_edited == true and the bot has a secondary username + /// + public static Task DeleteBotSecondaryUsernameAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new DeleteBotSecondaryUsername + { + BotUserId = botUserId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteBusinessChatLink.cs b/TdLib.Api/Functions/DeleteBusinessChatLink.cs index f43c646f..d9d0ed14 100644 --- a/TdLib.Api/Functions/DeleteBusinessChatLink.cs +++ b/TdLib.Api/Functions/DeleteBusinessChatLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a business chat link of the current account /// - public static partial class TdApi + public class DeleteBusinessChatLink : Function { /// - /// Deletes a business chat link of the current account + /// Data type for serialization /// - public class DeleteBusinessChatLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteBusinessChatLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteBusinessChatLink"; - /// - /// The link to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes a business chat link of the current account + /// The link to delete /// - public static Task DeleteBusinessChatLinkAsync( - this IClient client, string link = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } + } + + /// + /// Deletes a business chat link of the current account + /// + public static Task DeleteBusinessChatLinkAsync( + this IClient client, string link = default) + { + return client.ExecuteAsync(new DeleteBusinessChatLink { - return client.ExecuteAsync(new DeleteBusinessChatLink - { - Link = link - }); - } + Link = link + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteBusinessConnectedBot.cs b/TdLib.Api/Functions/DeleteBusinessConnectedBot.cs index 73f5477f..c9ee6c62 100644 --- a/TdLib.Api/Functions/DeleteBusinessConnectedBot.cs +++ b/TdLib.Api/Functions/DeleteBusinessConnectedBot.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes the business bot that is connected to the current user account /// - public static partial class TdApi + public class DeleteBusinessConnectedBot : Function { /// - /// Deletes the business bot that is connected to the current user account + /// Data type for serialization /// - public class DeleteBusinessConnectedBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteBusinessConnectedBot"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteBusinessConnectedBot"; - /// - /// Unique user identifier for the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes the business bot that is connected to the current user account + /// Unique user identifier for the bot /// - public static Task DeleteBusinessConnectedBotAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Deletes the business bot that is connected to the current user account + /// + public static Task DeleteBusinessConnectedBotAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new DeleteBusinessConnectedBot { - return client.ExecuteAsync(new DeleteBusinessConnectedBot - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteBusinessMessages.cs b/TdLib.Api/Functions/DeleteBusinessMessages.cs index 2d472790..37765a4b 100644 --- a/TdLib.Api/Functions/DeleteBusinessMessages.cs +++ b/TdLib.Api/Functions/DeleteBusinessMessages.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes messages on behalf of a business account; for bots only /// - public static partial class TdApi + public class DeleteBusinessMessages : Function { /// - /// Deletes messages on behalf of a business account; for bots only + /// Data type for serialization /// - public class DeleteBusinessMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteBusinessMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteBusinessMessages"; - /// - /// Unique identifier of business connection through which the messages were received - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the messages - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } - } + /// + /// Unique identifier of business connection through which the messages were received + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Deletes messages on behalf of a business account; for bots only + /// Identifier of the messages /// - public static Task DeleteBusinessMessagesAsync( - this IClient client, string businessConnectionId = default, long[] messageIds = default) + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } + } + + /// + /// Deletes messages on behalf of a business account; for bots only + /// + public static Task DeleteBusinessMessagesAsync( + this IClient client, string businessConnectionId = default, long[] messageIds = default) + { + return client.ExecuteAsync(new DeleteBusinessMessages { - return client.ExecuteAsync(new DeleteBusinessMessages - { - BusinessConnectionId = businessConnectionId, MessageIds = messageIds - }); - } + BusinessConnectionId = businessConnectionId, MessageIds = messageIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteBusinessStory.cs b/TdLib.Api/Functions/DeleteBusinessStory.cs index 20c5335b..fcb827a7 100644 --- a/TdLib.Api/Functions/DeleteBusinessStory.cs +++ b/TdLib.Api/Functions/DeleteBusinessStory.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a story posted by the bot on behalf of a business account; for bots only /// - public static partial class TdApi + public class DeleteBusinessStory : Function { /// - /// Deletes a story posted by the bot on behalf of a business account; for bots only + /// Data type for serialization /// - public class DeleteBusinessStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteBusinessStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteBusinessStory"; - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Unique identifier of business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Deletes a story posted by the bot on behalf of a business account; for bots only + /// Identifier of the story to delete /// - public static Task DeleteBusinessStoryAsync( - this IClient client, string businessConnectionId = default, int storyId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } + } + + /// + /// Deletes a story posted by the bot on behalf of a business account; for bots only + /// + public static Task DeleteBusinessStoryAsync( + this IClient client, string businessConnectionId = default, int storyId = default) + { + return client.ExecuteAsync(new DeleteBusinessStory { - return client.ExecuteAsync(new DeleteBusinessStory - { - BusinessConnectionId = businessConnectionId, StoryId = storyId - }); - } + BusinessConnectionId = businessConnectionId, StoryId = storyId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChat.cs b/TdLib.Api/Functions/DeleteChat.cs index 3b58eb19..d6b800e0 100644 --- a/TdLib.Api/Functions/DeleteChat.cs +++ b/TdLib.Api/Functions/DeleteChat.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. + /// Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat /// - public static partial class TdApi + public class DeleteChat : Function { /// - /// Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. - /// Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat + /// Data type for serialization /// - public class DeleteChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. - /// Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat + /// Chat identifier /// - public static Task DeleteChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. + /// Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat + /// + public static Task DeleteChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new DeleteChat { - return client.ExecuteAsync(new DeleteChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatBackground.cs b/TdLib.Api/Functions/DeleteChatBackground.cs index 281e6c1c..64b86ea4 100644 --- a/TdLib.Api/Functions/DeleteChatBackground.cs +++ b/TdLib.Api/Functions/DeleteChatBackground.cs @@ -3,57 +3,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes background in a specific chat /// - public static partial class TdApi + public class DeleteChatBackground : Function { /// - /// Deletes background in a specific chat + /// Data type for serialization /// - public class DeleteChatBackground : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatBackground"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatBackground"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to restore previously set background. Can be used only in private and secret chats with non-deleted users if userFullInfo.set_chat_background == true. - /// Supposed to be used from messageChatSetBackground messages with the currently set background that was set for both sides by the other user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restore_previous")] - public bool RestorePrevious { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes background in a specific chat + /// Pass true to restore previously set background. Can be used only in private and secret chats with non-deleted users if userFullInfo.set_chat_background == true. + /// Supposed to be used from messageChatSetBackground messages with the currently set background that was set for both sides by the other user /// - public static Task DeleteChatBackgroundAsync( - this IClient client, long chatId = default, bool restorePrevious = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("restore_previous")] + public bool RestorePrevious { get; set; } + } + + /// + /// Deletes background in a specific chat + /// + public static Task DeleteChatBackgroundAsync( + this IClient client, long chatId = default, bool restorePrevious = default) + { + return client.ExecuteAsync(new DeleteChatBackground { - return client.ExecuteAsync(new DeleteChatBackground - { - ChatId = chatId, RestorePrevious = restorePrevious - }); - } + ChatId = chatId, RestorePrevious = restorePrevious + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatFolder.cs b/TdLib.Api/Functions/DeleteChatFolder.cs index 5195a123..dd7e711f 100644 --- a/TdLib.Api/Functions/DeleteChatFolder.cs +++ b/TdLib.Api/Functions/DeleteChatFolder.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes existing chat folder /// - public static partial class TdApi + public class DeleteChatFolder : Function { /// - /// Deletes existing chat folder + /// Data type for serialization /// - public class DeleteChatFolder : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatFolder"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatFolder"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the chats to leave. The chats must be pinned or always included in the folder - /// - [JsonProperty("leave_chat_ids", ItemConverterType = typeof(Converter))] - public long[] LeaveChatIds { get; set; } - } + /// + /// Chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } /// - /// Deletes existing chat folder + /// Identifiers of the chats to leave. The chats must be pinned or always included in the folder /// - public static Task DeleteChatFolderAsync( - this IClient client, int chatFolderId = default, long[] leaveChatIds = default) + [JsonProperty("leave_chat_ids", ItemConverterType = typeof(Converter))] + public long[] LeaveChatIds { get; set; } + } + + /// + /// Deletes existing chat folder + /// + public static Task DeleteChatFolderAsync( + this IClient client, int chatFolderId = default, long[] leaveChatIds = default) + { + return client.ExecuteAsync(new DeleteChatFolder { - return client.ExecuteAsync(new DeleteChatFolder - { - ChatFolderId = chatFolderId, LeaveChatIds = leaveChatIds - }); - } + ChatFolderId = chatFolderId, LeaveChatIds = leaveChatIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatFolderInviteLink.cs b/TdLib.Api/Functions/DeleteChatFolderInviteLink.cs index 486a93f1..75566976 100644 --- a/TdLib.Api/Functions/DeleteChatFolderInviteLink.cs +++ b/TdLib.Api/Functions/DeleteChatFolderInviteLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes an invite link for a chat folder /// - public static partial class TdApi + public class DeleteChatFolderInviteLink : Function { /// - /// Deletes an invite link for a chat folder + /// Data type for serialization /// - public class DeleteChatFolderInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatFolderInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatFolderInviteLink"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } /// - /// Deletes an invite link for a chat folder + /// Invite link to be deleted /// - public static Task DeleteChatFolderInviteLinkAsync( - this IClient client, int chatFolderId = default, string inviteLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + } + + /// + /// Deletes an invite link for a chat folder + /// + public static Task DeleteChatFolderInviteLinkAsync( + this IClient client, int chatFolderId = default, string inviteLink = default) + { + return client.ExecuteAsync(new DeleteChatFolderInviteLink { - return client.ExecuteAsync(new DeleteChatFolderInviteLink - { - ChatFolderId = chatFolderId, InviteLink = inviteLink - }); - } + ChatFolderId = chatFolderId, InviteLink = inviteLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatHistory.cs b/TdLib.Api/Functions/DeleteChatHistory.cs index 2c62381e..c9c251cb 100644 --- a/TdLib.Api/Functions/DeleteChatHistory.cs +++ b/TdLib.Api/Functions/DeleteChatHistory.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat /// - public static partial class TdApi + public class DeleteChatHistory : Function { /// - /// Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat + /// Data type for serialization /// - public class DeleteChatHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatHistory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatHistory"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to remove the chat from all chat lists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("remove_from_chat_list")] - public bool RemoveFromChatList { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to delete chat history for all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revoke")] - public bool Revoke { get; set; } - } + /// + /// Pass true to remove the chat from all chat lists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("remove_from_chat_list")] + public bool RemoveFromChatList { get; set; } /// - /// Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat + /// Pass true to delete chat history for all users /// - public static Task DeleteChatHistoryAsync( - this IClient client, long chatId = default, bool removeFromChatList = default, bool revoke = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("revoke")] + public bool Revoke { get; set; } + } + + /// + /// Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat + /// + public static Task DeleteChatHistoryAsync( + this IClient client, long chatId = default, bool removeFromChatList = default, bool revoke = default) + { + return client.ExecuteAsync(new DeleteChatHistory { - return client.ExecuteAsync(new DeleteChatHistory - { - ChatId = chatId, RemoveFromChatList = removeFromChatList, Revoke = revoke - }); - } + ChatId = chatId, RemoveFromChatList = removeFromChatList, Revoke = revoke + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatMessagesByDate.cs b/TdLib.Api/Functions/DeleteChatMessagesByDate.cs index 83c3bd3e..f18fab39 100644 --- a/TdLib.Api/Functions/DeleteChatMessagesByDate.cs +++ b/TdLib.Api/Functions/DeleteChatMessagesByDate.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted /// - public static partial class TdApi + public class DeleteChatMessagesByDate : Function { /// - /// Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted + /// Data type for serialization /// - public class DeleteChatMessagesByDate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatMessagesByDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatMessagesByDate"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The minimum date of the messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_date")] - public int MinDate { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The maximum date of the messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_date")] - public int MaxDate { get; set; } + /// + /// The minimum date of the messages to delete + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_date")] + public int MinDate { get; set; } - /// - /// Pass true to delete chat messages for all users; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revoke")] - public bool Revoke { get; set; } - } + /// + /// The maximum date of the messages to delete + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_date")] + public int MaxDate { get; set; } /// - /// Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted + /// Pass true to delete chat messages for all users; private chats only /// - public static Task DeleteChatMessagesByDateAsync( - this IClient client, long chatId = default, int minDate = default, int maxDate = default, bool revoke = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("revoke")] + public bool Revoke { get; set; } + } + + /// + /// Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted + /// + public static Task DeleteChatMessagesByDateAsync( + this IClient client, long chatId = default, int minDate = default, int maxDate = default, bool revoke = default) + { + return client.ExecuteAsync(new DeleteChatMessagesByDate { - return client.ExecuteAsync(new DeleteChatMessagesByDate - { - ChatId = chatId, MinDate = minDate, MaxDate = maxDate, Revoke = revoke - }); - } + ChatId = chatId, MinDate = minDate, MaxDate = maxDate, Revoke = revoke + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatMessagesBySender.cs b/TdLib.Api/Functions/DeleteChatMessagesBySender.cs index 4be476e5..03c545c2 100644 --- a/TdLib.Api/Functions/DeleteChatMessagesBySender.cs +++ b/TdLib.Api/Functions/DeleteChatMessagesBySender.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator right /// - public static partial class TdApi + public class DeleteChatMessagesBySender : Function { /// - /// Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator right + /// Data type for serialization /// - public class DeleteChatMessagesBySender : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatMessagesBySender"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatMessagesBySender"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sender of messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator right + /// Identifier of the sender of messages to delete /// - public static Task DeleteChatMessagesBySenderAsync( - this IClient client, long chatId = default, MessageSender senderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + } + + /// + /// Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator right + /// + public static Task DeleteChatMessagesBySenderAsync( + this IClient client, long chatId = default, MessageSender senderId = default) + { + return client.ExecuteAsync(new DeleteChatMessagesBySender { - return client.ExecuteAsync(new DeleteChatMessagesBySender - { - ChatId = chatId, SenderId = senderId - }); - } + ChatId = chatId, SenderId = senderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatReplyMarkup.cs b/TdLib.Api/Functions/DeleteChatReplyMarkup.cs index f0ff038e..8f32165d 100644 --- a/TdLib.Api/Functions/DeleteChatReplyMarkup.cs +++ b/TdLib.Api/Functions/DeleteChatReplyMarkup.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply markup has been used or dismissed /// - public static partial class TdApi + public class DeleteChatReplyMarkup : Function { /// - /// Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply markup has been used or dismissed + /// Data type for serialization /// - public class DeleteChatReplyMarkup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatReplyMarkup"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatReplyMarkup"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message identifier of the used keyboard - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply markup has been used or dismissed + /// The message identifier of the used keyboard /// - public static Task DeleteChatReplyMarkupAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply markup has been used or dismissed + /// + public static Task DeleteChatReplyMarkupAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new DeleteChatReplyMarkup { - return client.ExecuteAsync(new DeleteChatReplyMarkup - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteChatWelcomeMessage.cs b/TdLib.Api/Functions/DeleteChatWelcomeMessage.cs index b4664440..acb1d743 100644 --- a/TdLib.Api/Functions/DeleteChatWelcomeMessage.cs +++ b/TdLib.Api/Functions/DeleteChatWelcomeMessage.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat /// - public static partial class TdApi + public class DeleteChatWelcomeMessage : Function { /// - /// Deletes a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat + /// Data type for serialization /// - public class DeleteChatWelcomeMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteChatWelcomeMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteChatWelcomeMessage"; - /// - /// The identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the welcome message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("welcome_message_id")] - public int WelcomeMessageId { get; set; } - } + /// + /// The identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat + /// The identifier of the welcome message /// - public static Task DeleteChatWelcomeMessageAsync( - this IClient client, long chatId = default, int welcomeMessageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("welcome_message_id")] + public int WelcomeMessageId { get; set; } + } + + /// + /// Deletes a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat + /// + public static Task DeleteChatWelcomeMessageAsync( + this IClient client, long chatId = default, int welcomeMessageId = default) + { + return client.ExecuteAsync(new DeleteChatWelcomeMessage { - return client.ExecuteAsync(new DeleteChatWelcomeMessage - { - ChatId = chatId, WelcomeMessageId = welcomeMessageId - }); - } + ChatId = chatId, WelcomeMessageId = welcomeMessageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteCommands.cs b/TdLib.Api/Functions/DeleteCommands.cs index e4a2bd1c..ee57b0ae 100644 --- a/TdLib.Api/Functions/DeleteCommands.cs +++ b/TdLib.Api/Functions/DeleteCommands.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes commands supported by the bot for the given user scope and language; for bots only /// - public static partial class TdApi + public class DeleteCommands : Function { /// - /// Deletes commands supported by the bot for the given user scope and language; for bots only + /// Data type for serialization /// - public class DeleteCommands : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteCommands"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteCommands"; - /// - /// The scope to which the commands are relevant; pass null to delete commands in the default bot command scope - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public BotCommandScope Scope { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code or an empty string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - } + /// + /// The scope to which the commands are relevant; pass null to delete commands in the default bot command scope + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public BotCommandScope Scope { get; set; } /// - /// Deletes commands supported by the bot for the given user scope and language; for bots only + /// A two-letter ISO 639-1 language code or an empty string /// - public static Task DeleteCommandsAsync( - this IClient client, BotCommandScope scope = default, string languageCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + } + + /// + /// Deletes commands supported by the bot for the given user scope and language; for bots only + /// + public static Task DeleteCommandsAsync( + this IClient client, BotCommandScope scope = default, string languageCode = default) + { + return client.ExecuteAsync(new DeleteCommands { - return client.ExecuteAsync(new DeleteCommands - { - Scope = scope, LanguageCode = languageCode - }); - } + Scope = scope, LanguageCode = languageCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteCommunity.cs b/TdLib.Api/Functions/DeleteCommunity.cs new file mode 100644 index 00000000..bb64c77e --- /dev/null +++ b/TdLib.Api/Functions/DeleteCommunity.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Deletes a community; requires owner privileges + /// + public class DeleteCommunity : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteCommunity"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } + } + + /// + /// Deletes a community; requires owner privileges + /// + public static Task DeleteCommunityAsync( + this IClient client, long communityId = default) + { + return client.ExecuteAsync(new DeleteCommunity + { + CommunityId = communityId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteDefaultBackground.cs b/TdLib.Api/Functions/DeleteDefaultBackground.cs index 7103407c..cd17044a 100644 --- a/TdLib.Api/Functions/DeleteDefaultBackground.cs +++ b/TdLib.Api/Functions/DeleteDefaultBackground.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes default background for chats /// - public static partial class TdApi + public class DeleteDefaultBackground : Function { /// - /// Deletes default background for chats + /// Data type for serialization /// - public class DeleteDefaultBackground : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteDefaultBackground"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteDefaultBackground"; - /// - /// Pass true if the background is deleted for a dark theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_dark_theme")] - public bool ForDarkTheme { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes default background for chats + /// Pass true if the background is deleted for a dark theme /// - public static Task DeleteDefaultBackgroundAsync( - this IClient client, bool forDarkTheme = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("for_dark_theme")] + public bool ForDarkTheme { get; set; } + } + + /// + /// Deletes default background for chats + /// + public static Task DeleteDefaultBackgroundAsync( + this IClient client, bool forDarkTheme = default) + { + return client.ExecuteAsync(new DeleteDefaultBackground { - return client.ExecuteAsync(new DeleteDefaultBackground - { - ForDarkTheme = forDarkTheme - }); - } + ForDarkTheme = forDarkTheme + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteDirectMessagesChatTopicHistory.cs b/TdLib.Api/Functions/DeleteDirectMessagesChatTopicHistory.cs index 5f977a4f..5ae11e2d 100644 --- a/TdLib.Api/Functions/DeleteDirectMessagesChatTopicHistory.cs +++ b/TdLib.Api/Functions/DeleteDirectMessagesChatTopicHistory.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages in the topic in a channel direct messages chat administered by the current user /// - public static partial class TdApi + public class DeleteDirectMessagesChatTopicHistory : Function { /// - /// Deletes all messages in the topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public class DeleteDirectMessagesChatTopicHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteDirectMessagesChatTopicHistory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteDirectMessagesChatTopicHistory"; - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic which messages will be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } - } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes all messages in the topic in a channel direct messages chat administered by the current user + /// Identifier of the topic which messages will be deleted /// - public static Task DeleteDirectMessagesChatTopicHistoryAsync( - this IClient client, long chatId = default, long topicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } + } + + /// + /// Deletes all messages in the topic in a channel direct messages chat administered by the current user + /// + public static Task DeleteDirectMessagesChatTopicHistoryAsync( + this IClient client, long chatId = default, long topicId = default) + { + return client.ExecuteAsync(new DeleteDirectMessagesChatTopicHistory { - return client.ExecuteAsync(new DeleteDirectMessagesChatTopicHistory - { - ChatId = chatId, TopicId = topicId - }); - } + ChatId = chatId, TopicId = topicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteDirectMessagesChatTopicMessagesByDate.cs b/TdLib.Api/Functions/DeleteDirectMessagesChatTopicMessagesByDate.cs index 722d5e8c..1ba489be 100644 --- a/TdLib.Api/Functions/DeleteDirectMessagesChatTopicMessagesByDate.cs +++ b/TdLib.Api/Functions/DeleteDirectMessagesChatTopicMessagesByDate.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages between the specified dates in the topic in a channel direct messages chat administered by the current user. Messages sent in the last 30 seconds will not be deleted /// - public static partial class TdApi + public class DeleteDirectMessagesChatTopicMessagesByDate : Function { /// - /// Deletes all messages between the specified dates in the topic in a channel direct messages chat administered by the current user. Messages sent in the last 30 seconds will not be deleted + /// Data type for serialization /// - public class DeleteDirectMessagesChatTopicMessagesByDate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteDirectMessagesChatTopicMessagesByDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteDirectMessagesChatTopicMessagesByDate"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic which messages will be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The minimum date of the messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_date")] - public int MinDate { get; set; } + /// + /// Identifier of the topic which messages will be deleted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } - /// - /// The maximum date of the messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_date")] - public int MaxDate { get; set; } - } + /// + /// The minimum date of the messages to delete + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_date")] + public int MinDate { get; set; } /// - /// Deletes all messages between the specified dates in the topic in a channel direct messages chat administered by the current user. Messages sent in the last 30 seconds will not be deleted + /// The maximum date of the messages to delete /// - public static Task DeleteDirectMessagesChatTopicMessagesByDateAsync( - this IClient client, long chatId = default, long topicId = default, int minDate = default, int maxDate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("max_date")] + public int MaxDate { get; set; } + } + + /// + /// Deletes all messages between the specified dates in the topic in a channel direct messages chat administered by the current user. Messages sent in the last 30 seconds will not be deleted + /// + public static Task DeleteDirectMessagesChatTopicMessagesByDateAsync( + this IClient client, long chatId = default, long topicId = default, int minDate = default, int maxDate = default) + { + return client.ExecuteAsync(new DeleteDirectMessagesChatTopicMessagesByDate { - return client.ExecuteAsync(new DeleteDirectMessagesChatTopicMessagesByDate - { - ChatId = chatId, TopicId = topicId, MinDate = minDate, MaxDate = maxDate - }); - } + ChatId = chatId, TopicId = topicId, MinDate = minDate, MaxDate = maxDate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteEphemeralMessage.cs b/TdLib.Api/Functions/DeleteEphemeralMessage.cs index e4d6bf4f..670cfcc1 100644 --- a/TdLib.Api/Functions/DeleteEphemeralMessage.cs +++ b/TdLib.Api/Functions/DeleteEphemeralMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes an ephemeral message; for bots only /// - public static partial class TdApi + public class DeleteEphemeralMessage : Function { /// - /// Deletes an ephemeral message; for bots only + /// Data type for serialization /// - public class DeleteEphemeralMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteEphemeralMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteEphemeralMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who received the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_user_id")] - public long ReceiverUserId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message to be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ephemeral_message_id")] - public int EphemeralMessageId { get; set; } - } + /// + /// Identifier of the user who received the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_user_id")] + public long ReceiverUserId { get; set; } /// - /// Deletes an ephemeral message; for bots only + /// Identifier of the message to be deleted /// - public static Task DeleteEphemeralMessageAsync( - this IClient client, long chatId = default, long receiverUserId = default, int ephemeralMessageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("ephemeral_message_id")] + public int EphemeralMessageId { get; set; } + } + + /// + /// Deletes an ephemeral message; for bots only + /// + public static Task DeleteEphemeralMessageAsync( + this IClient client, long chatId = default, long receiverUserId = default, int ephemeralMessageId = default) + { + return client.ExecuteAsync(new DeleteEphemeralMessage { - return client.ExecuteAsync(new DeleteEphemeralMessage - { - ChatId = chatId, ReceiverUserId = receiverUserId, EphemeralMessageId = ephemeralMessageId - }); - } + ChatId = chatId, ReceiverUserId = receiverUserId, EphemeralMessageId = ephemeralMessageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteFile.cs b/TdLib.Api/Functions/DeleteFile.cs index cb76cf61..d48f82d4 100644 --- a/TdLib.Api/Functions/DeleteFile.cs +++ b/TdLib.Api/Functions/DeleteFile.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a file from the TDLib file cache /// - public static partial class TdApi + public class DeleteFile : Function { /// - /// Deletes a file from the TDLib file cache + /// Data type for serialization /// - public class DeleteFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteFile"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteFile"; - /// - /// Identifier of the file to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes a file from the TDLib file cache + /// Identifier of the file to delete /// - public static Task DeleteFileAsync( - this IClient client, int fileId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } + } + + /// + /// Deletes a file from the TDLib file cache + /// + public static Task DeleteFileAsync( + this IClient client, int fileId = default) + { + return client.ExecuteAsync(new DeleteFile { - return client.ExecuteAsync(new DeleteFile - { - FileId = fileId - }); - } + FileId = fileId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteForumTopic.cs b/TdLib.Api/Functions/DeleteForumTopic.cs index 3a39c5c6..e59a72b5 100644 --- a/TdLib.Api/Functions/DeleteForumTopic.cs +++ b/TdLib.Api/Functions/DeleteForumTopic.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_delete_messages administrator right in the supergroup + /// unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages /// - public static partial class TdApi + public class DeleteForumTopic : Function { /// - /// Deletes all messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_delete_messages administrator right in the supergroup - /// unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages + /// Data type for serialization /// - public class DeleteForumTopic : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteForumTopic"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteForumTopic"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes all messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_delete_messages administrator right in the supergroup - /// unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages + /// Forum topic identifier /// - public static Task DeleteForumTopicAsync( - this IClient client, long chatId = default, int forumTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } + } + + /// + /// Deletes all messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_delete_messages administrator right in the supergroup + /// unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages + /// + public static Task DeleteForumTopicAsync( + this IClient client, long chatId = default, int forumTopicId = default) + { + return client.ExecuteAsync(new DeleteForumTopic { - return client.ExecuteAsync(new DeleteForumTopic - { - ChatId = chatId, ForumTopicId = forumTopicId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteGiftCollection.cs b/TdLib.Api/Functions/DeleteGiftCollection.cs index 99c0481e..119e3272 100644 --- a/TdLib.Api/Functions/DeleteGiftCollection.cs +++ b/TdLib.Api/Functions/DeleteGiftCollection.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat /// - public static partial class TdApi + public class DeleteGiftCollection : Function { /// - /// Deletes a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat + /// Data type for serialization /// - public class DeleteGiftCollection : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteGiftCollection"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteGiftCollection"; - /// - /// Identifier of the user or the channel chat that owns the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("collection_id")] - public int CollectionId { get; set; } - } + /// + /// Identifier of the user or the channel chat that owns the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } /// - /// Deletes a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat + /// Identifier of the gift collection /// - public static Task DeleteGiftCollectionAsync( - this IClient client, MessageSender ownerId = default, int collectionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_id")] + public int CollectionId { get; set; } + } + + /// + /// Deletes a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat + /// + public static Task DeleteGiftCollectionAsync( + this IClient client, MessageSender ownerId = default, int collectionId = default) + { + return client.ExecuteAsync(new DeleteGiftCollection { - return client.ExecuteAsync(new DeleteGiftCollection - { - OwnerId = ownerId, CollectionId = collectionId - }); - } + OwnerId = ownerId, CollectionId = collectionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteGroupCallMessages.cs b/TdLib.Api/Functions/DeleteGroupCallMessages.cs index 55db477d..bdb7d0cc 100644 --- a/TdLib.Api/Functions/DeleteGroupCallMessages.cs +++ b/TdLib.Api/Functions/DeleteGroupCallMessages.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes messages in a group call; for live story calls only. Requires groupCallMessage.can_be_deleted right /// - public static partial class TdApi + public class DeleteGroupCallMessages : Function { /// - /// Deletes messages in a group call; for live story calls only. Requires groupCallMessage.can_be_deleted right + /// Data type for serialization /// - public class DeleteGroupCallMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteGroupCallMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteGroupCallMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the messages to be deleted - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public int[] MessageIds { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Pass true to report the messages as spam - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("report_spam")] - public bool ReportSpam { get; set; } - } + /// + /// Identifiers of the messages to be deleted + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public int[] MessageIds { get; set; } /// - /// Deletes messages in a group call; for live story calls only. Requires groupCallMessage.can_be_deleted right + /// Pass true to report the messages as spam /// - public static Task DeleteGroupCallMessagesAsync( - this IClient client, int groupCallId = default, int[] messageIds = default, bool reportSpam = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("report_spam")] + public bool ReportSpam { get; set; } + } + + /// + /// Deletes messages in a group call; for live story calls only. Requires groupCallMessage.can_be_deleted right + /// + public static Task DeleteGroupCallMessagesAsync( + this IClient client, int groupCallId = default, int[] messageIds = default, bool reportSpam = default) + { + return client.ExecuteAsync(new DeleteGroupCallMessages { - return client.ExecuteAsync(new DeleteGroupCallMessages - { - GroupCallId = groupCallId, MessageIds = messageIds, ReportSpam = reportSpam - }); - } + GroupCallId = groupCallId, MessageIds = messageIds, ReportSpam = reportSpam + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteGroupCallMessagesBySender.cs b/TdLib.Api/Functions/DeleteGroupCallMessagesBySender.cs index 8ba439c0..8e3319e9 100644 --- a/TdLib.Api/Functions/DeleteGroupCallMessagesBySender.cs +++ b/TdLib.Api/Functions/DeleteGroupCallMessagesBySender.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages sent by the specified message sender in a group call; for live story calls only. Requires groupCall.can_delete_messages right /// - public static partial class TdApi + public class DeleteGroupCallMessagesBySender : Function { /// - /// Deletes all messages sent by the specified message sender in a group call; for live story calls only. Requires groupCall.can_delete_messages right + /// Data type for serialization /// - public class DeleteGroupCallMessagesBySender : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteGroupCallMessagesBySender"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteGroupCallMessagesBySender"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sender of messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Pass true to report the messages as spam - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("report_spam")] - public bool ReportSpam { get; set; } - } + /// + /// Identifier of the sender of messages to delete + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } /// - /// Deletes all messages sent by the specified message sender in a group call; for live story calls only. Requires groupCall.can_delete_messages right + /// Pass true to report the messages as spam /// - public static Task DeleteGroupCallMessagesBySenderAsync( - this IClient client, int groupCallId = default, MessageSender senderId = default, bool reportSpam = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("report_spam")] + public bool ReportSpam { get; set; } + } + + /// + /// Deletes all messages sent by the specified message sender in a group call; for live story calls only. Requires groupCall.can_delete_messages right + /// + public static Task DeleteGroupCallMessagesBySenderAsync( + this IClient client, int groupCallId = default, MessageSender senderId = default, bool reportSpam = default) + { + return client.ExecuteAsync(new DeleteGroupCallMessagesBySender { - return client.ExecuteAsync(new DeleteGroupCallMessagesBySender - { - GroupCallId = groupCallId, SenderId = senderId, ReportSpam = reportSpam - }); - } + GroupCallId = groupCallId, SenderId = senderId, ReportSpam = reportSpam + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteLanguagePack.cs b/TdLib.Api/Functions/DeleteLanguagePack.cs index 6a342a21..350b6140 100644 --- a/TdLib.Api/Functions/DeleteLanguagePack.cs +++ b/TdLib.Api/Functions/DeleteLanguagePack.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. + /// Can be called before authorization /// - public static partial class TdApi + public class DeleteLanguagePack : Function { /// - /// Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. - /// Can be called before authorization + /// Data type for serialization /// - public class DeleteLanguagePack : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteLanguagePack"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteLanguagePack"; - /// - /// Identifier of the language pack to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. - /// Can be called before authorization + /// Identifier of the language pack to delete /// - public static Task DeleteLanguagePackAsync( - this IClient client, string languagePackId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } + } + + /// + /// Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. + /// Can be called before authorization + /// + public static Task DeleteLanguagePackAsync( + this IClient client, string languagePackId = default) + { + return client.ExecuteAsync(new DeleteLanguagePack { - return client.ExecuteAsync(new DeleteLanguagePack - { - LanguagePackId = languagePackId - }); - } + LanguagePackId = languagePackId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteMessageEphemeralContent.cs b/TdLib.Api/Functions/DeleteMessageEphemeralContent.cs index f36d72ec..a1eeef73 100644 --- a/TdLib.Api/Functions/DeleteMessageEphemeralContent.cs +++ b/TdLib.Api/Functions/DeleteMessageEphemeralContent.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes message ephemeral content and reverts message state to the original /// - public static partial class TdApi + public class DeleteMessageEphemeralContent : Function { /// - /// Removes message ephemeral content and reverts message state to the original + /// Data type for serialization /// - public class DeleteMessageEphemeralContent : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteMessageEphemeralContent"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteMessageEphemeralContent"; - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Removes message ephemeral content and reverts message state to the original + /// Identifier of the message /// - public static Task DeleteMessageEphemeralContentAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Removes message ephemeral content and reverts message state to the original + /// + public static Task DeleteMessageEphemeralContentAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new DeleteMessageEphemeralContent { - return client.ExecuteAsync(new DeleteMessageEphemeralContent - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteMessageReactionsFromSender.cs b/TdLib.Api/Functions/DeleteMessageReactionsFromSender.cs index 27f08117..5698b101 100644 --- a/TdLib.Api/Functions/DeleteMessageReactionsFromSender.cs +++ b/TdLib.Api/Functions/DeleteMessageReactionsFromSender.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all reactions added by the specified sender on a message /// - public static partial class TdApi + public class DeleteMessageReactionsFromSender : Function { /// - /// Deletes all reactions added by the specified sender on a message + /// Data type for serialization /// - public class DeleteMessageReactionsFromSender : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteMessageReactionsFromSender"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteMessageReactionsFromSender"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the reactions. Use messageProperties.can_delete_reactions to check whether the method can be used for a message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the sender of reactions to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - } + /// + /// Identifier of the message containing the reactions. Use messageProperties.can_delete_reactions to check whether the method can be used for a message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Deletes all reactions added by the specified sender on a message + /// Identifier of the sender of reactions to delete /// - public static Task DeleteMessageReactionsFromSenderAsync( - this IClient client, long chatId = default, long messageId = default, MessageSender senderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + } + + /// + /// Deletes all reactions added by the specified sender on a message + /// + public static Task DeleteMessageReactionsFromSenderAsync( + this IClient client, long chatId = default, long messageId = default, MessageSender senderId = default) + { + return client.ExecuteAsync(new DeleteMessageReactionsFromSender { - return client.ExecuteAsync(new DeleteMessageReactionsFromSender - { - ChatId = chatId, MessageId = messageId, SenderId = senderId - }); - } + ChatId = chatId, MessageId = messageId, SenderId = senderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteMessages.cs b/TdLib.Api/Functions/DeleteMessages.cs index 692e83cd..e593b65e 100644 --- a/TdLib.Api/Functions/DeleteMessages.cs +++ b/TdLib.Api/Functions/DeleteMessages.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes messages /// - public static partial class TdApi + public class DeleteMessages : Function { /// - /// Deletes messages + /// Data type for serialization /// - public class DeleteMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the messages to be deleted. Use messageProperties.can_be_deleted_only_for_self and messageProperties.can_be_deleted_for_all_users to get suitable messages - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revoke")] - public bool Revoke { get; set; } - } + /// + /// Identifiers of the messages to be deleted. Use messageProperties.can_be_deleted_only_for_self and messageProperties.can_be_deleted_for_all_users to get suitable messages + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } /// - /// Deletes messages + /// Pass true to delete messages for all chat members. Always true for supergroups, channels and secret chats /// - public static Task DeleteMessagesAsync( - this IClient client, long chatId = default, long[] messageIds = default, bool revoke = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("revoke")] + public bool Revoke { get; set; } + } + + /// + /// Deletes messages + /// + public static Task DeleteMessagesAsync( + this IClient client, long chatId = default, long[] messageIds = default, bool revoke = default) + { + return client.ExecuteAsync(new DeleteMessages { - return client.ExecuteAsync(new DeleteMessages - { - ChatId = chatId, MessageIds = messageIds, Revoke = revoke - }); - } + ChatId = chatId, MessageIds = messageIds, Revoke = revoke + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeletePassportElement.cs b/TdLib.Api/Functions/DeletePassportElement.cs index a52b1e09..37287cc8 100644 --- a/TdLib.Api/Functions/DeletePassportElement.cs +++ b/TdLib.Api/Functions/DeletePassportElement.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a Telegram Passport element /// - public static partial class TdApi + public class DeletePassportElement : Function { /// - /// Deletes a Telegram Passport element + /// Data type for serialization /// - public class DeletePassportElement : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deletePassportElement"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deletePassportElement"; - /// - /// Element type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PassportElementType Type { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes a Telegram Passport element + /// Element type /// - public static Task DeletePassportElementAsync( - this IClient client, PassportElementType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PassportElementType Type { get; set; } + } + + /// + /// Deletes a Telegram Passport element + /// + public static Task DeletePassportElementAsync( + this IClient client, PassportElementType type = default) + { + return client.ExecuteAsync(new DeletePassportElement { - return client.ExecuteAsync(new DeletePassportElement - { - Type = type - }); - } + Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeletePollOption.cs b/TdLib.Api/Functions/DeletePollOption.cs index 5c3560db..c16284e0 100644 --- a/TdLib.Api/Functions/DeletePollOption.cs +++ b/TdLib.Api/Functions/DeletePollOption.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes an option from a poll /// - public static partial class TdApi + public class DeletePollOption : Function { /// - /// Deletes an option from a poll + /// Data type for serialization /// - public class DeletePollOption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deletePollOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deletePollOption"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the poll belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the poll belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique identifier of the option. Use pollOptionProperties.can_be_deleted to check whether the option can be deleted by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public string OptionId { get; set; } - } + /// + /// Identifier of the message containing the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Deletes an option from a poll + /// Unique identifier of the option. Use pollOptionProperties.can_be_deleted to check whether the option can be deleted by the user /// - public static Task DeletePollOptionAsync( - this IClient client, long chatId = default, long messageId = default, string optionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public string OptionId { get; set; } + } + + /// + /// Deletes an option from a poll + /// + public static Task DeletePollOptionAsync( + this IClient client, long chatId = default, long messageId = default, string optionId = default) + { + return client.ExecuteAsync(new DeletePollOption { - return client.ExecuteAsync(new DeletePollOption - { - ChatId = chatId, MessageId = messageId, OptionId = optionId - }); - } + ChatId = chatId, MessageId = messageId, OptionId = optionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteProfilePhoto.cs b/TdLib.Api/Functions/DeleteProfilePhoto.cs index 4f9bc5f9..7384228c 100644 --- a/TdLib.Api/Functions/DeleteProfilePhoto.cs +++ b/TdLib.Api/Functions/DeleteProfilePhoto.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a profile photo /// - public static partial class TdApi + public class DeleteProfilePhoto : Function { /// - /// Deletes a profile photo + /// Data type for serialization /// - public class DeleteProfilePhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteProfilePhoto"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteProfilePhoto"; - /// - /// Identifier of the profile photo to delete - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("profile_photo_id")] - public long ProfilePhotoId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes a profile photo + /// Identifier of the profile photo to delete /// - public static Task DeleteProfilePhotoAsync( - this IClient client, long profilePhotoId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("profile_photo_id")] + public long ProfilePhotoId { get; set; } + } + + /// + /// Deletes a profile photo + /// + public static Task DeleteProfilePhotoAsync( + this IClient client, long profilePhotoId = default) + { + return client.ExecuteAsync(new DeleteProfilePhoto { - return client.ExecuteAsync(new DeleteProfilePhoto - { - ProfilePhotoId = profilePhotoId - }); - } + ProfilePhotoId = profilePhotoId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteQuickReplyShortcut.cs b/TdLib.Api/Functions/DeleteQuickReplyShortcut.cs index ae6bf427..5412663a 100644 --- a/TdLib.Api/Functions/DeleteQuickReplyShortcut.cs +++ b/TdLib.Api/Functions/DeleteQuickReplyShortcut.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a quick reply shortcut /// - public static partial class TdApi + public class DeleteQuickReplyShortcut : Function { /// - /// Deletes a quick reply shortcut + /// Data type for serialization /// - public class DeleteQuickReplyShortcut : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteQuickReplyShortcut"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteQuickReplyShortcut"; - /// - /// Unique identifier of the quick reply shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes a quick reply shortcut + /// Unique identifier of the quick reply shortcut /// - public static Task DeleteQuickReplyShortcutAsync( - this IClient client, int shortcutId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } + } + + /// + /// Deletes a quick reply shortcut + /// + public static Task DeleteQuickReplyShortcutAsync( + this IClient client, int shortcutId = default) + { + return client.ExecuteAsync(new DeleteQuickReplyShortcut { - return client.ExecuteAsync(new DeleteQuickReplyShortcut - { - ShortcutId = shortcutId - }); - } + ShortcutId = shortcutId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteQuickReplyShortcutMessages.cs b/TdLib.Api/Functions/DeleteQuickReplyShortcutMessages.cs index 369d8a0d..76e6c5bb 100644 --- a/TdLib.Api/Functions/DeleteQuickReplyShortcutMessages.cs +++ b/TdLib.Api/Functions/DeleteQuickReplyShortcutMessages.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes specified quick reply messages /// - public static partial class TdApi + public class DeleteQuickReplyShortcutMessages : Function { /// - /// Deletes specified quick reply messages + /// Data type for serialization /// - public class DeleteQuickReplyShortcutMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteQuickReplyShortcutMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteQuickReplyShortcutMessages"; - /// - /// Unique identifier of the quick reply shortcut to which the messages belong - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifiers of the messages - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } - } + /// + /// Unique identifier of the quick reply shortcut to which the messages belong + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } /// - /// Deletes specified quick reply messages + /// Unique identifiers of the messages /// - public static Task DeleteQuickReplyShortcutMessagesAsync( - this IClient client, int shortcutId = default, long[] messageIds = default) + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } + } + + /// + /// Deletes specified quick reply messages + /// + public static Task DeleteQuickReplyShortcutMessagesAsync( + this IClient client, int shortcutId = default, long[] messageIds = default) + { + return client.ExecuteAsync(new DeleteQuickReplyShortcutMessages { - return client.ExecuteAsync(new DeleteQuickReplyShortcutMessages - { - ShortcutId = shortcutId, MessageIds = messageIds - }); - } + ShortcutId = shortcutId, MessageIds = messageIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteRevokedChatInviteLink.cs b/TdLib.Api/Functions/DeleteRevokedChatInviteLink.cs index d46fabbf..21996259 100644 --- a/TdLib.Api/Functions/DeleteRevokedChatInviteLink.cs +++ b/TdLib.Api/Functions/DeleteRevokedChatInviteLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links /// - public static partial class TdApi + public class DeleteRevokedChatInviteLink : Function { /// - /// Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// Data type for serialization /// - public class DeleteRevokedChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteRevokedChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteRevokedChatInviteLink"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to revoke - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// Invite link to revoke /// - public static Task DeleteRevokedChatInviteLinkAsync( - this IClient client, long chatId = default, string inviteLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + } + + /// + /// Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// + public static Task DeleteRevokedChatInviteLinkAsync( + this IClient client, long chatId = default, string inviteLink = default) + { + return client.ExecuteAsync(new DeleteRevokedChatInviteLink { - return client.ExecuteAsync(new DeleteRevokedChatInviteLink - { - ChatId = chatId, InviteLink = inviteLink - }); - } + ChatId = chatId, InviteLink = inviteLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteSavedCredentials.cs b/TdLib.Api/Functions/DeleteSavedCredentials.cs index f8324bea..d8a791ea 100644 --- a/TdLib.Api/Functions/DeleteSavedCredentials.cs +++ b/TdLib.Api/Functions/DeleteSavedCredentials.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes saved credentials for all payment provider bots /// - public static partial class TdApi + public class DeleteSavedCredentials : Function { /// - /// Deletes saved credentials for all payment provider bots + /// Data type for serialization /// - public class DeleteSavedCredentials : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteSavedCredentials"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteSavedCredentials"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Deletes saved credentials for all payment provider bots - /// - public static Task DeleteSavedCredentialsAsync( - this IClient client) + /// + /// Deletes saved credentials for all payment provider bots + /// + public static Task DeleteSavedCredentialsAsync( + this IClient client) + { + return client.ExecuteAsync(new DeleteSavedCredentials { - return client.ExecuteAsync(new DeleteSavedCredentials - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteSavedMessagesTopicHistory.cs b/TdLib.Api/Functions/DeleteSavedMessagesTopicHistory.cs index 7f0e8a15..5a0f804a 100644 --- a/TdLib.Api/Functions/DeleteSavedMessagesTopicHistory.cs +++ b/TdLib.Api/Functions/DeleteSavedMessagesTopicHistory.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages in a Saved Messages topic /// - public static partial class TdApi + public class DeleteSavedMessagesTopicHistory : Function { /// - /// Deletes all messages in a Saved Messages topic + /// Data type for serialization /// - public class DeleteSavedMessagesTopicHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteSavedMessagesTopicHistory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteSavedMessagesTopicHistory"; - /// - /// Identifier of Saved Messages topic which messages will be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes all messages in a Saved Messages topic + /// Identifier of Saved Messages topic which messages will be deleted /// - public static Task DeleteSavedMessagesTopicHistoryAsync( - this IClient client, long savedMessagesTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } + } + + /// + /// Deletes all messages in a Saved Messages topic + /// + public static Task DeleteSavedMessagesTopicHistoryAsync( + this IClient client, long savedMessagesTopicId = default) + { + return client.ExecuteAsync(new DeleteSavedMessagesTopicHistory { - return client.ExecuteAsync(new DeleteSavedMessagesTopicHistory - { - SavedMessagesTopicId = savedMessagesTopicId - }); - } + SavedMessagesTopicId = savedMessagesTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteSavedMessagesTopicMessagesByDate.cs b/TdLib.Api/Functions/DeleteSavedMessagesTopicMessagesByDate.cs index 23c4222f..8ba4d85c 100644 --- a/TdLib.Api/Functions/DeleteSavedMessagesTopicMessagesByDate.cs +++ b/TdLib.Api/Functions/DeleteSavedMessagesTopicMessagesByDate.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will not be deleted /// - public static partial class TdApi + public class DeleteSavedMessagesTopicMessagesByDate : Function { /// - /// Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will not be deleted + /// Data type for serialization /// - public class DeleteSavedMessagesTopicMessagesByDate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteSavedMessagesTopicMessagesByDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteSavedMessagesTopicMessagesByDate"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of Saved Messages topic which messages will be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The minimum date of the messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_date")] - public int MinDate { get; set; } + /// + /// Identifier of Saved Messages topic which messages will be deleted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } - /// - /// The maximum date of the messages to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_date")] - public int MaxDate { get; set; } - } + /// + /// The minimum date of the messages to delete + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_date")] + public int MinDate { get; set; } /// - /// Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will not be deleted + /// The maximum date of the messages to delete /// - public static Task DeleteSavedMessagesTopicMessagesByDateAsync( - this IClient client, long savedMessagesTopicId = default, int minDate = default, int maxDate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("max_date")] + public int MaxDate { get; set; } + } + + /// + /// Deletes all messages between the specified dates in a Saved Messages topic. Messages sent in the last 30 seconds will not be deleted + /// + public static Task DeleteSavedMessagesTopicMessagesByDateAsync( + this IClient client, long savedMessagesTopicId = default, int minDate = default, int maxDate = default) + { + return client.ExecuteAsync(new DeleteSavedMessagesTopicMessagesByDate { - return client.ExecuteAsync(new DeleteSavedMessagesTopicMessagesByDate - { - SavedMessagesTopicId = savedMessagesTopicId, MinDate = minDate, MaxDate = maxDate - }); - } + SavedMessagesTopicId = savedMessagesTopicId, MinDate = minDate, MaxDate = maxDate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteSavedOrderInfo.cs b/TdLib.Api/Functions/DeleteSavedOrderInfo.cs index f61e90e0..251be2c2 100644 --- a/TdLib.Api/Functions/DeleteSavedOrderInfo.cs +++ b/TdLib.Api/Functions/DeleteSavedOrderInfo.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes saved order information /// - public static partial class TdApi + public class DeleteSavedOrderInfo : Function { /// - /// Deletes saved order information + /// Data type for serialization /// - public class DeleteSavedOrderInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteSavedOrderInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteSavedOrderInfo"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Deletes saved order information - /// - public static Task DeleteSavedOrderInfoAsync( - this IClient client) + /// + /// Deletes saved order information + /// + public static Task DeleteSavedOrderInfoAsync( + this IClient client) + { + return client.ExecuteAsync(new DeleteSavedOrderInfo { - return client.ExecuteAsync(new DeleteSavedOrderInfo - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteStickerSet.cs b/TdLib.Api/Functions/DeleteStickerSet.cs index e34e4d96..f9f1b29a 100644 --- a/TdLib.Api/Functions/DeleteStickerSet.cs +++ b/TdLib.Api/Functions/DeleteStickerSet.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Completely deletes a sticker set /// - public static partial class TdApi + public class DeleteStickerSet : Function { /// - /// Completely deletes a sticker set + /// Data type for serialization /// - public class DeleteStickerSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteStickerSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteStickerSet"; - /// - /// Sticker set name. The sticker set must be owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Completely deletes a sticker set + /// Sticker set name. The sticker set must be owned by the current user /// - public static Task DeleteStickerSetAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Completely deletes a sticker set + /// + public static Task DeleteStickerSetAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new DeleteStickerSet { - return client.ExecuteAsync(new DeleteStickerSet - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteStory.cs b/TdLib.Api/Functions/DeleteStory.cs index 3cb26fc1..a1bce9a9 100644 --- a/TdLib.Api/Functions/DeleteStory.cs +++ b/TdLib.Api/Functions/DeleteStory.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a previously posted story. Can be called only if story.can_be_deleted == true /// - public static partial class TdApi + public class DeleteStory : Function { /// - /// Deletes a previously posted story. Can be called only if story.can_be_deleted == true + /// Data type for serialization /// - public class DeleteStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteStory"; - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } /// - /// Deletes a previously posted story. Can be called only if story.can_be_deleted == true + /// Identifier of the story to delete /// - public static Task DeleteStoryAsync( - this IClient client, long storyPosterChatId = default, int storyId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } + } + + /// + /// Deletes a previously posted story. Can be called only if story.can_be_deleted == true + /// + public static Task DeleteStoryAsync( + this IClient client, long storyPosterChatId = default, int storyId = default) + { + return client.ExecuteAsync(new DeleteStory { - return client.ExecuteAsync(new DeleteStory - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteStoryAlbum.cs b/TdLib.Api/Functions/DeleteStoryAlbum.cs index 4c497841..c5c8ded8 100644 --- a/TdLib.Api/Functions/DeleteStoryAlbum.cs +++ b/TdLib.Api/Functions/DeleteStoryAlbum.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a story album. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat /// - public static partial class TdApi + public class DeleteStoryAlbum : Function { /// - /// Deletes a story album. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat + /// Data type for serialization /// - public class DeleteStoryAlbum : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteStoryAlbum"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteStoryAlbum"; - /// - /// Identifier of the chat that owns the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_id")] - public int StoryAlbumId { get; set; } - } + /// + /// Identifier of the chat that owns the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Deletes a story album. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat + /// Identifier of the story album /// - public static Task DeleteStoryAlbumAsync( - this IClient client, long chatId = default, int storyAlbumId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_id")] + public int StoryAlbumId { get; set; } + } + + /// + /// Deletes a story album. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat + /// + public static Task DeleteStoryAlbumAsync( + this IClient client, long chatId = default, int storyAlbumId = default) + { + return client.ExecuteAsync(new DeleteStoryAlbum { - return client.ExecuteAsync(new DeleteStoryAlbum - { - ChatId = chatId, StoryAlbumId = storyAlbumId - }); - } + ChatId = chatId, StoryAlbumId = storyAlbumId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteTextCompositionStyle.cs b/TdLib.Api/Functions/DeleteTextCompositionStyle.cs index db32a7f0..957fcf2b 100644 --- a/TdLib.Api/Functions/DeleteTextCompositionStyle.cs +++ b/TdLib.Api/Functions/DeleteTextCompositionStyle.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Deletes a custom text composition style that was created by the current user /// - public static partial class TdApi + public class DeleteTextCompositionStyle : Function { /// - /// Deletes a custom text composition style that was created by the current user + /// Data type for serialization /// - public class DeleteTextCompositionStyle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deleteTextCompositionStyle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteTextCompositionStyle"; - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Deletes a custom text composition style that was created by the current user + /// Name of the style /// - public static Task DeleteTextCompositionStyleAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Deletes a custom text composition style that was created by the current user + /// + public static Task DeleteTextCompositionStyleAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new DeleteTextCompositionStyle { - return client.ExecuteAsync(new DeleteTextCompositionStyle - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DeleteTonWallet.cs b/TdLib.Api/Functions/DeleteTonWallet.cs new file mode 100644 index 00000000..a777ad0e --- /dev/null +++ b/TdLib.Api/Functions/DeleteTonWallet.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Deletes the current TON wallet of the user and creates a new one; can be used only if getOption("can_use_ton_wallet") + /// + public class DeleteTonWallet : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "deleteTonWallet"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Deletes the current TON wallet of the user and creates a new one; can be used only if getOption("can_use_ton_wallet") + /// + public static Task DeleteTonWalletAsync( + this IClient client, string password = default) + { + return client.ExecuteAsync(new DeleteTonWallet + { + Password = password + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/Destroy.cs b/TdLib.Api/Functions/Destroy.cs index 9f99eeab..745ba6dd 100644 --- a/TdLib.Api/Functions/Destroy.cs +++ b/TdLib.Api/Functions/Destroy.cs @@ -3,46 +3,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. + /// After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization /// - public static partial class TdApi + public class Destroy : Function { /// - /// Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. - /// After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization + /// Data type for serialization /// - public class Destroy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "destroy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "destroy"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. - /// After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization - /// - public static Task DestroyAsync( - this IClient client) + /// + /// Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. + /// After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization + /// + public static Task DestroyAsync( + this IClient client) + { + return client.ExecuteAsync(new Destroy { - return client.ExecuteAsync(new Destroy - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisableAllSupergroupUsernames.cs b/TdLib.Api/Functions/DisableAllSupergroupUsernames.cs index d3e9459f..b409b40e 100644 --- a/TdLib.Api/Functions/DisableAllSupergroupUsernames.cs +++ b/TdLib.Api/Functions/DisableAllSupergroupUsernames.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or channel /// - public static partial class TdApi + public class DisableAllSupergroupUsernames : Function { /// - /// Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or channel + /// Data type for serialization /// - public class DisableAllSupergroupUsernames : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "disableAllSupergroupUsernames"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "disableAllSupergroupUsernames"; - /// - /// Identifier of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or channel + /// Identifier of the supergroup or channel /// - public static Task DisableAllSupergroupUsernamesAsync( - this IClient client, long supergroupId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } + } + + /// + /// Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or channel + /// + public static Task DisableAllSupergroupUsernamesAsync( + this IClient client, long supergroupId = default) + { + return client.ExecuteAsync(new DisableAllSupergroupUsernames { - return client.ExecuteAsync(new DisableAllSupergroupUsernames - { - SupergroupId = supergroupId - }); - } + SupergroupId = supergroupId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisableProxy.cs b/TdLib.Api/Functions/DisableProxy.cs index f8a7dda4..471008cb 100644 --- a/TdLib.Api/Functions/DisableProxy.cs +++ b/TdLib.Api/Functions/DisableProxy.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Disables the currently enabled proxy. Can be called before authorization /// - public static partial class TdApi + public class DisableProxy : Function { /// - /// Disables the currently enabled proxy. Can be called before authorization + /// Data type for serialization /// - public class DisableProxy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "disableProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "disableProxy"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Disables the currently enabled proxy. Can be called before authorization - /// - public static Task DisableProxyAsync( - this IClient client) + /// + /// Disables the currently enabled proxy. Can be called before authorization + /// + public static Task DisableProxyAsync( + this IClient client) + { + return client.ExecuteAsync(new DisableProxy { - return client.ExecuteAsync(new DisableProxy - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisableTonWalletBackup.cs b/TdLib.Api/Functions/DisableTonWalletBackup.cs new file mode 100644 index 00000000..2baf5721 --- /dev/null +++ b/TdLib.Api/Functions/DisableTonWalletBackup.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Disables backup of the TON wallet of the user. Works only if tonWalletState.is_backup_enabled is true + /// + public class DisableTonWalletBackup : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "disableTonWalletBackup"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Disables backup of the TON wallet of the user. Works only if tonWalletState.is_backup_enabled is true + /// + public static Task DisableTonWalletBackupAsync( + this IClient client, string password = default) + { + return client.ExecuteAsync(new DisableTonWalletBackup + { + Password = password + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisableTonWalletBackupWithProof.cs b/TdLib.Api/Functions/DisableTonWalletBackupWithProof.cs new file mode 100644 index 00000000..e274c647 --- /dev/null +++ b/TdLib.Api/Functions/DisableTonWalletBackupWithProof.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Disables backup of the TON wallet of the user using proof of wallet ownership instead of the password. Works only if tonWalletState.is_backup_enabled is true + /// + public class DisableTonWalletBackupWithProof : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "disableTonWalletBackupWithProof"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Proof of the TON wallet ownership; use getTonWalletOwnershipProofChallenge to get a challenge for the proof + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proof")] + public TonWalletOwnershipProof Proof { get; set; } + } + + /// + /// Disables backup of the TON wallet of the user using proof of wallet ownership instead of the password. Works only if tonWalletState.is_backup_enabled is true + /// + public static Task DisableTonWalletBackupWithProofAsync( + this IClient client, TonWalletOwnershipProof proof = default) + { + return client.ExecuteAsync(new DisableTonWalletBackupWithProof + { + Proof = proof + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DiscardCall.cs b/TdLib.Api/Functions/DiscardCall.cs index 98614646..c16eec38 100644 --- a/TdLib.Api/Functions/DiscardCall.cs +++ b/TdLib.Api/Functions/DiscardCall.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Discards a call /// - public static partial class TdApi + public class DiscardCall : Function { /// - /// Discards a call + /// Data type for serialization /// - public class DiscardCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "discardCall"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "discardCall"; - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public int CallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the user was disconnected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_disconnected")] - public bool IsDisconnected { get; set; } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public int CallId { get; set; } - /// - /// If the call was upgraded to a group call, pass invite link to the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Pass true if the user was disconnected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_disconnected")] + public bool IsDisconnected { get; set; } - /// - /// The call duration, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// If the call was upgraded to a group call, pass invite link to the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } - /// - /// Pass true if the call was a video call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video")] - public bool IsVideo { get; set; } + /// + /// The call duration, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Identifier of the connection used during the call - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("connection_id")] - public long ConnectionId { get; set; } - } + /// + /// Pass true if the call was a video call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video")] + public bool IsVideo { get; set; } /// - /// Discards a call + /// Identifier of the connection used during the call /// - public static Task DiscardCallAsync( - this IClient client, int callId = default, bool isDisconnected = default, string inviteLink = default, int duration = default, bool isVideo = default, long connectionId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("connection_id")] + public long ConnectionId { get; set; } + } + + /// + /// Discards a call + /// + public static Task DiscardCallAsync( + this IClient client, int callId = default, bool isDisconnected = default, string inviteLink = default, int duration = default, bool isVideo = default, long connectionId = default) + { + return client.ExecuteAsync(new DiscardCall { - return client.ExecuteAsync(new DiscardCall - { - CallId = callId, IsDisconnected = isDisconnected, InviteLink = inviteLink, Duration = duration, IsVideo = isVideo, ConnectionId = connectionId - }); - } + CallId = callId, IsDisconnected = isDisconnected, InviteLink = inviteLink, Duration = duration, IsVideo = isVideo, ConnectionId = connectionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisconnectAffiliateProgram.cs b/TdLib.Api/Functions/DisconnectAffiliateProgram.cs index d8638024..1f17b1f7 100644 --- a/TdLib.Api/Functions/DisconnectAffiliateProgram.cs +++ b/TdLib.Api/Functions/DisconnectAffiliateProgram.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated information about the disconnected affiliate program /// - public static partial class TdApi + public class DisconnectAffiliateProgram : Function { /// - /// Disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated information about the disconnected affiliate program + /// Data type for serialization /// - public class DisconnectAffiliateProgram : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "disconnectAffiliateProgram"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "disconnectAffiliateProgram"; - /// - /// The affiliate to which the affiliate program is connected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateType Affiliate { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The referral link of the affiliate program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// The affiliate to which the affiliate program is connected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateType Affiliate { get; set; } /// - /// Disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated information about the disconnected affiliate program + /// The referral link of the affiliate program /// - public static Task DisconnectAffiliateProgramAsync( - this IClient client, AffiliateType affiliate = default, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated information about the disconnected affiliate program + /// + public static Task DisconnectAffiliateProgramAsync( + this IClient client, AffiliateType affiliate = default, string url = default) + { + return client.ExecuteAsync(new DisconnectAffiliateProgram { - return client.ExecuteAsync(new DisconnectAffiliateProgram - { - Affiliate = affiliate, Url = url - }); - } + Affiliate = affiliate, Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisconnectAllWebsites.cs b/TdLib.Api/Functions/DisconnectAllWebsites.cs index d0b7d84d..2eba78b2 100644 --- a/TdLib.Api/Functions/DisconnectAllWebsites.cs +++ b/TdLib.Api/Functions/DisconnectAllWebsites.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Disconnects all websites from the current user's Telegram account /// - public static partial class TdApi + public class DisconnectAllWebsites : Function { /// - /// Disconnects all websites from the current user's Telegram account + /// Data type for serialization /// - public class DisconnectAllWebsites : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "disconnectAllWebsites"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "disconnectAllWebsites"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Disconnects all websites from the current user's Telegram account - /// - public static Task DisconnectAllWebsitesAsync( - this IClient client) + /// + /// Disconnects all websites from the current user's Telegram account + /// + public static Task DisconnectAllWebsitesAsync( + this IClient client) + { + return client.ExecuteAsync(new DisconnectAllWebsites { - return client.ExecuteAsync(new DisconnectAllWebsites - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisconnectTonConnectSession.cs b/TdLib.Api/Functions/DisconnectTonConnectSession.cs new file mode 100644 index 00000000..770d0433 --- /dev/null +++ b/TdLib.Api/Functions/DisconnectTonConnectSession.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Closes a TON Connect session + /// + public class DisconnectTonConnectSession : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "disconnectTonConnectSession"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the TON Connect session to close + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + + /// + /// Encrypted body of the disconnect event; may be empty if the session has already been closed. Use getTonConnectSessionNextEventId to get event identifier for the event + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("body")] + public byte[] Body { get; set; } + } + + /// + /// Closes a TON Connect session + /// + public static Task DisconnectTonConnectSessionAsync( + this IClient client, long sessionId = default, byte[] body = default) + { + return client.ExecuteAsync(new DisconnectTonConnectSession + { + SessionId = sessionId, Body = body + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DisconnectWebsite.cs b/TdLib.Api/Functions/DisconnectWebsite.cs index 02c16b68..445e5ef0 100644 --- a/TdLib.Api/Functions/DisconnectWebsite.cs +++ b/TdLib.Api/Functions/DisconnectWebsite.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Disconnects website from the current user's Telegram account /// - public static partial class TdApi + public class DisconnectWebsite : Function { /// - /// Disconnects website from the current user's Telegram account + /// Data type for serialization /// - public class DisconnectWebsite : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "disconnectWebsite"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "disconnectWebsite"; - /// - /// Website identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("website_id")] - public long WebsiteId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Disconnects website from the current user's Telegram account + /// Website identifier /// - public static Task DisconnectWebsiteAsync( - this IClient client, long websiteId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("website_id")] + public long WebsiteId { get; set; } + } + + /// + /// Disconnects website from the current user's Telegram account + /// + public static Task DisconnectWebsiteAsync( + this IClient client, long websiteId = default) + { + return client.ExecuteAsync(new DisconnectWebsite { - return client.ExecuteAsync(new DisconnectWebsite - { - WebsiteId = websiteId - }); - } + WebsiteId = websiteId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DismissWebToken.cs b/TdLib.Api/Functions/DismissWebToken.cs new file mode 100644 index 00000000..c8c92dc3 --- /dev/null +++ b/TdLib.Api/Functions/DismissWebToken.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Dismissess a received web token without consumption; for official Telegram apps only + /// + public class DismissWebToken : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "dismissWebToken"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The token to dismiss + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } + } + + /// + /// Dismissess a received web token without consumption; for official Telegram apps only + /// + public static Task DismissWebTokenAsync( + this IClient client, string token = default) + { + return client.ExecuteAsync(new DismissWebToken + { + Token = token + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DownloadFile.cs b/TdLib.Api/Functions/DownloadFile.cs index c880a018..375aebf1 100644 --- a/TdLib.Api/Functions/DownloadFile.cs +++ b/TdLib.Api/Functions/DownloadFile.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates /// - public static partial class TdApi + public class DownloadFile : Function { /// - /// Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates + /// Data type for serialization /// - public class DownloadFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "downloadFile"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "downloadFile"; - /// - /// Identifier of the file to download - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("priority")] - public int Priority { get; set; } + /// + /// Identifier of the file to download + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } - /// - /// The starting position from which the file needs to be downloaded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public long Offset { get; set; } + /// + /// Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("priority")] + public int Priority { get; set; } - /// - /// Number of bytes which need to be downloaded starting from the "offset" position before the download will automatically be canceled; use 0 to download without a limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public long Limit { get; set; } + /// + /// The starting position from which the file needs to be downloaded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public long Offset { get; set; } - /// - /// Pass true to return response only after the file download has succeeded, has failed, has been canceled, or a new downloadFile request with different offset/limit parameters was sent; pass false to return file state immediately, just after the download has been started - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("synchronous")] - public bool Synchronous { get; set; } - } + /// + /// Number of bytes which need to be downloaded starting from the "offset" position before the download will automatically be canceled; use 0 to download without a limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public long Limit { get; set; } /// - /// Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates + /// Pass true to return response only after the file download has succeeded, has failed, has been canceled, or a new downloadFile request with different offset/limit parameters was sent; pass false to return file state immediately, just after the download has been started /// - public static Task DownloadFileAsync( - this IClient client, int fileId = default, int priority = default, long offset = default, long limit = default, bool synchronous = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("synchronous")] + public bool Synchronous { get; set; } + } + + /// + /// Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates + /// + public static Task DownloadFileAsync( + this IClient client, int fileId = default, int priority = default, long offset = default, long limit = default, bool synchronous = default) + { + return client.ExecuteAsync(new DownloadFile { - return client.ExecuteAsync(new DownloadFile - { - FileId = fileId, Priority = priority, Offset = offset, Limit = limit, Synchronous = synchronous - }); - } + FileId = fileId, Priority = priority, Offset = offset, Limit = limit, Synchronous = synchronous + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/DropGiftOriginalDetails.cs b/TdLib.Api/Functions/DropGiftOriginalDetails.cs index 6b8f4b4c..dfe2051a 100644 --- a/TdLib.Api/Functions/DropGiftOriginalDetails.cs +++ b/TdLib.Api/Functions/DropGiftOriginalDetails.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Drops original details for an upgraded gift /// - public static partial class TdApi + public class DropGiftOriginalDetails : Function { /// - /// Drops original details for an upgraded gift + /// Data type for serialization /// - public class DropGiftOriginalDetails : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "dropGiftOriginalDetails"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "dropGiftOriginalDetails"; - /// - /// Identifier of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The Telegram Star amount required to pay for the operation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Identifier of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } /// - /// Drops original details for an upgraded gift + /// The Telegram Star amount required to pay for the operation /// - public static Task DropGiftOriginalDetailsAsync( - this IClient client, string receivedGiftId = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Drops original details for an upgraded gift + /// + public static Task DropGiftOriginalDetailsAsync( + this IClient client, string receivedGiftId = default, long starCount = default) + { + return client.ExecuteAsync(new DropGiftOriginalDetails { - return client.ExecuteAsync(new DropGiftOriginalDetails - { - ReceivedGiftId = receivedGiftId, StarCount = starCount - }); - } + ReceivedGiftId = receivedGiftId, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBotMediaPreview.cs b/TdLib.Api/Functions/EditBotMediaPreview.cs index 70717492..60c0c72e 100644 --- a/TdLib.Api/Functions/EditBotMediaPreview.cs +++ b/TdLib.Api/Functions/EditBotMediaPreview.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side /// - public static partial class TdApi + public class EditBotMediaPreview : Function { /// - /// Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side + /// Data type for serialization /// - public class EditBotMediaPreview : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBotMediaPreview"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBotMediaPreview"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot. The bot must be owned and must have the main Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Language code of the media preview to edit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Identifier of the target bot. The bot must be owned and must have the main Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// File identifier of the media to replace - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Language code of the media preview to edit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } - /// - /// Content of the new preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public InputStoryContent Content { get; set; } - } + /// + /// File identifier of the media to replace + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } /// - /// Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side + /// Content of the new preview /// - public static Task EditBotMediaPreviewAsync( - this IClient client, long botUserId = default, string languageCode = default, int fileId = default, InputStoryContent content = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public InputStoryContent Content { get; set; } + } + + /// + /// Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side + /// + public static Task EditBotMediaPreviewAsync( + this IClient client, long botUserId = default, string languageCode = default, int fileId = default, InputStoryContent content = default) + { + return client.ExecuteAsync(new EditBotMediaPreview { - return client.ExecuteAsync(new EditBotMediaPreview - { - BotUserId = botUserId, LanguageCode = languageCode, FileId = fileId, Content = content - }); - } + BotUserId = botUserId, LanguageCode = languageCode, FileId = fileId, Content = content + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessChatLink.cs b/TdLib.Api/Functions/EditBusinessChatLink.cs index ed72640f..96916a4f 100644 --- a/TdLib.Api/Functions/EditBusinessChatLink.cs +++ b/TdLib.Api/Functions/EditBusinessChatLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits a business chat link of the current account. Requires Telegram Business subscription. Returns the edited link /// - public static partial class TdApi + public class EditBusinessChatLink : Function { /// - /// Edits a business chat link of the current account. Requires Telegram Business subscription. Returns the edited link + /// Data type for serialization /// - public class EditBusinessChatLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessChatLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessChatLink"; - /// - /// The link to edit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New description of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_info")] - public InputBusinessChatLink LinkInfo { get; set; } - } + /// + /// The link to edit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } /// - /// Edits a business chat link of the current account. Requires Telegram Business subscription. Returns the edited link + /// New description of the link /// - public static Task EditBusinessChatLinkAsync( - this IClient client, string link = default, InputBusinessChatLink linkInfo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link_info")] + public InputBusinessChatLink LinkInfo { get; set; } + } + + /// + /// Edits a business chat link of the current account. Requires Telegram Business subscription. Returns the edited link + /// + public static Task EditBusinessChatLinkAsync( + this IClient client, string link = default, InputBusinessChatLink linkInfo = default) + { + return client.ExecuteAsync(new EditBusinessChatLink { - return client.ExecuteAsync(new EditBusinessChatLink - { - Link = link, LinkInfo = linkInfo - }); - } + Link = link, LinkInfo = linkInfo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessMessageCaption.cs b/TdLib.Api/Functions/EditBusinessMessageCaption.cs index 94503954..83911fcb 100644 --- a/TdLib.Api/Functions/EditBusinessMessageCaption.cs +++ b/TdLib.Api/Functions/EditBusinessMessageCaption.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the caption of a message sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class EditBusinessMessageCaption : Function { /// - /// Edits the caption of a message sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class EditBusinessMessageCaption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessMessageCaption"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessMessageCaption"; - /// - /// Unique identifier of business connection on behalf of which the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } - } + /// + /// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } /// - /// Edits the caption of a message sent on behalf of a business account; for bots only + /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages /// - public static Task EditBusinessMessageCaptionAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } + } + + /// + /// Edits the caption of a message sent on behalf of a business account; for bots only + /// + public static Task EditBusinessMessageCaptionAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + { + return client.ExecuteAsync(new EditBusinessMessageCaption { - return client.ExecuteAsync(new EditBusinessMessageCaption - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessMessageChecklist.cs b/TdLib.Api/Functions/EditBusinessMessageChecklist.cs index 4aade31a..1ff670bb 100644 --- a/TdLib.Api/Functions/EditBusinessMessageChecklist.cs +++ b/TdLib.Api/Functions/EditBusinessMessageChecklist.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the content of a checklist in a message sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class EditBusinessMessageChecklist : Function { /// - /// Edits the content of a checklist in a message sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class EditBusinessMessageChecklist : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessMessageChecklist"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessMessageChecklist"; - /// - /// Unique identifier of business connection on behalf of which the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The new checklist. If some tasks were completed, this information will be kept - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist")] - public InputChecklist Checklist { get; set; } - } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the content of a checklist in a message sent on behalf of a business account; for bots only + /// The new checklist. If some tasks were completed, this information will be kept /// - public static Task EditBusinessMessageChecklistAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputChecklist checklist = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist")] + public InputChecklist Checklist { get; set; } + } + + /// + /// Edits the content of a checklist in a message sent on behalf of a business account; for bots only + /// + public static Task EditBusinessMessageChecklistAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputChecklist checklist = default) + { + return client.ExecuteAsync(new EditBusinessMessageChecklist { - return client.ExecuteAsync(new EditBusinessMessageChecklist - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Checklist = checklist - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Checklist = checklist + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessMessageLiveLocation.cs b/TdLib.Api/Functions/EditBusinessMessageLiveLocation.cs index cc6f7ac9..e3cd69b6 100644 --- a/TdLib.Api/Functions/EditBusinessMessageLiveLocation.cs +++ b/TdLib.Api/Functions/EditBusinessMessageLiveLocation.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the content of a live location in a message sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class EditBusinessMessageLiveLocation : Function { /// - /// Edits the content of a live location in a message sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class EditBusinessMessageLiveLocation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessMessageLiveLocation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessMessageLiveLocation"; - /// - /// Unique identifier of business connection on behalf of which the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New live location of the message; pass null to stop sharing the live location. If the new live_period isn't set to 0x7FFFFFFF, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public LiveLocation Location { get; set; } - } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the content of a live location in a message sent on behalf of a business account; for bots only + /// New live location of the message; pass null to stop sharing the live location. If the new live_period isn't set to 0x7FFFFFFF, /// - public static Task EditBusinessMessageLiveLocationAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, LiveLocation location = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public LiveLocation Location { get; set; } + } + + /// + /// Edits the content of a live location in a message sent on behalf of a business account; for bots only + /// + public static Task EditBusinessMessageLiveLocationAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, LiveLocation location = default) + { + return client.ExecuteAsync(new EditBusinessMessageLiveLocation { - return client.ExecuteAsync(new EditBusinessMessageLiveLocation - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Location = location - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Location = location + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessMessageMedia.cs b/TdLib.Api/Functions/EditBusinessMessageMedia.cs index f87c179e..1344fa21 100644 --- a/TdLib.Api/Functions/EditBusinessMessageMedia.cs +++ b/TdLib.Api/Functions/EditBusinessMessageMedia.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class EditBusinessMessageMedia : Function { /// - /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class EditBusinessMessageMedia : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessMessageMedia"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessMessageMedia"; - /// - /// Unique identifier of business connection on behalf of which the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The new message reply markup; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message sent on behalf of a business account; for bots only + /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo /// - public static Task EditBusinessMessageMediaAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in a message sent on behalf of a business account; for bots only + /// + public static Task EditBusinessMessageMediaAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditBusinessMessageMedia { - return client.ExecuteAsync(new EditBusinessMessageMedia - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessMessageReplyMarkup.cs b/TdLib.Api/Functions/EditBusinessMessageReplyMarkup.cs index bcd6e3a2..42649f0b 100644 --- a/TdLib.Api/Functions/EditBusinessMessageReplyMarkup.cs +++ b/TdLib.Api/Functions/EditBusinessMessageReplyMarkup.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the reply markup of a message sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class EditBusinessMessageReplyMarkup : Function { /// - /// Edits the reply markup of a message sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class EditBusinessMessageReplyMarkup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessMessageReplyMarkup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessMessageReplyMarkup"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection on behalf of which the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Edits the reply markup of a message sent on behalf of a business account; for bots only + /// The new message reply markup; pass null if none /// - public static Task EditBusinessMessageReplyMarkupAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } + } + + /// + /// Edits the reply markup of a message sent on behalf of a business account; for bots only + /// + public static Task EditBusinessMessageReplyMarkupAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + { + return client.ExecuteAsync(new EditBusinessMessageReplyMarkup { - return client.ExecuteAsync(new EditBusinessMessageReplyMarkup - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessMessageText.cs b/TdLib.Api/Functions/EditBusinessMessageText.cs index 1c412b38..2c4aa73a 100644 --- a/TdLib.Api/Functions/EditBusinessMessageText.cs +++ b/TdLib.Api/Functions/EditBusinessMessageText.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the text of a text or game message sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class EditBusinessMessageText : Function { /// - /// Edits the text of a text or game message sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class EditBusinessMessageText : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessMessageText"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessMessageText"; - /// - /// Unique identifier of business connection on behalf of which the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New text content of the message. Must be of type inputMessageText or inputMessageRichMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the text of a text or game message sent on behalf of a business account; for bots only + /// New text content of the message. Must be of type inputMessageText or inputMessageRichMessage /// - public static Task EditBusinessMessageTextAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits the text of a text or game message sent on behalf of a business account; for bots only + /// + public static Task EditBusinessMessageTextAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditBusinessMessageText { - return client.ExecuteAsync(new EditBusinessMessageText - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditBusinessStory.cs b/TdLib.Api/Functions/EditBusinessStory.cs index 9d141fa1..5a5dfb68 100644 --- a/TdLib.Api/Functions/EditBusinessStory.cs +++ b/TdLib.Api/Functions/EditBusinessStory.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes a story posted by the bot on behalf of a business account; for bots only /// - public static partial class TdApi + public class EditBusinessStory : Function { /// - /// Changes a story posted by the bot on behalf of a business account; for bots only + /// Data type for serialization /// - public class EditBusinessStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editBusinessStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editBusinessStory"; - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story to edit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// New content of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public InputStoryContent Content { get; set; } + /// + /// Identifier of the story to edit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// New clickable rectangle areas to be shown on the story media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("areas")] - public InputStoryAreas Areas { get; set; } + /// + /// New content of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public InputStoryContent Content { get; set; } - /// - /// New story caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// New clickable rectangle areas to be shown on the story media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("areas")] + public InputStoryAreas Areas { get; set; } - /// - /// The new privacy settings for the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("privacy_settings")] - public StoryPrivacySettings PrivacySettings { get; set; } - } + /// + /// New story caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } /// - /// Changes a story posted by the bot on behalf of a business account; for bots only + /// The new privacy settings for the story /// - public static Task EditBusinessStoryAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, InputStoryContent content = default, InputStoryAreas areas = default, FormattedText caption = default, StoryPrivacySettings privacySettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("privacy_settings")] + public StoryPrivacySettings PrivacySettings { get; set; } + } + + /// + /// Changes a story posted by the bot on behalf of a business account; for bots only + /// + public static Task EditBusinessStoryAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, InputStoryContent content = default, InputStoryAreas areas = default, FormattedText caption = default, StoryPrivacySettings privacySettings = default) + { + return client.ExecuteAsync(new EditBusinessStory { - return client.ExecuteAsync(new EditBusinessStory - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, Content = content, Areas = areas, Caption = caption, PrivacySettings = privacySettings - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, Content = content, Areas = areas, Caption = caption, PrivacySettings = privacySettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditCallbackQueryMessage.cs b/TdLib.Api/Functions/EditCallbackQueryMessage.cs deleted file mode 100644 index 01f3fbf9..00000000 --- a/TdLib.Api/Functions/EditCallbackQueryMessage.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using System.Threading.Tasks; -using Newtonsoft.Json; - -// REUSE-IgnoreStart -namespace TdLib -{ - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi - { - /// - /// Edits the message from which a callback query has originated with an ephemeral message; for bots only - /// - public class EditCallbackQueryMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editCallbackQueryMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the callback query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("callback_query_id")] - public long CallbackQueryId { get; set; } - - /// - /// Pass true if the content of the message must be protected from forwarding and saving - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protect_content")] - public bool ProtectContent { get; set; } - - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - - /// - /// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, - /// inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } - - /// - /// Edits the message from which a callback query has originated with an ephemeral message; for bots only - /// - public static Task EditCallbackQueryMessageAsync( - this IClient client, long callbackQueryId = default, bool protectContent = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) - { - return client.ExecuteAsync(new EditCallbackQueryMessage - { - CallbackQueryId = callbackQueryId, ProtectContent = protectContent, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } - } -} -// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditChatFolder.cs b/TdLib.Api/Functions/EditChatFolder.cs index 44f1101b..98f1dcf8 100644 --- a/TdLib.Api/Functions/EditChatFolder.cs +++ b/TdLib.Api/Functions/EditChatFolder.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits existing chat folder. Returns information about the edited chat folder /// - public static partial class TdApi + public class EditChatFolder : Function { /// - /// Edits existing chat folder. Returns information about the edited chat folder + /// Data type for serialization /// - public class EditChatFolder : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editChatFolder"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editChatFolder"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The edited chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("folder")] - public ChatFolder Folder { get; set; } - } + /// + /// Chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } /// - /// Edits existing chat folder. Returns information about the edited chat folder + /// The edited chat folder /// - public static Task EditChatFolderAsync( - this IClient client, int chatFolderId = default, ChatFolder folder = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("folder")] + public ChatFolder Folder { get; set; } + } + + /// + /// Edits existing chat folder. Returns information about the edited chat folder + /// + public static Task EditChatFolderAsync( + this IClient client, int chatFolderId = default, ChatFolder folder = default) + { + return client.ExecuteAsync(new EditChatFolder { - return client.ExecuteAsync(new EditChatFolder - { - ChatFolderId = chatFolderId, Folder = folder - }); - } + ChatFolderId = chatFolderId, Folder = folder + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditChatFolderInviteLink.cs b/TdLib.Api/Functions/EditChatFolderInviteLink.cs index c10e4fb9..f1514f0e 100644 --- a/TdLib.Api/Functions/EditChatFolderInviteLink.cs +++ b/TdLib.Api/Functions/EditChatFolderInviteLink.cs @@ -3,69 +3,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits an invite link for a chat folder /// - public static partial class TdApi + public class EditChatFolderInviteLink : Function { /// - /// Edits an invite link for a chat folder + /// Data type for serialization /// - public class EditChatFolderInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editChatFolderInviteLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editChatFolderInviteLink"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } - /// - /// New name of the link; 0-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Invite link to be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } - /// - /// New identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link editing - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// New name of the link; 0-32 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Edits an invite link for a chat folder + /// New identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link editing /// - public static Task EditChatFolderInviteLinkAsync( - this IClient client, int chatFolderId = default, string inviteLink = default, string name = default, long[] chatIds = default) + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } + } + + /// + /// Edits an invite link for a chat folder + /// + public static Task EditChatFolderInviteLinkAsync( + this IClient client, int chatFolderId = default, string inviteLink = default, string name = default, long[] chatIds = default) + { + return client.ExecuteAsync(new EditChatFolderInviteLink { - return client.ExecuteAsync(new EditChatFolderInviteLink - { - ChatFolderId = chatFolderId, InviteLink = inviteLink, Name = name, ChatIds = chatIds - }); - } + ChatFolderId = chatFolderId, InviteLink = inviteLink, Name = name, ChatIds = chatIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditChatInviteLink.cs b/TdLib.Api/Functions/EditChatInviteLink.cs index 860a9637..5d60114f 100644 --- a/TdLib.Api/Functions/EditChatInviteLink.cs +++ b/TdLib.Api/Functions/EditChatInviteLink.cs @@ -3,88 +3,90 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits a non-primary invite link for a chat. Available in basic groups, supergroups, and channels. + /// If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. + /// Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links /// - public static partial class TdApi + public class EditChatInviteLink : Function { /// - /// Edits a non-primary invite link for a chat. Available in basic groups, supergroups, and channels. - /// If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. - /// Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// Data type for serialization /// - public class EditChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editChatInviteLink"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Invite link name; 0-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Invite link to be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } - /// - /// Point in time (Unix timestamp) when the link will expire; pass 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } + /// + /// Invite link name; 0-32 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_limit")] - public int MemberLimit { get; set; } + /// + /// Point in time (Unix timestamp) when the link will expire; pass 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } - /// - /// Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit must be 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creates_join_request")] - public bool CreatesJoinRequest { get; set; } - } + /// + /// The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_limit")] + public int MemberLimit { get; set; } /// - /// Edits a non-primary invite link for a chat. Available in basic groups, supergroups, and channels. - /// If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. - /// Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit must be 0 /// - public static Task EditChatInviteLinkAsync( - this IClient client, long chatId = default, string inviteLink = default, string name = default, int expirationDate = default, int memberLimit = default, bool createsJoinRequest = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("creates_join_request")] + public bool CreatesJoinRequest { get; set; } + } + + /// + /// Edits a non-primary invite link for a chat. Available in basic groups, supergroups, and channels. + /// If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. + /// Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// + public static Task EditChatInviteLinkAsync( + this IClient client, long chatId = default, string inviteLink = default, string name = default, int expirationDate = default, int memberLimit = default, bool createsJoinRequest = default) + { + return client.ExecuteAsync(new EditChatInviteLink { - return client.ExecuteAsync(new EditChatInviteLink - { - ChatId = chatId, InviteLink = inviteLink, Name = name, ExpirationDate = expirationDate, MemberLimit = memberLimit, CreatesJoinRequest = createsJoinRequest - }); - } + ChatId = chatId, InviteLink = inviteLink, Name = name, ExpirationDate = expirationDate, MemberLimit = memberLimit, CreatesJoinRequest = createsJoinRequest + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditChatSubscriptionInviteLink.cs b/TdLib.Api/Functions/EditChatSubscriptionInviteLink.cs index 9976262d..f22149ef 100644 --- a/TdLib.Api/Functions/EditChatSubscriptionInviteLink.cs +++ b/TdLib.Api/Functions/EditChatSubscriptionInviteLink.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits a subscription invite link for a channel chat. Requires can_invite_users right in the chat for own links and owner privileges for other links /// - public static partial class TdApi + public class EditChatSubscriptionInviteLink : Function { /// - /// Edits a subscription invite link for a channel chat. Requires can_invite_users right in the chat for own links and owner privileges for other links + /// Data type for serialization /// - public class EditChatSubscriptionInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editChatSubscriptionInviteLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editChatSubscriptionInviteLink"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Invite link name; 0-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Invite link to be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } /// - /// Edits a subscription invite link for a channel chat. Requires can_invite_users right in the chat for own links and owner privileges for other links + /// Invite link name; 0-32 characters /// - public static Task EditChatSubscriptionInviteLinkAsync( - this IClient client, long chatId = default, string inviteLink = default, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Edits a subscription invite link for a channel chat. Requires can_invite_users right in the chat for own links and owner privileges for other links + /// + public static Task EditChatSubscriptionInviteLinkAsync( + this IClient client, long chatId = default, string inviteLink = default, string name = default) + { + return client.ExecuteAsync(new EditChatSubscriptionInviteLink { - return client.ExecuteAsync(new EditChatSubscriptionInviteLink - { - ChatId = chatId, InviteLink = inviteLink, Name = name - }); - } + ChatId = chatId, InviteLink = inviteLink, Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditChatWelcomeMessage.cs b/TdLib.Api/Functions/EditChatWelcomeMessage.cs index 8d5d6826..698cfa80 100644 --- a/TdLib.Api/Functions/EditChatWelcomeMessage.cs +++ b/TdLib.Api/Functions/EditChatWelcomeMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat /// - public static partial class TdApi + public class EditChatWelcomeMessage : Function { /// - /// Edits a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat + /// Data type for serialization /// - public class EditChatWelcomeMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editChatWelcomeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editChatWelcomeMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the welcome message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("welcome_message_id")] - public int WelcomeMessageId { get; set; } + /// + /// The identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The identifier of the welcome message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("welcome_message_id")] + public int WelcomeMessageId { get; set; } /// - /// Edits a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat + /// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, /// - public static Task EditChatWelcomeMessageAsync( - this IClient client, long chatId = default, int welcomeMessageId = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat + /// + public static Task EditChatWelcomeMessageAsync( + this IClient client, long chatId = default, int welcomeMessageId = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditChatWelcomeMessage { - return client.ExecuteAsync(new EditChatWelcomeMessage - { - ChatId = chatId, WelcomeMessageId = welcomeMessageId, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, WelcomeMessageId = welcomeMessageId, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditCustomLanguagePackInfo.cs b/TdLib.Api/Functions/EditCustomLanguagePackInfo.cs index d86e5f0e..853f81b3 100644 --- a/TdLib.Api/Functions/EditCustomLanguagePackInfo.cs +++ b/TdLib.Api/Functions/EditCustomLanguagePackInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits information about a custom local language pack in the current localization target. Can be called before authorization /// - public static partial class TdApi + public class EditCustomLanguagePackInfo : Function { /// - /// Edits information about a custom local language pack in the current localization target. Can be called before authorization + /// Data type for serialization /// - public class EditCustomLanguagePackInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editCustomLanguagePackInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editCustomLanguagePackInfo"; - /// - /// New information about the custom local language pack - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info")] - public LanguagePackInfo Info { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Edits information about a custom local language pack in the current localization target. Can be called before authorization + /// New information about the custom local language pack /// - public static Task EditCustomLanguagePackInfoAsync( - this IClient client, LanguagePackInfo info = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public LanguagePackInfo Info { get; set; } + } + + /// + /// Edits information about a custom local language pack in the current localization target. Can be called before authorization + /// + public static Task EditCustomLanguagePackInfoAsync( + this IClient client, LanguagePackInfo info = default) + { + return client.ExecuteAsync(new EditCustomLanguagePackInfo { - return client.ExecuteAsync(new EditCustomLanguagePackInfo - { - Info = info - }); - } + Info = info + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditEphemeralMessage.cs b/TdLib.Api/Functions/EditEphemeralMessage.cs index e105382e..254956b1 100644 --- a/TdLib.Api/Functions/EditEphemeralMessage.cs +++ b/TdLib.Api/Functions/EditEphemeralMessage.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only /// - public static partial class TdApi + public class EditEphemeralMessage : Function { /// - /// Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only + /// Data type for serialization /// - public class EditEphemeralMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editEphemeralMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editEphemeralMessage"; - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who received the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_user_id")] - public long ReceiverUserId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the ephemeral message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ephemeral_message_id")] - public int EphemeralMessageId { get; set; } + /// + /// Identifier of the user who received the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_user_id")] + public long ReceiverUserId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the ephemeral message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ephemeral_message_id")] + public int EphemeralMessageId { get; set; } - /// - /// New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only + /// New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, /// - public static Task EditEphemeralMessageAsync( - this IClient client, long chatId = default, long receiverUserId = default, int ephemeralMessageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only + /// + public static Task EditEphemeralMessageAsync( + this IClient client, long chatId = default, long receiverUserId = default, int ephemeralMessageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditEphemeralMessage { - return client.ExecuteAsync(new EditEphemeralMessage - { - ChatId = chatId, ReceiverUserId = receiverUserId, EphemeralMessageId = ephemeralMessageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, ReceiverUserId = receiverUserId, EphemeralMessageId = ephemeralMessageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditEphemeralMessageCaption.cs b/TdLib.Api/Functions/EditEphemeralMessageCaption.cs index 93095dd1..9a5d50ed 100644 --- a/TdLib.Api/Functions/EditEphemeralMessageCaption.cs +++ b/TdLib.Api/Functions/EditEphemeralMessageCaption.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only /// - public static partial class TdApi + public class EditEphemeralMessageCaption : Function { /// - /// Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only + /// Data type for serialization /// - public class EditEphemeralMessageCaption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editEphemeralMessageCaption"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editEphemeralMessageCaption"; - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who received the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_user_id")] - public long ReceiverUserId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the ephemeral message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ephemeral_message_id")] - public int EphemeralMessageId { get; set; } + /// + /// Identifier of the user who received the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_user_id")] + public long ReceiverUserId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the ephemeral message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ephemeral_message_id")] + public int EphemeralMessageId { get; set; } - /// - /// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } - } + /// + /// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } /// - /// Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only + /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages /// - public static Task EditEphemeralMessageCaptionAsync( - this IClient client, long chatId = default, long receiverUserId = default, int ephemeralMessageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } + } + + /// + /// Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only + /// + public static Task EditEphemeralMessageCaptionAsync( + this IClient client, long chatId = default, long receiverUserId = default, int ephemeralMessageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + { + return client.ExecuteAsync(new EditEphemeralMessageCaption { - return client.ExecuteAsync(new EditEphemeralMessageCaption - { - ChatId = chatId, ReceiverUserId = receiverUserId, EphemeralMessageId = ephemeralMessageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia - }); - } + ChatId = chatId, ReceiverUserId = receiverUserId, EphemeralMessageId = ephemeralMessageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditForumTopic.cs b/TdLib.Api/Functions/EditForumTopic.cs index c27b3886..5763fb9e 100644 --- a/TdLib.Api/Functions/EditForumTopic.cs +++ b/TdLib.Api/Functions/EditForumTopic.cs @@ -3,79 +3,81 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits title and icon of a topic in a forum supergroup chat or a chat with a bot with topics; for supergroup chats requires can_manage_topics administrator right + /// unless the user is creator of the topic /// - public static partial class TdApi + public class EditForumTopic : Function { /// - /// Edits title and icon of a topic in a forum supergroup chat or a chat with a bot with topics; for supergroup chats requires can_manage_topics administrator right - /// unless the user is creator of the topic + /// Data type for serialization /// - public class EditForumTopic : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editForumTopic"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editForumTopic"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New name of the topic; 0-128 characters. If empty, the previous topic name is kept - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Forum topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// Pass true to edit the icon of the topic. Icon of the General topic can't be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_icon_custom_emoji")] - public bool EditIconCustomEmoji { get; set; } + /// + /// New name of the topic; 0-128 characters. If empty, the previous topic name is kept + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji. Ignored if edit_icon_custom_emoji is false. Telegram Premium users can use any custom emoji, other users can use only a custom emoji returned by getForumTopicDefaultIcons - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("icon_custom_emoji_id")] - public long IconCustomEmojiId { get; set; } - } + /// + /// Pass true to edit the icon of the topic. Icon of the General topic can't be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_icon_custom_emoji")] + public bool EditIconCustomEmoji { get; set; } /// - /// Edits title and icon of a topic in a forum supergroup chat or a chat with a bot with topics; for supergroup chats requires can_manage_topics administrator right - /// unless the user is creator of the topic + /// Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji. Ignored if edit_icon_custom_emoji is false. Telegram Premium users can use any custom emoji, other users can use only a custom emoji returned by getForumTopicDefaultIcons /// - public static Task EditForumTopicAsync( - this IClient client, long chatId = default, int forumTopicId = default, string name = default, bool editIconCustomEmoji = default, long iconCustomEmojiId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("icon_custom_emoji_id")] + public long IconCustomEmojiId { get; set; } + } + + /// + /// Edits title and icon of a topic in a forum supergroup chat or a chat with a bot with topics; for supergroup chats requires can_manage_topics administrator right + /// unless the user is creator of the topic + /// + public static Task EditForumTopicAsync( + this IClient client, long chatId = default, int forumTopicId = default, string name = default, bool editIconCustomEmoji = default, long iconCustomEmojiId = default) + { + return client.ExecuteAsync(new EditForumTopic { - return client.ExecuteAsync(new EditForumTopic - { - ChatId = chatId, ForumTopicId = forumTopicId, Name = name, EditIconCustomEmoji = editIconCustomEmoji, IconCustomEmojiId = iconCustomEmojiId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId, Name = name, EditIconCustomEmoji = editIconCustomEmoji, IconCustomEmojiId = iconCustomEmojiId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditInlineMessageCaption.cs b/TdLib.Api/Functions/EditInlineMessageCaption.cs index ca89ce50..aa30c289 100644 --- a/TdLib.Api/Functions/EditInlineMessageCaption.cs +++ b/TdLib.Api/Functions/EditInlineMessageCaption.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the caption of an inline message sent via a bot; for bots only /// - public static partial class TdApi + public class EditInlineMessageCaption : Function { /// - /// Edits the caption of an inline message sent via a bot; for bots only + /// Data type for serialization /// - public class EditInlineMessageCaption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editInlineMessageCaption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editInlineMessageCaption"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Inline message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Inline message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } - /// - /// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } - } + /// + /// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } /// - /// Edits the caption of an inline message sent via a bot; for bots only + /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages /// - public static Task EditInlineMessageCaptionAsync( - this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } + } + + /// + /// Edits the caption of an inline message sent via a bot; for bots only + /// + public static Task EditInlineMessageCaptionAsync( + this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + { + return client.ExecuteAsync(new EditInlineMessageCaption { - return client.ExecuteAsync(new EditInlineMessageCaption - { - InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia - }); - } + InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditInlineMessageLiveLocation.cs b/TdLib.Api/Functions/EditInlineMessageLiveLocation.cs index f0d9398d..b6b6c6aa 100644 --- a/TdLib.Api/Functions/EditInlineMessageLiveLocation.cs +++ b/TdLib.Api/Functions/EditInlineMessageLiveLocation.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the content of a live location in an inline message sent via a bot; for bots only /// - public static partial class TdApi + public class EditInlineMessageLiveLocation : Function { /// - /// Edits the content of a live location in an inline message sent via a bot; for bots only + /// Data type for serialization /// - public class EditInlineMessageLiveLocation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editInlineMessageLiveLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editInlineMessageLiveLocation"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Inline message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Inline message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } - /// - /// New live location of the message; pass null to stop sharing the live location. If the new live_period isn't set to 0x7FFFFFFF, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public LiveLocation Location { get; set; } - } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the content of a live location in an inline message sent via a bot; for bots only + /// New live location of the message; pass null to stop sharing the live location. If the new live_period isn't set to 0x7FFFFFFF, /// - public static Task EditInlineMessageLiveLocationAsync( - this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, LiveLocation location = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public LiveLocation Location { get; set; } + } + + /// + /// Edits the content of a live location in an inline message sent via a bot; for bots only + /// + public static Task EditInlineMessageLiveLocationAsync( + this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, LiveLocation location = default) + { + return client.ExecuteAsync(new EditInlineMessageLiveLocation { - return client.ExecuteAsync(new EditInlineMessageLiveLocation - { - InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, Location = location - }); - } + InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, Location = location + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditInlineMessageMedia.cs b/TdLib.Api/Functions/EditInlineMessageMedia.cs index e54f4ae0..a4b8ddf4 100644 --- a/TdLib.Api/Functions/EditInlineMessageMedia.cs +++ b/TdLib.Api/Functions/EditInlineMessageMedia.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only /// - public static partial class TdApi + public class EditInlineMessageMedia : Function { /// - /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only + /// Data type for serialization /// - public class EditInlineMessageMedia : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editInlineMessageMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editInlineMessageMedia"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Inline message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Inline message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } - /// - /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The new message reply markup; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only + /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo /// - public static Task EditInlineMessageMediaAsync( - this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits the media content of a message with a text, an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only + /// + public static Task EditInlineMessageMediaAsync( + this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditInlineMessageMedia { - return client.ExecuteAsync(new EditInlineMessageMedia - { - InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditInlineMessageReplyMarkup.cs b/TdLib.Api/Functions/EditInlineMessageReplyMarkup.cs index 9cff68cb..554b7080 100644 --- a/TdLib.Api/Functions/EditInlineMessageReplyMarkup.cs +++ b/TdLib.Api/Functions/EditInlineMessageReplyMarkup.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the reply markup of an inline message sent via a bot; for bots only /// - public static partial class TdApi + public class EditInlineMessageReplyMarkup : Function { /// - /// Edits the reply markup of an inline message sent via a bot; for bots only + /// Data type for serialization /// - public class EditInlineMessageReplyMarkup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editInlineMessageReplyMarkup"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editInlineMessageReplyMarkup"; - /// - /// Inline message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// Inline message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } /// - /// Edits the reply markup of an inline message sent via a bot; for bots only + /// The new message reply markup; pass null if none /// - public static Task EditInlineMessageReplyMarkupAsync( - this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } + } + + /// + /// Edits the reply markup of an inline message sent via a bot; for bots only + /// + public static Task EditInlineMessageReplyMarkupAsync( + this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default) + { + return client.ExecuteAsync(new EditInlineMessageReplyMarkup { - return client.ExecuteAsync(new EditInlineMessageReplyMarkup - { - InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup - }); - } + InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditInlineMessageText.cs b/TdLib.Api/Functions/EditInlineMessageText.cs index 642606c3..fa133878 100644 --- a/TdLib.Api/Functions/EditInlineMessageText.cs +++ b/TdLib.Api/Functions/EditInlineMessageText.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the text of an inline text or game message sent via the bot; for bots only /// - public static partial class TdApi + public class EditInlineMessageText : Function { /// - /// Edits the text of an inline text or game message sent via the bot; for bots only + /// Data type for serialization /// - public class EditInlineMessageText : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editInlineMessageText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editInlineMessageText"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Inline message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Inline message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } - /// - /// New text content of the message. Must be of type inputMessageText or inputMessageRichMessage; file upload isn't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the text of an inline text or game message sent via the bot; for bots only + /// New text content of the message. Must be of type inputMessageText or inputMessageRichMessage; file upload isn't supported /// - public static Task EditInlineMessageTextAsync( - this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits the text of an inline text or game message sent via the bot; for bots only + /// + public static Task EditInlineMessageTextAsync( + this IClient client, string inlineMessageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditInlineMessageText { - return client.ExecuteAsync(new EditInlineMessageText - { - InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + InlineMessageId = inlineMessageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditMessageCaption.cs b/TdLib.Api/Functions/EditMessageCaption.cs index 6199c84b..b06d56df 100644 --- a/TdLib.Api/Functions/EditMessageCaption.cs +++ b/TdLib.Api/Functions/EditMessageCaption.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the message content caption. Returns the edited message after the edit is completed on the server side /// - public static partial class TdApi + public class EditMessageCaption : Function { /// - /// Edits the message content caption. Returns the edited message after the edit is completed on the server side + /// Data type for serialization /// - public class EditMessageCaption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editMessageCaption"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editMessageCaption"; - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// The new message reply markup; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } - } + /// + /// New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } /// - /// Edits the message content caption. Returns the edited message after the edit is completed on the server side + /// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages /// - public static Task EditMessageCaptionAsync( - this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } + } + + /// + /// Edits the message content caption. Returns the edited message after the edit is completed on the server side + /// + public static Task EditMessageCaptionAsync( + this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, FormattedText caption = default, bool showCaptionAboveMedia = default) + { + return client.ExecuteAsync(new EditMessageCaption { - return client.ExecuteAsync(new EditMessageCaption - { - ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia - }); - } + ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Caption = caption, ShowCaptionAboveMedia = showCaptionAboveMedia + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditMessageChecklist.cs b/TdLib.Api/Functions/EditMessageChecklist.cs index fd3416c9..edbb7954 100644 --- a/TdLib.Api/Functions/EditMessageChecklist.cs +++ b/TdLib.Api/Functions/EditMessageChecklist.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the message content of a checklist. Returns the edited message after the edit is completed on the server side /// - public static partial class TdApi + public class EditMessageChecklist : Function { /// - /// Edits the message content of a checklist. Returns the edited message after the edit is completed on the server side + /// Data type for serialization /// - public class EditMessageChecklist : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editMessageChecklist"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editMessageChecklist"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The new checklist. If some tasks were completed, this information will be kept - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist")] - public InputChecklist Checklist { get; set; } - } + /// + /// The new message reply markup; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the message content of a checklist. Returns the edited message after the edit is completed on the server side + /// The new checklist. If some tasks were completed, this information will be kept /// - public static Task EditMessageChecklistAsync( - this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputChecklist checklist = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist")] + public InputChecklist Checklist { get; set; } + } + + /// + /// Edits the message content of a checklist. Returns the edited message after the edit is completed on the server side + /// + public static Task EditMessageChecklistAsync( + this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputChecklist checklist = default) + { + return client.ExecuteAsync(new EditMessageChecklist { - return client.ExecuteAsync(new EditMessageChecklist - { - ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Checklist = checklist - }); - } + ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Checklist = checklist + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditMessageLiveLocation.cs b/TdLib.Api/Functions/EditMessageLiveLocation.cs index fff071a0..cfd45cfd 100644 --- a/TdLib.Api/Functions/EditMessageLiveLocation.cs +++ b/TdLib.Api/Functions/EditMessageLiveLocation.cs @@ -3,73 +3,75 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. + /// Returns the edited message after the edit is completed on the server side /// - public static partial class TdApi + public class EditMessageLiveLocation : Function { /// - /// Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. - /// Returns the edited message after the edit is completed on the server side + /// Data type for serialization /// - public class EditMessageLiveLocation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editMessageLiveLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editMessageLiveLocation"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New live location of the message; pass null to stop sharing the live location. If the new live_period isn't set to 0x7FFFFFFF, - /// then it must not exceed the current live_period by more than a day, and the live location expiration date must remain in the next 90 days - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public LiveLocation Location { get; set; } - } + /// + /// The new message reply markup; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. - /// Returns the edited message after the edit is completed on the server side + /// New live location of the message; pass null to stop sharing the live location. If the new live_period isn't set to 0x7FFFFFFF, + /// then it must not exceed the current live_period by more than a day, and the live location expiration date must remain in the next 90 days /// - public static Task EditMessageLiveLocationAsync( - this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, LiveLocation location = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public LiveLocation Location { get; set; } + } + + /// + /// Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. + /// Returns the edited message after the edit is completed on the server side + /// + public static Task EditMessageLiveLocationAsync( + this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, LiveLocation location = default) + { + return client.ExecuteAsync(new EditMessageLiveLocation { - return client.ExecuteAsync(new EditMessageLiveLocation - { - ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Location = location - }); - } + ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, Location = location + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditMessageMedia.cs b/TdLib.Api/Functions/EditMessageMedia.cs index d66a2af8..42459f59 100644 --- a/TdLib.Api/Functions/EditMessageMedia.cs +++ b/TdLib.Api/Functions/EditMessageMedia.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead. + /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side /// - public static partial class TdApi + public class EditMessageMedia : Function { /// - /// Edits the media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead. - /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side + /// Data type for serialization /// - public class EditMessageMedia : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editMessageMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editMessageMedia"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_edit_media to check whether the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message. Use messageProperties.can_edit_media to check whether the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The new message reply markup; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead. - /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side + /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo /// - public static Task EditMessageMediaAsync( - this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits the media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead. + /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side + /// + public static Task EditMessageMediaAsync( + this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditMessageMedia { - return client.ExecuteAsync(new EditMessageMedia - { - ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditMessageReplyMarkup.cs b/TdLib.Api/Functions/EditMessageReplyMarkup.cs index ca2f08ca..90edb367 100644 --- a/TdLib.Api/Functions/EditMessageReplyMarkup.cs +++ b/TdLib.Api/Functions/EditMessageReplyMarkup.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side /// - public static partial class TdApi + public class EditMessageReplyMarkup : Function { /// - /// Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side + /// Data type for serialization /// - public class EditMessageReplyMarkup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editMessageReplyMarkup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editMessageReplyMarkup"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side + /// The new message reply markup; pass null if none /// - public static Task EditMessageReplyMarkupAsync( - this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } + } + + /// + /// Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side + /// + public static Task EditMessageReplyMarkupAsync( + this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + { + return client.ExecuteAsync(new EditMessageReplyMarkup { - return client.ExecuteAsync(new EditMessageReplyMarkup - { - ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup - }); - } + ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditMessageSchedulingState.cs b/TdLib.Api/Functions/EditMessageSchedulingState.cs index f866c78a..62be03e6 100644 --- a/TdLib.Api/Functions/EditMessageSchedulingState.cs +++ b/TdLib.Api/Functions/EditMessageSchedulingState.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed /// - public static partial class TdApi + public class EditMessageSchedulingState : Function { /// - /// Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed + /// Data type for serialization /// - public class EditMessageSchedulingState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editMessageSchedulingState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editMessageSchedulingState"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_edit_scheduling_state to check whether the message is suitable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message scheduling state; pass null to send the message immediately. Must be null for messages in the state messageSchedulingStateSendWhenVideoProcessed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scheduling_state")] - public MessageSchedulingState SchedulingState { get; set; } - } + /// + /// Identifier of the message. Use messageProperties.can_edit_scheduling_state to check whether the message is suitable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed + /// The new message scheduling state; pass null to send the message immediately. Must be null for messages in the state messageSchedulingStateSendWhenVideoProcessed /// - public static Task EditMessageSchedulingStateAsync( - this IClient client, long chatId = default, long messageId = default, MessageSchedulingState schedulingState = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("scheduling_state")] + public MessageSchedulingState SchedulingState { get; set; } + } + + /// + /// Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed + /// + public static Task EditMessageSchedulingStateAsync( + this IClient client, long chatId = default, long messageId = default, MessageSchedulingState schedulingState = default) + { + return client.ExecuteAsync(new EditMessageSchedulingState { - return client.ExecuteAsync(new EditMessageSchedulingState - { - ChatId = chatId, MessageId = messageId, SchedulingState = schedulingState - }); - } + ChatId = chatId, MessageId = messageId, SchedulingState = schedulingState + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditMessageText.cs b/TdLib.Api/Functions/EditMessageText.cs index ff950ed6..b4cfbe9d 100644 --- a/TdLib.Api/Functions/EditMessageText.cs +++ b/TdLib.Api/Functions/EditMessageText.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side /// - public static partial class TdApi + public class EditMessageText : Function { /// - /// Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side + /// Data type for serialization /// - public class EditMessageText : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editMessageText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editMessageText"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New text content of the message. Must be of type inputMessageText or inputMessageRichMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The new message reply markup; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side + /// New text content of the message. Must be of type inputMessageText or inputMessageRichMessage /// - public static Task EditMessageTextAsync( - this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side + /// + public static Task EditMessageTextAsync( + this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditMessageText { - return client.ExecuteAsync(new EditMessageText - { - ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditProxy.cs b/TdLib.Api/Functions/EditProxy.cs index 5dfa251d..59cb9b10 100644 --- a/TdLib.Api/Functions/EditProxy.cs +++ b/TdLib.Api/Functions/EditProxy.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits an existing proxy server for network requests. Can be called before authorization /// - public static partial class TdApi + public class EditProxy : Function { /// - /// Edits an existing proxy server for network requests. Can be called before authorization + /// Data type for serialization /// - public class EditProxy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editProxy"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Proxy identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy_id")] - public int ProxyId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new information about the proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy")] - public Proxy Proxy { get; set; } + /// + /// Proxy identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy_id")] + public int ProxyId { get; set; } - /// - /// Pass true to immediately enable the proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("enable")] - public bool Enable { get; set; } + /// + /// The new information about the proxy + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy")] + public Proxy Proxy { get; set; } - /// - /// New comment for the proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("comment")] - public string Comment { get; set; } - } + /// + /// Pass true to immediately enable the proxy + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("enable")] + public bool Enable { get; set; } /// - /// Edits an existing proxy server for network requests. Can be called before authorization + /// New comment for the proxy /// - public static Task EditProxyAsync( - this IClient client, int proxyId = default, Proxy proxy = default, bool enable = default, string comment = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + } + + /// + /// Edits an existing proxy server for network requests. Can be called before authorization + /// + public static Task EditProxyAsync( + this IClient client, int proxyId = default, Proxy proxy = default, bool enable = default, string comment = default) + { + return client.ExecuteAsync(new EditProxy { - return client.ExecuteAsync(new EditProxy - { - ProxyId = proxyId, Proxy = proxy, Enable = enable, Comment = comment - }); - } + ProxyId = proxyId, Proxy = proxy, Enable = enable, Comment = comment + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditQuickReplyMessage.cs b/TdLib.Api/Functions/EditQuickReplyMessage.cs index 57f6e062..12ebb8de 100644 --- a/TdLib.Api/Functions/EditQuickReplyMessage.cs +++ b/TdLib.Api/Functions/EditQuickReplyMessage.cs @@ -3,67 +3,69 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. + /// Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. + /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa /// - public static partial class TdApi + public class EditQuickReplyMessage : Function { /// - /// Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. - /// Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. - /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa + /// Data type for serialization /// - public class EditQuickReplyMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editQuickReplyMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editQuickReplyMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of the quick reply shortcut with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Unique identifier of the quick reply shortcut with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } - /// - /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageChecklist, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageText, or inputMessageVideo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. - /// Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. - /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa + /// New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageChecklist, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageText, or inputMessageVideo /// - public static Task EditQuickReplyMessageAsync( - this IClient client, int shortcutId = default, long messageId = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. + /// Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. + /// The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa + /// + public static Task EditQuickReplyMessageAsync( + this IClient client, int shortcutId = default, long messageId = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new EditQuickReplyMessage { - return client.ExecuteAsync(new EditQuickReplyMessage - { - ShortcutId = shortcutId, MessageId = messageId, InputMessageContent = inputMessageContent - }); - } + ShortcutId = shortcutId, MessageId = messageId, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditStarSubscription.cs b/TdLib.Api/Functions/EditStarSubscription.cs index e95a93bf..0eaf6e10 100644 --- a/TdLib.Api/Functions/EditStarSubscription.cs +++ b/TdLib.Api/Functions/EditStarSubscription.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Cancels or re-enables Telegram Star subscription /// - public static partial class TdApi + public class EditStarSubscription : Function { /// - /// Cancels or re-enables Telegram Star subscription + /// Data type for serialization /// - public class EditStarSubscription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editStarSubscription"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editStarSubscription"; - /// - /// Identifier of the subscription to change - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_id")] - public string SubscriptionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of is_canceled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_canceled")] - public bool IsCanceled { get; set; } - } + /// + /// Identifier of the subscription to change + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_id")] + public string SubscriptionId { get; set; } /// - /// Cancels or re-enables Telegram Star subscription + /// New value of is_canceled /// - public static Task EditStarSubscriptionAsync( - this IClient client, string subscriptionId = default, bool isCanceled = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_canceled")] + public bool IsCanceled { get; set; } + } + + /// + /// Cancels or re-enables Telegram Star subscription + /// + public static Task EditStarSubscriptionAsync( + this IClient client, string subscriptionId = default, bool isCanceled = default) + { + return client.ExecuteAsync(new EditStarSubscription { - return client.ExecuteAsync(new EditStarSubscription - { - SubscriptionId = subscriptionId, IsCanceled = isCanceled - }); - } + SubscriptionId = subscriptionId, IsCanceled = isCanceled + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditStory.cs b/TdLib.Api/Functions/EditStory.cs index 2f847e26..e19e4b11 100644 --- a/TdLib.Api/Functions/EditStory.cs +++ b/TdLib.Api/Functions/EditStory.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes content and caption of a story. Can be called only if story.can_be_edited == true /// - public static partial class TdApi + public class EditStory : Function { /// - /// Changes content and caption of a story. Can be called only if story.can_be_edited == true + /// Data type for serialization /// - public class EditStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editStory"; - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story to edit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// New content of the story; pass null to keep the current content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public InputStoryContent Content { get; set; } + /// + /// Identifier of the story to edit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// New clickable rectangle areas to be shown on the story media; pass null to keep the current areas. Areas can't be edited if story content isn't changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("areas")] - public InputStoryAreas Areas { get; set; } + /// + /// New content of the story; pass null to keep the current content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public InputStoryContent Content { get; set; } - /// - /// New story caption; pass null to keep the current caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } - } + /// + /// New clickable rectangle areas to be shown on the story media; pass null to keep the current areas. Areas can't be edited if story content isn't changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("areas")] + public InputStoryAreas Areas { get; set; } /// - /// Changes content and caption of a story. Can be called only if story.can_be_edited == true + /// New story caption; pass null to keep the current caption /// - public static Task EditStoryAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, InputStoryContent content = default, InputStoryAreas areas = default, FormattedText caption = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } + } + + /// + /// Changes content and caption of a story. Can be called only if story.can_be_edited == true + /// + public static Task EditStoryAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, InputStoryContent content = default, InputStoryAreas areas = default, FormattedText caption = default) + { + return client.ExecuteAsync(new EditStory { - return client.ExecuteAsync(new EditStory - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, Content = content, Areas = areas, Caption = caption - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, Content = content, Areas = areas, Caption = caption + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditStoryCover.cs b/TdLib.Api/Functions/EditStoryCover.cs index fa66b452..702e7516 100644 --- a/TdLib.Api/Functions/EditStoryCover.cs +++ b/TdLib.Api/Functions/EditStoryCover.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes cover of a video story. Can be called only if story.can_be_edited == true and the story isn't being edited now /// - public static partial class TdApi + public class EditStoryCover : Function { /// - /// Changes cover of a video story. Can be called only if story.can_be_edited == true and the story isn't being edited now + /// Data type for serialization /// - public class EditStoryCover : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editStoryCover"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editStoryCover"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story to edit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// New timestamp of the frame, which will be used as video thumbnail - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover_frame_timestamp")] - public double? CoverFrameTimestamp { get; set; } - } + /// + /// Identifier of the story to edit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } /// - /// Changes cover of a video story. Can be called only if story.can_be_edited == true and the story isn't being edited now + /// New timestamp of the frame, which will be used as video thumbnail /// - public static Task EditStoryCoverAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, double? coverFrameTimestamp = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("cover_frame_timestamp")] + public double? CoverFrameTimestamp { get; set; } + } + + /// + /// Changes cover of a video story. Can be called only if story.can_be_edited == true and the story isn't being edited now + /// + public static Task EditStoryCoverAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, double? coverFrameTimestamp = default) + { + return client.ExecuteAsync(new EditStoryCover { - return client.ExecuteAsync(new EditStoryCover - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, CoverFrameTimestamp = coverFrameTimestamp - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, CoverFrameTimestamp = coverFrameTimestamp + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditTextCompositionStyle.cs b/TdLib.Api/Functions/EditTextCompositionStyle.cs index 0f7e5676..9b885bce 100644 --- a/TdLib.Api/Functions/EditTextCompositionStyle.cs +++ b/TdLib.Api/Functions/EditTextCompositionStyle.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Edits a custom text composition style that was created by the current user /// - public static partial class TdApi + public class EditTextCompositionStyle : Function { /// - /// Edits a custom text composition style that was created by the current user + /// Data type for serialization /// - public class EditTextCompositionStyle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editTextCompositionStyle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "editTextCompositionStyle"; - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the style; 1-getOption("text_composition_style_title_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Name of the style + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Identifier of the custom emoji corresponding to the style - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } + /// + /// Title of the style; 1-getOption("text_composition_style_title_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prompt")] - public string Prompt { get; set; } + /// + /// Identifier of the custom emoji corresponding to the style + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } - /// - /// Pass true if the current user must be shown as the creator of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_creator")] - public bool ShowCreator { get; set; } - } + /// + /// Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prompt")] + public string Prompt { get; set; } /// - /// Edits a custom text composition style that was created by the current user + /// Pass true if the current user must be shown as the creator of the style /// - public static Task EditTextCompositionStyleAsync( - this IClient client, string name = default, string title = default, long customEmojiId = default, string prompt = default, bool showCreator = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("show_creator")] + public bool ShowCreator { get; set; } + } + + /// + /// Edits a custom text composition style that was created by the current user + /// + public static Task EditTextCompositionStyleAsync( + this IClient client, string name = default, string title = default, long customEmojiId = default, string prompt = default, bool showCreator = default) + { + return client.ExecuteAsync(new EditTextCompositionStyle { - return client.ExecuteAsync(new EditTextCompositionStyle - { - Name = name, Title = title, CustomEmojiId = customEmojiId, Prompt = prompt, ShowCreator = showCreator - }); - } + Name = name, Title = title, CustomEmojiId = customEmojiId, Prompt = prompt, ShowCreator = showCreator + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EditUserStarSubscription.cs b/TdLib.Api/Functions/EditUserStarSubscription.cs index 1707c391..4cda2dd4 100644 --- a/TdLib.Api/Functions/EditUserStarSubscription.cs +++ b/TdLib.Api/Functions/EditUserStarSubscription.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Cancels or re-enables Telegram Star subscription for a user; for bots only /// - public static partial class TdApi + public class EditUserStarSubscription : Function { /// - /// Cancels or re-enables Telegram Star subscription for a user; for bots only + /// Data type for serialization /// - public class EditUserStarSubscription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "editUserStarSubscription"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "editUserStarSubscription"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Telegram payment identifier of the subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("telegram_payment_charge_id")] - public string TelegramPaymentChargeId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Pass true to cancel the subscription; pass false to allow the user to enable it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_canceled")] - public bool IsCanceled { get; set; } - } + /// + /// Telegram payment identifier of the subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("telegram_payment_charge_id")] + public string TelegramPaymentChargeId { get; set; } /// - /// Cancels or re-enables Telegram Star subscription for a user; for bots only + /// Pass true to cancel the subscription; pass false to allow the user to enable it /// - public static Task EditUserStarSubscriptionAsync( - this IClient client, long userId = default, string telegramPaymentChargeId = default, bool isCanceled = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_canceled")] + public bool IsCanceled { get; set; } + } + + /// + /// Cancels or re-enables Telegram Star subscription for a user; for bots only + /// + public static Task EditUserStarSubscriptionAsync( + this IClient client, long userId = default, string telegramPaymentChargeId = default, bool isCanceled = default) + { + return client.ExecuteAsync(new EditUserStarSubscription { - return client.ExecuteAsync(new EditUserStarSubscription - { - UserId = userId, TelegramPaymentChargeId = telegramPaymentChargeId, IsCanceled = isCanceled - }); - } + UserId = userId, TelegramPaymentChargeId = telegramPaymentChargeId, IsCanceled = isCanceled + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EnableProxy.cs b/TdLib.Api/Functions/EnableProxy.cs index c6b7f976..0097420f 100644 --- a/TdLib.Api/Functions/EnableProxy.cs +++ b/TdLib.Api/Functions/EnableProxy.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization /// - public static partial class TdApi + public class EnableProxy : Function { /// - /// Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization + /// Data type for serialization /// - public class EnableProxy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "enableProxy"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "enableProxy"; - /// - /// Proxy identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy_id")] - public int ProxyId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization + /// Proxy identifier /// - public static Task EnableProxyAsync( - this IClient client, int proxyId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy_id")] + public int ProxyId { get; set; } + } + + /// + /// Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization + /// + public static Task EnableProxyAsync( + this IClient client, int proxyId = default) + { + return client.ExecuteAsync(new EnableProxy { - return client.ExecuteAsync(new EnableProxy - { - ProxyId = proxyId - }); - } + ProxyId = proxyId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EnableTonWalletBackup.cs b/TdLib.Api/Functions/EnableTonWalletBackup.cs new file mode 100644 index 00000000..1f0e4954 --- /dev/null +++ b/TdLib.Api/Functions/EnableTonWalletBackup.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Enables backup of the TON wallet of the user. Works only if tonWalletState.can_enable_backup is true + /// + public class EnableTonWalletBackup : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "enableTonWalletBackup"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The secret phrase of the user's TON wallet as a space separated list of words + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("secret_phrase")] + public string SecretPhrase { get; set; } + + /// + /// Proof of the TON wallet ownership; use getTonWalletOwnershipProofChallenge to get a challenge for the proof + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proof")] + public TonWalletOwnershipProof Proof { get; set; } + } + + /// + /// Enables backup of the TON wallet of the user. Works only if tonWalletState.can_enable_backup is true + /// + public static Task EnableTonWalletBackupAsync( + this IClient client, string secretPhrase = default, TonWalletOwnershipProof proof = default) + { + return client.ExecuteAsync(new EnableTonWalletBackup + { + SecretPhrase = secretPhrase, Proof = proof + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EncryptGroupCallData.cs b/TdLib.Api/Functions/EncryptGroupCallData.cs index f34da865..b2d2dced 100644 --- a/TdLib.Api/Functions/EncryptGroupCallData.cs +++ b/TdLib.Api/Functions/EncryptGroupCallData.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Encrypts group call data before sending them over network using tgcalls /// - public static partial class TdApi + public class EncryptGroupCallData : Function { /// - /// Encrypts group call data before sending them over network using tgcalls + /// Data type for serialization /// - public class EncryptGroupCallData : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "encryptGroupCallData"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "encryptGroupCallData"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier. The call must not be a video chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Data channel for which data is encrypted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data_channel")] - public GroupCallDataChannel DataChannel { get; set; } + /// + /// Group call identifier. The call must not be a video chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Data to encrypt - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } + /// + /// Data channel for which data is encrypted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data_channel")] + public GroupCallDataChannel DataChannel { get; set; } - /// - /// Size of data prefix that must be kept unencrypted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unencrypted_prefix_size")] - public int UnencryptedPrefixSize { get; set; } - } + /// + /// Data to encrypt + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } /// - /// Encrypts group call data before sending them over network using tgcalls + /// Size of data prefix that must be kept unencrypted /// - public static Task EncryptGroupCallDataAsync( - this IClient client, int groupCallId = default, GroupCallDataChannel dataChannel = default, byte[] data = default, int unencryptedPrefixSize = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("unencrypted_prefix_size")] + public int UnencryptedPrefixSize { get; set; } + } + + /// + /// Encrypts group call data before sending them over network using tgcalls + /// + public static Task EncryptGroupCallDataAsync( + this IClient client, int groupCallId = default, GroupCallDataChannel dataChannel = default, byte[] data = default, int unencryptedPrefixSize = default) + { + return client.ExecuteAsync(new EncryptGroupCallData { - return client.ExecuteAsync(new EncryptGroupCallData - { - GroupCallId = groupCallId, DataChannel = dataChannel, Data = data, UnencryptedPrefixSize = unencryptedPrefixSize - }); - } + GroupCallId = groupCallId, DataChannel = dataChannel, Data = data, UnencryptedPrefixSize = unencryptedPrefixSize + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EndGroupCall.cs b/TdLib.Api/Functions/EndGroupCall.cs index d351ce7e..bddfe16c 100644 --- a/TdLib.Api/Functions/EndGroupCall.cs +++ b/TdLib.Api/Functions/EndGroupCall.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Ends a group call. Requires groupCall.can_be_managed right for video chats and live stories or groupCall.is_owned otherwise /// - public static partial class TdApi + public class EndGroupCall : Function { /// - /// Ends a group call. Requires groupCall.can_be_managed right for video chats and live stories or groupCall.is_owned otherwise + /// Data type for serialization /// - public class EndGroupCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "endGroupCall"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "endGroupCall"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Ends a group call. Requires groupCall.can_be_managed right for video chats and live stories or groupCall.is_owned otherwise + /// Group call identifier /// - public static Task EndGroupCallAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Ends a group call. Requires groupCall.can_be_managed right for video chats and live stories or groupCall.is_owned otherwise + /// + public static Task EndGroupCallAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new EndGroupCall { - return client.ExecuteAsync(new EndGroupCall - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EndGroupCallRecording.cs b/TdLib.Api/Functions/EndGroupCallRecording.cs index 49b3dc52..33a6dbad 100644 --- a/TdLib.Api/Functions/EndGroupCallRecording.cs +++ b/TdLib.Api/Functions/EndGroupCallRecording.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Ends recording of an active group call; for video chats only. Requires groupCall.can_be_managed right /// - public static partial class TdApi + public class EndGroupCallRecording : Function { /// - /// Ends recording of an active group call; for video chats only. Requires groupCall.can_be_managed right + /// Data type for serialization /// - public class EndGroupCallRecording : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "endGroupCallRecording"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "endGroupCallRecording"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Ends recording of an active group call; for video chats only. Requires groupCall.can_be_managed right + /// Group call identifier /// - public static Task EndGroupCallRecordingAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Ends recording of an active group call; for video chats only. Requires groupCall.can_be_managed right + /// + public static Task EndGroupCallRecordingAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new EndGroupCallRecording { - return client.ExecuteAsync(new EndGroupCallRecording - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/EndGroupCallScreenSharing.cs b/TdLib.Api/Functions/EndGroupCallScreenSharing.cs index 14ecf26e..5b795632 100644 --- a/TdLib.Api/Functions/EndGroupCallScreenSharing.cs +++ b/TdLib.Api/Functions/EndGroupCallScreenSharing.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Ends screen sharing in a joined group call; not supported in live stories /// - public static partial class TdApi + public class EndGroupCallScreenSharing : Function { /// - /// Ends screen sharing in a joined group call; not supported in live stories + /// Data type for serialization /// - public class EndGroupCallScreenSharing : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "endGroupCallScreenSharing"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "endGroupCallScreenSharing"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Ends screen sharing in a joined group call; not supported in live stories + /// Group call identifier /// - public static Task EndGroupCallScreenSharingAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Ends screen sharing in a joined group call; not supported in live stories + /// + public static Task EndGroupCallScreenSharingAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new EndGroupCallScreenSharing { - return client.ExecuteAsync(new EndGroupCallScreenSharing - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/FinishFileGeneration.cs b/TdLib.Api/Functions/FinishFileGeneration.cs index fb2df33c..33728adb 100644 --- a/TdLib.Api/Functions/FinishFileGeneration.cs +++ b/TdLib.Api/Functions/FinishFileGeneration.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Finishes the file generation /// - public static partial class TdApi + public class FinishFileGeneration : Function { /// - /// Finishes the file generation + /// Data type for serialization /// - public class FinishFileGeneration : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "finishFileGeneration"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "finishFileGeneration"; - /// - /// The identifier of the generation process - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("generation_id")] - public long GenerationId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// If passed, the file generation has failed and must be terminated; pass null if the file generation succeeded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } - } + /// + /// The identifier of the generation process + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("generation_id")] + public long GenerationId { get; set; } /// - /// Finishes the file generation + /// If passed, the file generation has failed and must be terminated; pass null if the file generation succeeded /// - public static Task FinishFileGenerationAsync( - this IClient client, long generationId = default, Error error = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } + } + + /// + /// Finishes the file generation + /// + public static Task FinishFileGenerationAsync( + this IClient client, long generationId = default, Error error = default) + { + return client.ExecuteAsync(new FinishFileGeneration { - return client.ExecuteAsync(new FinishFileGeneration - { - GenerationId = generationId, Error = error - }); - } + GenerationId = generationId, Error = error + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/FixRichMessageWithAi.cs b/TdLib.Api/Functions/FixRichMessageWithAi.cs index 9e1a7d5a..5392a5c5 100644 --- a/TdLib.Api/Functions/FixRichMessageWithAi.cs +++ b/TdLib.Api/Functions/FixRichMessageWithAi.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Fixes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests /// - public static partial class TdApi + public class FixRichMessageWithAi : Function { /// - /// Fixes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Data type for serialization /// - public class FixRichMessageWithAi : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fixRichMessageWithAi"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "fixRichMessageWithAi"; - /// - /// The original message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public InputRichMessage Message { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Fixes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// The original message /// - public static Task FixRichMessageWithAiAsync( - this IClient client, InputRichMessage message = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public InputRichMessage Message { get; set; } + } + + /// + /// Fixes a rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// + public static Task FixRichMessageWithAiAsync( + this IClient client, InputRichMessage message = default) + { + return client.ExecuteAsync(new FixRichMessageWithAi { - return client.ExecuteAsync(new FixRichMessageWithAi - { - Message = message - }); - } + Message = message + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/FixTextWithAi.cs b/TdLib.Api/Functions/FixTextWithAi.cs index 4e008d51..028583dd 100644 --- a/TdLib.Api/Functions/FixTextWithAi.cs +++ b/TdLib.Api/Functions/FixTextWithAi.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Fixes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests /// - public static partial class TdApi + public class FixTextWithAi : Function { /// - /// Fixes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// Data type for serialization /// - public class FixTextWithAi : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fixTextWithAi"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "fixTextWithAi"; - /// - /// The original text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Fixes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// The original text /// - public static Task FixTextWithAiAsync( - this IClient client, FormattedText text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + } + + /// + /// Fixes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests + /// + public static Task FixTextWithAiAsync( + this IClient client, FormattedText text = default) + { + return client.ExecuteAsync(new FixTextWithAi { - return client.ExecuteAsync(new FixTextWithAi - { - Text = text - }); - } + Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ForwardMessages.cs b/TdLib.Api/Functions/ForwardMessages.cs index 74d2abcd..42a45955 100644 --- a/TdLib.Api/Functions/ForwardMessages.cs +++ b/TdLib.Api/Functions/ForwardMessages.cs @@ -3,91 +3,93 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message /// - public static partial class TdApi + public class ForwardMessages : Function { /// - /// Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message + /// Data type for serialization /// - public class ForwardMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "forwardMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "forwardMessages"; - /// - /// Identifier of the chat to which to forward messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic in which the messages will be forwarded; message threads aren't supported; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the chat to which to forward messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the chat from which to forward messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_chat_id")] - public long FromChatId { get; set; } + /// + /// Topic in which the messages will be forwarded; message threads aren't supported; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously. A message can be forwarded only if messageProperties.can_be_forwarded - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } + /// + /// Identifier of the chat from which to forward messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_chat_id")] + public long FromChatId { get; set; } - /// - /// Options to be used to send the messages; pass null to use default options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("options")] - public MessageSendOptions Options { get; set; } + /// + /// Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously. A message can be forwarded only if messageProperties.can_be_forwarded + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } - /// - /// Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local. - /// Use messageProperties.can_be_copied and messageProperties.can_be_copied_to_secret_chat to check whether the message is suitable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_copy")] - public bool SendCopy { get; set; } + /// + /// Options to be used to send the messages; pass null to use default options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("options")] + public MessageSendOptions Options { get; set; } - /// - /// Pass true to remove media captions of message copies. Ignored if send_copy is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("remove_caption")] - public bool RemoveCaption { get; set; } - } + /// + /// Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local. + /// Use messageProperties.can_be_copied and messageProperties.can_be_copied_to_secret_chat to check whether the message is suitable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_copy")] + public bool SendCopy { get; set; } /// - /// Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message + /// Pass true to remove media captions of message copies. Ignored if send_copy is false /// - public static Task ForwardMessagesAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, long fromChatId = default, long[] messageIds = default, MessageSendOptions options = default, bool sendCopy = default, bool removeCaption = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("remove_caption")] + public bool RemoveCaption { get; set; } + } + + /// + /// Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message + /// + public static Task ForwardMessagesAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, long fromChatId = default, long[] messageIds = default, MessageSendOptions options = default, bool sendCopy = default, bool removeCaption = default) + { + return client.ExecuteAsync(new ForwardMessages { - return client.ExecuteAsync(new ForwardMessages - { - ChatId = chatId, TopicId = topicId, FromChatId = fromChatId, MessageIds = messageIds, Options = options, SendCopy = sendCopy, RemoveCaption = removeCaption - }); - } + ChatId = chatId, TopicId = topicId, FromChatId = fromChatId, MessageIds = messageIds, Options = options, SendCopy = sendCopy, RemoveCaption = removeCaption + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAccountTtl.cs b/TdLib.Api/Functions/GetAccountTtl.cs index dbc3257f..d3cb902a 100644 --- a/TdLib.Api/Functions/GetAccountTtl.cs +++ b/TdLib.Api/Functions/GetAccountTtl.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the period of inactivity after which the account of the current user will automatically be deleted /// - public static partial class TdApi + public class GetAccountTtl : Function { /// - /// Returns the period of inactivity after which the account of the current user will automatically be deleted + /// Data type for serialization /// - public class GetAccountTtl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAccountTtl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAccountTtl"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the period of inactivity after which the account of the current user will automatically be deleted - /// - public static Task GetAccountTtlAsync( - this IClient client) + /// + /// Returns the period of inactivity after which the account of the current user will automatically be deleted + /// + public static Task GetAccountTtlAsync( + this IClient client) + { + return client.ExecuteAsync(new GetAccountTtl { - return client.ExecuteAsync(new GetAccountTtl - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetActiveSessions.cs b/TdLib.Api/Functions/GetActiveSessions.cs index 55ffb189..0f480e56 100644 --- a/TdLib.Api/Functions/GetActiveSessions.cs +++ b/TdLib.Api/Functions/GetActiveSessions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all active sessions of the current user. Additionally, getBusinessConnectedBot must be used to show the bot on top of active sessions /// - public static partial class TdApi + public class GetActiveSessions : Function { /// - /// Returns all active sessions of the current user. Additionally, getBusinessConnectedBot must be used to show the bot on top of active sessions + /// Data type for serialization /// - public class GetActiveSessions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getActiveSessions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getActiveSessions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns all active sessions of the current user. Additionally, getBusinessConnectedBot must be used to show the bot on top of active sessions - /// - public static Task GetActiveSessionsAsync( - this IClient client) + /// + /// Returns all active sessions of the current user. Additionally, getBusinessConnectedBot must be used to show the bot on top of active sessions + /// + public static Task GetActiveSessionsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetActiveSessions { - return client.ExecuteAsync(new GetActiveSessions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAddressTonWallet.cs b/TdLib.Api/Functions/GetAddressTonWallet.cs new file mode 100644 index 00000000..047f76ab --- /dev/null +++ b/TdLib.Api/Functions/GetAddressTonWallet.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns information about a TON wallet with the given address; can be used only if getOption("can_use_ton_wallet") + /// + public class GetAddressTonWallet : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAddressTonWallet"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Address in the TON blockchain + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } + } + + /// + /// Returns information about a TON wallet with the given address; can be used only if getOption("can_use_ton_wallet") + /// + public static Task GetAddressTonWalletAsync( + this IClient client, string address = default) + { + return client.ExecuteAsync(new GetAddressTonWallet + { + Address = address + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAllPassportElements.cs b/TdLib.Api/Functions/GetAllPassportElements.cs index cfed4827..b9d08962 100644 --- a/TdLib.Api/Functions/GetAllPassportElements.cs +++ b/TdLib.Api/Functions/GetAllPassportElements.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all available Telegram Passport elements /// - public static partial class TdApi + public class GetAllPassportElements : Function { /// - /// Returns all available Telegram Passport elements + /// Data type for serialization /// - public class GetAllPassportElements : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAllPassportElements"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAllPassportElements"; - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns all available Telegram Passport elements + /// The 2-step verification password of the current user /// - public static Task GetAllPassportElementsAsync( - this IClient client, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns all available Telegram Passport elements + /// + public static Task GetAllPassportElementsAsync( + this IClient client, string password = default) + { + return client.ExecuteAsync(new GetAllPassportElements { - return client.ExecuteAsync(new GetAllPassportElements - { - Password = password - }); - } + Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAllStickerEmojis.cs b/TdLib.Api/Functions/GetAllStickerEmojis.cs index 5eb44ff6..fd0235ea 100644 --- a/TdLib.Api/Functions/GetAllStickerEmojis.cs +++ b/TdLib.Api/Functions/GetAllStickerEmojis.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id) /// - public static partial class TdApi + public class GetAllStickerEmojis : Function { /// - /// Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id) + /// Data type for serialization /// - public class GetAllStickerEmojis : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAllStickerEmojis"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAllStickerEmojis"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Type of the stickers to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Search query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Type of the stickers to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// Chat identifier for which to find stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Search query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Pass true if only main emoji for each found sticker must be included in the result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_only_main_emoji")] - public bool ReturnOnlyMainEmoji { get; set; } - } + /// + /// Chat identifier for which to find stickers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id) + /// Pass true if only main emoji for each found sticker must be included in the result /// - public static Task GetAllStickerEmojisAsync( - this IClient client, StickerType stickerType = default, string query = default, long chatId = default, bool returnOnlyMainEmoji = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("return_only_main_emoji")] + public bool ReturnOnlyMainEmoji { get; set; } + } + + /// + /// Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id) + /// + public static Task GetAllStickerEmojisAsync( + this IClient client, StickerType stickerType = default, string query = default, long chatId = default, bool returnOnlyMainEmoji = default) + { + return client.ExecuteAsync(new GetAllStickerEmojis { - return client.ExecuteAsync(new GetAllStickerEmojis - { - StickerType = stickerType, Query = query, ChatId = chatId, ReturnOnlyMainEmoji = returnOnlyMainEmoji - }); - } + StickerType = stickerType, Query = query, ChatId = chatId, ReturnOnlyMainEmoji = returnOnlyMainEmoji + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAnimatedEmoji.cs b/TdLib.Api/Functions/GetAnimatedEmoji.cs index 7dcf8d90..714bad7b 100644 --- a/TdLib.Api/Functions/GetAnimatedEmoji.cs +++ b/TdLib.Api/Functions/GetAnimatedEmoji.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji /// - public static partial class TdApi + public class GetAnimatedEmoji : Function { /// - /// Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji + /// Data type for serialization /// - public class GetAnimatedEmoji : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAnimatedEmoji"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAnimatedEmoji"; - /// - /// The emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji + /// The emoji /// - public static Task GetAnimatedEmojiAsync( - this IClient client, string emoji = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } + } + + /// + /// Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji + /// + public static Task GetAnimatedEmojiAsync( + this IClient client, string emoji = default) + { + return client.ExecuteAsync(new GetAnimatedEmoji { - return client.ExecuteAsync(new GetAnimatedEmoji - { - Emoji = emoji - }); - } + Emoji = emoji + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetApplicationConfig.cs b/TdLib.Api/Functions/GetApplicationConfig.cs index 980b9a87..ff846d7e 100644 --- a/TdLib.Api/Functions/GetApplicationConfig.cs +++ b/TdLib.Api/Functions/GetApplicationConfig.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns application config, provided by the server. Can be called before authorization /// - public static partial class TdApi + public class GetApplicationConfig : Function { /// - /// Returns application config, provided by the server. Can be called before authorization + /// Data type for serialization /// - public class GetApplicationConfig : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getApplicationConfig"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getApplicationConfig"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns application config, provided by the server. Can be called before authorization - /// - public static Task GetApplicationConfigAsync( - this IClient client) + /// + /// Returns application config, provided by the server. Can be called before authorization + /// + public static Task GetApplicationConfigAsync( + this IClient client) + { + return client.ExecuteAsync(new GetApplicationConfig { - return client.ExecuteAsync(new GetApplicationConfig - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetApplicationDownloadLink.cs b/TdLib.Api/Functions/GetApplicationDownloadLink.cs index 0753ff38..91153808 100644 --- a/TdLib.Api/Functions/GetApplicationDownloadLink.cs +++ b/TdLib.Api/Functions/GetApplicationDownloadLink.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram /// - public static partial class TdApi + public class GetApplicationDownloadLink : Function { /// - /// Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram + /// Data type for serialization /// - public class GetApplicationDownloadLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getApplicationDownloadLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getApplicationDownloadLink"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram - /// - public static Task GetApplicationDownloadLinkAsync( - this IClient client) + /// + /// Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram + /// + public static Task GetApplicationDownloadLinkAsync( + this IClient client) + { + return client.ExecuteAsync(new GetApplicationDownloadLink { - return client.ExecuteAsync(new GetApplicationDownloadLink - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetArchiveChatListSettings.cs b/TdLib.Api/Functions/GetArchiveChatListSettings.cs index 9dd15950..8aa435e5 100644 --- a/TdLib.Api/Functions/GetArchiveChatListSettings.cs +++ b/TdLib.Api/Functions/GetArchiveChatListSettings.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns settings for automatic moving of chats to and from the Archive chat lists /// - public static partial class TdApi + public class GetArchiveChatListSettings : Function { /// - /// Returns settings for automatic moving of chats to and from the Archive chat lists + /// Data type for serialization /// - public class GetArchiveChatListSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getArchiveChatListSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getArchiveChatListSettings"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns settings for automatic moving of chats to and from the Archive chat lists - /// - public static Task GetArchiveChatListSettingsAsync( - this IClient client) + /// + /// Returns settings for automatic moving of chats to and from the Archive chat lists + /// + public static Task GetArchiveChatListSettingsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetArchiveChatListSettings { - return client.ExecuteAsync(new GetArchiveChatListSettings - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetArchivedStickerSets.cs b/TdLib.Api/Functions/GetArchivedStickerSets.cs index ba789c65..67a1fdfb 100644 --- a/TdLib.Api/Functions/GetArchivedStickerSets.cs +++ b/TdLib.Api/Functions/GetArchivedStickerSets.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of archived sticker sets /// - public static partial class TdApi + public class GetArchivedStickerSets : Function { /// - /// Returns a list of archived sticker sets + /// Data type for serialization /// - public class GetArchivedStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getArchivedStickerSets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getArchivedStickerSets"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Type of the sticker sets to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sticker set from which to return the result; use 0 to get results from the beginning - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("offset_sticker_set_id")] - public long OffsetStickerSetId { get; set; } + /// + /// Type of the sticker sets to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// The maximum number of sticker sets to return; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Identifier of the sticker set from which to return the result; use 0 to get results from the beginning + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("offset_sticker_set_id")] + public long OffsetStickerSetId { get; set; } /// - /// Returns a list of archived sticker sets + /// The maximum number of sticker sets to return; up to 100 /// - public static Task GetArchivedStickerSetsAsync( - this IClient client, StickerType stickerType = default, long offsetStickerSetId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns a list of archived sticker sets + /// + public static Task GetArchivedStickerSetsAsync( + this IClient client, StickerType stickerType = default, long offsetStickerSetId = default, int limit = default) + { + return client.ExecuteAsync(new GetArchivedStickerSets { - return client.ExecuteAsync(new GetArchivedStickerSets - { - StickerType = stickerType, OffsetStickerSetId = offsetStickerSetId, Limit = limit - }); - } + StickerType = stickerType, OffsetStickerSetId = offsetStickerSetId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAttachedStickerSets.cs b/TdLib.Api/Functions/GetAttachedStickerSets.cs index 55541dfd..a48f0249 100644 --- a/TdLib.Api/Functions/GetAttachedStickerSets.cs +++ b/TdLib.Api/Functions/GetAttachedStickerSets.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only animations, photos, and videos can have attached sticker sets /// - public static partial class TdApi + public class GetAttachedStickerSets : Function { /// - /// Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only animations, photos, and videos can have attached sticker sets + /// Data type for serialization /// - public class GetAttachedStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAttachedStickerSets"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAttachedStickerSets"; - /// - /// File identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only animations, photos, and videos can have attached sticker sets + /// File identifier /// - public static Task GetAttachedStickerSetsAsync( - this IClient client, int fileId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } + } + + /// + /// Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only animations, photos, and videos can have attached sticker sets + /// + public static Task GetAttachedStickerSetsAsync( + this IClient client, int fileId = default) + { + return client.ExecuteAsync(new GetAttachedStickerSets { - return client.ExecuteAsync(new GetAttachedStickerSets - { - FileId = fileId - }); - } + FileId = fileId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAttachmentMenuBot.cs b/TdLib.Api/Functions/GetAttachmentMenuBot.cs index 77f4624e..c374edd5 100644 --- a/TdLib.Api/Functions/GetAttachmentMenuBot.cs +++ b/TdLib.Api/Functions/GetAttachmentMenuBot.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a bot that can be added to attachment or side menu /// - public static partial class TdApi + public class GetAttachmentMenuBot : Function { /// - /// Returns information about a bot that can be added to attachment or side menu + /// Data type for serialization /// - public class GetAttachmentMenuBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAttachmentMenuBot"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAttachmentMenuBot"; - /// - /// Bot's user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a bot that can be added to attachment or side menu + /// Bot's user identifier /// - public static Task GetAttachmentMenuBotAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Returns information about a bot that can be added to attachment or side menu + /// + public static Task GetAttachmentMenuBotAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new GetAttachmentMenuBot { - return client.ExecuteAsync(new GetAttachmentMenuBot - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAuthenticationPasskeyParameters.cs b/TdLib.Api/Functions/GetAuthenticationPasskeyParameters.cs index 5c98dd88..1f8b68a7 100644 --- a/TdLib.Api/Functions/GetAuthenticationPasskeyParameters.cs +++ b/TdLib.Api/Functions/GetAuthenticationPasskeyParameters.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns parameters for authentication using a passkey as JSON-serialized string /// - public static partial class TdApi + public class GetAuthenticationPasskeyParameters : Function { /// - /// Returns parameters for authentication using a passkey as JSON-serialized string + /// Data type for serialization /// - public class GetAuthenticationPasskeyParameters : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAuthenticationPasskeyParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAuthenticationPasskeyParameters"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns parameters for authentication using a passkey as JSON-serialized string - /// - public static Task GetAuthenticationPasskeyParametersAsync( - this IClient client) + /// + /// Returns parameters for authentication using a passkey as JSON-serialized string + /// + public static Task GetAuthenticationPasskeyParametersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetAuthenticationPasskeyParameters { - return client.ExecuteAsync(new GetAuthenticationPasskeyParameters - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAuthorizationState.cs b/TdLib.Api/Functions/GetAuthorizationState.cs index dc681979..d74b118c 100644 --- a/TdLib.Api/Functions/GetAuthorizationState.cs +++ b/TdLib.Api/Functions/GetAuthorizationState.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the current authorization state. This is an offline method. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization /// - public static partial class TdApi + public class GetAuthorizationState : Function { /// - /// Returns the current authorization state. This is an offline method. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization + /// Data type for serialization /// - public class GetAuthorizationState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAuthorizationState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAuthorizationState"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the current authorization state. This is an offline method. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization - /// - public static Task GetAuthorizationStateAsync( - this IClient client) + /// + /// Returns the current authorization state. This is an offline method. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization + /// + public static Task GetAuthorizationStateAsync( + this IClient client) + { + return client.ExecuteAsync(new GetAuthorizationState { - return client.ExecuteAsync(new GetAuthorizationState - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAutoDownloadSettingsPresets.cs b/TdLib.Api/Functions/GetAutoDownloadSettingsPresets.cs index 7517f13e..100af64c 100644 --- a/TdLib.Api/Functions/GetAutoDownloadSettingsPresets.cs +++ b/TdLib.Api/Functions/GetAutoDownloadSettingsPresets.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns auto-download settings presets for the current user /// - public static partial class TdApi + public class GetAutoDownloadSettingsPresets : Function { /// - /// Returns auto-download settings presets for the current user + /// Data type for serialization /// - public class GetAutoDownloadSettingsPresets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAutoDownloadSettingsPresets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAutoDownloadSettingsPresets"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns auto-download settings presets for the current user - /// - public static Task GetAutoDownloadSettingsPresetsAsync( - this IClient client) + /// + /// Returns auto-download settings presets for the current user + /// + public static Task GetAutoDownloadSettingsPresetsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetAutoDownloadSettingsPresets { - return client.ExecuteAsync(new GetAutoDownloadSettingsPresets - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAutosaveSettings.cs b/TdLib.Api/Functions/GetAutosaveSettings.cs index 3dcf97c6..975ed3bd 100644 --- a/TdLib.Api/Functions/GetAutosaveSettings.cs +++ b/TdLib.Api/Functions/GetAutosaveSettings.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns autosave settings for the current user /// - public static partial class TdApi + public class GetAutosaveSettings : Function { /// - /// Returns autosave settings for the current user + /// Data type for serialization /// - public class GetAutosaveSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAutosaveSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAutosaveSettings"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns autosave settings for the current user - /// - public static Task GetAutosaveSettingsAsync( - this IClient client) + /// + /// Returns autosave settings for the current user + /// + public static Task GetAutosaveSettingsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetAutosaveSettings { - return client.ExecuteAsync(new GetAutosaveSettings - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAvailableChatBoostSlots.cs b/TdLib.Api/Functions/GetAvailableChatBoostSlots.cs index 2347ec98..31cbcb2b 100644 --- a/TdLib.Api/Functions/GetAvailableChatBoostSlots.cs +++ b/TdLib.Api/Functions/GetAvailableChatBoostSlots.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of available chat boost slots for the current user /// - public static partial class TdApi + public class GetAvailableChatBoostSlots : Function { /// - /// Returns the list of available chat boost slots for the current user + /// Data type for serialization /// - public class GetAvailableChatBoostSlots : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAvailableChatBoostSlots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAvailableChatBoostSlots"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of available chat boost slots for the current user - /// - public static Task GetAvailableChatBoostSlotsAsync( - this IClient client) + /// + /// Returns the list of available chat boost slots for the current user + /// + public static Task GetAvailableChatBoostSlotsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetAvailableChatBoostSlots { - return client.ExecuteAsync(new GetAvailableChatBoostSlots - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetAvailableGifts.cs b/TdLib.Api/Functions/GetAvailableGifts.cs index 19226693..6cb41f7b 100644 --- a/TdLib.Api/Functions/GetAvailableGifts.cs +++ b/TdLib.Api/Functions/GetAvailableGifts.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns gifts that can be sent to other users and channel chats /// - public static partial class TdApi + public class GetAvailableGifts : Function { /// - /// Returns gifts that can be sent to other users and channel chats + /// Data type for serialization /// - public class GetAvailableGifts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getAvailableGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getAvailableGifts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns gifts that can be sent to other users and channel chats - /// - public static Task GetAvailableGiftsAsync( - this IClient client) + /// + /// Returns gifts that can be sent to other users and channel chats + /// + public static Task GetAvailableGiftsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetAvailableGifts { - return client.ExecuteAsync(new GetAvailableGifts - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBackgroundUrl.cs b/TdLib.Api/Functions/GetBackgroundUrl.cs index 5934bc2f..5fe49c9a 100644 --- a/TdLib.Api/Functions/GetBackgroundUrl.cs +++ b/TdLib.Api/Functions/GetBackgroundUrl.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Constructs a persistent HTTP URL for a background /// - public static partial class TdApi + public class GetBackgroundUrl : Function { /// - /// Constructs a persistent HTTP URL for a background + /// Data type for serialization /// - public class GetBackgroundUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBackgroundUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBackgroundUrl"; - /// - /// Background name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Background type; backgroundTypeChatTheme isn't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public BackgroundType Type { get; set; } - } + /// + /// Background name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Constructs a persistent HTTP URL for a background + /// Background type; backgroundTypeChatTheme isn't supported /// - public static Task GetBackgroundUrlAsync( - this IClient client, string name = default, BackgroundType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public BackgroundType Type { get; set; } + } + + /// + /// Constructs a persistent HTTP URL for a background + /// + public static Task GetBackgroundUrlAsync( + this IClient client, string name = default, BackgroundType type = default) + { + return client.ExecuteAsync(new GetBackgroundUrl { - return client.ExecuteAsync(new GetBackgroundUrl - { - Name = name, Type = type - }); - } + Name = name, Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBankCardInfo.cs b/TdLib.Api/Functions/GetBankCardInfo.cs index 7071a093..351b081f 100644 --- a/TdLib.Api/Functions/GetBankCardInfo.cs +++ b/TdLib.Api/Functions/GetBankCardInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a bank card /// - public static partial class TdApi + public class GetBankCardInfo : Function { /// - /// Returns information about a bank card + /// Data type for serialization /// - public class GetBankCardInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBankCardInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBankCardInfo"; - /// - /// The bank card number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bank_card_number")] - public string BankCardNumber { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a bank card + /// The bank card number /// - public static Task GetBankCardInfoAsync( - this IClient client, string bankCardNumber = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bank_card_number")] + public string BankCardNumber { get; set; } + } + + /// + /// Returns information about a bank card + /// + public static Task GetBankCardInfoAsync( + this IClient client, string bankCardNumber = default) + { + return client.ExecuteAsync(new GetBankCardInfo { - return client.ExecuteAsync(new GetBankCardInfo - { - BankCardNumber = bankCardNumber - }); - } + BankCardNumber = bankCardNumber + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBasicGroup.cs b/TdLib.Api/Functions/GetBasicGroup.cs index 2adace03..6f0dcb6b 100644 --- a/TdLib.Api/Functions/GetBasicGroup.cs +++ b/TdLib.Api/Functions/GetBasicGroup.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a basic group by its identifier. This is an offline method if the current user is not a bot /// - public static partial class TdApi + public class GetBasicGroup : Function { /// - /// Returns information about a basic group by its identifier. This is an offline method if the current user is not a bot + /// Data type for serialization /// - public class GetBasicGroup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBasicGroup"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBasicGroup"; - /// - /// Basic group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group_id")] - public long BasicGroupId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a basic group by its identifier. This is an offline method if the current user is not a bot + /// Basic group identifier /// - public static Task GetBasicGroupAsync( - this IClient client, long basicGroupId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group_id")] + public long BasicGroupId { get; set; } + } + + /// + /// Returns information about a basic group by its identifier. This is an offline method if the current user is not a bot + /// + public static Task GetBasicGroupAsync( + this IClient client, long basicGroupId = default) + { + return client.ExecuteAsync(new GetBasicGroup { - return client.ExecuteAsync(new GetBasicGroup - { - BasicGroupId = basicGroupId - }); - } + BasicGroupId = basicGroupId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBasicGroupFullInfo.cs b/TdLib.Api/Functions/GetBasicGroupFullInfo.cs index c1a923b6..4b431bf5 100644 --- a/TdLib.Api/Functions/GetBasicGroupFullInfo.cs +++ b/TdLib.Api/Functions/GetBasicGroupFullInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns full information about a basic group by its identifier /// - public static partial class TdApi + public class GetBasicGroupFullInfo : Function { /// - /// Returns full information about a basic group by its identifier + /// Data type for serialization /// - public class GetBasicGroupFullInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBasicGroupFullInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBasicGroupFullInfo"; - /// - /// Basic group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group_id")] - public long BasicGroupId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns full information about a basic group by its identifier + /// Basic group identifier /// - public static Task GetBasicGroupFullInfoAsync( - this IClient client, long basicGroupId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group_id")] + public long BasicGroupId { get; set; } + } + + /// + /// Returns full information about a basic group by its identifier + /// + public static Task GetBasicGroupFullInfoAsync( + this IClient client, long basicGroupId = default) + { + return client.ExecuteAsync(new GetBasicGroupFullInfo { - return client.ExecuteAsync(new GetBasicGroupFullInfo - { - BasicGroupId = basicGroupId - }); - } + BasicGroupId = basicGroupId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBlockedMessageSenders.cs b/TdLib.Api/Functions/GetBlockedMessageSenders.cs index 921a9d91..334a4bfb 100644 --- a/TdLib.Api/Functions/GetBlockedMessageSenders.cs +++ b/TdLib.Api/Functions/GetBlockedMessageSenders.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns users and chats that were blocked by the current user /// - public static partial class TdApi + public class GetBlockedMessageSenders : Function { /// - /// Returns users and chats that were blocked by the current user + /// Data type for serialization /// - public class GetBlockedMessageSenders : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBlockedMessageSenders"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBlockedMessageSenders"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Block list from which to return users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("block_list")] - public BlockList BlockList { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of users and chats to skip in the result; must be non-negative - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Block list from which to return users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("block_list")] + public BlockList BlockList { get; set; } - /// - /// The maximum number of users and chats to return; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Number of users and chats to skip in the result; must be non-negative + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns users and chats that were blocked by the current user + /// The maximum number of users and chats to return; up to 100 /// - public static Task GetBlockedMessageSendersAsync( - this IClient client, BlockList blockList = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns users and chats that were blocked by the current user + /// + public static Task GetBlockedMessageSendersAsync( + this IClient client, BlockList blockList = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetBlockedMessageSenders { - return client.ExecuteAsync(new GetBlockedMessageSenders - { - BlockList = blockList, Offset = offset, Limit = limit - }); - } + BlockList = blockList, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBotInfoDescription.cs b/TdLib.Api/Functions/GetBotInfoDescription.cs index 514e6ad5..129fa752 100644 --- a/TdLib.Api/Functions/GetBotInfoDescription.cs +++ b/TdLib.Api/Functions/GetBotInfoDescription.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class GetBotInfoDescription : Function { /// - /// Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class GetBotInfoDescription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBotInfoDescription"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBotInfoDescription"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code or an empty string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if userTypeBot.can_be_edited == true + /// A two-letter ISO 639-1 language code or an empty string /// - public static Task GetBotInfoDescriptionAsync( - this IClient client, long botUserId = default, string languageCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + } + + /// + /// Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task GetBotInfoDescriptionAsync( + this IClient client, long botUserId = default, string languageCode = default) + { + return client.ExecuteAsync(new GetBotInfoDescription { - return client.ExecuteAsync(new GetBotInfoDescription - { - BotUserId = botUserId, LanguageCode = languageCode - }); - } + BotUserId = botUserId, LanguageCode = languageCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBotInfoShortDescription.cs b/TdLib.Api/Functions/GetBotInfoShortDescription.cs index a695c67f..9df535d0 100644 --- a/TdLib.Api/Functions/GetBotInfoShortDescription.cs +++ b/TdLib.Api/Functions/GetBotInfoShortDescription.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given language. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class GetBotInfoShortDescription : Function { /// - /// Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given language. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class GetBotInfoShortDescription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBotInfoShortDescription"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBotInfoShortDescription"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code or an empty string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given language. Can be called only if userTypeBot.can_be_edited == true + /// A two-letter ISO 639-1 language code or an empty string /// - public static Task GetBotInfoShortDescriptionAsync( - this IClient client, long botUserId = default, string languageCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + } + + /// + /// Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given language. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task GetBotInfoShortDescriptionAsync( + this IClient client, long botUserId = default, string languageCode = default) + { + return client.ExecuteAsync(new GetBotInfoShortDescription { - return client.ExecuteAsync(new GetBotInfoShortDescription - { - BotUserId = botUserId, LanguageCode = languageCode - }); - } + BotUserId = botUserId, LanguageCode = languageCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBotMediaPreviewInfo.cs b/TdLib.Api/Functions/GetBotMediaPreviewInfo.cs index 52e0fb1c..cfac006b 100644 --- a/TdLib.Api/Functions/GetBotMediaPreviewInfo.cs +++ b/TdLib.Api/Functions/GetBotMediaPreviewInfo.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews /// - public static partial class TdApi + public class GetBotMediaPreviewInfo : Function { /// - /// Returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews + /// Data type for serialization /// - public class GetBotMediaPreviewInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBotMediaPreviewInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBotMediaPreviewInfo"; - /// - /// Identifier of the target bot. The bot must be owned and must have the main Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code for which to get previews. If empty, then default previews are returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - } + /// + /// Identifier of the target bot. The bot must be owned and must have the main Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews + /// A two-letter ISO 639-1 language code for which to get previews. If empty, then default previews are returned /// - public static Task GetBotMediaPreviewInfoAsync( - this IClient client, long botUserId = default, string languageCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + } + + /// + /// Returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews + /// + public static Task GetBotMediaPreviewInfoAsync( + this IClient client, long botUserId = default, string languageCode = default) + { + return client.ExecuteAsync(new GetBotMediaPreviewInfo { - return client.ExecuteAsync(new GetBotMediaPreviewInfo - { - BotUserId = botUserId, LanguageCode = languageCode - }); - } + BotUserId = botUserId, LanguageCode = languageCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBotMediaPreviews.cs b/TdLib.Api/Functions/GetBotMediaPreviews.cs index 20b3d6e4..92bff1b1 100644 --- a/TdLib.Api/Functions/GetBotMediaPreviews.cs +++ b/TdLib.Api/Functions/GetBotMediaPreviews.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of media previews of a bot /// - public static partial class TdApi + public class GetBotMediaPreviews : Function { /// - /// Returns the list of media previews of a bot + /// Data type for serialization /// - public class GetBotMediaPreviews : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBotMediaPreviews"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBotMediaPreviews"; - /// - /// Identifier of the target bot. The bot must have the main Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of media previews of a bot + /// Identifier of the target bot. The bot must have the main Web App /// - public static Task GetBotMediaPreviewsAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Returns the list of media previews of a bot + /// + public static Task GetBotMediaPreviewsAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new GetBotMediaPreviews { - return client.ExecuteAsync(new GetBotMediaPreviews - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBotName.cs b/TdLib.Api/Functions/GetBotName.cs index 853e4200..48f93ef5 100644 --- a/TdLib.Api/Functions/GetBotName.cs +++ b/TdLib.Api/Functions/GetBotName.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class GetBotName : Function { /// - /// Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class GetBotName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBotName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBotName"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code or an empty string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true + /// A two-letter ISO 639-1 language code or an empty string /// - public static Task GetBotNameAsync( - this IClient client, long botUserId = default, string languageCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + } + + /// + /// Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task GetBotNameAsync( + this IClient client, long botUserId = default, string languageCode = default) + { + return client.ExecuteAsync(new GetBotName { - return client.ExecuteAsync(new GetBotName - { - BotUserId = botUserId, LanguageCode = languageCode - }); - } + BotUserId = botUserId, LanguageCode = languageCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBotSimilarBotCount.cs b/TdLib.Api/Functions/GetBotSimilarBotCount.cs index 824a8246..5b1ffb4a 100644 --- a/TdLib.Api/Functions/GetBotSimilarBotCount.cs +++ b/TdLib.Api/Functions/GetBotSimilarBotCount.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns approximate number of bots similar to the given bot /// - public static partial class TdApi + public class GetBotSimilarBotCount : Function { /// - /// Returns approximate number of bots similar to the given bot + /// Data type for serialization /// - public class GetBotSimilarBotCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBotSimilarBotCount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBotSimilarBotCount"; - /// - /// User identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get the number of bots without sending network requests, or -1 if the number of bots is unknown locally - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_local")] - public bool ReturnLocal { get; set; } - } + /// + /// User identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns approximate number of bots similar to the given bot + /// Pass true to get the number of bots without sending network requests, or -1 if the number of bots is unknown locally /// - public static Task GetBotSimilarBotCountAsync( - this IClient client, long botUserId = default, bool returnLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("return_local")] + public bool ReturnLocal { get; set; } + } + + /// + /// Returns approximate number of bots similar to the given bot + /// + public static Task GetBotSimilarBotCountAsync( + this IClient client, long botUserId = default, bool returnLocal = default) + { + return client.ExecuteAsync(new GetBotSimilarBotCount { - return client.ExecuteAsync(new GetBotSimilarBotCount - { - BotUserId = botUserId, ReturnLocal = returnLocal - }); - } + BotUserId = botUserId, ReturnLocal = returnLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBotSimilarBots.cs b/TdLib.Api/Functions/GetBotSimilarBots.cs index 5ef2d6a7..fe597c81 100644 --- a/TdLib.Api/Functions/GetBotSimilarBots.cs +++ b/TdLib.Api/Functions/GetBotSimilarBots.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of bots similar to the given bot /// - public static partial class TdApi + public class GetBotSimilarBots : Function { /// - /// Returns a list of bots similar to the given bot + /// Data type for serialization /// - public class GetBotSimilarBots : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBotSimilarBots"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBotSimilarBots"; - /// - /// User identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a list of bots similar to the given bot + /// User identifier of the target bot /// - public static Task GetBotSimilarBotsAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Returns a list of bots similar to the given bot + /// + public static Task GetBotSimilarBotsAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new GetBotSimilarBots { - return client.ExecuteAsync(new GetBotSimilarBots - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBusinessAccountStarAmount.cs b/TdLib.Api/Functions/GetBusinessAccountStarAmount.cs index e0ae0d97..33c20938 100644 --- a/TdLib.Api/Functions/GetBusinessAccountStarAmount.cs +++ b/TdLib.Api/Functions/GetBusinessAccountStarAmount.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the Telegram Star amount owned by a business account; for bots only /// - public static partial class TdApi + public class GetBusinessAccountStarAmount : Function { /// - /// Returns the Telegram Star amount owned by a business account; for bots only + /// Data type for serialization /// - public class GetBusinessAccountStarAmount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBusinessAccountStarAmount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBusinessAccountStarAmount"; - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the Telegram Star amount owned by a business account; for bots only + /// Unique identifier of business connection /// - public static Task GetBusinessAccountStarAmountAsync( - this IClient client, string businessConnectionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } + } + + /// + /// Returns the Telegram Star amount owned by a business account; for bots only + /// + public static Task GetBusinessAccountStarAmountAsync( + this IClient client, string businessConnectionId = default) + { + return client.ExecuteAsync(new GetBusinessAccountStarAmount { - return client.ExecuteAsync(new GetBusinessAccountStarAmount - { - BusinessConnectionId = businessConnectionId - }); - } + BusinessConnectionId = businessConnectionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBusinessChatLinkInfo.cs b/TdLib.Api/Functions/GetBusinessChatLinkInfo.cs index 828e46c8..e419e4a5 100644 --- a/TdLib.Api/Functions/GetBusinessChatLinkInfo.cs +++ b/TdLib.Api/Functions/GetBusinessChatLinkInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a business chat link /// - public static partial class TdApi + public class GetBusinessChatLinkInfo : Function { /// - /// Returns information about a business chat link + /// Data type for serialization /// - public class GetBusinessChatLinkInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBusinessChatLinkInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBusinessChatLinkInfo"; - /// - /// Name of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_name")] - public string LinkName { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a business chat link + /// Name of the link /// - public static Task GetBusinessChatLinkInfoAsync( - this IClient client, string linkName = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link_name")] + public string LinkName { get; set; } + } + + /// + /// Returns information about a business chat link + /// + public static Task GetBusinessChatLinkInfoAsync( + this IClient client, string linkName = default) + { + return client.ExecuteAsync(new GetBusinessChatLinkInfo { - return client.ExecuteAsync(new GetBusinessChatLinkInfo - { - LinkName = linkName - }); - } + LinkName = linkName + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBusinessChatLinks.cs b/TdLib.Api/Functions/GetBusinessChatLinks.cs index efbdc5ce..3a2b8300 100644 --- a/TdLib.Api/Functions/GetBusinessChatLinks.cs +++ b/TdLib.Api/Functions/GetBusinessChatLinks.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns business chat links created for the current account /// - public static partial class TdApi + public class GetBusinessChatLinks : Function { /// - /// Returns business chat links created for the current account + /// Data type for serialization /// - public class GetBusinessChatLinks : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBusinessChatLinks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBusinessChatLinks"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns business chat links created for the current account - /// - public static Task GetBusinessChatLinksAsync( - this IClient client) + /// + /// Returns business chat links created for the current account + /// + public static Task GetBusinessChatLinksAsync( + this IClient client) + { + return client.ExecuteAsync(new GetBusinessChatLinks { - return client.ExecuteAsync(new GetBusinessChatLinks - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBusinessConnectedBot.cs b/TdLib.Api/Functions/GetBusinessConnectedBot.cs index 871591ac..b32d9eda 100644 --- a/TdLib.Api/Functions/GetBusinessConnectedBot.cs +++ b/TdLib.Api/Functions/GetBusinessConnectedBot.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the business bot that is connected to the current user account. Returns a 404 error if there is no connected bot /// - public static partial class TdApi + public class GetBusinessConnectedBot : Function { /// - /// Returns information about the business bot that is connected to the current user account. Returns a 404 error if there is no connected bot + /// Data type for serialization /// - public class GetBusinessConnectedBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBusinessConnectedBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBusinessConnectedBot"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns information about the business bot that is connected to the current user account. Returns a 404 error if there is no connected bot - /// - public static Task GetBusinessConnectedBotAsync( - this IClient client) + /// + /// Returns information about the business bot that is connected to the current user account. Returns a 404 error if there is no connected bot + /// + public static Task GetBusinessConnectedBotAsync( + this IClient client) + { + return client.ExecuteAsync(new GetBusinessConnectedBot { - return client.ExecuteAsync(new GetBusinessConnectedBot - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBusinessConnection.cs b/TdLib.Api/Functions/GetBusinessConnection.cs index 74e926cc..dfbd0ba5 100644 --- a/TdLib.Api/Functions/GetBusinessConnection.cs +++ b/TdLib.Api/Functions/GetBusinessConnection.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a business connection by its identifier; for bots only /// - public static partial class TdApi + public class GetBusinessConnection : Function { /// - /// Returns information about a business connection by its identifier; for bots only + /// Data type for serialization /// - public class GetBusinessConnection : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBusinessConnection"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBusinessConnection"; - /// - /// Identifier of the business connection to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection_id")] - public string ConnectionId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a business connection by its identifier; for bots only + /// Identifier of the business connection to return /// - public static Task GetBusinessConnectionAsync( - this IClient client, string connectionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("connection_id")] + public string ConnectionId { get; set; } + } + + /// + /// Returns information about a business connection by its identifier; for bots only + /// + public static Task GetBusinessConnectionAsync( + this IClient client, string connectionId = default) + { + return client.ExecuteAsync(new GetBusinessConnection { - return client.ExecuteAsync(new GetBusinessConnection - { - ConnectionId = connectionId - }); - } + ConnectionId = connectionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetBusinessFeatures.cs b/TdLib.Api/Functions/GetBusinessFeatures.cs index 1e1a7e19..6979319b 100644 --- a/TdLib.Api/Functions/GetBusinessFeatures.cs +++ b/TdLib.Api/Functions/GetBusinessFeatures.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about features, available to Business users /// - public static partial class TdApi + public class GetBusinessFeatures : Function { /// - /// Returns information about features, available to Business users + /// Data type for serialization /// - public class GetBusinessFeatures : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getBusinessFeatures"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getBusinessFeatures"; - /// - /// Source of the request; pass null if the method is called from settings or some non-standard source - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public BusinessFeature Source { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about features, available to Business users + /// Source of the request; pass null if the method is called from settings or some non-standard source /// - public static Task GetBusinessFeaturesAsync( - this IClient client, BusinessFeature source = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public BusinessFeature Source { get; set; } + } + + /// + /// Returns information about features, available to Business users + /// + public static Task GetBusinessFeaturesAsync( + this IClient client, BusinessFeature source = default) + { + return client.ExecuteAsync(new GetBusinessFeatures { - return client.ExecuteAsync(new GetBusinessFeatures - { - Source = source - }); - } + Source = source + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCallbackQueryAnswer.cs b/TdLib.Api/Functions/GetCallbackQueryAnswer.cs index e043c378..1fcf3402 100644 --- a/TdLib.Api/Functions/GetCallbackQueryAnswer.cs +++ b/TdLib.Api/Functions/GetCallbackQueryAnswer.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires /// - public static partial class TdApi + public class GetCallbackQueryAnswer : Function { /// - /// Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires + /// Data type for serialization /// - public class GetCallbackQueryAnswer : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCallbackQueryAnswer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCallbackQueryAnswer"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message from which the query originated. The message must not be scheduled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Query payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public CallbackQueryPayload Payload { get; set; } - } + /// + /// Identifier of the message from which the query originated. The message must not be scheduled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires + /// Query payload /// - public static Task GetCallbackQueryAnswerAsync( - this IClient client, long chatId = default, long messageId = default, CallbackQueryPayload payload = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public CallbackQueryPayload Payload { get; set; } + } + + /// + /// Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires + /// + public static Task GetCallbackQueryAnswerAsync( + this IClient client, long chatId = default, long messageId = default, CallbackQueryPayload payload = default) + { + return client.ExecuteAsync(new GetCallbackQueryAnswer { - return client.ExecuteAsync(new GetCallbackQueryAnswer - { - ChatId = chatId, MessageId = messageId, Payload = payload - }); - } + ChatId = chatId, MessageId = messageId, Payload = payload + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCallbackQueryMessage.cs b/TdLib.Api/Functions/GetCallbackQueryMessage.cs index f53e7e1e..7c85d3c2 100644 --- a/TdLib.Api/Functions/GetCallbackQueryMessage.cs +++ b/TdLib.Api/Functions/GetCallbackQueryMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a message with the callback button that originated a callback query; for bots only /// - public static partial class TdApi + public class GetCallbackQueryMessage : Function { /// - /// Returns information about a message with the callback button that originated a callback query; for bots only + /// Data type for serialization /// - public class GetCallbackQueryMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCallbackQueryMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCallbackQueryMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the callback query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("callback_query_id")] - public long CallbackQueryId { get; set; } - } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns information about a message with the callback button that originated a callback query; for bots only + /// Identifier of the callback query /// - public static Task GetCallbackQueryMessageAsync( - this IClient client, long chatId = default, long messageId = default, long callbackQueryId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("callback_query_id")] + public long CallbackQueryId { get; set; } + } + + /// + /// Returns information about a message with the callback button that originated a callback query; for bots only + /// + public static Task GetCallbackQueryMessageAsync( + this IClient client, long chatId = default, long messageId = default, long callbackQueryId = default) + { + return client.ExecuteAsync(new GetCallbackQueryMessage { - return client.ExecuteAsync(new GetCallbackQueryMessage - { - ChatId = chatId, MessageId = messageId, CallbackQueryId = callbackQueryId - }); - } + ChatId = chatId, MessageId = messageId, CallbackQueryId = callbackQueryId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChat.cs b/TdLib.Api/Functions/GetChat.cs index c1a6003f..cfb74d54 100644 --- a/TdLib.Api/Functions/GetChat.cs +++ b/TdLib.Api/Functions/GetChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a chat by its identifier. This is an offline method if the current user is not a bot /// - public static partial class TdApi + public class GetChat : Function { /// - /// Returns information about a chat by its identifier. This is an offline method if the current user is not a bot + /// Data type for serialization /// - public class GetChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a chat by its identifier. This is an offline method if the current user is not a bot + /// Chat identifier /// - public static Task GetChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns information about a chat by its identifier. This is an offline method if the current user is not a bot + /// + public static Task GetChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChat { - return client.ExecuteAsync(new GetChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatActiveStories.cs b/TdLib.Api/Functions/GetChatActiveStories.cs index 3ef2fd74..fb9bcac0 100644 --- a/TdLib.Api/Functions/GetChatActiveStories.cs +++ b/TdLib.Api/Functions/GetChatActiveStories.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of active stories posted by the given chat /// - public static partial class TdApi + public class GetChatActiveStories : Function { /// - /// Returns the list of active stories posted by the given chat + /// Data type for serialization /// - public class GetChatActiveStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatActiveStories"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatActiveStories"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of active stories posted by the given chat + /// Chat identifier /// - public static Task GetChatActiveStoriesAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the list of active stories posted by the given chat + /// + public static Task GetChatActiveStoriesAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatActiveStories { - return client.ExecuteAsync(new GetChatActiveStories - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatAdministrators.cs b/TdLib.Api/Functions/GetChatAdministrators.cs index fdef54cd..0c435495 100644 --- a/TdLib.Api/Functions/GetChatAdministrators.cs +++ b/TdLib.Api/Functions/GetChatAdministrators.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of administrators of the chat with their custom titles /// - public static partial class TdApi + public class GetChatAdministrators : Function { /// - /// Returns a list of administrators of the chat with their custom titles + /// Data type for serialization /// - public class GetChatAdministrators : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatAdministrators"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatAdministrators"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a list of administrators of the chat with their custom titles + /// Chat identifier /// - public static Task GetChatAdministratorsAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns a list of administrators of the chat with their custom titles + /// + public static Task GetChatAdministratorsAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatAdministrators { - return client.ExecuteAsync(new GetChatAdministrators - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatArchivedStories.cs b/TdLib.Api/Functions/GetChatArchivedStories.cs index df4f6dcb..d43f2039 100644 --- a/TdLib.Api/Functions/GetChatArchivedStories.cs +++ b/TdLib.Api/Functions/GetChatArchivedStories.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of all stories posted by the given chat; requires can_edit_stories administrator right in the chat. + /// The stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib /// - public static partial class TdApi + public class GetChatArchivedStories : Function { /// - /// Returns the list of all stories posted by the given chat; requires can_edit_stories administrator right in the chat. - /// The stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib + /// Data type for serialization /// - public class GetChatArchivedStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatArchivedStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatArchivedStories"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story starting from which stories must be returned; use 0 to get results from the last story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_story_id")] - public int FromStoryId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The maximum number of stories to be returned. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Identifier of the story starting from which stories must be returned; use 0 to get results from the last story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_story_id")] + public int FromStoryId { get; set; } /// - /// Returns the list of all stories posted by the given chat; requires can_edit_stories administrator right in the chat. - /// The stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib + /// The maximum number of stories to be returned. /// - public static Task GetChatArchivedStoriesAsync( - this IClient client, long chatId = default, int fromStoryId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of all stories posted by the given chat; requires can_edit_stories administrator right in the chat. + /// The stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib + /// + public static Task GetChatArchivedStoriesAsync( + this IClient client, long chatId = default, int fromStoryId = default, int limit = default) + { + return client.ExecuteAsync(new GetChatArchivedStories { - return client.ExecuteAsync(new GetChatArchivedStories - { - ChatId = chatId, FromStoryId = fromStoryId, Limit = limit - }); - } + ChatId = chatId, FromStoryId = fromStoryId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatAvailableMessageSenders.cs b/TdLib.Api/Functions/GetChatAvailableMessageSenders.cs index b87bbb2c..a66ae415 100644 --- a/TdLib.Api/Functions/GetChatAvailableMessageSenders.cs +++ b/TdLib.Api/Functions/GetChatAvailableMessageSenders.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of message sender identifiers, which can be used to send messages in a chat /// - public static partial class TdApi + public class GetChatAvailableMessageSenders : Function { /// - /// Returns the list of message sender identifiers, which can be used to send messages in a chat + /// Data type for serialization /// - public class GetChatAvailableMessageSenders : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatAvailableMessageSenders"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatAvailableMessageSenders"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of message sender identifiers, which can be used to send messages in a chat + /// Chat identifier /// - public static Task GetChatAvailableMessageSendersAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the list of message sender identifiers, which can be used to send messages in a chat + /// + public static Task GetChatAvailableMessageSendersAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatAvailableMessageSenders { - return client.ExecuteAsync(new GetChatAvailableMessageSenders - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatAvailablePaidMessageReactionSenders.cs b/TdLib.Api/Functions/GetChatAvailablePaidMessageReactionSenders.cs index 29df3783..24371739 100644 --- a/TdLib.Api/Functions/GetChatAvailablePaidMessageReactionSenders.cs +++ b/TdLib.Api/Functions/GetChatAvailablePaidMessageReactionSenders.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of message sender identifiers, which can be used to send a paid reaction in a chat /// - public static partial class TdApi + public class GetChatAvailablePaidMessageReactionSenders : Function { /// - /// Returns the list of message sender identifiers, which can be used to send a paid reaction in a chat + /// Data type for serialization /// - public class GetChatAvailablePaidMessageReactionSenders : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatAvailablePaidMessageReactionSenders"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatAvailablePaidMessageReactionSenders"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of message sender identifiers, which can be used to send a paid reaction in a chat + /// Chat identifier /// - public static Task GetChatAvailablePaidMessageReactionSendersAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the list of message sender identifiers, which can be used to send a paid reaction in a chat + /// + public static Task GetChatAvailablePaidMessageReactionSendersAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatAvailablePaidMessageReactionSenders { - return client.ExecuteAsync(new GetChatAvailablePaidMessageReactionSenders - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatBoostFeatures.cs b/TdLib.Api/Functions/GetChatBoostFeatures.cs index 7c52f736..e2bc5704 100644 --- a/TdLib.Api/Functions/GetChatBoostFeatures.cs +++ b/TdLib.Api/Functions/GetChatBoostFeatures.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of features available for different chat boost levels. This is an offline method /// - public static partial class TdApi + public class GetChatBoostFeatures : Function { /// - /// Returns the list of features available for different chat boost levels. This is an offline method + /// Data type for serialization /// - public class GetChatBoostFeatures : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatBoostFeatures"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatBoostFeatures"; - /// - /// Pass true to get the list of features for channels; pass false to get the list of features for supergroups - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_channel")] - public bool IsChannel { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of features available for different chat boost levels. This is an offline method + /// Pass true to get the list of features for channels; pass false to get the list of features for supergroups /// - public static Task GetChatBoostFeaturesAsync( - this IClient client, bool isChannel = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_channel")] + public bool IsChannel { get; set; } + } + + /// + /// Returns the list of features available for different chat boost levels. This is an offline method + /// + public static Task GetChatBoostFeaturesAsync( + this IClient client, bool isChannel = default) + { + return client.ExecuteAsync(new GetChatBoostFeatures { - return client.ExecuteAsync(new GetChatBoostFeatures - { - IsChannel = isChannel - }); - } + IsChannel = isChannel + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatBoostLevelFeatures.cs b/TdLib.Api/Functions/GetChatBoostLevelFeatures.cs index 47519090..b2e7490d 100644 --- a/TdLib.Api/Functions/GetChatBoostLevelFeatures.cs +++ b/TdLib.Api/Functions/GetChatBoostLevelFeatures.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of features available on the specific chat boost level. This is an offline method /// - public static partial class TdApi + public class GetChatBoostLevelFeatures : Function { /// - /// Returns the list of features available on the specific chat boost level. This is an offline method + /// Data type for serialization /// - public class GetChatBoostLevelFeatures : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatBoostLevelFeatures"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatBoostLevelFeatures"; - /// - /// Pass true to get the list of features for channels; pass false to get the list of features for supergroups - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_channel")] - public bool IsChannel { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat boost level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("level")] - public int Level { get; set; } - } + /// + /// Pass true to get the list of features for channels; pass false to get the list of features for supergroups + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_channel")] + public bool IsChannel { get; set; } /// - /// Returns the list of features available on the specific chat boost level. This is an offline method + /// Chat boost level /// - public static Task GetChatBoostLevelFeaturesAsync( - this IClient client, bool isChannel = default, int level = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("level")] + public int Level { get; set; } + } + + /// + /// Returns the list of features available on the specific chat boost level. This is an offline method + /// + public static Task GetChatBoostLevelFeaturesAsync( + this IClient client, bool isChannel = default, int level = default) + { + return client.ExecuteAsync(new GetChatBoostLevelFeatures { - return client.ExecuteAsync(new GetChatBoostLevelFeatures - { - IsChannel = isChannel, Level = level - }); - } + IsChannel = isChannel, Level = level + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatBoostLink.cs b/TdLib.Api/Functions/GetChatBoostLink.cs index b62544cc..fe9b2596 100644 --- a/TdLib.Api/Functions/GetChatBoostLink.cs +++ b/TdLib.Api/Functions/GetChatBoostLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS link to boost the specified supergroup or channel chat /// - public static partial class TdApi + public class GetChatBoostLink : Function { /// - /// Returns an HTTPS link to boost the specified supergroup or channel chat + /// Data type for serialization /// - public class GetChatBoostLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatBoostLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatBoostLink"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns an HTTPS link to boost the specified supergroup or channel chat + /// Identifier of the chat /// - public static Task GetChatBoostLinkAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns an HTTPS link to boost the specified supergroup or channel chat + /// + public static Task GetChatBoostLinkAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatBoostLink { - return client.ExecuteAsync(new GetChatBoostLink - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatBoostLinkInfo.cs b/TdLib.Api/Functions/GetChatBoostLinkInfo.cs index c9322c71..7c5a1cbb 100644 --- a/TdLib.Api/Functions/GetChatBoostLinkInfo.cs +++ b/TdLib.Api/Functions/GetChatBoostLinkInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a link to boost a chat. Can be called for any internal link of the type internalLinkTypeChatBoost /// - public static partial class TdApi + public class GetChatBoostLinkInfo : Function { /// - /// Returns information about a link to boost a chat. Can be called for any internal link of the type internalLinkTypeChatBoost + /// Data type for serialization /// - public class GetChatBoostLinkInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatBoostLinkInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatBoostLinkInfo"; - /// - /// The link to boost a chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a link to boost a chat. Can be called for any internal link of the type internalLinkTypeChatBoost + /// The link to boost a chat /// - public static Task GetChatBoostLinkInfoAsync( - this IClient client, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Returns information about a link to boost a chat. Can be called for any internal link of the type internalLinkTypeChatBoost + /// + public static Task GetChatBoostLinkInfoAsync( + this IClient client, string url = default) + { + return client.ExecuteAsync(new GetChatBoostLinkInfo { - return client.ExecuteAsync(new GetChatBoostLinkInfo - { - Url = url - }); - } + Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatBoostStatus.cs b/TdLib.Api/Functions/GetChatBoostStatus.cs index d615dd4c..feacf393 100644 --- a/TdLib.Api/Functions/GetChatBoostStatus.cs +++ b/TdLib.Api/Functions/GetChatBoostStatus.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the current boost status for a supergroup or a channel chat /// - public static partial class TdApi + public class GetChatBoostStatus : Function { /// - /// Returns the current boost status for a supergroup or a channel chat + /// Data type for serialization /// - public class GetChatBoostStatus : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatBoostStatus"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatBoostStatus"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the current boost status for a supergroup or a channel chat + /// Identifier of the chat /// - public static Task GetChatBoostStatusAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the current boost status for a supergroup or a channel chat + /// + public static Task GetChatBoostStatusAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatBoostStatus { - return client.ExecuteAsync(new GetChatBoostStatus - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatBoosts.cs b/TdLib.Api/Functions/GetChatBoosts.cs index ff617719..8611f2ca 100644 --- a/TdLib.Api/Functions/GetChatBoosts.cs +++ b/TdLib.Api/Functions/GetChatBoosts.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of boosts applied to a chat; requires administrator rights in the chat /// - public static partial class TdApi + public class GetChatBoosts : Function { /// - /// Returns the list of boosts applied to a chat; requires administrator rights in the chat + /// Data type for serialization /// - public class GetChatBoosts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatBoosts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatBoosts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to receive only boosts received from gift codes and giveaways created by the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_gift_codes")] - public bool OnlyGiftCodes { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Pass true to receive only boosts received from gift codes and giveaways created by the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_gift_codes")] + public bool OnlyGiftCodes { get; set; } - /// - /// The maximum number of boosts to be returned; up to 100. For optimal performance, the number of returned boosts can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns the list of boosts applied to a chat; requires administrator rights in the chat + /// The maximum number of boosts to be returned; up to 100. For optimal performance, the number of returned boosts can be smaller than the specified limit /// - public static Task GetChatBoostsAsync( - this IClient client, long chatId = default, bool onlyGiftCodes = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of boosts applied to a chat; requires administrator rights in the chat + /// + public static Task GetChatBoostsAsync( + this IClient client, long chatId = default, bool onlyGiftCodes = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetChatBoosts { - return client.ExecuteAsync(new GetChatBoosts - { - ChatId = chatId, OnlyGiftCodes = onlyGiftCodes, Offset = offset, Limit = limit - }); - } + ChatId = chatId, OnlyGiftCodes = onlyGiftCodes, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatEventLog.cs b/TdLib.Api/Functions/GetChatEventLog.cs index 62606280..708a7d24 100644 --- a/TdLib.Api/Functions/GetChatEventLog.cs +++ b/TdLib.Api/Functions/GetChatEventLog.cs @@ -3,83 +3,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id) /// - public static partial class TdApi + public class GetChatEventLog : Function { /// - /// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id) + /// Data type for serialization /// - public class GetChatEventLog : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatEventLog"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatEventLog"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Search query by which to filter events - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of an event from which to return results. Use 0 to get results from the latest events - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("from_event_id")] - public long FromEventId { get; set; } + /// + /// Search query by which to filter events + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of events to return; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Identifier of an event from which to return results. Use 0 to get results from the latest events + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("from_event_id")] + public long FromEventId { get; set; } - /// - /// The types of events to return; pass null to get chat events of all types - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filters")] - public ChatEventLogFilters Filters { get; set; } + /// + /// The maximum number of events to return; up to 100 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } - /// - /// User identifiers by which to filter events. By default, events relating to all users will be returned - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// The types of events to return; pass null to get chat events of all types + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("filters")] + public ChatEventLogFilters Filters { get; set; } /// - /// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id) + /// User identifiers by which to filter events. By default, events relating to all users will be returned /// - public static Task GetChatEventLogAsync( - this IClient client, long chatId = default, string query = default, long fromEventId = default, int limit = default, ChatEventLogFilters filters = default, long[] userIds = default) + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } + } + + /// + /// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id) + /// + public static Task GetChatEventLogAsync( + this IClient client, long chatId = default, string query = default, long fromEventId = default, int limit = default, ChatEventLogFilters filters = default, long[] userIds = default) + { + return client.ExecuteAsync(new GetChatEventLog { - return client.ExecuteAsync(new GetChatEventLog - { - ChatId = chatId, Query = query, FromEventId = fromEventId, Limit = limit, Filters = filters, UserIds = userIds - }); - } + ChatId = chatId, Query = query, FromEventId = fromEventId, Limit = limit, Filters = filters, UserIds = userIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatFolder.cs b/TdLib.Api/Functions/GetChatFolder.cs index e5b88d24..ca18ca25 100644 --- a/TdLib.Api/Functions/GetChatFolder.cs +++ b/TdLib.Api/Functions/GetChatFolder.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a chat folder by its identifier /// - public static partial class TdApi + public class GetChatFolder : Function { /// - /// Returns information about a chat folder by its identifier + /// Data type for serialization /// - public class GetChatFolder : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatFolder"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatFolder"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a chat folder by its identifier + /// Chat folder identifier /// - public static Task GetChatFolderAsync( - this IClient client, int chatFolderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } + } + + /// + /// Returns information about a chat folder by its identifier + /// + public static Task GetChatFolderAsync( + this IClient client, int chatFolderId = default) + { + return client.ExecuteAsync(new GetChatFolder { - return client.ExecuteAsync(new GetChatFolder - { - ChatFolderId = chatFolderId - }); - } + ChatFolderId = chatFolderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatFolderChatCount.cs b/TdLib.Api/Functions/GetChatFolderChatCount.cs index cb73c99a..2f714482 100644 --- a/TdLib.Api/Functions/GetChatFolderChatCount.cs +++ b/TdLib.Api/Functions/GetChatFolderChatCount.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded for this function to work correctly /// - public static partial class TdApi + public class GetChatFolderChatCount : Function { /// - /// Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded for this function to work correctly + /// Data type for serialization /// - public class GetChatFolderChatCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatFolderChatCount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatFolderChatCount"; - /// - /// The new chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("folder")] - public ChatFolder Folder { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded for this function to work correctly + /// The new chat folder /// - public static Task GetChatFolderChatCountAsync( - this IClient client, ChatFolder folder = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("folder")] + public ChatFolder Folder { get; set; } + } + + /// + /// Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded for this function to work correctly + /// + public static Task GetChatFolderChatCountAsync( + this IClient client, ChatFolder folder = default) + { + return client.ExecuteAsync(new GetChatFolderChatCount { - return client.ExecuteAsync(new GetChatFolderChatCount - { - Folder = folder - }); - } + Folder = folder + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatFolderChatsToLeave.cs b/TdLib.Api/Functions/GetChatFolderChatsToLeave.cs index 85e00460..ca93ae78 100644 --- a/TdLib.Api/Functions/GetChatFolderChatsToLeave.cs +++ b/TdLib.Api/Functions/GetChatFolderChatsToLeave.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat folder is deleted /// - public static partial class TdApi + public class GetChatFolderChatsToLeave : Function { /// - /// Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat folder is deleted + /// Data type for serialization /// - public class GetChatFolderChatsToLeave : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatFolderChatsToLeave"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatFolderChatsToLeave"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat folder is deleted + /// Chat folder identifier /// - public static Task GetChatFolderChatsToLeaveAsync( - this IClient client, int chatFolderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } + } + + /// + /// Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat folder is deleted + /// + public static Task GetChatFolderChatsToLeaveAsync( + this IClient client, int chatFolderId = default) + { + return client.ExecuteAsync(new GetChatFolderChatsToLeave { - return client.ExecuteAsync(new GetChatFolderChatsToLeave - { - ChatFolderId = chatFolderId - }); - } + ChatFolderId = chatFolderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatFolderDefaultIconName.cs b/TdLib.Api/Functions/GetChatFolderDefaultIconName.cs index 7c4bad37..73524e01 100644 --- a/TdLib.Api/Functions/GetChatFolderDefaultIconName.cs +++ b/TdLib.Api/Functions/GetChatFolderDefaultIconName.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns default icon name for a folder. Can be called synchronously /// - public static partial class TdApi + public class GetChatFolderDefaultIconName : Function { /// - /// Returns default icon name for a folder. Can be called synchronously + /// Data type for serialization /// - public class GetChatFolderDefaultIconName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatFolderDefaultIconName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatFolderDefaultIconName"; - /// - /// Chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("folder")] - public ChatFolder Folder { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns default icon name for a folder. Can be called synchronously + /// Chat folder /// - public static Task GetChatFolderDefaultIconNameAsync( - this IClient client, ChatFolder folder = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("folder")] + public ChatFolder Folder { get; set; } + } + + /// + /// Returns default icon name for a folder. Can be called synchronously + /// + public static Task GetChatFolderDefaultIconNameAsync( + this IClient client, ChatFolder folder = default) + { + return client.ExecuteAsync(new GetChatFolderDefaultIconName { - return client.ExecuteAsync(new GetChatFolderDefaultIconName - { - Folder = folder - }); - } + Folder = folder + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatFolderInviteLinks.cs b/TdLib.Api/Functions/GetChatFolderInviteLinks.cs index 40ec1df9..e14fb2e0 100644 --- a/TdLib.Api/Functions/GetChatFolderInviteLinks.cs +++ b/TdLib.Api/Functions/GetChatFolderInviteLinks.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns invite links created by the current user for a shareable chat folder /// - public static partial class TdApi + public class GetChatFolderInviteLinks : Function { /// - /// Returns invite links created by the current user for a shareable chat folder + /// Data type for serialization /// - public class GetChatFolderInviteLinks : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatFolderInviteLinks"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatFolderInviteLinks"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns invite links created by the current user for a shareable chat folder + /// Chat folder identifier /// - public static Task GetChatFolderInviteLinksAsync( - this IClient client, int chatFolderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } + } + + /// + /// Returns invite links created by the current user for a shareable chat folder + /// + public static Task GetChatFolderInviteLinksAsync( + this IClient client, int chatFolderId = default) + { + return client.ExecuteAsync(new GetChatFolderInviteLinks { - return client.ExecuteAsync(new GetChatFolderInviteLinks - { - ChatFolderId = chatFolderId - }); - } + ChatFolderId = chatFolderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatFolderNewChats.cs b/TdLib.Api/Functions/GetChatFolderNewChats.cs index f1ba94bb..bc1652e1 100644 --- a/TdLib.Api/Functions/GetChatFolderNewChats.cs +++ b/TdLib.Api/Functions/GetChatFolderNewChats.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder /// - public static partial class TdApi + public class GetChatFolderNewChats : Function { /// - /// Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder + /// Data type for serialization /// - public class GetChatFolderNewChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatFolderNewChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatFolderNewChats"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder + /// Chat folder identifier /// - public static Task GetChatFolderNewChatsAsync( - this IClient client, int chatFolderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } + } + + /// + /// Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder + /// + public static Task GetChatFolderNewChatsAsync( + this IClient client, int chatFolderId = default) + { + return client.ExecuteAsync(new GetChatFolderNewChats { - return client.ExecuteAsync(new GetChatFolderNewChats - { - ChatFolderId = chatFolderId - }); - } + ChatFolderId = chatFolderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatHistory.cs b/TdLib.Api/Functions/GetChatHistory.cs index 974f46f4..0c814110 100644 --- a/TdLib.Api/Functions/GetChatHistory.cs +++ b/TdLib.Api/Functions/GetChatHistory.cs @@ -3,80 +3,82 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). + /// For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true /// - public static partial class TdApi + public class GetChatHistory : Function { /// - /// Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). - /// For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true + /// Data type for serialization /// - public class GetChatHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatHistory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatHistory"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. - /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } - /// - /// Pass true to get only messages that are available without sending network requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_local")] - public bool OnlyLocal { get; set; } - } + /// + /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. + /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). - /// For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true + /// Pass true to get only messages that are available without sending network requests /// - public static Task GetChatHistoryAsync( - this IClient client, long chatId = default, long fromMessageId = default, int offset = default, int limit = default, bool onlyLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_local")] + public bool OnlyLocal { get; set; } + } + + /// + /// Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). + /// For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true + /// + public static Task GetChatHistoryAsync( + this IClient client, long chatId = default, long fromMessageId = default, int offset = default, int limit = default, bool onlyLocal = default) + { + return client.ExecuteAsync(new GetChatHistory { - return client.ExecuteAsync(new GetChatHistory - { - ChatId = chatId, FromMessageId = fromMessageId, Offset = offset, Limit = limit, OnlyLocal = onlyLocal - }); - } + ChatId = chatId, FromMessageId = fromMessageId, Offset = offset, Limit = limit, OnlyLocal = onlyLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatInviteLink.cs b/TdLib.Api/Functions/GetChatInviteLink.cs index 1eae7c4d..99e7ef8f 100644 --- a/TdLib.Api/Functions/GetChatInviteLink.cs +++ b/TdLib.Api/Functions/GetChatInviteLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links /// - public static partial class TdApi + public class GetChatInviteLink : Function { /// - /// Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links + /// Data type for serialization /// - public class GetChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatInviteLink"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to get - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links + /// Invite link to get /// - public static Task GetChatInviteLinkAsync( - this IClient client, long chatId = default, string inviteLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + } + + /// + /// Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links + /// + public static Task GetChatInviteLinkAsync( + this IClient client, long chatId = default, string inviteLink = default) + { + return client.ExecuteAsync(new GetChatInviteLink { - return client.ExecuteAsync(new GetChatInviteLink - { - ChatId = chatId, InviteLink = inviteLink - }); - } + ChatId = chatId, InviteLink = inviteLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatInviteLinkCounts.cs b/TdLib.Api/Functions/GetChatInviteLinkCounts.cs index 77af6fc7..bfd4ac30 100644 --- a/TdLib.Api/Functions/GetChatInviteLinkCounts.cs +++ b/TdLib.Api/Functions/GetChatInviteLinkCounts.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of chat administrators with number of their invite links. Requires owner privileges in the chat /// - public static partial class TdApi + public class GetChatInviteLinkCounts : Function { /// - /// Returns the list of chat administrators with number of their invite links. Requires owner privileges in the chat + /// Data type for serialization /// - public class GetChatInviteLinkCounts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatInviteLinkCounts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatInviteLinkCounts"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of chat administrators with number of their invite links. Requires owner privileges in the chat + /// Chat identifier /// - public static Task GetChatInviteLinkCountsAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the list of chat administrators with number of their invite links. Requires owner privileges in the chat + /// + public static Task GetChatInviteLinkCountsAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatInviteLinkCounts { - return client.ExecuteAsync(new GetChatInviteLinkCounts - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatInviteLinkMembers.cs b/TdLib.Api/Functions/GetChatInviteLinkMembers.cs index f3b39e5f..0e2370bc 100644 --- a/TdLib.Api/Functions/GetChatInviteLinkMembers.cs +++ b/TdLib.Api/Functions/GetChatInviteLinkMembers.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links /// - public static partial class TdApi + public class GetChatInviteLinkMembers : Function { /// - /// Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// Data type for serialization /// - public class GetChatInviteLinkMembers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatInviteLinkMembers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatInviteLinkMembers"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link for which to return chat members - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if the link is a subscription link and only members with expired subscription must be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_with_expired_subscription")] - public bool OnlyWithExpiredSubscription { get; set; } + /// + /// Invite link for which to return chat members + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } - /// - /// A chat member from which to return next chat members; pass null to get results from the beginning - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_member")] - public ChatInviteLinkMember OffsetMember { get; set; } + /// + /// Pass true if the link is a subscription link and only members with expired subscription must be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_with_expired_subscription")] + public bool OnlyWithExpiredSubscription { get; set; } - /// - /// The maximum number of chat members to return; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// A chat member from which to return next chat members; pass null to get results from the beginning + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_member")] + public ChatInviteLinkMember OffsetMember { get; set; } /// - /// Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// The maximum number of chat members to return; up to 100 /// - public static Task GetChatInviteLinkMembersAsync( - this IClient client, long chatId = default, string inviteLink = default, bool onlyWithExpiredSubscription = default, ChatInviteLinkMember offsetMember = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// + public static Task GetChatInviteLinkMembersAsync( + this IClient client, long chatId = default, string inviteLink = default, bool onlyWithExpiredSubscription = default, ChatInviteLinkMember offsetMember = default, int limit = default) + { + return client.ExecuteAsync(new GetChatInviteLinkMembers { - return client.ExecuteAsync(new GetChatInviteLinkMembers - { - ChatId = chatId, InviteLink = inviteLink, OnlyWithExpiredSubscription = onlyWithExpiredSubscription, OffsetMember = offsetMember, Limit = limit - }); - } + ChatId = chatId, InviteLink = inviteLink, OnlyWithExpiredSubscription = onlyWithExpiredSubscription, OffsetMember = offsetMember, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatInviteLinks.cs b/TdLib.Api/Functions/GetChatInviteLinks.cs index 1ccf627b..91994c21 100644 --- a/TdLib.Api/Functions/GetChatInviteLinks.cs +++ b/TdLib.Api/Functions/GetChatInviteLinks.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links /// - public static partial class TdApi + public class GetChatInviteLinks : Function { /// - /// Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links + /// Data type for serialization /// - public class GetChatInviteLinks : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatInviteLinks"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatInviteLinks"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of a chat administrator. Must be an identifier of the current user for non-owner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_user_id")] - public long CreatorUserId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if revoked links need to be returned instead of active or expired - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_revoked")] - public bool IsRevoked { get; set; } + /// + /// User identifier of a chat administrator. Must be an identifier of the current user for non-owner + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_user_id")] + public long CreatorUserId { get; set; } - /// - /// Creation date of an invite link starting after which to return invite links; use 0 to get results from the beginning - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_date")] - public int OffsetDate { get; set; } + /// + /// Pass true if revoked links need to be returned instead of active or expired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_revoked")] + public bool IsRevoked { get; set; } - /// - /// Invite link starting after which to return invite links; use empty string to get results from the beginning - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_invite_link")] - public string OffsetInviteLink { get; set; } + /// + /// Creation date of an invite link starting after which to return invite links; use 0 to get results from the beginning + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_date")] + public int OffsetDate { get; set; } - /// - /// The maximum number of invite links to return; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Invite link starting after which to return invite links; use empty string to get results from the beginning + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_invite_link")] + public string OffsetInviteLink { get; set; } /// - /// Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links + /// The maximum number of invite links to return; up to 100 /// - public static Task GetChatInviteLinksAsync( - this IClient client, long chatId = default, long creatorUserId = default, bool isRevoked = default, int offsetDate = default, string offsetInviteLink = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links + /// + public static Task GetChatInviteLinksAsync( + this IClient client, long chatId = default, long creatorUserId = default, bool isRevoked = default, int offsetDate = default, string offsetInviteLink = default, int limit = default) + { + return client.ExecuteAsync(new GetChatInviteLinks { - return client.ExecuteAsync(new GetChatInviteLinks - { - ChatId = chatId, CreatorUserId = creatorUserId, IsRevoked = isRevoked, OffsetDate = offsetDate, OffsetInviteLink = offsetInviteLink, Limit = limit - }); - } + ChatId = chatId, CreatorUserId = creatorUserId, IsRevoked = isRevoked, OffsetDate = offsetDate, OffsetInviteLink = offsetInviteLink, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatJoinRequests.cs b/TdLib.Api/Functions/GetChatJoinRequests.cs index 451bbeac..a44c3e11 100644 --- a/TdLib.Api/Functions/GetChatJoinRequests.cs +++ b/TdLib.Api/Functions/GetChatJoinRequests.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns pending join requests in a chat /// - public static partial class TdApi + public class GetChatJoinRequests : Function { /// - /// Returns pending join requests in a chat + /// Data type for serialization /// - public class GetChatJoinRequests : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatJoinRequests"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatJoinRequests"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link for which to return join requests. If empty, all join requests will be returned. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// A query to search for in the first names, last names and usernames of the users to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Invite link for which to return join requests. If empty, all join requests will be returned. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } - /// - /// A chat join request from which to return next requests; pass null to get results from the beginning - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_request")] - public ChatJoinRequest OffsetRequest { get; set; } + /// + /// A query to search for in the first names, last names and usernames of the users to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of requests to join the chat to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// A chat join request from which to return next requests; pass null to get results from the beginning + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_request")] + public ChatJoinRequest OffsetRequest { get; set; } /// - /// Returns pending join requests in a chat + /// The maximum number of requests to join the chat to return /// - public static Task GetChatJoinRequestsAsync( - this IClient client, long chatId = default, string inviteLink = default, string query = default, ChatJoinRequest offsetRequest = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns pending join requests in a chat + /// + public static Task GetChatJoinRequestsAsync( + this IClient client, long chatId = default, string inviteLink = default, string query = default, ChatJoinRequest offsetRequest = default, int limit = default) + { + return client.ExecuteAsync(new GetChatJoinRequests { - return client.ExecuteAsync(new GetChatJoinRequests - { - ChatId = chatId, InviteLink = inviteLink, Query = query, OffsetRequest = offsetRequest, Limit = limit - }); - } + ChatId = chatId, InviteLink = inviteLink, Query = query, OffsetRequest = offsetRequest, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatListsToAddChat.cs b/TdLib.Api/Functions/GetChatListsToAddChat.cs index b511f8e3..7cee6eb4 100644 --- a/TdLib.Api/Functions/GetChatListsToAddChat.cs +++ b/TdLib.Api/Functions/GetChatListsToAddChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns chat lists to which the chat can be added. This is an offline method /// - public static partial class TdApi + public class GetChatListsToAddChat : Function { /// - /// Returns chat lists to which the chat can be added. This is an offline method + /// Data type for serialization /// - public class GetChatListsToAddChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatListsToAddChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatListsToAddChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns chat lists to which the chat can be added. This is an offline method + /// Chat identifier /// - public static Task GetChatListsToAddChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns chat lists to which the chat can be added. This is an offline method + /// + public static Task GetChatListsToAddChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatListsToAddChat { - return client.ExecuteAsync(new GetChatListsToAddChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatMember.cs b/TdLib.Api/Functions/GetChatMember.cs index 0f668280..1f37956f 100644 --- a/TdLib.Api/Functions/GetChatMember.cs +++ b/TdLib.Api/Functions/GetChatMember.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a single member of a chat /// - public static partial class TdApi + public class GetChatMember : Function { /// - /// Returns information about a single member of a chat + /// Data type for serialization /// - public class GetChatMember : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatMember"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatMember"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Member identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_id")] - public MessageSender MemberId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a single member of a chat + /// Member identifier /// - public static Task GetChatMemberAsync( - this IClient client, long chatId = default, MessageSender memberId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("member_id")] + public MessageSender MemberId { get; set; } + } + + /// + /// Returns information about a single member of a chat + /// + public static Task GetChatMemberAsync( + this IClient client, long chatId = default, MessageSender memberId = default) + { + return client.ExecuteAsync(new GetChatMember { - return client.ExecuteAsync(new GetChatMember - { - ChatId = chatId, MemberId = memberId - }); - } + ChatId = chatId, MemberId = memberId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatMessageByDate.cs b/TdLib.Api/Functions/GetChatMessageByDate.cs index 07aa5c28..8d576a16 100644 --- a/TdLib.Api/Functions/GetChatMessageByDate.cs +++ b/TdLib.Api/Functions/GetChatMessageByDate.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't exist /// - public static partial class TdApi + public class GetChatMessageByDate : Function { /// - /// Returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't exist + /// Data type for serialization /// - public class GetChatMessageByDate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatMessageByDate"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatMessageByDate"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) relative to which to search for messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't exist + /// Point in time (Unix timestamp) relative to which to search for messages /// - public static Task GetChatMessageByDateAsync( - this IClient client, long chatId = default, int date = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + } + + /// + /// Returns the last message sent in a chat no later than the specified date. Returns a 404 error if such message doesn't exist + /// + public static Task GetChatMessageByDateAsync( + this IClient client, long chatId = default, int date = default) + { + return client.ExecuteAsync(new GetChatMessageByDate { - return client.ExecuteAsync(new GetChatMessageByDate - { - ChatId = chatId, Date = date - }); - } + ChatId = chatId, Date = date + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatMessageCalendar.cs b/TdLib.Api/Functions/GetChatMessageCalendar.cs index accd89f9..5244a3ff 100644 --- a/TdLib.Api/Functions/GetChatMessageCalendar.cs +++ b/TdLib.Api/Functions/GetChatMessageCalendar.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset" /// - public static partial class TdApi + public class GetChatMessageCalendar : Function { /// - /// Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset" + /// Data type for serialization /// - public class GetChatMessageCalendar : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatMessageCalendar"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatMessageCalendar"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat in which to return information about messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass topic identifier to get the result only in specific topic; pass null to get the result in all topics; forum topics and message threads aren't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the chat in which to return information about messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SearchMessagesFilter Filter { get; set; } + /// + /// Pass topic identifier to get the result only in specific topic; pass null to get the result in all topics; forum topics and message threads aren't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// The message identifier from which to return information about messages; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } - } + /// + /// Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SearchMessagesFilter Filter { get; set; } /// - /// Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset" + /// The message identifier from which to return information about messages; use 0 to get results from the last message /// - public static Task GetChatMessageCalendarAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, SearchMessagesFilter filter = default, long fromMessageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } + } + + /// + /// Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset" + /// + public static Task GetChatMessageCalendarAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, SearchMessagesFilter filter = default, long fromMessageId = default) + { + return client.ExecuteAsync(new GetChatMessageCalendar { - return client.ExecuteAsync(new GetChatMessageCalendar - { - ChatId = chatId, TopicId = topicId, Filter = filter, FromMessageId = fromMessageId - }); - } + ChatId = chatId, TopicId = topicId, Filter = filter, FromMessageId = fromMessageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatMessageCount.cs b/TdLib.Api/Functions/GetChatMessageCount.cs index e9fe518a..076cfdf3 100644 --- a/TdLib.Api/Functions/GetChatMessageCount.cs +++ b/TdLib.Api/Functions/GetChatMessageCount.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns approximate number of messages of the specified type in the chat or its topic /// - public static partial class TdApi + public class GetChatMessageCount : Function { /// - /// Returns approximate number of messages of the specified type in the chat or its topic + /// Data type for serialization /// - public class GetChatMessageCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatMessageCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatMessageCount"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat in which to count messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass topic identifier to get number of messages only in specific topic; pass null to get number of messages in all topics; message threads aren't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the chat in which to count messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Filter for message content; searchMessagesFilterEmpty is unsupported in this function - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SearchMessagesFilter Filter { get; set; } + /// + /// Pass topic identifier to get number of messages only in specific topic; pass null to get number of messages in all topics; message threads aren't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_local")] - public bool ReturnLocal { get; set; } - } + /// + /// Filter for message content; searchMessagesFilterEmpty is unsupported in this function + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SearchMessagesFilter Filter { get; set; } /// - /// Returns approximate number of messages of the specified type in the chat or its topic + /// Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally /// - public static Task GetChatMessageCountAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, SearchMessagesFilter filter = default, bool returnLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("return_local")] + public bool ReturnLocal { get; set; } + } + + /// + /// Returns approximate number of messages of the specified type in the chat or its topic + /// + public static Task GetChatMessageCountAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, SearchMessagesFilter filter = default, bool returnLocal = default) + { + return client.ExecuteAsync(new GetChatMessageCount { - return client.ExecuteAsync(new GetChatMessageCount - { - ChatId = chatId, TopicId = topicId, Filter = filter, ReturnLocal = returnLocal - }); - } + ChatId = chatId, TopicId = topicId, Filter = filter, ReturnLocal = returnLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatMessagePosition.cs b/TdLib.Api/Functions/GetChatMessagePosition.cs index 64c6a9b8..062d67b0 100644 --- a/TdLib.Api/Functions/GetChatMessagePosition.cs +++ b/TdLib.Api/Functions/GetChatMessagePosition.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats /// - public static partial class TdApi + public class GetChatMessagePosition : Function { /// - /// Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats + /// Data type for serialization /// - public class GetChatMessagePosition : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatMessagePosition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatMessagePosition"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat in which to find message position - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages; message threads aren't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the chat in which to find message position + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, searchMessagesFilterUnreadPollVote, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SearchMessagesFilter Filter { get; set; } + /// + /// Pass topic identifier to get position among messages only in specific topic; pass null to get position among all chat messages; message threads aren't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, searchMessagesFilterUnreadPollVote, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SearchMessagesFilter Filter { get; set; } /// - /// Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats + /// Message identifier /// - public static Task GetChatMessagePositionAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, SearchMessagesFilter filter = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat and topic. Cannot be used in secret chats + /// + public static Task GetChatMessagePositionAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, SearchMessagesFilter filter = default, long messageId = default) + { + return client.ExecuteAsync(new GetChatMessagePosition { - return client.ExecuteAsync(new GetChatMessagePosition - { - ChatId = chatId, TopicId = topicId, Filter = filter, MessageId = messageId - }); - } + ChatId = chatId, TopicId = topicId, Filter = filter, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatNotificationSettingsExceptions.cs b/TdLib.Api/Functions/GetChatNotificationSettingsExceptions.cs index 9fb015f3..f8681181 100644 --- a/TdLib.Api/Functions/GetChatNotificationSettingsExceptions.cs +++ b/TdLib.Api/Functions/GetChatNotificationSettingsExceptions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of chats with non-default notification settings for new messages /// - public static partial class TdApi + public class GetChatNotificationSettingsExceptions : Function { /// - /// Returns the list of chats with non-default notification settings for new messages + /// Data type for serialization /// - public class GetChatNotificationSettingsExceptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatNotificationSettingsExceptions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatNotificationSettingsExceptions"; - /// - /// If specified, only chats from the scope will be returned; pass null to return chats from all scopes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public NotificationSettingsScope Scope { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to include in the response chats with only non-default sound - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("compare_sound")] - public bool CompareSound { get; set; } - } + /// + /// If specified, only chats from the scope will be returned; pass null to return chats from all scopes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public NotificationSettingsScope Scope { get; set; } /// - /// Returns the list of chats with non-default notification settings for new messages + /// Pass true to include in the response chats with only non-default sound /// - public static Task GetChatNotificationSettingsExceptionsAsync( - this IClient client, NotificationSettingsScope scope = default, bool compareSound = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("compare_sound")] + public bool CompareSound { get; set; } + } + + /// + /// Returns the list of chats with non-default notification settings for new messages + /// + public static Task GetChatNotificationSettingsExceptionsAsync( + this IClient client, NotificationSettingsScope scope = default, bool compareSound = default) + { + return client.ExecuteAsync(new GetChatNotificationSettingsExceptions { - return client.ExecuteAsync(new GetChatNotificationSettingsExceptions - { - Scope = scope, CompareSound = compareSound - }); - } + Scope = scope, CompareSound = compareSound + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatOwnerAfterLeaving.cs b/TdLib.Api/Functions/GetChatOwnerAfterLeaving.cs index b5b86e8e..fc4723f9 100644 --- a/TdLib.Api/Functions/GetChatOwnerAfterLeaving.cs +++ b/TdLib.Api/Functions/GetChatOwnerAfterLeaving.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; + /// requires owner privileges in the chat. Available only for basic groups, supergroups, and channel chats /// - public static partial class TdApi + public class GetChatOwnerAfterLeaving : Function { /// - /// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; - /// requires owner privileges in the chat. Available only for basic groups, supergroups, and channel chats + /// Data type for serialization /// - public class GetChatOwnerAfterLeaving : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatOwnerAfterLeaving"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatOwnerAfterLeaving"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; - /// requires owner privileges in the chat. Available only for basic groups, supergroups, and channel chats + /// Chat identifier /// - public static Task GetChatOwnerAfterLeavingAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; + /// requires owner privileges in the chat. Available only for basic groups, supergroups, and channel chats + /// + public static Task GetChatOwnerAfterLeavingAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatOwnerAfterLeaving { - return client.ExecuteAsync(new GetChatOwnerAfterLeaving - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatPinnedMessage.cs b/TdLib.Api/Functions/GetChatPinnedMessage.cs index 23d22f34..13a0a6c0 100644 --- a/TdLib.Api/Functions/GetChatPinnedMessage.cs +++ b/TdLib.Api/Functions/GetChatPinnedMessage.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist /// - public static partial class TdApi + public class GetChatPinnedMessage : Function { /// - /// Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist + /// Data type for serialization /// - public class GetChatPinnedMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatPinnedMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatPinnedMessage"; - /// - /// Identifier of the chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist + /// Identifier of the chat the message belongs to /// - public static Task GetChatPinnedMessageAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns information about a newest pinned message in the chat. Returns a 404 error if the message doesn't exist + /// + public static Task GetChatPinnedMessageAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatPinnedMessage { - return client.ExecuteAsync(new GetChatPinnedMessage - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatPostedToChatPageStories.cs b/TdLib.Api/Functions/GetChatPostedToChatPageStories.cs index e6e84b52..eff8e241 100644 --- a/TdLib.Api/Functions/GetChatPostedToChatPageStories.cs +++ b/TdLib.Api/Functions/GetChatPostedToChatPageStories.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of stories that posted by the given chat to its chat page. If from_story_id == 0, then pinned stories are returned first. + /// Then, stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib /// - public static partial class TdApi + public class GetChatPostedToChatPageStories : Function { /// - /// Returns the list of stories that posted by the given chat to its chat page. If from_story_id == 0, then pinned stories are returned first. - /// Then, stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib + /// Data type for serialization /// - public class GetChatPostedToChatPageStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatPostedToChatPageStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatPostedToChatPageStories"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story starting from which stories must be returned; use 0 to get results from pinned and the newest story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_story_id")] - public int FromStoryId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The maximum number of stories to be returned. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Identifier of the story starting from which stories must be returned; use 0 to get results from pinned and the newest story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_story_id")] + public int FromStoryId { get; set; } /// - /// Returns the list of stories that posted by the given chat to its chat page. If from_story_id == 0, then pinned stories are returned first. - /// Then, stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib + /// The maximum number of stories to be returned. /// - public static Task GetChatPostedToChatPageStoriesAsync( - this IClient client, long chatId = default, int fromStoryId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of stories that posted by the given chat to its chat page. If from_story_id == 0, then pinned stories are returned first. + /// Then, stories are returned in reverse chronological order (i.e., in order of decreasing story_id). For optimal performance, the number of returned stories is chosen by TDLib + /// + public static Task GetChatPostedToChatPageStoriesAsync( + this IClient client, long chatId = default, int fromStoryId = default, int limit = default) + { + return client.ExecuteAsync(new GetChatPostedToChatPageStories { - return client.ExecuteAsync(new GetChatPostedToChatPageStories - { - ChatId = chatId, FromStoryId = fromStoryId, Limit = limit - }); - } + ChatId = chatId, FromStoryId = fromStoryId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatRevenueStatistics.cs b/TdLib.Api/Functions/GetChatRevenueStatistics.cs index 57dcc2c5..d982898f 100644 --- a/TdLib.Api/Functions/GetChatRevenueStatistics.cs +++ b/TdLib.Api/Functions/GetChatRevenueStatistics.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns detailed revenue statistics about a chat. Currently, this method can be used only + /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true /// - public static partial class TdApi + public class GetChatRevenueStatistics : Function { /// - /// Returns detailed revenue statistics about a chat. Currently, this method can be used only - /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true + /// Data type for serialization /// - public class GetChatRevenueStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatRevenueStatistics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatRevenueStatistics"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if a dark theme is used by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns detailed revenue statistics about a chat. Currently, this method can be used only - /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true + /// Pass true if a dark theme is used by the application /// - public static Task GetChatRevenueStatisticsAsync( - this IClient client, long chatId = default, bool isDark = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } + } + + /// + /// Returns detailed revenue statistics about a chat. Currently, this method can be used only + /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true + /// + public static Task GetChatRevenueStatisticsAsync( + this IClient client, long chatId = default, bool isDark = default) + { + return client.ExecuteAsync(new GetChatRevenueStatistics { - return client.ExecuteAsync(new GetChatRevenueStatistics - { - ChatId = chatId, IsDark = isDark - }); - } + ChatId = chatId, IsDark = isDark + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatRevenueTransactions.cs b/TdLib.Api/Functions/GetChatRevenueTransactions.cs index f8a022da..cc103ad6 100644 --- a/TdLib.Api/Functions/GetChatRevenueTransactions.cs +++ b/TdLib.Api/Functions/GetChatRevenueTransactions.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of revenue transactions for a chat. Currently, this method can be used only + /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true /// - public static partial class TdApi + public class GetChatRevenueTransactions : Function { /// - /// Returns the list of revenue transactions for a chat. Currently, this method can be used only - /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true + /// Data type for serialization /// - public class GetChatRevenueTransactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatRevenueTransactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatRevenueTransactions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The maximum number of transactions to be returned; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns the list of revenue transactions for a chat. Currently, this method can be used only - /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true + /// The maximum number of transactions to be returned; up to 100 /// - public static Task GetChatRevenueTransactionsAsync( - this IClient client, long chatId = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of revenue transactions for a chat. Currently, this method can be used only + /// for channels if supergroupFullInfo.can_get_revenue_statistics == true or bots if userFullInfo.bot_info.can_get_revenue_statistics == true + /// + public static Task GetChatRevenueTransactionsAsync( + this IClient client, long chatId = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetChatRevenueTransactions { - return client.ExecuteAsync(new GetChatRevenueTransactions - { - ChatId = chatId, Offset = offset, Limit = limit - }); - } + ChatId = chatId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatRevenueWithdrawalUrl.cs b/TdLib.Api/Functions/GetChatRevenueWithdrawalUrl.cs index b1519ff6..edd1f140 100644 --- a/TdLib.Api/Functions/GetChatRevenueWithdrawalUrl.cs +++ b/TdLib.Api/Functions/GetChatRevenueWithdrawalUrl.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a URL for chat revenue withdrawal; requires owner privileges in the channel chat or the bot. Currently, this method can be used only + /// if getOption("can_withdraw_chat_revenue") for channels with supergroupFullInfo.can_get_revenue_statistics == true or bots with userFullInfo.bot_info.can_get_revenue_statistics == true /// - public static partial class TdApi + public class GetChatRevenueWithdrawalUrl : Function { /// - /// Returns a URL for chat revenue withdrawal; requires owner privileges in the channel chat or the bot. Currently, this method can be used only - /// if getOption("can_withdraw_chat_revenue") for channels with supergroupFullInfo.can_get_revenue_statistics == true or bots with userFullInfo.bot_info.can_get_revenue_statistics == true + /// Data type for serialization /// - public class GetChatRevenueWithdrawalUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatRevenueWithdrawalUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatRevenueWithdrawalUrl"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns a URL for chat revenue withdrawal; requires owner privileges in the channel chat or the bot. Currently, this method can be used only - /// if getOption("can_withdraw_chat_revenue") for channels with supergroupFullInfo.can_get_revenue_statistics == true or bots with userFullInfo.bot_info.can_get_revenue_statistics == true + /// The 2-step verification password of the current user /// - public static Task GetChatRevenueWithdrawalUrlAsync( - this IClient client, long chatId = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns a URL for chat revenue withdrawal; requires owner privileges in the channel chat or the bot. Currently, this method can be used only + /// if getOption("can_withdraw_chat_revenue") for channels with supergroupFullInfo.can_get_revenue_statistics == true or bots with userFullInfo.bot_info.can_get_revenue_statistics == true + /// + public static Task GetChatRevenueWithdrawalUrlAsync( + this IClient client, long chatId = default, string password = default) + { + return client.ExecuteAsync(new GetChatRevenueWithdrawalUrl { - return client.ExecuteAsync(new GetChatRevenueWithdrawalUrl - { - ChatId = chatId, Password = password - }); - } + ChatId = chatId, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatScheduledMessages.cs b/TdLib.Api/Functions/GetChatScheduledMessages.cs index a73ab3bf..81151a65 100644 --- a/TdLib.Api/Functions/GetChatScheduledMessages.cs +++ b/TdLib.Api/Functions/GetChatScheduledMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all scheduled messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) /// - public static partial class TdApi + public class GetChatScheduledMessages : Function { /// - /// Returns all scheduled messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// Data type for serialization /// - public class GetChatScheduledMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatScheduledMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatScheduledMessages"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns all scheduled messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// Chat identifier /// - public static Task GetChatScheduledMessagesAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns all scheduled messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// + public static Task GetChatScheduledMessagesAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatScheduledMessages { - return client.ExecuteAsync(new GetChatScheduledMessages - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatSimilarChatCount.cs b/TdLib.Api/Functions/GetChatSimilarChatCount.cs index a962522e..f408fdc0 100644 --- a/TdLib.Api/Functions/GetChatSimilarChatCount.cs +++ b/TdLib.Api/Functions/GetChatSimilarChatCount.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns approximate number of chats similar to the given chat /// - public static partial class TdApi + public class GetChatSimilarChatCount : Function { /// - /// Returns approximate number of chats similar to the given chat + /// Data type for serialization /// - public class GetChatSimilarChatCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatSimilarChatCount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatSimilarChatCount"; - /// - /// Identifier of the target chat; must be an identifier of a channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_local")] - public bool ReturnLocal { get; set; } - } + /// + /// Identifier of the target chat; must be an identifier of a channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns approximate number of chats similar to the given chat + /// Pass true to get the number of chats without sending network requests, or -1 if the number of chats is unknown locally /// - public static Task GetChatSimilarChatCountAsync( - this IClient client, long chatId = default, bool returnLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("return_local")] + public bool ReturnLocal { get; set; } + } + + /// + /// Returns approximate number of chats similar to the given chat + /// + public static Task GetChatSimilarChatCountAsync( + this IClient client, long chatId = default, bool returnLocal = default) + { + return client.ExecuteAsync(new GetChatSimilarChatCount { - return client.ExecuteAsync(new GetChatSimilarChatCount - { - ChatId = chatId, ReturnLocal = returnLocal - }); - } + ChatId = chatId, ReturnLocal = returnLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatSimilarChats.cs b/TdLib.Api/Functions/GetChatSimilarChats.cs index ad45bd57..e520237f 100644 --- a/TdLib.Api/Functions/GetChatSimilarChats.cs +++ b/TdLib.Api/Functions/GetChatSimilarChats.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of chats similar to the given chat /// - public static partial class TdApi + public class GetChatSimilarChats : Function { /// - /// Returns a list of chats similar to the given chat + /// Data type for serialization /// - public class GetChatSimilarChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatSimilarChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatSimilarChats"; - /// - /// Identifier of the target chat; must be an identifier of a channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a list of chats similar to the given chat + /// Identifier of the target chat; must be an identifier of a channel chat /// - public static Task GetChatSimilarChatsAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns a list of chats similar to the given chat + /// + public static Task GetChatSimilarChatsAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatSimilarChats { - return client.ExecuteAsync(new GetChatSimilarChats - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatSparseMessagePositions.cs b/TdLib.Api/Functions/GetChatSparseMessagePositions.cs index ba4ef4c9..57c35aa6 100644 --- a/TdLib.Api/Functions/GetChatSparseMessagePositions.cs +++ b/TdLib.Api/Functions/GetChatSparseMessagePositions.cs @@ -3,80 +3,82 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns sparse positions of messages of the specified type in the chat to be used for Shared Media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). + /// Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database /// - public static partial class TdApi + public class GetChatSparseMessagePositions : Function { /// - /// Returns sparse positions of messages of the specified type in the chat to be used for Shared Media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). - /// Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database + /// Data type for serialization /// - public class GetChatSparseMessagePositions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatSparseMessagePositions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatSparseMessagePositions"; - /// - /// Identifier of the chat in which to return information about message positions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, - /// and searchMessagesFilterUnreadPollVote are unsupported in this function - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SearchMessagesFilter Filter { get; set; } + /// + /// Identifier of the chat in which to return information about message positions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The message identifier from which to return information about message positions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Filter for message content. Filters searchMessagesFilterEmpty, searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, + /// and searchMessagesFilterUnreadPollVote are unsupported in this function + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SearchMessagesFilter Filter { get; set; } - /// - /// The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if there are not enough appropriate messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// The message identifier from which to return information about message positions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } - } + /// + /// The expected number of message positions to be returned; 50-2000. A smaller number of positions can be returned, if there are not enough appropriate messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Returns sparse positions of messages of the specified type in the chat to be used for Shared Media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). - /// Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database + /// If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages, or for chats other than Saved Messages /// - public static Task GetChatSparseMessagePositionsAsync( - this IClient client, long chatId = default, SearchMessagesFilter filter = default, long fromMessageId = default, int limit = default, long savedMessagesTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } + } + + /// + /// Returns sparse positions of messages of the specified type in the chat to be used for Shared Media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). + /// Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database + /// + public static Task GetChatSparseMessagePositionsAsync( + this IClient client, long chatId = default, SearchMessagesFilter filter = default, long fromMessageId = default, int limit = default, long savedMessagesTopicId = default) + { + return client.ExecuteAsync(new GetChatSparseMessagePositions { - return client.ExecuteAsync(new GetChatSparseMessagePositions - { - ChatId = chatId, Filter = filter, FromMessageId = fromMessageId, Limit = limit, SavedMessagesTopicId = savedMessagesTopicId - }); - } + ChatId = chatId, Filter = filter, FromMessageId = fromMessageId, Limit = limit, SavedMessagesTopicId = savedMessagesTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatSponsoredMessages.cs b/TdLib.Api/Functions/GetChatSponsoredMessages.cs index a8af65e4..ba092c15 100644 --- a/TdLib.Api/Functions/GetChatSponsoredMessages.cs +++ b/TdLib.Api/Functions/GetChatSponsoredMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns sponsored messages to be shown in a chat; for channel chats and chats with bots only /// - public static partial class TdApi + public class GetChatSponsoredMessages : Function { /// - /// Returns sponsored messages to be shown in a chat; for channel chats and chats with bots only + /// Data type for serialization /// - public class GetChatSponsoredMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatSponsoredMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatSponsoredMessages"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns sponsored messages to be shown in a chat; for channel chats and chats with bots only + /// Identifier of the chat /// - public static Task GetChatSponsoredMessagesAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns sponsored messages to be shown in a chat; for channel chats and chats with bots only + /// + public static Task GetChatSponsoredMessagesAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatSponsoredMessages { - return client.ExecuteAsync(new GetChatSponsoredMessages - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatStatistics.cs b/TdLib.Api/Functions/GetChatStatistics.cs index f5bd6821..8bc4c989 100644 --- a/TdLib.Api/Functions/GetChatStatistics.cs +++ b/TdLib.Api/Functions/GetChatStatistics.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true /// - public static partial class TdApi + public class GetChatStatistics : Function { /// - /// Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true + /// Data type for serialization /// - public class GetChatStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatStatistics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatStatistics"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if a dark theme is used by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true + /// Pass true if a dark theme is used by the application /// - public static Task GetChatStatisticsAsync( - this IClient client, long chatId = default, bool isDark = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } + } + + /// + /// Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true + /// + public static Task GetChatStatisticsAsync( + this IClient client, long chatId = default, bool isDark = default) + { + return client.ExecuteAsync(new GetChatStatistics { - return client.ExecuteAsync(new GetChatStatistics - { - ChatId = chatId, IsDark = isDark - }); - } + ChatId = chatId, IsDark = isDark + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatStoryAlbums.cs b/TdLib.Api/Functions/GetChatStoryAlbums.cs index c8dc1f84..124f8b16 100644 --- a/TdLib.Api/Functions/GetChatStoryAlbums.cs +++ b/TdLib.Api/Functions/GetChatStoryAlbums.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of story albums owned by the given chat /// - public static partial class TdApi + public class GetChatStoryAlbums : Function { /// - /// Returns the list of story albums owned by the given chat + /// Data type for serialization /// - public class GetChatStoryAlbums : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatStoryAlbums"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatStoryAlbums"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of story albums owned by the given chat + /// Chat identifier /// - public static Task GetChatStoryAlbumsAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the list of story albums owned by the given chat + /// + public static Task GetChatStoryAlbumsAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetChatStoryAlbums { - return client.ExecuteAsync(new GetChatStoryAlbums - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatStoryInteractions.cs b/TdLib.Api/Functions/GetChatStoryInteractions.cs index 89975973..f428b6e5 100644 --- a/TdLib.Api/Functions/GetChatStoryInteractions.cs +++ b/TdLib.Api/Functions/GetChatStoryInteractions.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns interactions with a story posted in a chat. Can be used only if story is posted on behalf of a chat and the user is an administrator in the chat /// - public static partial class TdApi + public class GetChatStoryInteractions : Function { /// - /// Returns interactions with a story posted in a chat. Can be used only if story is posted on behalf of a chat and the user is an administrator in the chat + /// Data type for serialization /// - public class GetChatStoryInteractions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatStoryInteractions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatStoryInteractions"; - /// - /// The identifier of the poster of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// The identifier of the poster of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Pass the default heart reaction or a suggested reaction type to receive only interactions with the specified reaction type; pass null to receive all interactions; reactionTypePaid isn't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted just by interaction date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prefer_forwards")] - public bool PreferForwards { get; set; } + /// + /// Pass the default heart reaction or a suggested reaction type to receive only interactions with the specified reaction type; pass null to receive all interactions; reactionTypePaid isn't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted just by interaction date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prefer_forwards")] + public bool PreferForwards { get; set; } - /// - /// The maximum number of story interactions to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns interactions with a story posted in a chat. Can be used only if story is posted on behalf of a chat and the user is an administrator in the chat + /// The maximum number of story interactions to return /// - public static Task GetChatStoryInteractionsAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, ReactionType reactionType = default, bool preferForwards = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns interactions with a story posted in a chat. Can be used only if story is posted on behalf of a chat and the user is an administrator in the chat + /// + public static Task GetChatStoryInteractionsAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, ReactionType reactionType = default, bool preferForwards = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetChatStoryInteractions { - return client.ExecuteAsync(new GetChatStoryInteractions - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, ReactionType = reactionType, PreferForwards = preferForwards, Offset = offset, Limit = limit - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, ReactionType = reactionType, PreferForwards = preferForwards, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChats.cs b/TdLib.Api/Functions/GetChats.cs index 67dc037d..dcc7f082 100644 --- a/TdLib.Api/Functions/GetChats.cs +++ b/TdLib.Api/Functions/GetChats.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state /// - public static partial class TdApi + public class GetChats : Function { /// - /// Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state + /// Data type for serialization /// - public class GetChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChats"; - /// - /// The chat list in which to return chats; pass null to get chats from the main chat list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of chats to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The chat list in which to return chats; pass null to get chats from the main chat list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } /// - /// Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state + /// The maximum number of chats to be returned /// - public static Task GetChatsAsync( - this IClient client, ChatList chatList = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state + /// + public static Task GetChatsAsync( + this IClient client, ChatList chatList = default, int limit = default) + { + return client.ExecuteAsync(new GetChats { - return client.ExecuteAsync(new GetChats - { - ChatList = chatList, Limit = limit - }); - } + ChatList = chatList, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatsForChatFolderInviteLink.cs b/TdLib.Api/Functions/GetChatsForChatFolderInviteLink.cs index b0ad65a0..c2f4efdb 100644 --- a/TdLib.Api/Functions/GetChatsForChatFolderInviteLink.cs +++ b/TdLib.Api/Functions/GetChatsForChatFolderInviteLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link /// - public static partial class TdApi + public class GetChatsForChatFolderInviteLink : Function { /// - /// Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link + /// Data type for serialization /// - public class GetChatsForChatFolderInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatsForChatFolderInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatsForChatFolderInviteLink"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link + /// Chat folder identifier /// - public static Task GetChatsForChatFolderInviteLinkAsync( - this IClient client, int chatFolderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } + } + + /// + /// Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link + /// + public static Task GetChatsForChatFolderInviteLinkAsync( + this IClient client, int chatFolderId = default) + { + return client.ExecuteAsync(new GetChatsForChatFolderInviteLink { - return client.ExecuteAsync(new GetChatsForChatFolderInviteLink - { - ChatFolderId = chatFolderId - }); - } + ChatFolderId = chatFolderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetChatsToPostStories.cs b/TdLib.Api/Functions/GetChatsToPostStories.cs index 9dab4e28..c3479e60 100644 --- a/TdLib.Api/Functions/GetChatsToPostStories.cs +++ b/TdLib.Api/Functions/GetChatsToPostStories.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be rechecked with canPostStory before actually trying to post a story there /// - public static partial class TdApi + public class GetChatsToPostStories : Function { /// - /// Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be rechecked with canPostStory before actually trying to post a story there + /// Data type for serialization /// - public class GetChatsToPostStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getChatsToPostStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getChatsToPostStories"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be rechecked with canPostStory before actually trying to post a story there - /// - public static Task GetChatsToPostStoriesAsync( - this IClient client) + /// + /// Returns supergroup and channel chats in which the current user has the right to post stories. The chats must be rechecked with canPostStory before actually trying to post a story there + /// + public static Task GetChatsToPostStoriesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetChatsToPostStories { - return client.ExecuteAsync(new GetChatsToPostStories - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCloseFriends.cs b/TdLib.Api/Functions/GetCloseFriends.cs index fa121284..f295eed5 100644 --- a/TdLib.Api/Functions/GetCloseFriends.cs +++ b/TdLib.Api/Functions/GetCloseFriends.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all close friends of the current user /// - public static partial class TdApi + public class GetCloseFriends : Function { /// - /// Returns all close friends of the current user + /// Data type for serialization /// - public class GetCloseFriends : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCloseFriends"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCloseFriends"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns all close friends of the current user - /// - public static Task GetCloseFriendsAsync( - this IClient client) + /// + /// Returns all close friends of the current user + /// + public static Task GetCloseFriendsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetCloseFriends { - return client.ExecuteAsync(new GetCloseFriends - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCollectibleItemInfo.cs b/TdLib.Api/Functions/GetCollectibleItemInfo.cs index 3a61f163..573c7f7c 100644 --- a/TdLib.Api/Functions/GetCollectibleItemInfo.cs +++ b/TdLib.Api/Functions/GetCollectibleItemInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a given collectible item that was purchased at https://fragment.com /// - public static partial class TdApi + public class GetCollectibleItemInfo : Function { /// - /// Returns information about a given collectible item that was purchased at https://fragment.com + /// Data type for serialization /// - public class GetCollectibleItemInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCollectibleItemInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCollectibleItemInfo"; - /// - /// Type of the collectible item. The item must be used by a user and must be visible to the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public CollectibleItemType Type { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a given collectible item that was purchased at https://fragment.com + /// Type of the collectible item. The item must be used by a user and must be visible to the current user /// - public static Task GetCollectibleItemInfoAsync( - this IClient client, CollectibleItemType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public CollectibleItemType Type { get; set; } + } + + /// + /// Returns information about a given collectible item that was purchased at https://fragment.com + /// + public static Task GetCollectibleItemInfoAsync( + this IClient client, CollectibleItemType type = default) + { + return client.ExecuteAsync(new GetCollectibleItemInfo { - return client.ExecuteAsync(new GetCollectibleItemInfo - { - Type = type - }); - } + Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCommands.cs b/TdLib.Api/Functions/GetCommands.cs index 8fa87741..836fe610 100644 --- a/TdLib.Api/Functions/GetCommands.cs +++ b/TdLib.Api/Functions/GetCommands.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of commands supported by the bot for the given user scope and language; for bots only /// - public static partial class TdApi + public class GetCommands : Function { /// - /// Returns the list of commands supported by the bot for the given user scope and language; for bots only + /// Data type for serialization /// - public class GetCommands : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCommands"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCommands"; - /// - /// The scope to which the commands are relevant; pass null to get commands in the default bot command scope - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public BotCommandScope Scope { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code or an empty string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - } + /// + /// The scope to which the commands are relevant; pass null to get commands in the default bot command scope + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public BotCommandScope Scope { get; set; } /// - /// Returns the list of commands supported by the bot for the given user scope and language; for bots only + /// A two-letter ISO 639-1 language code or an empty string /// - public static Task GetCommandsAsync( - this IClient client, BotCommandScope scope = default, string languageCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + } + + /// + /// Returns the list of commands supported by the bot for the given user scope and language; for bots only + /// + public static Task GetCommandsAsync( + this IClient client, BotCommandScope scope = default, string languageCode = default) + { + return client.ExecuteAsync(new GetCommands { - return client.ExecuteAsync(new GetCommands - { - Scope = scope, LanguageCode = languageCode - }); - } + Scope = scope, LanguageCode = languageCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCommunityFullInfo.cs b/TdLib.Api/Functions/GetCommunityFullInfo.cs new file mode 100644 index 00000000..78bf23fa --- /dev/null +++ b/TdLib.Api/Functions/GetCommunityFullInfo.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns full information about a community + /// + public class GetCommunityFullInfo : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCommunityFullInfo"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Community identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } + } + + /// + /// Returns full information about a community + /// + public static Task GetCommunityFullInfoAsync( + this IClient client, long communityId = default) + { + return client.ExecuteAsync(new GetCommunityFullInfo + { + CommunityId = communityId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetConnectedAffiliateProgram.cs b/TdLib.Api/Functions/GetConnectedAffiliateProgram.cs index 431b6eb4..ea6281fb 100644 --- a/TdLib.Api/Functions/GetConnectedAffiliateProgram.cs +++ b/TdLib.Api/Functions/GetConnectedAffiliateProgram.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an affiliate program that was connected to the given affiliate by identifier of the bot that created the program /// - public static partial class TdApi + public class GetConnectedAffiliateProgram : Function { /// - /// Returns an affiliate program that was connected to the given affiliate by identifier of the bot that created the program + /// Data type for serialization /// - public class GetConnectedAffiliateProgram : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getConnectedAffiliateProgram"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getConnectedAffiliateProgram"; - /// - /// The affiliate to which the affiliate program will be connected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateType Affiliate { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot that created the program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// The affiliate to which the affiliate program will be connected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateType Affiliate { get; set; } /// - /// Returns an affiliate program that was connected to the given affiliate by identifier of the bot that created the program + /// Identifier of the bot that created the program /// - public static Task GetConnectedAffiliateProgramAsync( - this IClient client, AffiliateType affiliate = default, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Returns an affiliate program that was connected to the given affiliate by identifier of the bot that created the program + /// + public static Task GetConnectedAffiliateProgramAsync( + this IClient client, AffiliateType affiliate = default, long botUserId = default) + { + return client.ExecuteAsync(new GetConnectedAffiliateProgram { - return client.ExecuteAsync(new GetConnectedAffiliateProgram - { - Affiliate = affiliate, BotUserId = botUserId - }); - } + Affiliate = affiliate, BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetConnectedAffiliatePrograms.cs b/TdLib.Api/Functions/GetConnectedAffiliatePrograms.cs index a5ae1bae..0b781820 100644 --- a/TdLib.Api/Functions/GetConnectedAffiliatePrograms.cs +++ b/TdLib.Api/Functions/GetConnectedAffiliatePrograms.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns affiliate programs that were connected to the given affiliate /// - public static partial class TdApi + public class GetConnectedAffiliatePrograms : Function { /// - /// Returns affiliate programs that were connected to the given affiliate + /// Data type for serialization /// - public class GetConnectedAffiliatePrograms : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getConnectedAffiliatePrograms"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getConnectedAffiliatePrograms"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The affiliate to which the affiliate programs were connected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateType Affiliate { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first affiliate program to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// The affiliate to which the affiliate programs were connected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateType Affiliate { get; set; } - /// - /// The maximum number of affiliate programs to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first affiliate program to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns affiliate programs that were connected to the given affiliate + /// The maximum number of affiliate programs to return /// - public static Task GetConnectedAffiliateProgramsAsync( - this IClient client, AffiliateType affiliate = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns affiliate programs that were connected to the given affiliate + /// + public static Task GetConnectedAffiliateProgramsAsync( + this IClient client, AffiliateType affiliate = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetConnectedAffiliatePrograms { - return client.ExecuteAsync(new GetConnectedAffiliatePrograms - { - Affiliate = affiliate, Offset = offset, Limit = limit - }); - } + Affiliate = affiliate, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetConnectedWebsites.cs b/TdLib.Api/Functions/GetConnectedWebsites.cs index 7c0eb5c7..0230e9c8 100644 --- a/TdLib.Api/Functions/GetConnectedWebsites.cs +++ b/TdLib.Api/Functions/GetConnectedWebsites.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all website where the current user used Telegram to log in /// - public static partial class TdApi + public class GetConnectedWebsites : Function { /// - /// Returns all website where the current user used Telegram to log in + /// Data type for serialization /// - public class GetConnectedWebsites : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getConnectedWebsites"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getConnectedWebsites"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns all website where the current user used Telegram to log in - /// - public static Task GetConnectedWebsitesAsync( - this IClient client) + /// + /// Returns all website where the current user used Telegram to log in + /// + public static Task GetConnectedWebsitesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetConnectedWebsites { - return client.ExecuteAsync(new GetConnectedWebsites - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetContacts.cs b/TdLib.Api/Functions/GetContacts.cs index c31a4625..c3632a17 100644 --- a/TdLib.Api/Functions/GetContacts.cs +++ b/TdLib.Api/Functions/GetContacts.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all contacts of the user /// - public static partial class TdApi + public class GetContacts : Function { /// - /// Returns all contacts of the user + /// Data type for serialization /// - public class GetContacts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getContacts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns all contacts of the user - /// - public static Task GetContactsAsync( - this IClient client) + /// + /// Returns all contacts of the user + /// + public static Task GetContactsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetContacts { - return client.ExecuteAsync(new GetContacts - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCountries.cs b/TdLib.Api/Functions/GetCountries.cs index 018403fc..c56d4510 100644 --- a/TdLib.Api/Functions/GetCountries.cs +++ b/TdLib.Api/Functions/GetCountries.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about existing countries. Can be called before authorization /// - public static partial class TdApi + public class GetCountries : Function { /// - /// Returns information about existing countries. Can be called before authorization + /// Data type for serialization /// - public class GetCountries : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCountries"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCountries"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns information about existing countries. Can be called before authorization - /// - public static Task GetCountriesAsync( - this IClient client) + /// + /// Returns information about existing countries. Can be called before authorization + /// + public static Task GetCountriesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetCountries { - return client.ExecuteAsync(new GetCountries - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCountry.cs b/TdLib.Api/Functions/GetCountry.cs index ba937ec1..98cfc9bf 100644 --- a/TdLib.Api/Functions/GetCountry.cs +++ b/TdLib.Api/Functions/GetCountry.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about an existing country. Can be called before authorization /// - public static partial class TdApi + public class GetCountry : Function { /// - /// Returns information about an existing country. Can be called before authorization + /// Data type for serialization /// - public class GetCountry : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCountry"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCountry"; - /// - /// A two-letter ISO 3166-1 alpha-2 country code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about an existing country. Can be called before authorization + /// A two-letter ISO 3166-1 alpha-2 country code /// - public static Task GetCountryAsync( - this IClient client, string countryCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } + } + + /// + /// Returns information about an existing country. Can be called before authorization + /// + public static Task GetCountryAsync( + this IClient client, string countryCode = default) + { + return client.ExecuteAsync(new GetCountry { - return client.ExecuteAsync(new GetCountry - { - CountryCode = countryCode - }); - } + CountryCode = countryCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCountryCode.cs b/TdLib.Api/Functions/GetCountryCode.cs index 9f489043..4d9a31b0 100644 --- a/TdLib.Api/Functions/GetCountryCode.cs +++ b/TdLib.Api/Functions/GetCountryCode.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization /// - public static partial class TdApi + public class GetCountryCode : Function { /// - /// Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization + /// Data type for serialization /// - public class GetCountryCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCountryCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCountryCode"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization - /// - public static Task GetCountryCodeAsync( - this IClient client) + /// + /// Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization + /// + public static Task GetCountryCodeAsync( + this IClient client) + { + return client.ExecuteAsync(new GetCountryCode { - return client.ExecuteAsync(new GetCountryCode - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCountryFlagEmoji.cs b/TdLib.Api/Functions/GetCountryFlagEmoji.cs index 329603e7..1c084069 100644 --- a/TdLib.Api/Functions/GetCountryFlagEmoji.cs +++ b/TdLib.Api/Functions/GetCountryFlagEmoji.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an emoji for the flag of the given country. Returns an empty string on failure. Can be called synchronously /// - public static partial class TdApi + public class GetCountryFlagEmoji : Function { /// - /// Returns an emoji for the flag of the given country. Returns an empty string on failure. Can be called synchronously + /// Data type for serialization /// - public class GetCountryFlagEmoji : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCountryFlagEmoji"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCountryFlagEmoji"; - /// - /// A two-letter ISO 3166-1 alpha-2 country code as received from getCountries - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns an emoji for the flag of the given country. Returns an empty string on failure. Can be called synchronously + /// A two-letter ISO 3166-1 alpha-2 country code as received from getCountries /// - public static Task GetCountryFlagEmojiAsync( - this IClient client, string countryCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } + } + + /// + /// Returns an emoji for the flag of the given country. Returns an empty string on failure. Can be called synchronously + /// + public static Task GetCountryFlagEmojiAsync( + this IClient client, string countryCode = default) + { + return client.ExecuteAsync(new GetCountryFlagEmoji { - return client.ExecuteAsync(new GetCountryFlagEmoji - { - CountryCode = countryCode - }); - } + CountryCode = countryCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCreatedPublicChats.cs b/TdLib.Api/Functions/GetCreatedPublicChats.cs index 92e1ff6f..31df7944 100644 --- a/TdLib.Api/Functions/GetCreatedPublicChats.cs +++ b/TdLib.Api/Functions/GetCreatedPublicChats.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of public chats of the specified type, owned by the user /// - public static partial class TdApi + public class GetCreatedPublicChats : Function { /// - /// Returns a list of public chats of the specified type, owned by the user + /// Data type for serialization /// - public class GetCreatedPublicChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCreatedPublicChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCreatedPublicChats"; - /// - /// Type of the public chats to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PublicChatType Type { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a list of public chats of the specified type, owned by the user + /// Type of the public chats to return /// - public static Task GetCreatedPublicChatsAsync( - this IClient client, PublicChatType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PublicChatType Type { get; set; } + } + + /// + /// Returns a list of public chats of the specified type, owned by the user + /// + public static Task GetCreatedPublicChatsAsync( + this IClient client, PublicChatType type = default) + { + return client.ExecuteAsync(new GetCreatedPublicChats { - return client.ExecuteAsync(new GetCreatedPublicChats - { - Type = type - }); - } + Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCurrencyExchangeRates.cs b/TdLib.Api/Functions/GetCurrencyExchangeRates.cs new file mode 100644 index 00000000..2cde705d --- /dev/null +++ b/TdLib.Api/Functions/GetCurrencyExchangeRates.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns exchange rates of currencies to USD + /// + public class GetCurrencyExchangeRates : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCurrencyExchangeRates"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + + /// + /// Returns exchange rates of currencies to USD + /// + public static Task GetCurrencyExchangeRatesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetCurrencyExchangeRates + { + + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCurrentState.cs b/TdLib.Api/Functions/GetCurrentState.cs index c80a6a13..2b94da06 100644 --- a/TdLib.Api/Functions/GetCurrentState.cs +++ b/TdLib.Api/Functions/GetCurrentState.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization /// - public static partial class TdApi + public class GetCurrentState : Function { /// - /// Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization + /// Data type for serialization /// - public class GetCurrentState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCurrentState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCurrentState"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization - /// - public static Task GetCurrentStateAsync( - this IClient client) + /// + /// Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization + /// + public static Task GetCurrentStateAsync( + this IClient client) + { + return client.ExecuteAsync(new GetCurrentState { - return client.ExecuteAsync(new GetCurrentState - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCurrentWeather.cs b/TdLib.Api/Functions/GetCurrentWeather.cs index 10b913e5..a0a1e707 100644 --- a/TdLib.Api/Functions/GetCurrentWeather.cs +++ b/TdLib.Api/Functions/GetCurrentWeather.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the current weather in the given location /// - public static partial class TdApi + public class GetCurrentWeather : Function { /// - /// Returns the current weather in the given location + /// Data type for serialization /// - public class GetCurrentWeather : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCurrentWeather"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCurrentWeather"; - /// - /// The location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the current weather in the given location + /// The location /// - public static Task GetCurrentWeatherAsync( - this IClient client, Location location = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } + } + + /// + /// Returns the current weather in the given location + /// + public static Task GetCurrentWeatherAsync( + this IClient client, Location location = default) + { + return client.ExecuteAsync(new GetCurrentWeather { - return client.ExecuteAsync(new GetCurrentWeather - { - Location = location - }); - } + Location = location + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCustomEmojiReactionAnimations.cs b/TdLib.Api/Functions/GetCustomEmojiReactionAnimations.cs index 8621cd9c..4727f505 100644 --- a/TdLib.Api/Functions/GetCustomEmojiReactionAnimations.cs +++ b/TdLib.Api/Functions/GetCustomEmojiReactionAnimations.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns TGS stickers with generic animations for custom emoji reactions /// - public static partial class TdApi + public class GetCustomEmojiReactionAnimations : Function { /// - /// Returns TGS stickers with generic animations for custom emoji reactions + /// Data type for serialization /// - public class GetCustomEmojiReactionAnimations : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCustomEmojiReactionAnimations"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCustomEmojiReactionAnimations"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns TGS stickers with generic animations for custom emoji reactions - /// - public static Task GetCustomEmojiReactionAnimationsAsync( - this IClient client) + /// + /// Returns TGS stickers with generic animations for custom emoji reactions + /// + public static Task GetCustomEmojiReactionAnimationsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetCustomEmojiReactionAnimations { - return client.ExecuteAsync(new GetCustomEmojiReactionAnimations - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetCustomEmojiStickers.cs b/TdLib.Api/Functions/GetCustomEmojiStickers.cs index 56cef0ea..820421b3 100644 --- a/TdLib.Api/Functions/GetCustomEmojiStickers.cs +++ b/TdLib.Api/Functions/GetCustomEmojiStickers.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found stickers are returned /// - public static partial class TdApi + public class GetCustomEmojiStickers : Function { /// - /// Returns the list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found stickers are returned + /// Data type for serialization /// - public class GetCustomEmojiStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getCustomEmojiStickers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getCustomEmojiStickers"; - /// - /// Identifiers of custom emoji stickers. At most 200 custom emoji stickers can be received simultaneously - /// - [JsonProperty("custom_emoji_ids", ItemConverterType = typeof(Converter))] - public long[] CustomEmojiIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found stickers are returned + /// Identifiers of custom emoji stickers. At most 200 custom emoji stickers can be received simultaneously /// - public static Task GetCustomEmojiStickersAsync( - this IClient client, long[] customEmojiIds = default) + [JsonProperty("custom_emoji_ids", ItemConverterType = typeof(Converter))] + public long[] CustomEmojiIds { get; set; } + } + + /// + /// Returns the list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found stickers are returned + /// + public static Task GetCustomEmojiStickersAsync( + this IClient client, long[] customEmojiIds = default) + { + return client.ExecuteAsync(new GetCustomEmojiStickers { - return client.ExecuteAsync(new GetCustomEmojiStickers - { - CustomEmojiIds = customEmojiIds - }); - } + CustomEmojiIds = customEmojiIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDatabaseStatistics.cs b/TdLib.Api/Functions/GetDatabaseStatistics.cs index be1a5ada..444b097a 100644 --- a/TdLib.Api/Functions/GetDatabaseStatistics.cs +++ b/TdLib.Api/Functions/GetDatabaseStatistics.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns database statistics /// - public static partial class TdApi + public class GetDatabaseStatistics : Function { /// - /// Returns database statistics + /// Data type for serialization /// - public class GetDatabaseStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDatabaseStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDatabaseStatistics"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns database statistics - /// - public static Task GetDatabaseStatisticsAsync( - this IClient client) + /// + /// Returns database statistics + /// + public static Task GetDatabaseStatisticsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDatabaseStatistics { - return client.ExecuteAsync(new GetDatabaseStatistics - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDeepLinkInfo.cs b/TdLib.Api/Functions/GetDeepLinkInfo.cs index 74432fa0..52559be3 100644 --- a/TdLib.Api/Functions/GetDeepLinkInfo.cs +++ b/TdLib.Api/Functions/GetDeepLinkInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization /// - public static partial class TdApi + public class GetDeepLinkInfo : Function { /// - /// Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization + /// Data type for serialization /// - public class GetDeepLinkInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDeepLinkInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDeepLinkInfo"; - /// - /// The link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization + /// The link /// - public static Task GetDeepLinkInfoAsync( - this IClient client, string link = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } + } + + /// + /// Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization + /// + public static Task GetDeepLinkInfoAsync( + this IClient client, string link = default) + { + return client.ExecuteAsync(new GetDeepLinkInfo { - return client.ExecuteAsync(new GetDeepLinkInfo - { - Link = link - }); - } + Link = link + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDefaultBackgroundCustomEmojiStickers.cs b/TdLib.Api/Functions/GetDefaultBackgroundCustomEmojiStickers.cs index 13a983af..ee255796 100644 --- a/TdLib.Api/Functions/GetDefaultBackgroundCustomEmojiStickers.cs +++ b/TdLib.Api/Functions/GetDefaultBackgroundCustomEmojiStickers.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns default list of custom emoji stickers for reply background /// - public static partial class TdApi + public class GetDefaultBackgroundCustomEmojiStickers : Function { /// - /// Returns default list of custom emoji stickers for reply background + /// Data type for serialization /// - public class GetDefaultBackgroundCustomEmojiStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDefaultBackgroundCustomEmojiStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDefaultBackgroundCustomEmojiStickers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns default list of custom emoji stickers for reply background - /// - public static Task GetDefaultBackgroundCustomEmojiStickersAsync( - this IClient client) + /// + /// Returns default list of custom emoji stickers for reply background + /// + public static Task GetDefaultBackgroundCustomEmojiStickersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDefaultBackgroundCustomEmojiStickers { - return client.ExecuteAsync(new GetDefaultBackgroundCustomEmojiStickers - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDefaultChatEmojiStatuses.cs b/TdLib.Api/Functions/GetDefaultChatEmojiStatuses.cs index 59bdf7c2..af7f38ab 100644 --- a/TdLib.Api/Functions/GetDefaultChatEmojiStatuses.cs +++ b/TdLib.Api/Functions/GetDefaultChatEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns default emoji statuses for chats /// - public static partial class TdApi + public class GetDefaultChatEmojiStatuses : Function { /// - /// Returns default emoji statuses for chats + /// Data type for serialization /// - public class GetDefaultChatEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDefaultChatEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDefaultChatEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns default emoji statuses for chats - /// - public static Task GetDefaultChatEmojiStatusesAsync( - this IClient client) + /// + /// Returns default emoji statuses for chats + /// + public static Task GetDefaultChatEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDefaultChatEmojiStatuses { - return client.ExecuteAsync(new GetDefaultChatEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDefaultChatPhotoCustomEmojiStickers.cs b/TdLib.Api/Functions/GetDefaultChatPhotoCustomEmojiStickers.cs index 92d0f68f..339036fe 100644 --- a/TdLib.Api/Functions/GetDefaultChatPhotoCustomEmojiStickers.cs +++ b/TdLib.Api/Functions/GetDefaultChatPhotoCustomEmojiStickers.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns default list of custom emoji stickers for placing on a chat photo /// - public static partial class TdApi + public class GetDefaultChatPhotoCustomEmojiStickers : Function { /// - /// Returns default list of custom emoji stickers for placing on a chat photo + /// Data type for serialization /// - public class GetDefaultChatPhotoCustomEmojiStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDefaultChatPhotoCustomEmojiStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDefaultChatPhotoCustomEmojiStickers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns default list of custom emoji stickers for placing on a chat photo - /// - public static Task GetDefaultChatPhotoCustomEmojiStickersAsync( - this IClient client) + /// + /// Returns default list of custom emoji stickers for placing on a chat photo + /// + public static Task GetDefaultChatPhotoCustomEmojiStickersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDefaultChatPhotoCustomEmojiStickers { - return client.ExecuteAsync(new GetDefaultChatPhotoCustomEmojiStickers - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDefaultEmojiStatuses.cs b/TdLib.Api/Functions/GetDefaultEmojiStatuses.cs index 258161db..8fd001da 100644 --- a/TdLib.Api/Functions/GetDefaultEmojiStatuses.cs +++ b/TdLib.Api/Functions/GetDefaultEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns default emoji statuses for self status /// - public static partial class TdApi + public class GetDefaultEmojiStatuses : Function { /// - /// Returns default emoji statuses for self status + /// Data type for serialization /// - public class GetDefaultEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDefaultEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDefaultEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns default emoji statuses for self status - /// - public static Task GetDefaultEmojiStatusesAsync( - this IClient client) + /// + /// Returns default emoji statuses for self status + /// + public static Task GetDefaultEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDefaultEmojiStatuses { - return client.ExecuteAsync(new GetDefaultEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDefaultMessageAutoDeleteTime.cs b/TdLib.Api/Functions/GetDefaultMessageAutoDeleteTime.cs index 2874493f..56632484 100644 --- a/TdLib.Api/Functions/GetDefaultMessageAutoDeleteTime.cs +++ b/TdLib.Api/Functions/GetDefaultMessageAutoDeleteTime.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns default message auto-delete time setting for new chats /// - public static partial class TdApi + public class GetDefaultMessageAutoDeleteTime : Function { /// - /// Returns default message auto-delete time setting for new chats + /// Data type for serialization /// - public class GetDefaultMessageAutoDeleteTime : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDefaultMessageAutoDeleteTime"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDefaultMessageAutoDeleteTime"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns default message auto-delete time setting for new chats - /// - public static Task GetDefaultMessageAutoDeleteTimeAsync( - this IClient client) + /// + /// Returns default message auto-delete time setting for new chats + /// + public static Task GetDefaultMessageAutoDeleteTimeAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDefaultMessageAutoDeleteTime { - return client.ExecuteAsync(new GetDefaultMessageAutoDeleteTime - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDefaultProfilePhotoCustomEmojiStickers.cs b/TdLib.Api/Functions/GetDefaultProfilePhotoCustomEmojiStickers.cs index 4ad7118f..07dc7f8a 100644 --- a/TdLib.Api/Functions/GetDefaultProfilePhotoCustomEmojiStickers.cs +++ b/TdLib.Api/Functions/GetDefaultProfilePhotoCustomEmojiStickers.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns default list of custom emoji stickers for placing on a profile photo /// - public static partial class TdApi + public class GetDefaultProfilePhotoCustomEmojiStickers : Function { /// - /// Returns default list of custom emoji stickers for placing on a profile photo + /// Data type for serialization /// - public class GetDefaultProfilePhotoCustomEmojiStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDefaultProfilePhotoCustomEmojiStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDefaultProfilePhotoCustomEmojiStickers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns default list of custom emoji stickers for placing on a profile photo - /// - public static Task GetDefaultProfilePhotoCustomEmojiStickersAsync( - this IClient client) + /// + /// Returns default list of custom emoji stickers for placing on a profile photo + /// + public static Task GetDefaultProfilePhotoCustomEmojiStickersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDefaultProfilePhotoCustomEmojiStickers { - return client.ExecuteAsync(new GetDefaultProfilePhotoCustomEmojiStickers - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDirectMessagesChatTopic.cs b/TdLib.Api/Functions/GetDirectMessagesChatTopic.cs index 784398ee..82f61b9f 100644 --- a/TdLib.Api/Functions/GetDirectMessagesChatTopic.cs +++ b/TdLib.Api/Functions/GetDirectMessagesChatTopic.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the topic in a channel direct messages chat administered by the current user /// - public static partial class TdApi + public class GetDirectMessagesChatTopic : Function { /// - /// Returns information about the topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public class GetDirectMessagesChatTopic : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDirectMessagesChatTopic"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDirectMessagesChatTopic"; - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic to get - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } - } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about the topic in a channel direct messages chat administered by the current user + /// Identifier of the topic to get /// - public static Task GetDirectMessagesChatTopicAsync( - this IClient client, long chatId = default, long topicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } + } + + /// + /// Returns information about the topic in a channel direct messages chat administered by the current user + /// + public static Task GetDirectMessagesChatTopicAsync( + this IClient client, long chatId = default, long topicId = default) + { + return client.ExecuteAsync(new GetDirectMessagesChatTopic { - return client.ExecuteAsync(new GetDirectMessagesChatTopic - { - ChatId = chatId, TopicId = topicId - }); - } + ChatId = chatId, TopicId = topicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDirectMessagesChatTopicHistory.cs b/TdLib.Api/Functions/GetDirectMessagesChatTopicHistory.cs index 603b31bd..cdd1359d 100644 --- a/TdLib.Api/Functions/GetDirectMessagesChatTopicHistory.cs +++ b/TdLib.Api/Functions/GetDirectMessagesChatTopicHistory.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) /// - public static partial class TdApi + public class GetDirectMessagesChatTopicHistory : Function { /// - /// Returns messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// Data type for serialization /// - public class GetDirectMessagesChatTopicHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDirectMessagesChatTopicHistory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDirectMessagesChatTopicHistory"; - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic which messages will be fetched - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Identifier of the topic which messages will be fetched + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } - /// - /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. /// - public static Task GetDirectMessagesChatTopicHistoryAsync( - this IClient client, long chatId = default, long topicId = default, long fromMessageId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns messages in the topic in a channel direct messages chat administered by the current user. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// + public static Task GetDirectMessagesChatTopicHistoryAsync( + this IClient client, long chatId = default, long topicId = default, long fromMessageId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetDirectMessagesChatTopicHistory { - return client.ExecuteAsync(new GetDirectMessagesChatTopicHistory - { - ChatId = chatId, TopicId = topicId, FromMessageId = fromMessageId, Offset = offset, Limit = limit - }); - } + ChatId = chatId, TopicId = topicId, FromMessageId = fromMessageId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDirectMessagesChatTopicMessageByDate.cs b/TdLib.Api/Functions/GetDirectMessagesChatTopicMessageByDate.cs index eec02e65..8ae077af 100644 --- a/TdLib.Api/Functions/GetDirectMessagesChatTopicMessageByDate.cs +++ b/TdLib.Api/Functions/GetDirectMessagesChatTopicMessageByDate.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date /// - public static partial class TdApi + public class GetDirectMessagesChatTopicMessageByDate : Function { /// - /// Returns the last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date + /// Data type for serialization /// - public class GetDirectMessagesChatTopicMessageByDate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDirectMessagesChatTopicMessageByDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDirectMessagesChatTopicMessageByDate"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic which messages will be fetched - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Point in time (Unix timestamp) relative to which to search for messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Identifier of the topic which messages will be fetched + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } /// - /// Returns the last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date + /// Point in time (Unix timestamp) relative to which to search for messages /// - public static Task GetDirectMessagesChatTopicMessageByDateAsync( - this IClient client, long chatId = default, long topicId = default, int date = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + } + + /// + /// Returns the last message sent in the topic in a channel direct messages chat administered by the current user no later than the specified date + /// + public static Task GetDirectMessagesChatTopicMessageByDateAsync( + this IClient client, long chatId = default, long topicId = default, int date = default) + { + return client.ExecuteAsync(new GetDirectMessagesChatTopicMessageByDate { - return client.ExecuteAsync(new GetDirectMessagesChatTopicMessageByDate - { - ChatId = chatId, TopicId = topicId, Date = date - }); - } + ChatId = chatId, TopicId = topicId, Date = date + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDirectMessagesChatTopicRevenue.cs b/TdLib.Api/Functions/GetDirectMessagesChatTopicRevenue.cs index 5ae0eb94..41102a30 100644 --- a/TdLib.Api/Functions/GetDirectMessagesChatTopicRevenue.cs +++ b/TdLib.Api/Functions/GetDirectMessagesChatTopicRevenue.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic /// - public static partial class TdApi + public class GetDirectMessagesChatTopicRevenue : Function { /// - /// Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic + /// Data type for serialization /// - public class GetDirectMessagesChatTopicRevenue : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDirectMessagesChatTopicRevenue"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDirectMessagesChatTopicRevenue"; - /// - /// Chat identifier of the channel direct messages chat administered by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } - } + /// + /// Chat identifier of the channel direct messages chat administered by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic + /// Identifier of the topic /// - public static Task GetDirectMessagesChatTopicRevenueAsync( - this IClient client, long chatId = default, long topicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } + } + + /// + /// Returns the total number of Telegram Stars received by the channel chat for direct messages from the given topic + /// + public static Task GetDirectMessagesChatTopicRevenueAsync( + this IClient client, long chatId = default, long topicId = default) + { + return client.ExecuteAsync(new GetDirectMessagesChatTopicRevenue { - return client.ExecuteAsync(new GetDirectMessagesChatTopicRevenue - { - ChatId = chatId, TopicId = topicId - }); - } + ChatId = chatId, TopicId = topicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetDisallowedChatEmojiStatuses.cs b/TdLib.Api/Functions/GetDisallowedChatEmojiStatuses.cs index fbc9cf91..f14022a8 100644 --- a/TdLib.Api/Functions/GetDisallowedChatEmojiStatuses.cs +++ b/TdLib.Api/Functions/GetDisallowedChatEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of emoji statuses, which can't be used as chat emoji status, even if they are from a sticker set with is_allowed_as_chat_emoji_status == true /// - public static partial class TdApi + public class GetDisallowedChatEmojiStatuses : Function { /// - /// Returns the list of emoji statuses, which can't be used as chat emoji status, even if they are from a sticker set with is_allowed_as_chat_emoji_status == true + /// Data type for serialization /// - public class GetDisallowedChatEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getDisallowedChatEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getDisallowedChatEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of emoji statuses, which can't be used as chat emoji status, even if they are from a sticker set with is_allowed_as_chat_emoji_status == true - /// - public static Task GetDisallowedChatEmojiStatusesAsync( - this IClient client) + /// + /// Returns the list of emoji statuses, which can't be used as chat emoji status, even if they are from a sticker set with is_allowed_as_chat_emoji_status == true + /// + public static Task GetDisallowedChatEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetDisallowedChatEmojiStatuses { - return client.ExecuteAsync(new GetDisallowedChatEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetEmojiCategories.cs b/TdLib.Api/Functions/GetEmojiCategories.cs index c5baca34..66c02401 100644 --- a/TdLib.Api/Functions/GetEmojiCategories.cs +++ b/TdLib.Api/Functions/GetEmojiCategories.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available emoji categories /// - public static partial class TdApi + public class GetEmojiCategories : Function { /// - /// Returns available emoji categories + /// Data type for serialization /// - public class GetEmojiCategories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getEmojiCategories"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getEmojiCategories"; - /// - /// Type of emoji categories to return; pass null to get default emoji categories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public EmojiCategoryType Type { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns available emoji categories + /// Type of emoji categories to return; pass null to get default emoji categories /// - public static Task GetEmojiCategoriesAsync( - this IClient client, EmojiCategoryType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public EmojiCategoryType Type { get; set; } + } + + /// + /// Returns available emoji categories + /// + public static Task GetEmojiCategoriesAsync( + this IClient client, EmojiCategoryType type = default) + { + return client.ExecuteAsync(new GetEmojiCategories { - return client.ExecuteAsync(new GetEmojiCategories - { - Type = type - }); - } + Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetEmojiReaction.cs b/TdLib.Api/Functions/GetEmojiReaction.cs index de1db966..61c28a19 100644 --- a/TdLib.Api/Functions/GetEmojiReaction.cs +++ b/TdLib.Api/Functions/GetEmojiReaction.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about an emoji reaction. Returns a 404 error if the reaction is not found /// - public static partial class TdApi + public class GetEmojiReaction : Function { /// - /// Returns information about an emoji reaction. Returns a 404 error if the reaction is not found + /// Data type for serialization /// - public class GetEmojiReaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getEmojiReaction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getEmojiReaction"; - /// - /// Text representation of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about an emoji reaction. Returns a 404 error if the reaction is not found + /// Text representation of the reaction /// - public static Task GetEmojiReactionAsync( - this IClient client, string emoji = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } + } + + /// + /// Returns information about an emoji reaction. Returns a 404 error if the reaction is not found + /// + public static Task GetEmojiReactionAsync( + this IClient client, string emoji = default) + { + return client.ExecuteAsync(new GetEmojiReaction { - return client.ExecuteAsync(new GetEmojiReaction - { - Emoji = emoji - }); - } + Emoji = emoji + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetEmojiSuggestionsUrl.cs b/TdLib.Api/Functions/GetEmojiSuggestionsUrl.cs index f8e4ffc0..7bf779c0 100644 --- a/TdLib.Api/Functions/GetEmojiSuggestionsUrl.cs +++ b/TdLib.Api/Functions/GetEmojiSuggestionsUrl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation /// - public static partial class TdApi + public class GetEmojiSuggestionsUrl : Function { /// - /// Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation + /// Data type for serialization /// - public class GetEmojiSuggestionsUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getEmojiSuggestionsUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getEmojiSuggestionsUrl"; - /// - /// Language code for which the emoji replacements will be suggested - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation + /// Language code for which the emoji replacements will be suggested /// - public static Task GetEmojiSuggestionsUrlAsync( - this IClient client, string languageCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + } + + /// + /// Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation + /// + public static Task GetEmojiSuggestionsUrlAsync( + this IClient client, string languageCode = default) + { + return client.ExecuteAsync(new GetEmojiSuggestionsUrl { - return client.ExecuteAsync(new GetEmojiSuggestionsUrl - { - LanguageCode = languageCode - }); - } + LanguageCode = languageCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetExternalLink.cs b/TdLib.Api/Functions/GetExternalLink.cs index 463a67a0..a8e1fd22 100644 --- a/TdLib.Api/Functions/GetExternalLink.cs +++ b/TdLib.Api/Functions/GetExternalLink.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. + /// Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown /// - public static partial class TdApi + public class GetExternalLink : Function { /// - /// Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. - /// Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown + /// Data type for serialization /// - public class GetExternalLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getExternalLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getExternalLink"; - /// - /// The HTTP link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to send them messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_write_access")] - public bool AllowWriteAccess { get; set; } - } + /// + /// The HTTP link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } /// - /// Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. - /// Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown + /// Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to send them messages /// - public static Task GetExternalLinkAsync( - this IClient client, string link = default, bool allowWriteAccess = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_write_access")] + public bool AllowWriteAccess { get; set; } + } + + /// + /// Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. + /// Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown + /// + public static Task GetExternalLinkAsync( + this IClient client, string link = default, bool allowWriteAccess = default) + { + return client.ExecuteAsync(new GetExternalLink { - return client.ExecuteAsync(new GetExternalLink - { - Link = link, AllowWriteAccess = allowWriteAccess - }); - } + Link = link, AllowWriteAccess = allowWriteAccess + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetExternalLinkInfo.cs b/TdLib.Api/Functions/GetExternalLinkInfo.cs index 5d7643f4..cfadba29 100644 --- a/TdLib.Api/Functions/GetExternalLinkInfo.cs +++ b/TdLib.Api/Functions/GetExternalLinkInfo.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about an action to be done when the current user clicks an external link. Don't use this method for links from secret chats + /// if link preview is disabled in secret chats, and use directly getLinkWebBrowserType /// - public static partial class TdApi + public class GetExternalLinkInfo : Function { /// - /// Returns information about an action to be done when the current user clicks an external link. Don't use this method for links from secret chats - /// if link preview is disabled in secret chats, and use directly getLinkWebBrowserType + /// Data type for serialization /// - public class GetExternalLinkInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getExternalLinkInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getExternalLinkInfo"; - /// - /// The link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about an action to be done when the current user clicks an external link. Don't use this method for links from secret chats - /// if link preview is disabled in secret chats, and use directly getLinkWebBrowserType + /// The link /// - public static Task GetExternalLinkInfoAsync( - this IClient client, string link = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } + } + + /// + /// Returns information about an action to be done when the current user clicks an external link. Don't use this method for links from secret chats + /// if link preview is disabled in secret chats, and use directly getLinkWebBrowserType + /// + public static Task GetExternalLinkInfoAsync( + this IClient client, string link = default) + { + return client.ExecuteAsync(new GetExternalLinkInfo { - return client.ExecuteAsync(new GetExternalLinkInfo - { - Link = link - }); - } + Link = link + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetFavoriteStickers.cs b/TdLib.Api/Functions/GetFavoriteStickers.cs index 35e8db65..a090cd07 100644 --- a/TdLib.Api/Functions/GetFavoriteStickers.cs +++ b/TdLib.Api/Functions/GetFavoriteStickers.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns favorite stickers /// - public static partial class TdApi + public class GetFavoriteStickers : Function { /// - /// Returns favorite stickers + /// Data type for serialization /// - public class GetFavoriteStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getFavoriteStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getFavoriteStickers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns favorite stickers - /// - public static Task GetFavoriteStickersAsync( - this IClient client) + /// + /// Returns favorite stickers + /// + public static Task GetFavoriteStickersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetFavoriteStickers { - return client.ExecuteAsync(new GetFavoriteStickers - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetFile.cs b/TdLib.Api/Functions/GetFile.cs index b23c8e68..f79699f2 100644 --- a/TdLib.Api/Functions/GetFile.cs +++ b/TdLib.Api/Functions/GetFile.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a file. This is an offline method /// - public static partial class TdApi + public class GetFile : Function { /// - /// Returns information about a file. This is an offline method + /// Data type for serialization /// - public class GetFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getFile"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getFile"; - /// - /// Identifier of the file to get - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a file. This is an offline method + /// Identifier of the file to get /// - public static Task GetFileAsync( - this IClient client, int fileId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } + } + + /// + /// Returns information about a file. This is an offline method + /// + public static Task GetFileAsync( + this IClient client, int fileId = default) + { + return client.ExecuteAsync(new GetFile { - return client.ExecuteAsync(new GetFile - { - FileId = fileId - }); - } + FileId = fileId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetFileDownloadedPrefixSize.cs b/TdLib.Api/Functions/GetFileDownloadedPrefixSize.cs index 32564a8c..fee90d2c 100644 --- a/TdLib.Api/Functions/GetFileDownloadedPrefixSize.cs +++ b/TdLib.Api/Functions/GetFileDownloadedPrefixSize.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns file downloaded prefix size from a given offset, in bytes /// - public static partial class TdApi + public class GetFileDownloadedPrefixSize : Function { /// - /// Returns file downloaded prefix size from a given offset, in bytes + /// Data type for serialization /// - public class GetFileDownloadedPrefixSize : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getFileDownloadedPrefixSize"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getFileDownloadedPrefixSize"; - /// - /// Identifier of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset from which downloaded prefix size needs to be calculated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public long Offset { get; set; } - } + /// + /// Identifier of the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } /// - /// Returns file downloaded prefix size from a given offset, in bytes + /// Offset from which downloaded prefix size needs to be calculated /// - public static Task GetFileDownloadedPrefixSizeAsync( - this IClient client, int fileId = default, long offset = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public long Offset { get; set; } + } + + /// + /// Returns file downloaded prefix size from a given offset, in bytes + /// + public static Task GetFileDownloadedPrefixSizeAsync( + this IClient client, int fileId = default, long offset = default) + { + return client.ExecuteAsync(new GetFileDownloadedPrefixSize { - return client.ExecuteAsync(new GetFileDownloadedPrefixSize - { - FileId = fileId, Offset = offset - }); - } + FileId = fileId, Offset = offset + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetFileExtension.cs b/TdLib.Api/Functions/GetFileExtension.cs index bbddc881..c0ffd4f8 100644 --- a/TdLib.Api/Functions/GetFileExtension.cs +++ b/TdLib.Api/Functions/GetFileExtension.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously /// - public static partial class TdApi + public class GetFileExtension : Function { /// - /// Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously + /// Data type for serialization /// - public class GetFileExtension : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getFileExtension"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getFileExtension"; - /// - /// The MIME type of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously + /// The MIME type of the file /// - public static Task GetFileExtensionAsync( - this IClient client, string mimeType = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } + } + + /// + /// Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously + /// + public static Task GetFileExtensionAsync( + this IClient client, string mimeType = default) + { + return client.ExecuteAsync(new GetFileExtension { - return client.ExecuteAsync(new GetFileExtension - { - MimeType = mimeType - }); - } + MimeType = mimeType + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetFileMimeType.cs b/TdLib.Api/Functions/GetFileMimeType.cs index 02f66035..bde40cf8 100644 --- a/TdLib.Api/Functions/GetFileMimeType.cs +++ b/TdLib.Api/Functions/GetFileMimeType.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously /// - public static partial class TdApi + public class GetFileMimeType : Function { /// - /// Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously + /// Data type for serialization /// - public class GetFileMimeType : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getFileMimeType"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getFileMimeType"; - /// - /// The name of the file or path to the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_name")] - public string FileName { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously + /// The name of the file or path to the file /// - public static Task GetFileMimeTypeAsync( - this IClient client, string fileName = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_name")] + public string FileName { get; set; } + } + + /// + /// Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously + /// + public static Task GetFileMimeTypeAsync( + this IClient client, string fileName = default) + { + return client.ExecuteAsync(new GetFileMimeType { - return client.ExecuteAsync(new GetFileMimeType - { - FileName = fileName - }); - } + FileName = fileName + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetForumTopic.cs b/TdLib.Api/Functions/GetForumTopic.cs index 7178fd07..1c150646 100644 --- a/TdLib.Api/Functions/GetForumTopic.cs +++ b/TdLib.Api/Functions/GetForumTopic.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a topic in a forum supergroup chat or a chat with a bot with topics /// - public static partial class TdApi + public class GetForumTopic : Function { /// - /// Returns information about a topic in a forum supergroup chat or a chat with a bot with topics + /// Data type for serialization /// - public class GetForumTopic : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getForumTopic"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getForumTopic"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a topic in a forum supergroup chat or a chat with a bot with topics + /// Forum topic identifier /// - public static Task GetForumTopicAsync( - this IClient client, long chatId = default, int forumTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } + } + + /// + /// Returns information about a topic in a forum supergroup chat or a chat with a bot with topics + /// + public static Task GetForumTopicAsync( + this IClient client, long chatId = default, int forumTopicId = default) + { + return client.ExecuteAsync(new GetForumTopic { - return client.ExecuteAsync(new GetForumTopic - { - ChatId = chatId, ForumTopicId = forumTopicId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetForumTopicDefaultIcons.cs b/TdLib.Api/Functions/GetForumTopicDefaultIcons.cs index ce542284..d6533d2a 100644 --- a/TdLib.Api/Functions/GetForumTopicDefaultIcons.cs +++ b/TdLib.Api/Functions/GetForumTopicDefaultIcons.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of custom emoji, which can be used as forum topic icon by all users /// - public static partial class TdApi + public class GetForumTopicDefaultIcons : Function { /// - /// Returns the list of custom emoji, which can be used as forum topic icon by all users + /// Data type for serialization /// - public class GetForumTopicDefaultIcons : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getForumTopicDefaultIcons"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getForumTopicDefaultIcons"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of custom emoji, which can be used as forum topic icon by all users - /// - public static Task GetForumTopicDefaultIconsAsync( - this IClient client) + /// + /// Returns the list of custom emoji, which can be used as forum topic icon by all users + /// + public static Task GetForumTopicDefaultIconsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetForumTopicDefaultIcons { - return client.ExecuteAsync(new GetForumTopicDefaultIcons - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetForumTopicHistory.cs b/TdLib.Api/Functions/GetForumTopicHistory.cs index 57898c70..1f8be0ef 100644 --- a/TdLib.Api/Functions/GetForumTopicHistory.cs +++ b/TdLib.Api/Functions/GetForumTopicHistory.cs @@ -3,79 +3,81 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns messages in a topic in a forum supergroup chat or a chat with a bot with topics. The messages are returned in reverse chronological order + /// (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib /// - public static partial class TdApi + public class GetForumTopicHistory : Function { /// - /// Returns messages in a topic in a forum supergroup chat or a chat with a bot with topics. The messages are returned in reverse chronological order - /// (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// Data type for serialization /// - public class GetForumTopicHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getForumTopicHistory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getForumTopicHistory"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Forum topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns messages in a topic in a forum supergroup chat or a chat with a bot with topics. The messages are returned in reverse chronological order - /// (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. /// - public static Task GetForumTopicHistoryAsync( - this IClient client, long chatId = default, int forumTopicId = default, long fromMessageId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns messages in a topic in a forum supergroup chat or a chat with a bot with topics. The messages are returned in reverse chronological order + /// (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// + public static Task GetForumTopicHistoryAsync( + this IClient client, long chatId = default, int forumTopicId = default, long fromMessageId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetForumTopicHistory { - return client.ExecuteAsync(new GetForumTopicHistory - { - ChatId = chatId, ForumTopicId = forumTopicId, FromMessageId = fromMessageId, Offset = offset, Limit = limit - }); - } + ChatId = chatId, ForumTopicId = forumTopicId, FromMessageId = fromMessageId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetForumTopicLink.cs b/TdLib.Api/Functions/GetForumTopicLink.cs index 740e50a3..da8c4cea 100644 --- a/TdLib.Api/Functions/GetForumTopicLink.cs +++ b/TdLib.Api/Functions/GetForumTopicLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS link to a topic in a forum supergroup chat. This is an offline method /// - public static partial class TdApi + public class GetForumTopicLink : Function { /// - /// Returns an HTTPS link to a topic in a forum supergroup chat. This is an offline method + /// Data type for serialization /// - public class GetForumTopicLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getForumTopicLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getForumTopicLink"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns an HTTPS link to a topic in a forum supergroup chat. This is an offline method + /// Forum topic identifier /// - public static Task GetForumTopicLinkAsync( - this IClient client, long chatId = default, int forumTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } + } + + /// + /// Returns an HTTPS link to a topic in a forum supergroup chat. This is an offline method + /// + public static Task GetForumTopicLinkAsync( + this IClient client, long chatId = default, int forumTopicId = default) + { + return client.ExecuteAsync(new GetForumTopicLink { - return client.ExecuteAsync(new GetForumTopicLink - { - ChatId = chatId, ForumTopicId = forumTopicId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetForumTopics.cs b/TdLib.Api/Functions/GetForumTopics.cs index 7ee1cc37..9abcd9a3 100644 --- a/TdLib.Api/Functions/GetForumTopics.cs +++ b/TdLib.Api/Functions/GetForumTopics.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns found forum topics in a forum supergroup chat or a chat with a bot with topics. This is a temporary method for getting information about topic list from the server /// - public static partial class TdApi + public class GetForumTopics : Function { /// - /// Returns found forum topics in a forum supergroup chat or a chat with a bot with topics. This is a temporary method for getting information about topic list from the server + /// Data type for serialization /// - public class GetForumTopics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getForumTopics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getForumTopics"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for in the forum topic's name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_date")] - public int OffsetDate { get; set; } + /// + /// Query to search for in the forum topic's name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The message identifier of the last message in the last found topic, or 0 for the first request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_message_id")] - public long OffsetMessageId { get; set; } + /// + /// The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_date")] + public int OffsetDate { get; set; } - /// - /// The forum topic identifier of the last found topic, or 0 for the first request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_forum_topic_id")] - public int OffsetForumTopicId { get; set; } + /// + /// The message identifier of the last message in the last found topic, or 0 for the first request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_message_id")] + public long OffsetMessageId { get; set; } - /// - /// The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The forum topic identifier of the last found topic, or 0 for the first request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_forum_topic_id")] + public int OffsetForumTopicId { get; set; } /// - /// Returns found forum topics in a forum supergroup chat or a chat with a bot with topics. This is a temporary method for getting information about topic list from the server + /// The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit /// - public static Task GetForumTopicsAsync( - this IClient client, long chatId = default, string query = default, int offsetDate = default, long offsetMessageId = default, int offsetForumTopicId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns found forum topics in a forum supergroup chat or a chat with a bot with topics. This is a temporary method for getting information about topic list from the server + /// + public static Task GetForumTopicsAsync( + this IClient client, long chatId = default, string query = default, int offsetDate = default, long offsetMessageId = default, int offsetForumTopicId = default, int limit = default) + { + return client.ExecuteAsync(new GetForumTopics { - return client.ExecuteAsync(new GetForumTopics - { - ChatId = chatId, Query = query, OffsetDate = offsetDate, OffsetMessageId = offsetMessageId, OffsetForumTopicId = offsetForumTopicId, Limit = limit - }); - } + ChatId = chatId, Query = query, OffsetDate = offsetDate, OffsetMessageId = offsetMessageId, OffsetForumTopicId = offsetForumTopicId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetFullRichMessage.cs b/TdLib.Api/Functions/GetFullRichMessage.cs index 8c0f2c63..024eae9e 100644 --- a/TdLib.Api/Functions/GetFullRichMessage.cs +++ b/TdLib.Api/Functions/GetFullRichMessage.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the full version of a rich message /// - public static partial class TdApi + public class GetFullRichMessage : Function { /// - /// Returns the full version of a rich message + /// Data type for serialization /// - public class GetFullRichMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getFullRichMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getFullRichMessage"; - /// - /// Identifier of the chat the messages belong to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat the messages belong to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns the full version of a rich message + /// Identifier of the message /// - public static Task GetFullRichMessageAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns the full version of a rich message + /// + public static Task GetFullRichMessageAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetFullRichMessage { - return client.ExecuteAsync(new GetFullRichMessage - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGameHighScores.cs b/TdLib.Api/Functions/GetGameHighScores.cs index 1f731c45..355ce060 100644 --- a/TdLib.Api/Functions/GetGameHighScores.cs +++ b/TdLib.Api/Functions/GetGameHighScores.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only /// - public static partial class TdApi + public class GetGameHighScores : Function { /// - /// Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only + /// Data type for serialization /// - public class GetGameHighScores : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGameHighScores"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGameHighScores"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The chat that contains the message with the game - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat that contains the message with the game + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only + /// User identifier /// - public static Task GetGameHighScoresAsync( - this IClient client, long chatId = default, long messageId = default, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only + /// + public static Task GetGameHighScoresAsync( + this IClient client, long chatId = default, long messageId = default, long userId = default) + { + return client.ExecuteAsync(new GetGameHighScores { - return client.ExecuteAsync(new GetGameHighScores - { - ChatId = chatId, MessageId = messageId, UserId = userId - }); - } + ChatId = chatId, MessageId = messageId, UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGiftAuctionAcquiredGifts.cs b/TdLib.Api/Functions/GetGiftAuctionAcquiredGifts.cs index 2e9ad88c..6a1f43ac 100644 --- a/TdLib.Api/Functions/GetGiftAuctionAcquiredGifts.cs +++ b/TdLib.Api/Functions/GetGiftAuctionAcquiredGifts.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the gifts that were acquired by the current user on a gift auction /// - public static partial class TdApi + public class GetGiftAuctionAcquiredGifts : Function { /// - /// Returns the gifts that were acquired by the current user on a gift auction + /// Data type for serialization /// - public class GetGiftAuctionAcquiredGifts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGiftAuctionAcquiredGifts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGiftAuctionAcquiredGifts"; - /// - /// Identifier of the auctioned gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the gifts that were acquired by the current user on a gift auction + /// Identifier of the auctioned gift /// - public static Task GetGiftAuctionAcquiredGiftsAsync( - this IClient client, long giftId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } + } + + /// + /// Returns the gifts that were acquired by the current user on a gift auction + /// + public static Task GetGiftAuctionAcquiredGiftsAsync( + this IClient client, long giftId = default) + { + return client.ExecuteAsync(new GetGiftAuctionAcquiredGifts { - return client.ExecuteAsync(new GetGiftAuctionAcquiredGifts - { - GiftId = giftId - }); - } + GiftId = giftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGiftAuctionState.cs b/TdLib.Api/Functions/GetGiftAuctionState.cs index 67a0cbb8..3d37815e 100644 --- a/TdLib.Api/Functions/GetGiftAuctionState.cs +++ b/TdLib.Api/Functions/GetGiftAuctionState.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns auction state for a gift /// - public static partial class TdApi + public class GetGiftAuctionState : Function { /// - /// Returns auction state for a gift + /// Data type for serialization /// - public class GetGiftAuctionState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGiftAuctionState"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGiftAuctionState"; - /// - /// Unique identifier of the auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auction_id")] - public string AuctionId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns auction state for a gift + /// Unique identifier of the auction /// - public static Task GetGiftAuctionStateAsync( - this IClient client, string auctionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("auction_id")] + public string AuctionId { get; set; } + } + + /// + /// Returns auction state for a gift + /// + public static Task GetGiftAuctionStateAsync( + this IClient client, string auctionId = default) + { + return client.ExecuteAsync(new GetGiftAuctionState { - return client.ExecuteAsync(new GetGiftAuctionState - { - AuctionId = auctionId - }); - } + AuctionId = auctionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGiftChatThemes.cs b/TdLib.Api/Functions/GetGiftChatThemes.cs index c4d17dd1..13bb2049 100644 --- a/TdLib.Api/Functions/GetGiftChatThemes.cs +++ b/TdLib.Api/Functions/GetGiftChatThemes.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available to the current user gift chat themes /// - public static partial class TdApi + public class GetGiftChatThemes : Function { /// - /// Returns available to the current user gift chat themes + /// Data type for serialization /// - public class GetGiftChatThemes : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGiftChatThemes"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGiftChatThemes"; - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of chat themes to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns available to the current user gift chat themes + /// The maximum number of chat themes to return /// - public static Task GetGiftChatThemesAsync( - this IClient client, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns available to the current user gift chat themes + /// + public static Task GetGiftChatThemesAsync( + this IClient client, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetGiftChatThemes { - return client.ExecuteAsync(new GetGiftChatThemes - { - Offset = offset, Limit = limit - }); - } + Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGiftCollections.cs b/TdLib.Api/Functions/GetGiftCollections.cs index 9944e67c..ea55f020 100644 --- a/TdLib.Api/Functions/GetGiftCollections.cs +++ b/TdLib.Api/Functions/GetGiftCollections.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns collections of gifts owned by the given user or chat /// - public static partial class TdApi + public class GetGiftCollections : Function { /// - /// Returns collections of gifts owned by the given user or chat + /// Data type for serialization /// - public class GetGiftCollections : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGiftCollections"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGiftCollections"; - /// - /// Identifier of the user or the channel chat that received the gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns collections of gifts owned by the given user or chat + /// Identifier of the user or the channel chat that received the gifts /// - public static Task GetGiftCollectionsAsync( - this IClient client, MessageSender ownerId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } + } + + /// + /// Returns collections of gifts owned by the given user or chat + /// + public static Task GetGiftCollectionsAsync( + this IClient client, MessageSender ownerId = default) + { + return client.ExecuteAsync(new GetGiftCollections { - return client.ExecuteAsync(new GetGiftCollections - { - OwnerId = ownerId - }); - } + OwnerId = ownerId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGiftUpgradePreview.cs b/TdLib.Api/Functions/GetGiftUpgradePreview.cs index ad30f7bf..430b5920 100644 --- a/TdLib.Api/Functions/GetGiftUpgradePreview.cs +++ b/TdLib.Api/Functions/GetGiftUpgradePreview.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns examples of possible upgraded gifts for a regular gift /// - public static partial class TdApi + public class GetGiftUpgradePreview : Function { /// - /// Returns examples of possible upgraded gifts for a regular gift + /// Data type for serialization /// - public class GetGiftUpgradePreview : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGiftUpgradePreview"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGiftUpgradePreview"; - /// - /// Identifier of the regular gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("regular_gift_id")] - public long RegularGiftId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns examples of possible upgraded gifts for a regular gift + /// Identifier of the regular gift /// - public static Task GetGiftUpgradePreviewAsync( - this IClient client, long regularGiftId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("regular_gift_id")] + public long RegularGiftId { get; set; } + } + + /// + /// Returns examples of possible upgraded gifts for a regular gift + /// + public static Task GetGiftUpgradePreviewAsync( + this IClient client, long regularGiftId = default) + { + return client.ExecuteAsync(new GetGiftUpgradePreview { - return client.ExecuteAsync(new GetGiftUpgradePreview - { - RegularGiftId = regularGiftId - }); - } + RegularGiftId = regularGiftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGiftsForCrafting.cs b/TdLib.Api/Functions/GetGiftsForCrafting.cs index f60fd374..deb7e4f2 100644 --- a/TdLib.Api/Functions/GetGiftsForCrafting.cs +++ b/TdLib.Api/Functions/GetGiftsForCrafting.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns upgraded gifts of the current user who can be used to craft another gifts /// - public static partial class TdApi + public class GetGiftsForCrafting : Function { /// - /// Returns upgraded gifts of the current user who can be used to craft another gifts + /// Data type for serialization /// - public class GetGiftsForCrafting : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGiftsForCrafting"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGiftsForCrafting"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the regular gift that will be used for crafting - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("regular_gift_id")] - public long RegularGiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Identifier of the regular gift that will be used for crafting + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("regular_gift_id")] + public long RegularGiftId { get; set; } - /// - /// The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns upgraded gifts of the current user who can be used to craft another gifts + /// The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit /// - public static Task GetGiftsForCraftingAsync( - this IClient client, long regularGiftId = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns upgraded gifts of the current user who can be used to craft another gifts + /// + public static Task GetGiftsForCraftingAsync( + this IClient client, long regularGiftId = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetGiftsForCrafting { - return client.ExecuteAsync(new GetGiftsForCrafting - { - RegularGiftId = regularGiftId, Offset = offset, Limit = limit - }); - } + RegularGiftId = regularGiftId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGiveawayInfo.cs b/TdLib.Api/Functions/GetGiveawayInfo.cs index 969b6431..f59a5923 100644 --- a/TdLib.Api/Functions/GetGiveawayInfo.cs +++ b/TdLib.Api/Functions/GetGiveawayInfo.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a giveaway /// - public static partial class TdApi + public class GetGiveawayInfo : Function { /// - /// Returns information about a giveaway + /// Data type for serialization /// - public class GetGiveawayInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGiveawayInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGiveawayInfo"; - /// - /// Identifier of the channel chat which started the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the giveaway or a giveaway winners message in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the channel chat which started the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a giveaway + /// Identifier of the giveaway or a giveaway winners message in the chat /// - public static Task GetGiveawayInfoAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns information about a giveaway + /// + public static Task GetGiveawayInfoAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetGiveawayInfo { - return client.ExecuteAsync(new GetGiveawayInfo - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGramRevenueStatistics.cs b/TdLib.Api/Functions/GetGramRevenueStatistics.cs index 7eb51e51..168e0e9d 100644 --- a/TdLib.Api/Functions/GetGramRevenueStatistics.cs +++ b/TdLib.Api/Functions/GetGramRevenueStatistics.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns detailed TON Gram revenue statistics of the current user /// - public static partial class TdApi + public class GetGramRevenueStatistics : Function { /// - /// Returns detailed TON Gram revenue statistics of the current user + /// Data type for serialization /// - public class GetGramRevenueStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGramRevenueStatistics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGramRevenueStatistics"; - /// - /// Pass true if a dark theme is used by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns detailed TON Gram revenue statistics of the current user + /// Pass true if a dark theme is used by the application /// - public static Task GetGramRevenueStatisticsAsync( - this IClient client, bool isDark = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } + } + + /// + /// Returns detailed TON Gram revenue statistics of the current user + /// + public static Task GetGramRevenueStatisticsAsync( + this IClient client, bool isDark = default) + { + return client.ExecuteAsync(new GetGramRevenueStatistics { - return client.ExecuteAsync(new GetGramRevenueStatistics - { - IsDark = isDark - }); - } + IsDark = isDark + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGramWithdrawalUrl.cs b/TdLib.Api/Functions/GetGramWithdrawalUrl.cs index 0aaba2ec..efc2d3dd 100644 --- a/TdLib.Api/Functions/GetGramWithdrawalUrl.cs +++ b/TdLib.Api/Functions/GetGramWithdrawalUrl.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a URL for TON Gram withdrawal from the current user's account. The user must have at least 10 Grams to withdraw + /// and can withdraw up to 100000 Grams in one transaction /// - public static partial class TdApi + public class GetGramWithdrawalUrl : Function { /// - /// Returns a URL for TON Gram withdrawal from the current user's account. The user must have at least 10 Grams to withdraw - /// and can withdraw up to 100000 Grams in one transaction + /// Data type for serialization /// - public class GetGramWithdrawalUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGramWithdrawalUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGramWithdrawalUrl"; - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a URL for TON Gram withdrawal from the current user's account. The user must have at least 10 Grams to withdraw - /// and can withdraw up to 100000 Grams in one transaction + /// The 2-step verification password of the current user /// - public static Task GetGramWithdrawalUrlAsync( - this IClient client, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns a URL for TON Gram withdrawal from the current user's account. The user must have at least 10 Grams to withdraw + /// and can withdraw up to 100000 Grams in one transaction + /// + public static Task GetGramWithdrawalUrlAsync( + this IClient client, string password = default) + { + return client.ExecuteAsync(new GetGramWithdrawalUrl { - return client.ExecuteAsync(new GetGramWithdrawalUrl - { - Password = password - }); - } + Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGreetingStickers.cs b/TdLib.Api/Functions/GetGreetingStickers.cs index 32f4d589..ca42ee0a 100644 --- a/TdLib.Api/Functions/GetGreetingStickers.cs +++ b/TdLib.Api/Functions/GetGreetingStickers.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns greeting stickers from regular sticker sets that can be used for the start page of other users /// - public static partial class TdApi + public class GetGreetingStickers : Function { /// - /// Returns greeting stickers from regular sticker sets that can be used for the start page of other users + /// Data type for serialization /// - public class GetGreetingStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGreetingStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGreetingStickers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns greeting stickers from regular sticker sets that can be used for the start page of other users - /// - public static Task GetGreetingStickersAsync( - this IClient client) + /// + /// Returns greeting stickers from regular sticker sets that can be used for the start page of other users + /// + public static Task GetGreetingStickersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetGreetingStickers { - return client.ExecuteAsync(new GetGreetingStickers - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGrossingWebAppBots.cs b/TdLib.Api/Functions/GetGrossingWebAppBots.cs index fa9b6d38..60a6143d 100644 --- a/TdLib.Api/Functions/GetGrossingWebAppBots.cs +++ b/TdLib.Api/Functions/GetGrossingWebAppBots.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the most grossing Web App bots /// - public static partial class TdApi + public class GetGrossingWebAppBots : Function { /// - /// Returns the most grossing Web App bots + /// Data type for serialization /// - public class GetGrossingWebAppBots : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGrossingWebAppBots"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGrossingWebAppBots"; - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of bots to be returned; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns the most grossing Web App bots + /// The maximum number of bots to be returned; up to 100 /// - public static Task GetGrossingWebAppBotsAsync( - this IClient client, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the most grossing Web App bots + /// + public static Task GetGrossingWebAppBotsAsync( + this IClient client, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetGrossingWebAppBots { - return client.ExecuteAsync(new GetGrossingWebAppBots - { - Offset = offset, Limit = limit - }); - } + Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGroupCall.cs b/TdLib.Api/Functions/GetGroupCall.cs index 105842a3..e5859146 100644 --- a/TdLib.Api/Functions/GetGroupCall.cs +++ b/TdLib.Api/Functions/GetGroupCall.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a group call /// - public static partial class TdApi + public class GetGroupCall : Function { /// - /// Returns information about a group call + /// Data type for serialization /// - public class GetGroupCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGroupCall"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGroupCall"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a group call + /// Group call identifier /// - public static Task GetGroupCallAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Returns information about a group call + /// + public static Task GetGroupCallAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new GetGroupCall { - return client.ExecuteAsync(new GetGroupCall - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGroupCallParticipants.cs b/TdLib.Api/Functions/GetGroupCallParticipants.cs index 965249b9..b74481a2 100644 --- a/TdLib.Api/Functions/GetGroupCallParticipants.cs +++ b/TdLib.Api/Functions/GetGroupCallParticipants.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about participants of a non-joined group call that is not bound to a chat /// - public static partial class TdApi + public class GetGroupCallParticipants : Function { /// - /// Returns information about participants of a non-joined group call that is not bound to a chat + /// Data type for serialization /// - public class GetGroupCallParticipants : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGroupCallParticipants"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGroupCallParticipants"; - /// - /// The group call which participants will be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_group_call")] - public InputGroupCall InputGroupCall { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of participants to return; must be positive - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The group call which participants will be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_group_call")] + public InputGroupCall InputGroupCall { get; set; } /// - /// Returns information about participants of a non-joined group call that is not bound to a chat + /// The maximum number of participants to return; must be positive /// - public static Task GetGroupCallParticipantsAsync( - this IClient client, InputGroupCall inputGroupCall = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns information about participants of a non-joined group call that is not bound to a chat + /// + public static Task GetGroupCallParticipantsAsync( + this IClient client, InputGroupCall inputGroupCall = default, int limit = default) + { + return client.ExecuteAsync(new GetGroupCallParticipants { - return client.ExecuteAsync(new GetGroupCallParticipants - { - InputGroupCall = inputGroupCall, Limit = limit - }); - } + InputGroupCall = inputGroupCall, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGroupCallStreamSegment.cs b/TdLib.Api/Functions/GetGroupCallStreamSegment.cs index 2fbc0e0c..29f51c1a 100644 --- a/TdLib.Api/Functions/GetGroupCallStreamSegment.cs +++ b/TdLib.Api/Functions/GetGroupCallStreamSegment.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a file with a segment of a video chat or live story in a modified OGG format for audio or MPEG-4 format for video /// - public static partial class TdApi + public class GetGroupCallStreamSegment : Function { /// - /// Returns a file with a segment of a video chat or live story in a modified OGG format for audio or MPEG-4 format for video + /// Data type for serialization /// - public class GetGroupCallStreamSegment : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGroupCallStreamSegment"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGroupCallStreamSegment"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time when the stream segment begins; Unix timestamp in milliseconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("time_offset")] - public long TimeOffset { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Segment duration scale; 0-1. Segment's duration is 1000/(2**scale) milliseconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scale")] - public int Scale { get; set; } + /// + /// Point in time when the stream segment begins; Unix timestamp in milliseconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("time_offset")] + public long TimeOffset { get; set; } - /// - /// Identifier of an audio/video channel to get as received from tgcalls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("channel_id")] - public int ChannelId { get; set; } + /// + /// Segment duration scale; 0-1. Segment's duration is 1000/(2**scale) milliseconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scale")] + public int Scale { get; set; } - /// - /// Video quality as received from tgcalls; pass null to get the worst available quality - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_quality")] - public GroupCallVideoQuality VideoQuality { get; set; } - } + /// + /// Identifier of an audio/video channel to get as received from tgcalls + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("channel_id")] + public int ChannelId { get; set; } /// - /// Returns a file with a segment of a video chat or live story in a modified OGG format for audio or MPEG-4 format for video + /// Video quality as received from tgcalls; pass null to get the worst available quality /// - public static Task GetGroupCallStreamSegmentAsync( - this IClient client, int groupCallId = default, long timeOffset = default, int scale = default, int channelId = default, GroupCallVideoQuality videoQuality = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("video_quality")] + public GroupCallVideoQuality VideoQuality { get; set; } + } + + /// + /// Returns a file with a segment of a video chat or live story in a modified OGG format for audio or MPEG-4 format for video + /// + public static Task GetGroupCallStreamSegmentAsync( + this IClient client, int groupCallId = default, long timeOffset = default, int scale = default, int channelId = default, GroupCallVideoQuality videoQuality = default) + { + return client.ExecuteAsync(new GetGroupCallStreamSegment { - return client.ExecuteAsync(new GetGroupCallStreamSegment - { - GroupCallId = groupCallId, TimeOffset = timeOffset, Scale = scale, ChannelId = channelId, VideoQuality = videoQuality - }); - } + GroupCallId = groupCallId, TimeOffset = timeOffset, Scale = scale, ChannelId = channelId, VideoQuality = videoQuality + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGroupCallStreams.cs b/TdLib.Api/Functions/GetGroupCallStreams.cs index 71fdf812..fe4f42df 100644 --- a/TdLib.Api/Functions/GetGroupCallStreams.cs +++ b/TdLib.Api/Functions/GetGroupCallStreams.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about available streams in a video chat or a live story /// - public static partial class TdApi + public class GetGroupCallStreams : Function { /// - /// Returns information about available streams in a video chat or a live story + /// Data type for serialization /// - public class GetGroupCallStreams : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGroupCallStreams"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGroupCallStreams"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about available streams in a video chat or a live story + /// Group call identifier /// - public static Task GetGroupCallStreamsAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Returns information about available streams in a video chat or a live story + /// + public static Task GetGroupCallStreamsAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new GetGroupCallStreams { - return client.ExecuteAsync(new GetGroupCallStreams - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGroupsInCommon.cs b/TdLib.Api/Functions/GetGroupsInCommon.cs index 7d0a1c2a..267fe38d 100644 --- a/TdLib.Api/Functions/GetGroupsInCommon.cs +++ b/TdLib.Api/Functions/GetGroupsInCommon.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of common group chats with a given user. Chats are sorted by their type and creation date /// - public static partial class TdApi + public class GetGroupsInCommon : Function { /// - /// Returns a list of common group chats with a given user. Chats are sorted by their type and creation date + /// Data type for serialization /// - public class GetGroupsInCommon : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGroupsInCommon"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGroupsInCommon"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier starting from which to return chats; use 0 for the first request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset_chat_id")] - public long OffsetChatId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The maximum number of chats to be returned; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Chat identifier starting from which to return chats; use 0 for the first request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset_chat_id")] + public long OffsetChatId { get; set; } /// - /// Returns a list of common group chats with a given user. Chats are sorted by their type and creation date + /// The maximum number of chats to be returned; up to 100 /// - public static Task GetGroupsInCommonAsync( - this IClient client, long userId = default, long offsetChatId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns a list of common group chats with a given user. Chats are sorted by their type and creation date + /// + public static Task GetGroupsInCommonAsync( + this IClient client, long userId = default, long offsetChatId = default, int limit = default) + { + return client.ExecuteAsync(new GetGroupsInCommon { - return client.ExecuteAsync(new GetGroupsInCommon - { - UserId = userId, OffsetChatId = offsetChatId, Limit = limit - }); - } + UserId = userId, OffsetChatId = offsetChatId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetGuardBotWebAppUrl.cs b/TdLib.Api/Functions/GetGuardBotWebAppUrl.cs index 7cf0904d..6ae7436e 100644 --- a/TdLib.Api/Functions/GetGuardBotWebAppUrl.cs +++ b/TdLib.Api/Functions/GetGuardBotWebAppUrl.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS URL of a Web App of a guard bot to open after receiving chatJoinResultGuardBotApprovalRequired /// - public static partial class TdApi + public class GetGuardBotWebAppUrl : Function { /// - /// Returns an HTTPS URL of a Web App of a guard bot to open after receiving chatJoinResultGuardBotApprovalRequired + /// Data type for serialization /// - public class GetGuardBotWebAppUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getGuardBotWebAppUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getGuardBotWebAppUrl"; - /// - /// Unique identifier of the join request as received in chatJoinResultGuardBotApprovalRequired - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Parameters to use to open the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public WebAppOpenParameters Parameters { get; set; } - } + /// + /// Unique identifier of the join request as received in chatJoinResultGuardBotApprovalRequired + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } /// - /// Returns an HTTPS URL of a Web App of a guard bot to open after receiving chatJoinResultGuardBotApprovalRequired + /// Parameters to use to open the Web App /// - public static Task GetGuardBotWebAppUrlAsync( - this IClient client, long queryId = default, WebAppOpenParameters parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public WebAppOpenParameters Parameters { get; set; } + } + + /// + /// Returns an HTTPS URL of a Web App of a guard bot to open after receiving chatJoinResultGuardBotApprovalRequired + /// + public static Task GetGuardBotWebAppUrlAsync( + this IClient client, long queryId = default, WebAppOpenParameters parameters = default) + { + return client.ExecuteAsync(new GetGuardBotWebAppUrl { - return client.ExecuteAsync(new GetGuardBotWebAppUrl - { - QueryId = queryId, Parameters = parameters - }); - } + QueryId = queryId, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetImportedContactCount.cs b/TdLib.Api/Functions/GetImportedContactCount.cs index 3b3db994..af9539fb 100644 --- a/TdLib.Api/Functions/GetImportedContactCount.cs +++ b/TdLib.Api/Functions/GetImportedContactCount.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the total number of imported contacts /// - public static partial class TdApi + public class GetImportedContactCount : Function { /// - /// Returns the total number of imported contacts + /// Data type for serialization /// - public class GetImportedContactCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getImportedContactCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getImportedContactCount"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the total number of imported contacts - /// - public static Task GetImportedContactCountAsync( - this IClient client) + /// + /// Returns the total number of imported contacts + /// + public static Task GetImportedContactCountAsync( + this IClient client) + { + return client.ExecuteAsync(new GetImportedContactCount { - return client.ExecuteAsync(new GetImportedContactCount - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetInactiveSupergroupChats.cs b/TdLib.Api/Functions/GetInactiveSupergroupChats.cs index a16a5261..e22c04e8 100644 --- a/TdLib.Api/Functions/GetInactiveSupergroupChats.cs +++ b/TdLib.Api/Functions/GetInactiveSupergroupChats.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives the error "CHANNELS_TOO_MUCH". Also, the limit can be increased with Telegram Premium /// - public static partial class TdApi + public class GetInactiveSupergroupChats : Function { /// - /// Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives the error "CHANNELS_TOO_MUCH". Also, the limit can be increased with Telegram Premium + /// Data type for serialization /// - public class GetInactiveSupergroupChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getInactiveSupergroupChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getInactiveSupergroupChats"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives the error "CHANNELS_TOO_MUCH". Also, the limit can be increased with Telegram Premium - /// - public static Task GetInactiveSupergroupChatsAsync( - this IClient client) + /// + /// Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives the error "CHANNELS_TOO_MUCH". Also, the limit can be increased with Telegram Premium + /// + public static Task GetInactiveSupergroupChatsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetInactiveSupergroupChats { - return client.ExecuteAsync(new GetInactiveSupergroupChats - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetInlineGameHighScores.cs b/TdLib.Api/Functions/GetInlineGameHighScores.cs index a748ed53..8235ba5b 100644 --- a/TdLib.Api/Functions/GetInlineGameHighScores.cs +++ b/TdLib.Api/Functions/GetInlineGameHighScores.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns game high scores and some part of the high score table in the range of the specified user; for bots only /// - public static partial class TdApi + public class GetInlineGameHighScores : Function { /// - /// Returns game high scores and some part of the high score table in the range of the specified user; for bots only + /// Data type for serialization /// - public class GetInlineGameHighScores : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getInlineGameHighScores"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getInlineGameHighScores"; - /// - /// Inline message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Inline message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } /// - /// Returns game high scores and some part of the high score table in the range of the specified user; for bots only + /// User identifier /// - public static Task GetInlineGameHighScoresAsync( - this IClient client, string inlineMessageId = default, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns game high scores and some part of the high score table in the range of the specified user; for bots only + /// + public static Task GetInlineGameHighScoresAsync( + this IClient client, string inlineMessageId = default, long userId = default) + { + return client.ExecuteAsync(new GetInlineGameHighScores { - return client.ExecuteAsync(new GetInlineGameHighScores - { - InlineMessageId = inlineMessageId, UserId = userId - }); - } + InlineMessageId = inlineMessageId, UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetInlineQueryResults.cs b/TdLib.Api/Functions/GetInlineQueryResults.cs index e04b256e..08d06a96 100644 --- a/TdLib.Api/Functions/GetInlineQueryResults.cs +++ b/TdLib.Api/Functions/GetInlineQueryResults.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires /// - public static partial class TdApi + public class GetInlineQueryResults : Function { /// - /// Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires + /// Data type for serialization /// - public class GetInlineQueryResults : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getInlineQueryResults"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getInlineQueryResults"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat where the query was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Location of the user; pass null if unknown or the bot doesn't need user's location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_location")] - public Location UserLocation { get; set; } + /// + /// Identifier of the chat where the query was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Text of the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Location of the user; pass null if unknown or the bot doesn't need user's location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_location")] + public Location UserLocation { get; set; } - /// - /// Offset of the first entry to return; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } - } + /// + /// Text of the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } /// - /// Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires + /// Offset of the first entry to return; use empty string to get the first chunk of results /// - public static Task GetInlineQueryResultsAsync( - this IClient client, long botUserId = default, long chatId = default, Location userLocation = default, string query = default, string offset = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } + } + + /// + /// Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires + /// + public static Task GetInlineQueryResultsAsync( + this IClient client, long botUserId = default, long chatId = default, Location userLocation = default, string query = default, string offset = default) + { + return client.ExecuteAsync(new GetInlineQueryResults { - return client.ExecuteAsync(new GetInlineQueryResults - { - BotUserId = botUserId, ChatId = chatId, UserLocation = userLocation, Query = query, Offset = offset - }); - } + BotUserId = botUserId, ChatId = chatId, UserLocation = userLocation, Query = query, Offset = offset + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetInstalledBackgrounds.cs b/TdLib.Api/Functions/GetInstalledBackgrounds.cs index 9bbdc3bf..fe5db944 100644 --- a/TdLib.Api/Functions/GetInstalledBackgrounds.cs +++ b/TdLib.Api/Functions/GetInstalledBackgrounds.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns backgrounds installed by the user /// - public static partial class TdApi + public class GetInstalledBackgrounds : Function { /// - /// Returns backgrounds installed by the user + /// Data type for serialization /// - public class GetInstalledBackgrounds : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getInstalledBackgrounds"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getInstalledBackgrounds"; - /// - /// Pass true to order returned backgrounds for a dark theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_dark_theme")] - public bool ForDarkTheme { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns backgrounds installed by the user + /// Pass true to order returned backgrounds for a dark theme /// - public static Task GetInstalledBackgroundsAsync( - this IClient client, bool forDarkTheme = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("for_dark_theme")] + public bool ForDarkTheme { get; set; } + } + + /// + /// Returns backgrounds installed by the user + /// + public static Task GetInstalledBackgroundsAsync( + this IClient client, bool forDarkTheme = default) + { + return client.ExecuteAsync(new GetInstalledBackgrounds { - return client.ExecuteAsync(new GetInstalledBackgrounds - { - ForDarkTheme = forDarkTheme - }); - } + ForDarkTheme = forDarkTheme + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetInstalledStickerSets.cs b/TdLib.Api/Functions/GetInstalledStickerSets.cs index c16f1d6f..ac56ed73 100644 --- a/TdLib.Api/Functions/GetInstalledStickerSets.cs +++ b/TdLib.Api/Functions/GetInstalledStickerSets.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of installed sticker sets /// - public static partial class TdApi + public class GetInstalledStickerSets : Function { /// - /// Returns a list of installed sticker sets + /// Data type for serialization /// - public class GetInstalledStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getInstalledStickerSets"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getInstalledStickerSets"; - /// - /// Type of the sticker sets to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a list of installed sticker sets + /// Type of the sticker sets to return /// - public static Task GetInstalledStickerSetsAsync( - this IClient client, StickerType stickerType = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } + } + + /// + /// Returns a list of installed sticker sets + /// + public static Task GetInstalledStickerSetsAsync( + this IClient client, StickerType stickerType = default) + { + return client.ExecuteAsync(new GetInstalledStickerSets { - return client.ExecuteAsync(new GetInstalledStickerSets - { - StickerType = stickerType - }); - } + StickerType = stickerType + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetInternalLink.cs b/TdLib.Api/Functions/GetInternalLink.cs index da9d1fc1..a8d19e20 100644 --- a/TdLib.Api/Functions/GetInternalLink.cs +++ b/TdLib.Api/Functions/GetInternalLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS or a tg: link with the given type. Can be called before authorization /// - public static partial class TdApi + public class GetInternalLink : Function { /// - /// Returns an HTTPS or a tg: link with the given type. Can be called before authorization + /// Data type for serialization /// - public class GetInternalLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getInternalLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getInternalLink"; - /// - /// Expected type of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InternalLinkType Type { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_http")] - public bool IsHttp { get; set; } - } + /// + /// Expected type of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InternalLinkType Type { get; set; } /// - /// Returns an HTTPS or a tg: link with the given type. Can be called before authorization + /// Pass true to create an HTTPS link (only available for some link types); pass false to create a tg: link /// - public static Task GetInternalLinkAsync( - this IClient client, InternalLinkType type = default, bool isHttp = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_http")] + public bool IsHttp { get; set; } + } + + /// + /// Returns an HTTPS or a tg: link with the given type. Can be called before authorization + /// + public static Task GetInternalLinkAsync( + this IClient client, InternalLinkType type = default, bool isHttp = default) + { + return client.ExecuteAsync(new GetInternalLink { - return client.ExecuteAsync(new GetInternalLink - { - Type = type, IsHttp = isHttp - }); - } + Type = type, IsHttp = isHttp + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetInternalLinkType.cs b/TdLib.Api/Functions/GetInternalLinkType.cs index 6294e28e..841ceb8b 100644 --- a/TdLib.Api/Functions/GetInternalLinkType.cs +++ b/TdLib.Api/Functions/GetInternalLinkType.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the type of internal link. Returns a 404 error if the link is not internal. Can be called before authorization /// - public static partial class TdApi + public class GetInternalLinkType : Function { /// - /// Returns information about the type of internal link. Returns a 404 error if the link is not internal. Can be called before authorization + /// Data type for serialization /// - public class GetInternalLinkType : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getInternalLinkType"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getInternalLinkType"; - /// - /// The link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about the type of internal link. Returns a 404 error if the link is not internal. Can be called before authorization + /// The link /// - public static Task GetInternalLinkTypeAsync( - this IClient client, string link = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } + } + + /// + /// Returns information about the type of internal link. Returns a 404 error if the link is not internal. Can be called before authorization + /// + public static Task GetInternalLinkTypeAsync( + this IClient client, string link = default) + { + return client.ExecuteAsync(new GetInternalLinkType { - return client.ExecuteAsync(new GetInternalLinkType - { - Link = link - }); - } + Link = link + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetJsonString.cs b/TdLib.Api/Functions/GetJsonString.cs index e72fa876..86680d64 100644 --- a/TdLib.Api/Functions/GetJsonString.cs +++ b/TdLib.Api/Functions/GetJsonString.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously /// - public static partial class TdApi + public class GetJsonString : Function { /// - /// Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously + /// Data type for serialization /// - public class GetJsonString : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getJsonString"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getJsonString"; - /// - /// The JsonValue object - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("json_value")] - public JsonValue JsonValue { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously + /// The JsonValue object /// - public static Task GetJsonStringAsync( - this IClient client, JsonValue jsonValue = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("json_value")] + public JsonValue JsonValue { get; set; } + } + + /// + /// Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously + /// + public static Task GetJsonStringAsync( + this IClient client, JsonValue jsonValue = default) + { + return client.ExecuteAsync(new GetJsonString { - return client.ExecuteAsync(new GetJsonString - { - JsonValue = jsonValue - }); - } + JsonValue = jsonValue + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetJsonValue.cs b/TdLib.Api/Functions/GetJsonValue.cs index 0ed81181..7a76da92 100644 --- a/TdLib.Api/Functions/GetJsonValue.cs +++ b/TdLib.Api/Functions/GetJsonValue.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously /// - public static partial class TdApi + public class GetJsonValue : Function { /// - /// Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously + /// Data type for serialization /// - public class GetJsonValue : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getJsonValue"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getJsonValue"; - /// - /// The JSON-serialized string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("json")] - public string Json { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously + /// The JSON-serialized string /// - public static Task GetJsonValueAsync( - this IClient client, string json = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("json")] + public string Json { get; set; } + } + + /// + /// Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously + /// + public static Task GetJsonValueAsync( + this IClient client, string json = default) + { + return client.ExecuteAsync(new GetJsonValue { - return client.ExecuteAsync(new GetJsonValue - { - Json = json - }); - } + Json = json + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetKeywordEmojis.cs b/TdLib.Api/Functions/GetKeywordEmojis.cs index b76996d0..4001f194 100644 --- a/TdLib.Api/Functions/GetKeywordEmojis.cs +++ b/TdLib.Api/Functions/GetKeywordEmojis.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified /// - public static partial class TdApi + public class GetKeywordEmojis : Function { /// - /// Returns emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified + /// Data type for serialization /// - public class GetKeywordEmojis : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getKeywordEmojis"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getKeywordEmojis"; - /// - /// Text to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of possible IETF language tags of the user's input language; may be empty if unknown - /// - [JsonProperty("input_language_codes", ItemConverterType = typeof(Converter))] - public string[] InputLanguageCodes { get; set; } - } + /// + /// Text to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } /// - /// Returns emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified + /// List of possible IETF language tags of the user's input language; may be empty if unknown /// - public static Task GetKeywordEmojisAsync( - this IClient client, string text = default, string[] inputLanguageCodes = default) + [JsonProperty("input_language_codes", ItemConverterType = typeof(Converter))] + public string[] InputLanguageCodes { get; set; } + } + + /// + /// Returns emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified + /// + public static Task GetKeywordEmojisAsync( + this IClient client, string text = default, string[] inputLanguageCodes = default) + { + return client.ExecuteAsync(new GetKeywordEmojis { - return client.ExecuteAsync(new GetKeywordEmojis - { - Text = text, InputLanguageCodes = inputLanguageCodes - }); - } + Text = text, InputLanguageCodes = inputLanguageCodes + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLanguagePackInfo.cs b/TdLib.Api/Functions/GetLanguagePackInfo.cs index 15a21a38..bdada671 100644 --- a/TdLib.Api/Functions/GetLanguagePackInfo.cs +++ b/TdLib.Api/Functions/GetLanguagePackInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization /// - public static partial class TdApi + public class GetLanguagePackInfo : Function { /// - /// Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization + /// Data type for serialization /// - public class GetLanguagePackInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLanguagePackInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLanguagePackInfo"; - /// - /// Language pack identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization + /// Language pack identifier /// - public static Task GetLanguagePackInfoAsync( - this IClient client, string languagePackId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } + } + + /// + /// Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization + /// + public static Task GetLanguagePackInfoAsync( + this IClient client, string languagePackId = default) + { + return client.ExecuteAsync(new GetLanguagePackInfo { - return client.ExecuteAsync(new GetLanguagePackInfo - { - LanguagePackId = languagePackId - }); - } + LanguagePackId = languagePackId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLanguagePackString.cs b/TdLib.Api/Functions/GetLanguagePackString.cs index ffc7e320..44bb4864 100644 --- a/TdLib.Api/Functions/GetLanguagePackString.cs +++ b/TdLib.Api/Functions/GetLanguagePackString.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously /// - public static partial class TdApi + public class GetLanguagePackString : Function { /// - /// Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously + /// Data type for serialization /// - public class GetLanguagePackString : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLanguagePackString"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLanguagePackString"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Path to the language pack database in which strings are stored - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_database_path")] - public string LanguagePackDatabasePath { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Localization target to which the language pack belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("localization_target")] - public string LocalizationTarget { get; set; } + /// + /// Path to the language pack database in which strings are stored + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_database_path")] + public string LanguagePackDatabasePath { get; set; } - /// - /// Language pack identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } + /// + /// Localization target to which the language pack belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("localization_target")] + public string LocalizationTarget { get; set; } - /// - /// Language pack key of the string to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("key")] - public string Key { get; set; } - } + /// + /// Language pack identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } /// - /// Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously + /// Language pack key of the string to be returned /// - public static Task GetLanguagePackStringAsync( - this IClient client, string languagePackDatabasePath = default, string localizationTarget = default, string languagePackId = default, string key = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("key")] + public string Key { get; set; } + } + + /// + /// Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously + /// + public static Task GetLanguagePackStringAsync( + this IClient client, string languagePackDatabasePath = default, string localizationTarget = default, string languagePackId = default, string key = default) + { + return client.ExecuteAsync(new GetLanguagePackString { - return client.ExecuteAsync(new GetLanguagePackString - { - LanguagePackDatabasePath = languagePackDatabasePath, LocalizationTarget = localizationTarget, LanguagePackId = languagePackId, Key = key - }); - } + LanguagePackDatabasePath = languagePackDatabasePath, LocalizationTarget = localizationTarget, LanguagePackId = languagePackId, Key = key + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLanguagePackStrings.cs b/TdLib.Api/Functions/GetLanguagePackStrings.cs index e94418b9..d607cfc6 100644 --- a/TdLib.Api/Functions/GetLanguagePackStrings.cs +++ b/TdLib.Api/Functions/GetLanguagePackStrings.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns strings from a language pack in the current localization target by their keys. Can be called before authorization /// - public static partial class TdApi + public class GetLanguagePackStrings : Function { /// - /// Returns strings from a language pack in the current localization target by their keys. Can be called before authorization + /// Data type for serialization /// - public class GetLanguagePackStrings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLanguagePackStrings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLanguagePackStrings"; - /// - /// Language pack identifier of the strings to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Language pack keys of the strings to be returned; leave empty to request all available strings - /// - [JsonProperty("keys", ItemConverterType = typeof(Converter))] - public string[] Keys { get; set; } - } + /// + /// Language pack identifier of the strings to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } /// - /// Returns strings from a language pack in the current localization target by their keys. Can be called before authorization + /// Language pack keys of the strings to be returned; leave empty to request all available strings /// - public static Task GetLanguagePackStringsAsync( - this IClient client, string languagePackId = default, string[] keys = default) + [JsonProperty("keys", ItemConverterType = typeof(Converter))] + public string[] Keys { get; set; } + } + + /// + /// Returns strings from a language pack in the current localization target by their keys. Can be called before authorization + /// + public static Task GetLanguagePackStringsAsync( + this IClient client, string languagePackId = default, string[] keys = default) + { + return client.ExecuteAsync(new GetLanguagePackStrings { - return client.ExecuteAsync(new GetLanguagePackStrings - { - LanguagePackId = languagePackId, Keys = keys - }); - } + LanguagePackId = languagePackId, Keys = keys + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLinkPreview.cs b/TdLib.Api/Functions/GetLinkPreview.cs index f2da1994..fa93536c 100644 --- a/TdLib.Api/Functions/GetLinkPreview.cs +++ b/TdLib.Api/Functions/GetLinkPreview.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview /// - public static partial class TdApi + public class GetLinkPreview : Function { /// - /// Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview + /// Data type for serialization /// - public class GetLinkPreview : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLinkPreview"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLinkPreview"; - /// - /// Message text with formatting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Options to be used for generation of the link preview; pass null to use default link preview options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_preview_options")] - public LinkPreviewOptions LinkPreviewOptions { get; set; } - } + /// + /// Message text with formatting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } /// - /// Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview + /// Options to be used for generation of the link preview; pass null to use default link preview options /// - public static Task GetLinkPreviewAsync( - this IClient client, FormattedText text = default, LinkPreviewOptions linkPreviewOptions = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link_preview_options")] + public LinkPreviewOptions LinkPreviewOptions { get; set; } + } + + /// + /// Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview + /// + public static Task GetLinkPreviewAsync( + this IClient client, FormattedText text = default, LinkPreviewOptions linkPreviewOptions = default) + { + return client.ExecuteAsync(new GetLinkPreview { - return client.ExecuteAsync(new GetLinkPreview - { - Text = text, LinkPreviewOptions = linkPreviewOptions - }); - } + Text = text, LinkPreviewOptions = linkPreviewOptions + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLinkWebBrowserType.cs b/TdLib.Api/Functions/GetLinkWebBrowserType.cs index 61bd7cb8..8e36afb4 100644 --- a/TdLib.Api/Functions/GetLinkWebBrowserType.cs +++ b/TdLib.Api/Functions/GetLinkWebBrowserType.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a type of the web browser which must be used to open the link /// - public static partial class TdApi + public class GetLinkWebBrowserType : Function { /// - /// Returns a type of the web browser which must be used to open the link + /// Data type for serialization /// - public class GetLinkWebBrowserType : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLinkWebBrowserType"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLinkWebBrowserType"; - /// - /// The HTTP link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a type of the web browser which must be used to open the link + /// The HTTP link /// - public static Task GetLinkWebBrowserTypeAsync( - this IClient client, string link = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } + } + + /// + /// Returns a type of the web browser which must be used to open the link + /// + public static Task GetLinkWebBrowserTypeAsync( + this IClient client, string link = default) + { + return client.ExecuteAsync(new GetLinkWebBrowserType { - return client.ExecuteAsync(new GetLinkWebBrowserType - { - Link = link - }); - } + Link = link + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLiveStoryAvailableMessageSenders.cs b/TdLib.Api/Functions/GetLiveStoryAvailableMessageSenders.cs index 3e65deb3..f045f6ca 100644 --- a/TdLib.Api/Functions/GetLiveStoryAvailableMessageSenders.cs +++ b/TdLib.Api/Functions/GetLiveStoryAvailableMessageSenders.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of message sender identifiers, on whose behalf messages can be sent to a live story /// - public static partial class TdApi + public class GetLiveStoryAvailableMessageSenders : Function { /// - /// Returns the list of message sender identifiers, on whose behalf messages can be sent to a live story + /// Data type for serialization /// - public class GetLiveStoryAvailableMessageSenders : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLiveStoryAvailableMessageSenders"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLiveStoryAvailableMessageSenders"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of message sender identifiers, on whose behalf messages can be sent to a live story + /// Group call identifier /// - public static Task GetLiveStoryAvailableMessageSendersAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Returns the list of message sender identifiers, on whose behalf messages can be sent to a live story + /// + public static Task GetLiveStoryAvailableMessageSendersAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new GetLiveStoryAvailableMessageSenders { - return client.ExecuteAsync(new GetLiveStoryAvailableMessageSenders - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLiveStoryRtmpUrl.cs b/TdLib.Api/Functions/GetLiveStoryRtmpUrl.cs index fe7d23c0..d50df062 100644 --- a/TdLib.Api/Functions/GetLiveStoryRtmpUrl.cs +++ b/TdLib.Api/Functions/GetLiveStoryRtmpUrl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns RTMP URL for streaming to a live story; requires can_post_stories administrator right for channel chats /// - public static partial class TdApi + public class GetLiveStoryRtmpUrl : Function { /// - /// Returns RTMP URL for streaming to a live story; requires can_post_stories administrator right for channel chats + /// Data type for serialization /// - public class GetLiveStoryRtmpUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLiveStoryRtmpUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLiveStoryRtmpUrl"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns RTMP URL for streaming to a live story; requires can_post_stories administrator right for channel chats + /// Chat identifier /// - public static Task GetLiveStoryRtmpUrlAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns RTMP URL for streaming to a live story; requires can_post_stories administrator right for channel chats + /// + public static Task GetLiveStoryRtmpUrlAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetLiveStoryRtmpUrl { - return client.ExecuteAsync(new GetLiveStoryRtmpUrl - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLiveStoryStreamer.cs b/TdLib.Api/Functions/GetLiveStoryStreamer.cs index ac688863..90d9e460 100644 --- a/TdLib.Api/Functions/GetLiveStoryStreamer.cs +++ b/TdLib.Api/Functions/GetLiveStoryStreamer.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the user or the chat that streams to a live story; for live stories that aren't an RTMP stream only /// - public static partial class TdApi + public class GetLiveStoryStreamer : Function { /// - /// Returns information about the user or the chat that streams to a live story; for live stories that aren't an RTMP stream only + /// Data type for serialization /// - public class GetLiveStoryStreamer : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLiveStoryStreamer"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLiveStoryStreamer"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about the user or the chat that streams to a live story; for live stories that aren't an RTMP stream only + /// Group call identifier /// - public static Task GetLiveStoryStreamerAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Returns information about the user or the chat that streams to a live story; for live stories that aren't an RTMP stream only + /// + public static Task GetLiveStoryStreamerAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new GetLiveStoryStreamer { - return client.ExecuteAsync(new GetLiveStoryStreamer - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLiveStoryTopDonors.cs b/TdLib.Api/Functions/GetLiveStoryTopDonors.cs index 22daa6b2..f3b8a9fe 100644 --- a/TdLib.Api/Functions/GetLiveStoryTopDonors.cs +++ b/TdLib.Api/Functions/GetLiveStoryTopDonors.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of top live story donors /// - public static partial class TdApi + public class GetLiveStoryTopDonors : Function { /// - /// Returns the list of top live story donors + /// Data type for serialization /// - public class GetLiveStoryTopDonors : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLiveStoryTopDonors"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLiveStoryTopDonors"; - /// - /// Group call identifier of the live story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of top live story donors + /// Group call identifier of the live story /// - public static Task GetLiveStoryTopDonorsAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Returns the list of top live story donors + /// + public static Task GetLiveStoryTopDonorsAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new GetLiveStoryTopDonors { - return client.ExecuteAsync(new GetLiveStoryTopDonors - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLocalizationTargetInfo.cs b/TdLib.Api/Functions/GetLocalizationTargetInfo.cs index 75d23161..e7408a5c 100644 --- a/TdLib.Api/Functions/GetLocalizationTargetInfo.cs +++ b/TdLib.Api/Functions/GetLocalizationTargetInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the current localization target. This is an offline method if only_local is true. Can be called before authorization /// - public static partial class TdApi + public class GetLocalizationTargetInfo : Function { /// - /// Returns information about the current localization target. This is an offline method if only_local is true. Can be called before authorization + /// Data type for serialization /// - public class GetLocalizationTargetInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLocalizationTargetInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLocalizationTargetInfo"; - /// - /// Pass true to get only locally available information without sending network requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_local")] - public bool OnlyLocal { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about the current localization target. This is an offline method if only_local is true. Can be called before authorization + /// Pass true to get only locally available information without sending network requests /// - public static Task GetLocalizationTargetInfoAsync( - this IClient client, bool onlyLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_local")] + public bool OnlyLocal { get; set; } + } + + /// + /// Returns information about the current localization target. This is an offline method if only_local is true. Can be called before authorization + /// + public static Task GetLocalizationTargetInfoAsync( + this IClient client, bool onlyLocal = default) + { + return client.ExecuteAsync(new GetLocalizationTargetInfo { - return client.ExecuteAsync(new GetLocalizationTargetInfo - { - OnlyLocal = onlyLocal - }); - } + OnlyLocal = onlyLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLogStream.cs b/TdLib.Api/Functions/GetLogStream.cs index 73f9ed6c..261d672c 100644 --- a/TdLib.Api/Functions/GetLogStream.cs +++ b/TdLib.Api/Functions/GetLogStream.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously /// - public static partial class TdApi + public class GetLogStream : Function { /// - /// Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously + /// Data type for serialization /// - public class GetLogStream : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLogStream"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLogStream"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously - /// - public static Task GetLogStreamAsync( - this IClient client) + /// + /// Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously + /// + public static Task GetLogStreamAsync( + this IClient client) + { + return client.ExecuteAsync(new GetLogStream { - return client.ExecuteAsync(new GetLogStream - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLogTagVerbosityLevel.cs b/TdLib.Api/Functions/GetLogTagVerbosityLevel.cs index 74cda28a..181d6b7f 100644 --- a/TdLib.Api/Functions/GetLogTagVerbosityLevel.cs +++ b/TdLib.Api/Functions/GetLogTagVerbosityLevel.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously /// - public static partial class TdApi + public class GetLogTagVerbosityLevel : Function { /// - /// Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously + /// Data type for serialization /// - public class GetLogTagVerbosityLevel : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLogTagVerbosityLevel"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLogTagVerbosityLevel"; - /// - /// Logging tag to change verbosity level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public string Tag { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously + /// Logging tag to change verbosity level /// - public static Task GetLogTagVerbosityLevelAsync( - this IClient client, string tag = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public string Tag { get; set; } + } + + /// + /// Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously + /// + public static Task GetLogTagVerbosityLevelAsync( + this IClient client, string tag = default) + { + return client.ExecuteAsync(new GetLogTagVerbosityLevel { - return client.ExecuteAsync(new GetLogTagVerbosityLevel - { - Tag = tag - }); - } + Tag = tag + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLogTags.cs b/TdLib.Api/Functions/GetLogTags.cs index 0b59e5e5..072c3315 100644 --- a/TdLib.Api/Functions/GetLogTags.cs +++ b/TdLib.Api/Functions/GetLogTags.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously /// - public static partial class TdApi + public class GetLogTags : Function { /// - /// Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously + /// Data type for serialization /// - public class GetLogTags : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLogTags"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLogTags"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously - /// - public static Task GetLogTagsAsync( - this IClient client) + /// + /// Returns the list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. Can be called synchronously + /// + public static Task GetLogTagsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetLogTags { - return client.ExecuteAsync(new GetLogTags - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLogVerbosityLevel.cs b/TdLib.Api/Functions/GetLogVerbosityLevel.cs index 56f58298..db6e7e0d 100644 --- a/TdLib.Api/Functions/GetLogVerbosityLevel.cs +++ b/TdLib.Api/Functions/GetLogVerbosityLevel.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns current verbosity level of the internal logging of TDLib. Can be called synchronously /// - public static partial class TdApi + public class GetLogVerbosityLevel : Function { /// - /// Returns current verbosity level of the internal logging of TDLib. Can be called synchronously + /// Data type for serialization /// - public class GetLogVerbosityLevel : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLogVerbosityLevel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLogVerbosityLevel"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns current verbosity level of the internal logging of TDLib. Can be called synchronously - /// - public static Task GetLogVerbosityLevelAsync( - this IClient client) + /// + /// Returns current verbosity level of the internal logging of TDLib. Can be called synchronously + /// + public static Task GetLogVerbosityLevelAsync( + this IClient client) + { + return client.ExecuteAsync(new GetLogVerbosityLevel { - return client.ExecuteAsync(new GetLogVerbosityLevel - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLoginPasskeys.cs b/TdLib.Api/Functions/GetLoginPasskeys.cs index 6a377d9d..ddbfe249 100644 --- a/TdLib.Api/Functions/GetLoginPasskeys.cs +++ b/TdLib.Api/Functions/GetLoginPasskeys.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of passkeys allowed to be used for the login by the current user /// - public static partial class TdApi + public class GetLoginPasskeys : Function { /// - /// Returns the list of passkeys allowed to be used for the login by the current user + /// Data type for serialization /// - public class GetLoginPasskeys : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLoginPasskeys"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLoginPasskeys"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of passkeys allowed to be used for the login by the current user - /// - public static Task GetLoginPasskeysAsync( - this IClient client) + /// + /// Returns the list of passkeys allowed to be used for the login by the current user + /// + public static Task GetLoginPasskeysAsync( + this IClient client) + { + return client.ExecuteAsync(new GetLoginPasskeys { - return client.ExecuteAsync(new GetLoginPasskeys - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLoginUrl.cs b/TdLib.Api/Functions/GetLoginUrl.cs index cc9dbf39..76ef105f 100644 --- a/TdLib.Api/Functions/GetLoginUrl.cs +++ b/TdLib.Api/Functions/GetLoginUrl.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. + /// Use the method getLoginUrlInfo to find whether a prior user confirmation is needed. If an error is returned, then the button must be handled as an ordinary URL button /// - public static partial class TdApi + public class GetLoginUrl : Function { /// - /// Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. - /// Use the method getLoginUrlInfo to find whether a prior user confirmation is needed. If an error is returned, then the button must be handled as an ordinary URL button + /// Data type for serialization /// - public class GetLoginUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLoginUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLoginUrl"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the message with the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier of the message with the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the message with the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Button identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_id")] - public long ButtonId { get; set; } + /// + /// Message identifier of the message with the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Pass true to allow the bot to send messages to the current user. Phone number access can't be requested using the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_write_access")] - public bool AllowWriteAccess { get; set; } - } + /// + /// Button identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_id")] + public long ButtonId { get; set; } /// - /// Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. - /// Use the method getLoginUrlInfo to find whether a prior user confirmation is needed. If an error is returned, then the button must be handled as an ordinary URL button + /// Pass true to allow the bot to send messages to the current user. Phone number access can't be requested using the button /// - public static Task GetLoginUrlAsync( - this IClient client, long chatId = default, long messageId = default, long buttonId = default, bool allowWriteAccess = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_write_access")] + public bool AllowWriteAccess { get; set; } + } + + /// + /// Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. + /// Use the method getLoginUrlInfo to find whether a prior user confirmation is needed. If an error is returned, then the button must be handled as an ordinary URL button + /// + public static Task GetLoginUrlAsync( + this IClient client, long chatId = default, long messageId = default, long buttonId = default, bool allowWriteAccess = default) + { + return client.ExecuteAsync(new GetLoginUrl { - return client.ExecuteAsync(new GetLoginUrl - { - ChatId = chatId, MessageId = messageId, ButtonId = buttonId, AllowWriteAccess = allowWriteAccess - }); - } + ChatId = chatId, MessageId = messageId, ButtonId = buttonId, AllowWriteAccess = allowWriteAccess + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetLoginUrlInfo.cs b/TdLib.Api/Functions/GetLoginUrlInfo.cs index 0b3f2516..aeb8de87 100644 --- a/TdLib.Api/Functions/GetLoginUrlInfo.cs +++ b/TdLib.Api/Functions/GetLoginUrlInfo.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button /// - public static partial class TdApi + public class GetLoginUrlInfo : Function { /// - /// Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button + /// Data type for serialization /// - public class GetLoginUrlInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getLoginUrlInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getLoginUrlInfo"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the message with the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier of the message with the button. The message must not be scheduled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the message with the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Button identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_id")] - public long ButtonId { get; set; } - } + /// + /// Message identifier of the message with the button. The message must not be scheduled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button + /// Button identifier /// - public static Task GetLoginUrlInfoAsync( - this IClient client, long chatId = default, long messageId = default, long buttonId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("button_id")] + public long ButtonId { get; set; } + } + + /// + /// Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button + /// + public static Task GetLoginUrlInfoAsync( + this IClient client, long chatId = default, long messageId = default, long buttonId = default) + { + return client.ExecuteAsync(new GetLoginUrlInfo { - return client.ExecuteAsync(new GetLoginUrlInfo - { - ChatId = chatId, MessageId = messageId, ButtonId = buttonId - }); - } + ChatId = chatId, MessageId = messageId, ButtonId = buttonId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMainWebApp.cs b/TdLib.Api/Functions/GetMainWebApp.cs index 6a96a5b8..e2180486 100644 --- a/TdLib.Api/Functions/GetMainWebApp.cs +++ b/TdLib.Api/Functions/GetMainWebApp.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information needed to open the main Web App of a bot /// - public static partial class TdApi + public class GetMainWebApp : Function { /// - /// Returns information needed to open the main Web App of a bot + /// Data type for serialization /// - public class GetMainWebApp : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMainWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMainWebApp"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat in which the Web App is opened; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the target bot. If the bot is restricted for the current user, then show an error instead of calling the method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Identifier of the chat in which the Web App is opened; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Start parameter from internalLinkTypeMainWebApp - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } + /// + /// Identifier of the target bot. If the bot is restricted for the current user, then show an error instead of calling the method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Parameters to use to open the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public WebAppOpenParameters Parameters { get; set; } - } + /// + /// Start parameter from internalLinkTypeMainWebApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } /// - /// Returns information needed to open the main Web App of a bot + /// Parameters to use to open the Web App /// - public static Task GetMainWebAppAsync( - this IClient client, long chatId = default, long botUserId = default, string startParameter = default, WebAppOpenParameters parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public WebAppOpenParameters Parameters { get; set; } + } + + /// + /// Returns information needed to open the main Web App of a bot + /// + public static Task GetMainWebAppAsync( + this IClient client, long chatId = default, long botUserId = default, string startParameter = default, WebAppOpenParameters parameters = default) + { + return client.ExecuteAsync(new GetMainWebApp { - return client.ExecuteAsync(new GetMainWebApp - { - ChatId = chatId, BotUserId = botUserId, StartParameter = startParameter, Parameters = parameters - }); - } + ChatId = chatId, BotUserId = botUserId, StartParameter = startParameter, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetManagedBotAccessSettings.cs b/TdLib.Api/Functions/GetManagedBotAccessSettings.cs index 16cd5b85..8dfd99c6 100644 --- a/TdLib.Api/Functions/GetManagedBotAccessSettings.cs +++ b/TdLib.Api/Functions/GetManagedBotAccessSettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns access settings of a managed bot; for bots only /// - public static partial class TdApi + public class GetManagedBotAccessSettings : Function { /// - /// Returns access settings of a managed bot; for bots only + /// Data type for serialization /// - public class GetManagedBotAccessSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getManagedBotAccessSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getManagedBotAccessSettings"; - /// - /// Identifier of the managed bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns access settings of a managed bot; for bots only + /// Identifier of the managed bot /// - public static Task GetManagedBotAccessSettingsAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Returns access settings of a managed bot; for bots only + /// + public static Task GetManagedBotAccessSettingsAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new GetManagedBotAccessSettings { - return client.ExecuteAsync(new GetManagedBotAccessSettings - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetManagedBotToken.cs b/TdLib.Api/Functions/GetManagedBotToken.cs index fa0e4593..c0ddda29 100644 --- a/TdLib.Api/Functions/GetManagedBotToken.cs +++ b/TdLib.Api/Functions/GetManagedBotToken.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns token of a managed bot; for bots only /// - public static partial class TdApi + public class GetManagedBotToken : Function { /// - /// Returns token of a managed bot; for bots only + /// Data type for serialization /// - public class GetManagedBotToken : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getManagedBotToken"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getManagedBotToken"; - /// - /// Identifier of the managed bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to revoke the current token and create a new one - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revoke")] - public bool Revoke { get; set; } - } + /// + /// Identifier of the managed bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns token of a managed bot; for bots only + /// Pass true to revoke the current token and create a new one /// - public static Task GetManagedBotTokenAsync( - this IClient client, long botUserId = default, bool revoke = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("revoke")] + public bool Revoke { get; set; } + } + + /// + /// Returns token of a managed bot; for bots only + /// + public static Task GetManagedBotTokenAsync( + this IClient client, long botUserId = default, bool revoke = default) + { + return client.ExecuteAsync(new GetManagedBotToken { - return client.ExecuteAsync(new GetManagedBotToken - { - BotUserId = botUserId, Revoke = revoke - }); - } + BotUserId = botUserId, Revoke = revoke + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMapThumbnailFile.cs b/TdLib.Api/Functions/GetMapThumbnailFile.cs index eaaa6298..b0bb929f 100644 --- a/TdLib.Api/Functions/GetMapThumbnailFile.cs +++ b/TdLib.Api/Functions/GetMapThumbnailFile.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded /// - public static partial class TdApi + public class GetMapThumbnailFile : Function { /// - /// Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded + /// Data type for serialization /// - public class GetMapThumbnailFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMapThumbnailFile"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMapThumbnailFile"; - /// - /// Location of the map center - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Map zoom level; 13-20 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("zoom")] - public int Zoom { get; set; } + /// + /// Location of the map center + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Map width in pixels before applying scale; 16-1024 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Map zoom level; 13-20 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("zoom")] + public int Zoom { get; set; } - /// - /// Map height in pixels before applying scale; 16-1024 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Map width in pixels before applying scale; 16-1024 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Map scale; 1-3 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scale")] - public int Scale { get; set; } + /// + /// Map height in pixels before applying scale; 16-1024 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Map scale; 1-3 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scale")] + public int Scale { get; set; } /// - /// Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded + /// Identifier of a chat in which the thumbnail will be shown. Use 0 if unknown /// - public static Task GetMapThumbnailFileAsync( - this IClient client, Location location = default, int zoom = default, int width = default, int height = default, int scale = default, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded + /// + public static Task GetMapThumbnailFileAsync( + this IClient client, Location location = default, int zoom = default, int width = default, int height = default, int scale = default, long chatId = default) + { + return client.ExecuteAsync(new GetMapThumbnailFile { - return client.ExecuteAsync(new GetMapThumbnailFile - { - Location = location, Zoom = zoom, Width = width, Height = height, Scale = scale, ChatId = chatId - }); - } + Location = location, Zoom = zoom, Width = width, Height = height, Scale = scale, ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMarkdownText.cs b/TdLib.Api/Functions/GetMarkdownText.cs index 337db4da..adfc321c 100644 --- a/TdLib.Api/Functions/GetMarkdownText.cs +++ b/TdLib.Api/Functions/GetMarkdownText.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously /// - public static partial class TdApi + public class GetMarkdownText : Function { /// - /// Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously + /// Data type for serialization /// - public class GetMarkdownText : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMarkdownText"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMarkdownText"; - /// - /// The text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously + /// The text /// - public static Task GetMarkdownTextAsync( - this IClient client, FormattedText text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + } + + /// + /// Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously + /// + public static Task GetMarkdownTextAsync( + this IClient client, FormattedText text = default) + { + return client.ExecuteAsync(new GetMarkdownText { - return client.ExecuteAsync(new GetMarkdownText - { - Text = text - }); - } + Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMe.cs b/TdLib.Api/Functions/GetMe.cs index 2e8bc1cc..60689fd2 100644 --- a/TdLib.Api/Functions/GetMe.cs +++ b/TdLib.Api/Functions/GetMe.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the current user /// - public static partial class TdApi + public class GetMe : Function { /// - /// Returns the current user + /// Data type for serialization /// - public class GetMe : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMe"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMe"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the current user - /// - public static Task GetMeAsync( - this IClient client) + /// + /// Returns the current user + /// + public static Task GetMeAsync( + this IClient client) + { + return client.ExecuteAsync(new GetMe { - return client.ExecuteAsync(new GetMe - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMenuButton.cs b/TdLib.Api/Functions/GetMenuButton.cs index 0107095e..4736f005 100644 --- a/TdLib.Api/Functions/GetMenuButton.cs +++ b/TdLib.Api/Functions/GetMenuButton.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns menu button set by the bot for the given user; for bots only /// - public static partial class TdApi + public class GetMenuButton : Function { /// - /// Returns menu button set by the bot for the given user; for bots only + /// Data type for serialization /// - public class GetMenuButton : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMenuButton"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMenuButton"; - /// - /// Identifier of the user or 0 to get the default menu button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns menu button set by the bot for the given user; for bots only + /// Identifier of the user or 0 to get the default menu button /// - public static Task GetMenuButtonAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns menu button set by the bot for the given user; for bots only + /// + public static Task GetMenuButtonAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new GetMenuButton { - return client.ExecuteAsync(new GetMenuButton - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessage.cs b/TdLib.Api/Functions/GetMessage.cs index fb8f4c8c..cc5c1581 100644 --- a/TdLib.Api/Functions/GetMessage.cs +++ b/TdLib.Api/Functions/GetMessage.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a message. Returns a 404 error if the message doesn't exist /// - public static partial class TdApi + public class GetMessage : Function { /// - /// Returns information about a message. Returns a 404 error if the message doesn't exist + /// Data type for serialization /// - public class GetMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessage"; - /// - /// Identifier of the chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message to get - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a message. Returns a 404 error if the message doesn't exist + /// Identifier of the message to get /// - public static Task GetMessageAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns information about a message. Returns a 404 error if the message doesn't exist + /// + public static Task GetMessageAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetMessage { - return client.ExecuteAsync(new GetMessage - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageAddedReactions.cs b/TdLib.Api/Functions/GetMessageAddedReactions.cs index 38bc7ec0..33ff4788 100644 --- a/TdLib.Api/Functions/GetMessageAddedReactions.cs +++ b/TdLib.Api/Functions/GetMessageAddedReactions.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns reactions added for a message, along with their sender /// - public static partial class TdApi + public class GetMessageAddedReactions : Function { /// - /// Returns reactions added for a message, along with their sender + /// Data type for serialization /// - public class GetMessageAddedReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageAddedReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageAddedReactions"; - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use message.interaction_info.reactions.can_get_added_reactions to check whether added reactions can be received for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Type of the reactions to return; pass null to return all added reactions; reactionTypePaid isn't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } + /// + /// Identifier of the message. Use message.interaction_info.reactions.can_get_added_reactions to check whether added reactions can be received for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Type of the reactions to return; pass null to return all added reactions; reactionTypePaid isn't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } - /// - /// The maximum number of reactions to be returned; must be positive and can't be greater than 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns reactions added for a message, along with their sender + /// The maximum number of reactions to be returned; must be positive and can't be greater than 100 /// - public static Task GetMessageAddedReactionsAsync( - this IClient client, long chatId = default, long messageId = default, ReactionType reactionType = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns reactions added for a message, along with their sender + /// + public static Task GetMessageAddedReactionsAsync( + this IClient client, long chatId = default, long messageId = default, ReactionType reactionType = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetMessageAddedReactions { - return client.ExecuteAsync(new GetMessageAddedReactions - { - ChatId = chatId, MessageId = messageId, ReactionType = reactionType, Offset = offset, Limit = limit - }); - } + ChatId = chatId, MessageId = messageId, ReactionType = reactionType, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageAuthor.cs b/TdLib.Api/Functions/GetMessageAuthor.cs index fa87250b..ca4664a2 100644 --- a/TdLib.Api/Functions/GetMessageAuthor.cs +++ b/TdLib.Api/Functions/GetMessageAuthor.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about actual author of a message sent on behalf of a channel. The method can be called if messageProperties.can_get_author == true /// - public static partial class TdApi + public class GetMessageAuthor : Function { /// - /// Returns information about actual author of a message sent on behalf of a channel. The method can be called if messageProperties.can_get_author == true + /// Data type for serialization /// - public class GetMessageAuthor : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageAuthor"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageAuthor"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about actual author of a message sent on behalf of a channel. The method can be called if messageProperties.can_get_author == true + /// Identifier of the message /// - public static Task GetMessageAuthorAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns information about actual author of a message sent on behalf of a channel. The method can be called if messageProperties.can_get_author == true + /// + public static Task GetMessageAuthorAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetMessageAuthor { - return client.ExecuteAsync(new GetMessageAuthor - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageAvailableReactions.cs b/TdLib.Api/Functions/GetMessageAvailableReactions.cs index 42281cc6..c389c067 100644 --- a/TdLib.Api/Functions/GetMessageAvailableReactions.cs +++ b/TdLib.Api/Functions/GetMessageAvailableReactions.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions, updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message /// - public static partial class TdApi + public class GetMessageAvailableReactions : Function { /// - /// Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions, updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message + /// Data type for serialization /// - public class GetMessageAvailableReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageAvailableReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageAvailableReactions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Number of reaction per row, 5-25 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("row_size")] - public int RowSize { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions, updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message + /// Number of reaction per row, 5-25 /// - public static Task GetMessageAvailableReactionsAsync( - this IClient client, long chatId = default, long messageId = default, int rowSize = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("row_size")] + public int RowSize { get; set; } + } + + /// + /// Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions, updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message + /// + public static Task GetMessageAvailableReactionsAsync( + this IClient client, long chatId = default, long messageId = default, int rowSize = default) + { + return client.ExecuteAsync(new GetMessageAvailableReactions { - return client.ExecuteAsync(new GetMessageAvailableReactions - { - ChatId = chatId, MessageId = messageId, RowSize = rowSize - }); - } + ChatId = chatId, MessageId = messageId, RowSize = rowSize + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageEffect.cs b/TdLib.Api/Functions/GetMessageEffect.cs index 75df9436..1fe18bd4 100644 --- a/TdLib.Api/Functions/GetMessageEffect.cs +++ b/TdLib.Api/Functions/GetMessageEffect.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a message effect. Returns a 404 error if the effect is not found /// - public static partial class TdApi + public class GetMessageEffect : Function { /// - /// Returns information about a message effect. Returns a 404 error if the effect is not found + /// Data type for serialization /// - public class GetMessageEffect : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageEffect"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageEffect"; - /// - /// Unique identifier of the effect - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("effect_id")] - public long EffectId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a message effect. Returns a 404 error if the effect is not found + /// Unique identifier of the effect /// - public static Task GetMessageEffectAsync( - this IClient client, long effectId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("effect_id")] + public long EffectId { get; set; } + } + + /// + /// Returns information about a message effect. Returns a 404 error if the effect is not found + /// + public static Task GetMessageEffectAsync( + this IClient client, long effectId = default) + { + return client.ExecuteAsync(new GetMessageEffect { - return client.ExecuteAsync(new GetMessageEffect - { - EffectId = effectId - }); - } + EffectId = effectId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageEmbeddingCode.cs b/TdLib.Api/Functions/GetMessageEmbeddingCode.cs index da8f5a21..9ff815a5 100644 --- a/TdLib.Api/Functions/GetMessageEmbeddingCode.cs +++ b/TdLib.Api/Functions/GetMessageEmbeddingCode.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code /// - public static partial class TdApi + public class GetMessageEmbeddingCode : Function { /// - /// Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code + /// Data type for serialization /// - public class GetMessageEmbeddingCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageEmbeddingCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageEmbeddingCode"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to return an HTML code for embedding of the whole media album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_album")] - public bool ForAlbum { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code + /// Pass true to return an HTML code for embedding of the whole media album /// - public static Task GetMessageEmbeddingCodeAsync( - this IClient client, long chatId = default, long messageId = default, bool forAlbum = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("for_album")] + public bool ForAlbum { get; set; } + } + + /// + /// Returns an HTML code for embedding the message. Available only if messageProperties.can_get_embedding_code + /// + public static Task GetMessageEmbeddingCodeAsync( + this IClient client, long chatId = default, long messageId = default, bool forAlbum = default) + { + return client.ExecuteAsync(new GetMessageEmbeddingCode { - return client.ExecuteAsync(new GetMessageEmbeddingCode - { - ChatId = chatId, MessageId = messageId, ForAlbum = forAlbum - }); - } + ChatId = chatId, MessageId = messageId, ForAlbum = forAlbum + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageFileType.cs b/TdLib.Api/Functions/GetMessageFileType.cs index a37347de..68b3a90f 100644 --- a/TdLib.Api/Functions/GetMessageFileType.cs +++ b/TdLib.Api/Functions/GetMessageFileType.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a file with messages exported from another application /// - public static partial class TdApi + public class GetMessageFileType : Function { /// - /// Returns information about a file with messages exported from another application + /// Data type for serialization /// - public class GetMessageFileType : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageFileType"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageFileType"; - /// - /// Beginning of the message file; up to 100 first lines - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_file_head")] - public string MessageFileHead { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a file with messages exported from another application + /// Beginning of the message file; up to 100 first lines /// - public static Task GetMessageFileTypeAsync( - this IClient client, string messageFileHead = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_file_head")] + public string MessageFileHead { get; set; } + } + + /// + /// Returns information about a file with messages exported from another application + /// + public static Task GetMessageFileTypeAsync( + this IClient client, string messageFileHead = default) + { + return client.ExecuteAsync(new GetMessageFileType { - return client.ExecuteAsync(new GetMessageFileType - { - MessageFileHead = messageFileHead - }); - } + MessageFileHead = messageFileHead + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageImportConfirmationText.cs b/TdLib.Api/Functions/GetMessageImportConfirmationText.cs index 8db4f8b4..81f3fde4 100644 --- a/TdLib.Api/Functions/GetMessageImportConfirmationText.cs +++ b/TdLib.Api/Functions/GetMessageImportConfirmationText.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a confirmation text to be shown to the user before starting message import /// - public static partial class TdApi + public class GetMessageImportConfirmationText : Function { /// - /// Returns a confirmation text to be shown to the user before starting message import + /// Data type for serialization /// - public class GetMessageImportConfirmationText : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageImportConfirmationText"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageImportConfirmationText"; - /// - /// Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info member right - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a confirmation text to be shown to the user before starting message import + /// Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info member right /// - public static Task GetMessageImportConfirmationTextAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns a confirmation text to be shown to the user before starting message import + /// + public static Task GetMessageImportConfirmationTextAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetMessageImportConfirmationText { - return client.ExecuteAsync(new GetMessageImportConfirmationText - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageLink.cs b/TdLib.Api/Functions/GetMessageLink.cs index 64a89b30..450fb810 100644 --- a/TdLib.Api/Functions/GetMessageLink.cs +++ b/TdLib.Api/Functions/GetMessageLink.cs @@ -3,91 +3,93 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline method /// - public static partial class TdApi + public class GetMessageLink : Function { /// - /// Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline method + /// Data type for serialization /// - public class GetMessageLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageLink"; - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// If not 0, timestamp from which the video/audio/video note/voice note/story playing must start, in seconds. The media can be in the message content or in its link preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media_timestamp")] - public int MediaTimestamp { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// If not 0, identifier of the checklist task in the message to be linked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist_task_id")] - public int ChecklistTaskId { get; set; } + /// + /// If not 0, timestamp from which the video/audio/video note/voice note/story playing must start, in seconds. The media can be in the message content or in its link preview + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media_timestamp")] + public int MediaTimestamp { get; set; } - /// - /// If not empty, identifier of the poll option in the message to be linked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_option_id")] - public string PollOptionId { get; set; } + /// + /// If not 0, identifier of the checklist task in the message to be linked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist_task_id")] + public int ChecklistTaskId { get; set; } - /// - /// Pass true to create a link for the whole media album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_album")] - public bool ForAlbum { get; set; } + /// + /// If not empty, identifier of the poll option in the message to be linked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_option_id")] + public string PollOptionId { get; set; } - /// - /// Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("in_message_thread")] - public bool InMessageThread { get; set; } - } + /// + /// Pass true to create a link for the whole media album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("for_album")] + public bool ForAlbum { get; set; } /// - /// Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline method + /// Pass true to create a link to the message as a channel post comment, in a message thread, or a forum topic /// - public static Task GetMessageLinkAsync( - this IClient client, long chatId = default, long messageId = default, int mediaTimestamp = default, int checklistTaskId = default, string pollOptionId = default, bool forAlbum = default, bool inMessageThread = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("in_message_thread")] + public bool InMessageThread { get; set; } + } + + /// + /// Returns an HTTPS link to a message in a chat. Available only if messageProperties.can_get_link, or if messageProperties.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline method + /// + public static Task GetMessageLinkAsync( + this IClient client, long chatId = default, long messageId = default, int mediaTimestamp = default, int checklistTaskId = default, string pollOptionId = default, bool forAlbum = default, bool inMessageThread = default) + { + return client.ExecuteAsync(new GetMessageLink { - return client.ExecuteAsync(new GetMessageLink - { - ChatId = chatId, MessageId = messageId, MediaTimestamp = mediaTimestamp, ChecklistTaskId = checklistTaskId, PollOptionId = pollOptionId, ForAlbum = forAlbum, InMessageThread = inMessageThread - }); - } + ChatId = chatId, MessageId = messageId, MediaTimestamp = mediaTimestamp, ChecklistTaskId = checklistTaskId, PollOptionId = pollOptionId, ForAlbum = forAlbum, InMessageThread = inMessageThread + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageLinkInfo.cs b/TdLib.Api/Functions/GetMessageLinkInfo.cs index 3231e0a6..968f6553 100644 --- a/TdLib.Api/Functions/GetMessageLinkInfo.cs +++ b/TdLib.Api/Functions/GetMessageLinkInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a public or private message link. Can be called for any internal link of the type internalLinkTypeMessage /// - public static partial class TdApi + public class GetMessageLinkInfo : Function { /// - /// Returns information about a public or private message link. Can be called for any internal link of the type internalLinkTypeMessage + /// Data type for serialization /// - public class GetMessageLinkInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageLinkInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageLinkInfo"; - /// - /// The message link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a public or private message link. Can be called for any internal link of the type internalLinkTypeMessage + /// The message link /// - public static Task GetMessageLinkInfoAsync( - this IClient client, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Returns information about a public or private message link. Can be called for any internal link of the type internalLinkTypeMessage + /// + public static Task GetMessageLinkInfoAsync( + this IClient client, string url = default) + { + return client.ExecuteAsync(new GetMessageLinkInfo { - return client.ExecuteAsync(new GetMessageLinkInfo - { - Url = url - }); - } + Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageLocally.cs b/TdLib.Api/Functions/GetMessageLocally.cs index a03afc93..b09cc159 100644 --- a/TdLib.Api/Functions/GetMessageLocally.cs +++ b/TdLib.Api/Functions/GetMessageLocally.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally. This is an offline method /// - public static partial class TdApi + public class GetMessageLocally : Function { /// - /// Returns information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally. This is an offline method + /// Data type for serialization /// - public class GetMessageLocally : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageLocally"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageLocally"; - /// - /// Identifier of the chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message to get - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally. This is an offline method + /// Identifier of the message to get /// - public static Task GetMessageLocallyAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns information about a message, if it is available without sending network request. Returns a 404 error if message isn't available locally. This is an offline method + /// + public static Task GetMessageLocallyAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetMessageLocally { - return client.ExecuteAsync(new GetMessageLocally - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageProperties.cs b/TdLib.Api/Functions/GetMessageProperties.cs index ac8cd0a0..fc7b17f2 100644 --- a/TdLib.Api/Functions/GetMessageProperties.cs +++ b/TdLib.Api/Functions/GetMessageProperties.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns properties of a message. This is an offline method /// - public static partial class TdApi + public class GetMessageProperties : Function { /// - /// Returns properties of a message. This is an offline method + /// Data type for serialization /// - public class GetMessageProperties : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageProperties"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageProperties"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns properties of a message. This is an offline method + /// Identifier of the message /// - public static Task GetMessagePropertiesAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns properties of a message. This is an offline method + /// + public static Task GetMessagePropertiesAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetMessageProperties { - return client.ExecuteAsync(new GetMessageProperties - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessagePublicForwards.cs b/TdLib.Api/Functions/GetMessagePublicForwards.cs index 3bcf060d..b6d1027b 100644 --- a/TdLib.Api/Functions/GetMessagePublicForwards.cs +++ b/TdLib.Api/Functions/GetMessagePublicForwards.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib /// - public static partial class TdApi + public class GetMessagePublicForwards : Function { /// - /// Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib + /// Data type for serialization /// - public class GetMessagePublicForwards : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessagePublicForwards"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessagePublicForwards"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The maximum number of messages and stories to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib + /// The maximum number of messages and stories to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit /// - public static Task GetMessagePublicForwardsAsync( - this IClient client, long chatId = default, long messageId = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns forwarded copies of a channel message to different public channels and public reposts as a story. Can be used only if messageProperties.can_get_statistics == true. For optimal performance, the number of returned messages and stories is chosen by TDLib + /// + public static Task GetMessagePublicForwardsAsync( + this IClient client, long chatId = default, long messageId = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetMessagePublicForwards { - return client.ExecuteAsync(new GetMessagePublicForwards - { - ChatId = chatId, MessageId = messageId, Offset = offset, Limit = limit - }); - } + ChatId = chatId, MessageId = messageId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageReadDate.cs b/TdLib.Api/Functions/GetMessageReadDate.cs index 900b60ca..68ff7ec6 100644 --- a/TdLib.Api/Functions/GetMessageReadDate.cs +++ b/TdLib.Api/Functions/GetMessageReadDate.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true /// - public static partial class TdApi + public class GetMessageReadDate : Function { /// - /// Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true + /// Data type for serialization /// - public class GetMessageReadDate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageReadDate"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageReadDate"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true + /// Identifier of the message /// - public static Task GetMessageReadDateAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns read date of a recent outgoing message in a private chat. The method can be called if messageProperties.can_get_read_date == true + /// + public static Task GetMessageReadDateAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetMessageReadDate { - return client.ExecuteAsync(new GetMessageReadDate - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageStatistics.cs b/TdLib.Api/Functions/GetMessageStatistics.cs index f68ebb7e..4ee7b790 100644 --- a/TdLib.Api/Functions/GetMessageStatistics.cs +++ b/TdLib.Api/Functions/GetMessageStatistics.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true /// - public static partial class TdApi + public class GetMessageStatistics : Function { /// - /// Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true + /// Data type for serialization /// - public class GetMessageStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageStatistics"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if a dark theme is used by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } - } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true + /// Pass true if a dark theme is used by the application /// - public static Task GetMessageStatisticsAsync( - this IClient client, long chatId = default, long messageId = default, bool isDark = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } + } + + /// + /// Returns detailed statistics about a message. Can be used only if messageProperties.can_get_statistics == true + /// + public static Task GetMessageStatisticsAsync( + this IClient client, long chatId = default, long messageId = default, bool isDark = default) + { + return client.ExecuteAsync(new GetMessageStatistics { - return client.ExecuteAsync(new GetMessageStatistics - { - ChatId = chatId, MessageId = messageId, IsDark = isDark - }); - } + ChatId = chatId, MessageId = messageId, IsDark = isDark + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageThread.cs b/TdLib.Api/Functions/GetMessageThread.cs index 5602ea16..367564fb 100644 --- a/TdLib.Api/Functions/GetMessageThread.cs +++ b/TdLib.Api/Functions/GetMessageThread.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true /// - public static partial class TdApi + public class GetMessageThread : Function { /// - /// Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true + /// Data type for serialization /// - public class GetMessageThread : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageThread"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageThread"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true + /// Identifier of the message /// - public static Task GetMessageThreadAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns information about a message thread. Can be used only if messageProperties.can_get_message_thread == true + /// + public static Task GetMessageThreadAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetMessageThread { - return client.ExecuteAsync(new GetMessageThread - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageThreadHistory.cs b/TdLib.Api/Functions/GetMessageThreadHistory.cs index 8869f35a..02f75e87 100644 --- a/TdLib.Api/Functions/GetMessageThreadHistory.cs +++ b/TdLib.Api/Functions/GetMessageThreadHistory.cs @@ -3,79 +3,81 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. + /// The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib /// - public static partial class TdApi + public class GetMessageThreadHistory : Function { /// - /// Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. - /// The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// Data type for serialization /// - public class GetMessageThreadHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageThreadHistory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageThreadHistory"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier, which thread history needs to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Message identifier, which thread history needs to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. - /// The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. /// - public static Task GetMessageThreadHistoryAsync( - this IClient client, long chatId = default, long messageId = default, long fromMessageId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns messages in a message thread of a message. Can be used only if messageProperties.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. + /// The messages are returned in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// + public static Task GetMessageThreadHistoryAsync( + this IClient client, long chatId = default, long messageId = default, long fromMessageId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetMessageThreadHistory { - return client.ExecuteAsync(new GetMessageThreadHistory - { - ChatId = chatId, MessageId = messageId, FromMessageId = fromMessageId, Offset = offset, Limit = limit - }); - } + ChatId = chatId, MessageId = messageId, FromMessageId = fromMessageId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessageViewers.cs b/TdLib.Api/Functions/GetMessageViewers.cs index 1e6f9f73..c482947a 100644 --- a/TdLib.Api/Functions/GetMessageViewers.cs +++ b/TdLib.Api/Functions/GetMessageViewers.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers == true /// - public static partial class TdApi + public class GetMessageViewers : Function { /// - /// Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers == true + /// Data type for serialization /// - public class GetMessageViewers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessageViewers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessageViewers"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers == true + /// Identifier of the message /// - public static Task GetMessageViewersAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if messageProperties.can_get_viewers == true + /// + public static Task GetMessageViewersAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetMessageViewers { - return client.ExecuteAsync(new GetMessageViewers - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetMessages.cs b/TdLib.Api/Functions/GetMessages.cs index 8b666414..6f524c99 100644 --- a/TdLib.Api/Functions/GetMessages.cs +++ b/TdLib.Api/Functions/GetMessages.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about messages. If a message is not found, returns null on the corresponding position of the result /// - public static partial class TdApi + public class GetMessages : Function { /// - /// Returns information about messages. If a message is not found, returns null on the corresponding position of the result + /// Data type for serialization /// - public class GetMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getMessages"; - /// - /// Identifier of the chat the messages belong to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the messages to get - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } - } + /// + /// Identifier of the chat the messages belong to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about messages. If a message is not found, returns null on the corresponding position of the result + /// Identifiers of the messages to get /// - public static Task GetMessagesAsync( - this IClient client, long chatId = default, long[] messageIds = default) + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } + } + + /// + /// Returns information about messages. If a message is not found, returns null on the corresponding position of the result + /// + public static Task GetMessagesAsync( + this IClient client, long chatId = default, long[] messageIds = default) + { + return client.ExecuteAsync(new GetMessages { - return client.ExecuteAsync(new GetMessages - { - ChatId = chatId, MessageIds = messageIds - }); - } + ChatId = chatId, MessageIds = messageIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetNetworkStatistics.cs b/TdLib.Api/Functions/GetNetworkStatistics.cs index f63ce9ae..3274e48a 100644 --- a/TdLib.Api/Functions/GetNetworkStatistics.cs +++ b/TdLib.Api/Functions/GetNetworkStatistics.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns network data usage statistics. Can be called before authorization /// - public static partial class TdApi + public class GetNetworkStatistics : Function { /// - /// Returns network data usage statistics. Can be called before authorization + /// Data type for serialization /// - public class GetNetworkStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getNetworkStatistics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getNetworkStatistics"; - /// - /// Pass true to get statistics only for the current library launch - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_current")] - public bool OnlyCurrent { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns network data usage statistics. Can be called before authorization + /// Pass true to get statistics only for the current library launch /// - public static Task GetNetworkStatisticsAsync( - this IClient client, bool onlyCurrent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_current")] + public bool OnlyCurrent { get; set; } + } + + /// + /// Returns network data usage statistics. Can be called before authorization + /// + public static Task GetNetworkStatisticsAsync( + this IClient client, bool onlyCurrent = default) + { + return client.ExecuteAsync(new GetNetworkStatistics { - return client.ExecuteAsync(new GetNetworkStatistics - { - OnlyCurrent = onlyCurrent - }); - } + OnlyCurrent = onlyCurrent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetNewChatPrivacySettings.cs b/TdLib.Api/Functions/GetNewChatPrivacySettings.cs index bf6ef579..a6886c81 100644 --- a/TdLib.Api/Functions/GetNewChatPrivacySettings.cs +++ b/TdLib.Api/Functions/GetNewChatPrivacySettings.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns privacy settings for new chat creation /// - public static partial class TdApi + public class GetNewChatPrivacySettings : Function { /// - /// Returns privacy settings for new chat creation + /// Data type for serialization /// - public class GetNewChatPrivacySettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getNewChatPrivacySettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getNewChatPrivacySettings"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns privacy settings for new chat creation - /// - public static Task GetNewChatPrivacySettingsAsync( - this IClient client) + /// + /// Returns privacy settings for new chat creation + /// + public static Task GetNewChatPrivacySettingsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetNewChatPrivacySettings { - return client.ExecuteAsync(new GetNewChatPrivacySettings - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOauthLinkInfo.cs b/TdLib.Api/Functions/GetOauthLinkInfo.cs index d35c1662..5022345f 100644 --- a/TdLib.Api/Functions/GetOauthLinkInfo.cs +++ b/TdLib.Api/Functions/GetOauthLinkInfo.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link /// - public static partial class TdApi + public class GetOauthLinkInfo : Function { /// - /// Returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link + /// Data type for serialization /// - public class GetOauthLinkInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getOauthLinkInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOauthLinkInfo"; - /// - /// URL of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Origin of the OAuth request if the request was received from the in-app browser; pass an empty string otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("in_app_origin")] - public string InAppOrigin { get; set; } - } + /// + /// URL of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } /// - /// Returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link + /// Origin of the OAuth request if the request was received from the in-app browser; pass an empty string otherwise /// - public static Task GetOauthLinkInfoAsync( - this IClient client, string url = default, string inAppOrigin = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("in_app_origin")] + public string InAppOrigin { get; set; } + } + + /// + /// Returns information about an OAuth deep link. Use checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest to process the link + /// + public static Task GetOauthLinkInfoAsync( + this IClient client, string url = default, string inAppOrigin = default) + { + return client.ExecuteAsync(new GetOauthLinkInfo { - return client.ExecuteAsync(new GetOauthLinkInfo - { - Url = url, InAppOrigin = inAppOrigin - }); - } + Url = url, InAppOrigin = inAppOrigin + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOnRampPaymentAvailability.cs b/TdLib.Api/Functions/GetOnRampPaymentAvailability.cs new file mode 100644 index 00000000..c3617d91 --- /dev/null +++ b/TdLib.Api/Functions/GetOnRampPaymentAvailability.cs @@ -0,0 +1,67 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns the available on-ramp payment methods based on the current user location + /// + public class GetOnRampPaymentAvailability : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOnRampPaymentAvailability"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the on-ramp provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_id")] + public string ProviderId { get; set; } + + /// + /// The cryptocurrency that will be bought + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } + + /// + /// ISO 4217 currency code of the currency that will be used for the purchase; pass an empty string if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency")] + public string BaseCurrency { get; set; } + } + + /// + /// Returns the available on-ramp payment methods based on the current user location + /// + public static Task GetOnRampPaymentAvailabilityAsync( + this IClient client, string providerId = default, string cryptocurrency = default, string baseCurrency = default) + { + return client.ExecuteAsync(new GetOnRampPaymentAvailability + { + ProviderId = providerId, Cryptocurrency = cryptocurrency, BaseCurrency = baseCurrency + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOnRampPaymentLimits.cs b/TdLib.Api/Functions/GetOnRampPaymentLimits.cs new file mode 100644 index 00000000..ac863056 --- /dev/null +++ b/TdLib.Api/Functions/GetOnRampPaymentLimits.cs @@ -0,0 +1,74 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns the limits for an on-ramp payment; only for providers that supports limits retrieval + /// + public class GetOnRampPaymentLimits : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOnRampPaymentLimits"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the on-ramp provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_id")] + public string ProviderId { get; set; } + + /// + /// The cryptocurrency that will be bought + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } + + /// + /// ISO 4217 currency code of the currency that will be used for the purchase + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency")] + public string BaseCurrency { get; set; } + + /// + /// Name of the chosen payment method; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_method_name")] + public string PaymentMethodName { get; set; } + } + + /// + /// Returns the limits for an on-ramp payment; only for providers that supports limits retrieval + /// + public static Task GetOnRampPaymentLimitsAsync( + this IClient client, string providerId = default, string cryptocurrency = default, string baseCurrency = default, string paymentMethodName = default) + { + return client.ExecuteAsync(new GetOnRampPaymentLimits + { + ProviderId = providerId, Cryptocurrency = cryptocurrency, BaseCurrency = baseCurrency, PaymentMethodName = paymentMethodName + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOnRampPaymentQuote.cs b/TdLib.Api/Functions/GetOnRampPaymentQuote.cs new file mode 100644 index 00000000..b422f678 --- /dev/null +++ b/TdLib.Api/Functions/GetOnRampPaymentQuote.cs @@ -0,0 +1,88 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns a quote for an on-ramp payment; only for providers that supports quote retrieval + /// + public class GetOnRampPaymentQuote : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOnRampPaymentQuote"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the on-ramp provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_id")] + public string ProviderId { get; set; } + + /// + /// The cryptocurrency that will be bought + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } + + /// + /// ISO 4217 currency code of the currency that will be used for the purchase + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency")] + public string BaseCurrency { get; set; } + + /// + /// The amount of the cryptocurrency to buy; pass an empty string if the user selected base_currency_amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency_amount")] + public string CryptocurrencyAmount { get; set; } + + /// + /// The amount of the base currency to spend; pass an empty string if the user selected cryptocurrency_amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency_amount")] + public string BaseCurrencyAmount { get; set; } + + /// + /// Name of the chosen payment method; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_method_name")] + public string PaymentMethodName { get; set; } + } + + /// + /// Returns a quote for an on-ramp payment; only for providers that supports quote retrieval + /// + public static Task GetOnRampPaymentQuoteAsync( + this IClient client, string providerId = default, string cryptocurrency = default, string baseCurrency = default, string cryptocurrencyAmount = default, string baseCurrencyAmount = default, string paymentMethodName = default) + { + return client.ExecuteAsync(new GetOnRampPaymentQuote + { + ProviderId = providerId, Cryptocurrency = cryptocurrency, BaseCurrency = baseCurrency, CryptocurrencyAmount = cryptocurrencyAmount, BaseCurrencyAmount = baseCurrencyAmount, PaymentMethodName = paymentMethodName + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOnRampProviderBaseCurrencies.cs b/TdLib.Api/Functions/GetOnRampProviderBaseCurrencies.cs new file mode 100644 index 00000000..c2a7e5e8 --- /dev/null +++ b/TdLib.Api/Functions/GetOnRampProviderBaseCurrencies.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns the list of fiat currencies supported by an on-ramp provider for the given cryptocurrency + /// + public class GetOnRampProviderBaseCurrencies : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOnRampProviderBaseCurrencies"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the on-ramp provider; only for providers that supports base currencies + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_id")] + public string ProviderId { get; set; } + + /// + /// The cryptocurrency that will be bought + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } + } + + /// + /// Returns the list of fiat currencies supported by an on-ramp provider for the given cryptocurrency + /// + public static Task GetOnRampProviderBaseCurrenciesAsync( + this IClient client, string providerId = default, string cryptocurrency = default) + { + return client.ExecuteAsync(new GetOnRampProviderBaseCurrencies + { + ProviderId = providerId, Cryptocurrency = cryptocurrency + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOnRampProviders.cs b/TdLib.Api/Functions/GetOnRampProviders.cs new file mode 100644 index 00000000..88153aea --- /dev/null +++ b/TdLib.Api/Functions/GetOnRampProviders.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns available on-ramp providers + /// + public class GetOnRampProviders : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOnRampProviders"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Pass a cryptocurrency to receive only providers that support it; pass an empty string to receive all providers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } + } + + /// + /// Returns available on-ramp providers + /// + public static Task GetOnRampProvidersAsync( + this IClient client, string cryptocurrency = default) + { + return client.ExecuteAsync(new GetOnRampProviders + { + Cryptocurrency = cryptocurrency + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOption.cs b/TdLib.Api/Functions/GetOption.cs index 3120bcdb..3192ecf2 100644 --- a/TdLib.Api/Functions/GetOption.cs +++ b/TdLib.Api/Functions/GetOption.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash" /// - public static partial class TdApi + public class GetOption : Function { /// - /// Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash" + /// Data type for serialization /// - public class GetOption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getOption"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOption"; - /// - /// The name of the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash" + /// The name of the option /// - public static Task GetOptionAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash" + /// + public static Task GetOptionAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new GetOption { - return client.ExecuteAsync(new GetOption - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOwnedBots.cs b/TdLib.Api/Functions/GetOwnedBots.cs index d79ef79b..dd854656 100644 --- a/TdLib.Api/Functions/GetOwnedBots.cs +++ b/TdLib.Api/Functions/GetOwnedBots.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of bots owned by the current user /// - public static partial class TdApi + public class GetOwnedBots : Function { /// - /// Returns the list of bots owned by the current user + /// Data type for serialization /// - public class GetOwnedBots : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getOwnedBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOwnedBots"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of bots owned by the current user - /// - public static Task GetOwnedBotsAsync( - this IClient client) + /// + /// Returns the list of bots owned by the current user + /// + public static Task GetOwnedBotsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetOwnedBots { - return client.ExecuteAsync(new GetOwnedBots - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetOwnedStickerSets.cs b/TdLib.Api/Functions/GetOwnedStickerSets.cs index a78bc5b3..3e4de701 100644 --- a/TdLib.Api/Functions/GetOwnedStickerSets.cs +++ b/TdLib.Api/Functions/GetOwnedStickerSets.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns sticker sets owned by the current user /// - public static partial class TdApi + public class GetOwnedStickerSets : Function { /// - /// Returns sticker sets owned by the current user + /// Data type for serialization /// - public class GetOwnedStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getOwnedStickerSets"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getOwnedStickerSets"; - /// - /// Identifier of the sticker set from which to return owned sticker sets; use 0 to get results from the beginning - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("offset_sticker_set_id")] - public long OffsetStickerSetId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of sticker sets to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Identifier of the sticker set from which to return owned sticker sets; use 0 to get results from the beginning + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("offset_sticker_set_id")] + public long OffsetStickerSetId { get; set; } /// - /// Returns sticker sets owned by the current user + /// The maximum number of sticker sets to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit /// - public static Task GetOwnedStickerSetsAsync( - this IClient client, long offsetStickerSetId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns sticker sets owned by the current user + /// + public static Task GetOwnedStickerSetsAsync( + this IClient client, long offsetStickerSetId = default, int limit = default) + { + return client.ExecuteAsync(new GetOwnedStickerSets { - return client.ExecuteAsync(new GetOwnedStickerSets - { - OffsetStickerSetId = offsetStickerSetId, Limit = limit - }); - } + OffsetStickerSetId = offsetStickerSetId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPaidMessageRevenue.cs b/TdLib.Api/Functions/GetPaidMessageRevenue.cs index 0a0a5974..51b0e0e9 100644 --- a/TdLib.Api/Functions/GetPaidMessageRevenue.cs +++ b/TdLib.Api/Functions/GetPaidMessageRevenue.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the total number of Telegram Stars received by the current user for paid messages from the given user /// - public static partial class TdApi + public class GetPaidMessageRevenue : Function { /// - /// Returns the total number of Telegram Stars received by the current user for paid messages from the given user + /// Data type for serialization /// - public class GetPaidMessageRevenue : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPaidMessageRevenue"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPaidMessageRevenue"; - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the total number of Telegram Stars received by the current user for paid messages from the given user + /// Identifier of the user /// - public static Task GetPaidMessageRevenueAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns the total number of Telegram Stars received by the current user for paid messages from the given user + /// + public static Task GetPaidMessageRevenueAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new GetPaidMessageRevenue { - return client.ExecuteAsync(new GetPaidMessageRevenue - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPasskeyParameters.cs b/TdLib.Api/Functions/GetPasskeyParameters.cs index 25066610..d7f1fcc7 100644 --- a/TdLib.Api/Functions/GetPasskeyParameters.cs +++ b/TdLib.Api/Functions/GetPasskeyParameters.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns parameters for creating of a new passkey as JSON-serialized string /// - public static partial class TdApi + public class GetPasskeyParameters : Function { /// - /// Returns parameters for creating of a new passkey as JSON-serialized string + /// Data type for serialization /// - public class GetPasskeyParameters : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPasskeyParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPasskeyParameters"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns parameters for creating of a new passkey as JSON-serialized string - /// - public static Task GetPasskeyParametersAsync( - this IClient client) + /// + /// Returns parameters for creating of a new passkey as JSON-serialized string + /// + public static Task GetPasskeyParametersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetPasskeyParameters { - return client.ExecuteAsync(new GetPasskeyParameters - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPassportAuthorizationForm.cs b/TdLib.Api/Functions/GetPassportAuthorizationForm.cs index 5a885c60..3f7a2cc6 100644 --- a/TdLib.Api/Functions/GetPassportAuthorizationForm.cs +++ b/TdLib.Api/Functions/GetPassportAuthorizationForm.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a Telegram Passport authorization form for sharing data with a service /// - public static partial class TdApi + public class GetPassportAuthorizationForm : Function { /// - /// Returns a Telegram Passport authorization form for sharing data with a service + /// Data type for serialization /// - public class GetPassportAuthorizationForm : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPassportAuthorizationForm"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPassportAuthorizationForm"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User identifier of the service's bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Telegram Passport element types requested by the service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public string Scope { get; set; } + /// + /// User identifier of the service's bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Service's public key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("public_key")] - public string PublicKey { get; set; } + /// + /// Telegram Passport element types requested by the service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public string Scope { get; set; } - /// - /// Unique request identifier provided by the service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("nonce")] - public string Nonce { get; set; } - } + /// + /// Service's public key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_key")] + public string PublicKey { get; set; } /// - /// Returns a Telegram Passport authorization form for sharing data with a service + /// Unique request identifier provided by the service /// - public static Task GetPassportAuthorizationFormAsync( - this IClient client, long botUserId = default, string scope = default, string publicKey = default, string nonce = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("nonce")] + public string Nonce { get; set; } + } + + /// + /// Returns a Telegram Passport authorization form for sharing data with a service + /// + public static Task GetPassportAuthorizationFormAsync( + this IClient client, long botUserId = default, string scope = default, string publicKey = default, string nonce = default) + { + return client.ExecuteAsync(new GetPassportAuthorizationForm { - return client.ExecuteAsync(new GetPassportAuthorizationForm - { - BotUserId = botUserId, Scope = scope, PublicKey = publicKey, Nonce = nonce - }); - } + BotUserId = botUserId, Scope = scope, PublicKey = publicKey, Nonce = nonce + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPassportAuthorizationFormAvailableElements.cs b/TdLib.Api/Functions/GetPassportAuthorizationFormAvailableElements.cs index 7b774748..593f3c5b 100644 --- a/TdLib.Api/Functions/GetPassportAuthorizationFormAvailableElements.cs +++ b/TdLib.Api/Functions/GetPassportAuthorizationFormAvailableElements.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form /// - public static partial class TdApi + public class GetPassportAuthorizationFormAvailableElements : Function { /// - /// Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form + /// Data type for serialization /// - public class GetPassportAuthorizationFormAvailableElements : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPassportAuthorizationFormAvailableElements"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPassportAuthorizationFormAvailableElements"; - /// - /// Authorization form identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("authorization_form_id")] - public int AuthorizationFormId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Authorization form identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("authorization_form_id")] + public int AuthorizationFormId { get; set; } /// - /// Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form + /// The 2-step verification password of the current user /// - public static Task GetPassportAuthorizationFormAvailableElementsAsync( - this IClient client, int authorizationFormId = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form + /// + public static Task GetPassportAuthorizationFormAvailableElementsAsync( + this IClient client, int authorizationFormId = default, string password = default) + { + return client.ExecuteAsync(new GetPassportAuthorizationFormAvailableElements { - return client.ExecuteAsync(new GetPassportAuthorizationFormAvailableElements - { - AuthorizationFormId = authorizationFormId, Password = password - }); - } + AuthorizationFormId = authorizationFormId, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPassportElement.cs b/TdLib.Api/Functions/GetPassportElement.cs index 271f1660..8031f6e5 100644 --- a/TdLib.Api/Functions/GetPassportElement.cs +++ b/TdLib.Api/Functions/GetPassportElement.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns one of the available Telegram Passport elements /// - public static partial class TdApi + public class GetPassportElement : Function { /// - /// Returns one of the available Telegram Passport elements + /// Data type for serialization /// - public class GetPassportElement : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPassportElement"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPassportElement"; - /// - /// Telegram Passport element type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PassportElementType Type { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Telegram Passport element type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PassportElementType Type { get; set; } /// - /// Returns one of the available Telegram Passport elements + /// The 2-step verification password of the current user /// - public static Task GetPassportElementAsync( - this IClient client, PassportElementType type = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns one of the available Telegram Passport elements + /// + public static Task GetPassportElementAsync( + this IClient client, PassportElementType type = default, string password = default) + { + return client.ExecuteAsync(new GetPassportElement { - return client.ExecuteAsync(new GetPassportElement - { - Type = type, Password = password - }); - } + Type = type, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPasswordState.cs b/TdLib.Api/Functions/GetPasswordState.cs index 8d785062..1cd31419 100644 --- a/TdLib.Api/Functions/GetPasswordState.cs +++ b/TdLib.Api/Functions/GetPasswordState.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the current state of 2-step verification /// - public static partial class TdApi + public class GetPasswordState : Function { /// - /// Returns the current state of 2-step verification + /// Data type for serialization /// - public class GetPasswordState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPasswordState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPasswordState"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the current state of 2-step verification - /// - public static Task GetPasswordStateAsync( - this IClient client) + /// + /// Returns the current state of 2-step verification + /// + public static Task GetPasswordStateAsync( + this IClient client) + { + return client.ExecuteAsync(new GetPasswordState { - return client.ExecuteAsync(new GetPasswordState - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPaymentForm.cs b/TdLib.Api/Functions/GetPaymentForm.cs index cfcfa5dc..3c973ba6 100644 --- a/TdLib.Api/Functions/GetPaymentForm.cs +++ b/TdLib.Api/Functions/GetPaymentForm.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message /// - public static partial class TdApi + public class GetPaymentForm : Function { /// - /// Returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message + /// Data type for serialization /// - public class GetPaymentForm : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPaymentForm"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPaymentForm"; - /// - /// The invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_invoice")] - public InputInvoice InputInvoice { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Preferred payment form theme; pass null to use the default theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme")] - public ThemeParameters Theme { get; set; } - } + /// + /// The invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_invoice")] + public InputInvoice InputInvoice { get; set; } /// - /// Returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message + /// Preferred payment form theme; pass null to use the default theme /// - public static Task GetPaymentFormAsync( - this IClient client, InputInvoice inputInvoice = default, ThemeParameters theme = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public ThemeParameters Theme { get; set; } + } + + /// + /// Returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message + /// + public static Task GetPaymentFormAsync( + this IClient client, InputInvoice inputInvoice = default, ThemeParameters theme = default) + { + return client.ExecuteAsync(new GetPaymentForm { - return client.ExecuteAsync(new GetPaymentForm - { - InputInvoice = inputInvoice, Theme = theme - }); - } + InputInvoice = inputInvoice, Theme = theme + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPaymentReceipt.cs b/TdLib.Api/Functions/GetPaymentReceipt.cs index cf1c0475..d3deef41 100644 --- a/TdLib.Api/Functions/GetPaymentReceipt.cs +++ b/TdLib.Api/Functions/GetPaymentReceipt.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a successful payment /// - public static partial class TdApi + public class GetPaymentReceipt : Function { /// - /// Returns information about a successful payment + /// Data type for serialization /// - public class GetPaymentReceipt : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPaymentReceipt"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPaymentReceipt"; - /// - /// Chat identifier of the messagePaymentSuccessful message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier of the messagePaymentSuccessful message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a successful payment + /// Message identifier /// - public static Task GetPaymentReceiptAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns information about a successful payment + /// + public static Task GetPaymentReceiptAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetPaymentReceipt { - return client.ExecuteAsync(new GetPaymentReceipt - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPersonalChatHistory.cs b/TdLib.Api/Functions/GetPersonalChatHistory.cs index 32d3e9e0..32f69a94 100644 --- a/TdLib.Api/Functions/GetPersonalChatHistory.cs +++ b/TdLib.Api/Functions/GetPersonalChatHistory.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns messages in the personal chat of a given user; for bots only /// - public static partial class TdApi + public class GetPersonalChatHistory : Function { /// - /// Returns messages in the personal chat of a given user; for bots only + /// Data type for serialization /// - public class GetPersonalChatHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPersonalChatHistory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPersonalChatHistory"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of messages to be returned; 1-20 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Returns messages in the personal chat of a given user; for bots only + /// The maximum number of messages to be returned; 1-20 /// - public static Task GetPersonalChatHistoryAsync( - this IClient client, long userId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns messages in the personal chat of a given user; for bots only + /// + public static Task GetPersonalChatHistoryAsync( + this IClient client, long userId = default, int limit = default) + { + return client.ExecuteAsync(new GetPersonalChatHistory { - return client.ExecuteAsync(new GetPersonalChatHistory - { - UserId = userId, Limit = limit - }); - } + UserId = userId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPhoneNumberInfo.cs b/TdLib.Api/Functions/GetPhoneNumberInfo.cs index f07b1f11..f604f2df 100644 --- a/TdLib.Api/Functions/GetPhoneNumberInfo.cs +++ b/TdLib.Api/Functions/GetPhoneNumberInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a phone number by its prefix. Can be called before authorization /// - public static partial class TdApi + public class GetPhoneNumberInfo : Function { /// - /// Returns information about a phone number by its prefix. Can be called before authorization + /// Data type for serialization /// - public class GetPhoneNumberInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPhoneNumberInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPhoneNumberInfo"; - /// - /// The phone number prefix - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number_prefix")] - public string PhoneNumberPrefix { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a phone number by its prefix. Can be called before authorization + /// The phone number prefix /// - public static Task GetPhoneNumberInfoAsync( - this IClient client, string phoneNumberPrefix = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number_prefix")] + public string PhoneNumberPrefix { get; set; } + } + + /// + /// Returns information about a phone number by its prefix. Can be called before authorization + /// + public static Task GetPhoneNumberInfoAsync( + this IClient client, string phoneNumberPrefix = default) + { + return client.ExecuteAsync(new GetPhoneNumberInfo { - return client.ExecuteAsync(new GetPhoneNumberInfo - { - PhoneNumberPrefix = phoneNumberPrefix - }); - } + PhoneNumberPrefix = phoneNumberPrefix + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPhoneNumberInfoSync.cs b/TdLib.Api/Functions/GetPhoneNumberInfoSync.cs index c90ba59e..6cc3e796 100644 --- a/TdLib.Api/Functions/GetPhoneNumberInfoSync.cs +++ b/TdLib.Api/Functions/GetPhoneNumberInfoSync.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously /// - public static partial class TdApi + public class GetPhoneNumberInfoSync : Function { /// - /// Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously + /// Data type for serialization /// - public class GetPhoneNumberInfoSync : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPhoneNumberInfoSync"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPhoneNumberInfoSync"; - /// - /// A two-letter ISO 639-1 language code for country information localization - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The phone number prefix - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number_prefix")] - public string PhoneNumberPrefix { get; set; } - } + /// + /// A two-letter ISO 639-1 language code for country information localization + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously + /// The phone number prefix /// - public static Task GetPhoneNumberInfoSyncAsync( - this IClient client, string languageCode = default, string phoneNumberPrefix = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number_prefix")] + public string PhoneNumberPrefix { get; set; } + } + + /// + /// Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously + /// + public static Task GetPhoneNumberInfoSyncAsync( + this IClient client, string languageCode = default, string phoneNumberPrefix = default) + { + return client.ExecuteAsync(new GetPhoneNumberInfoSync { - return client.ExecuteAsync(new GetPhoneNumberInfoSync - { - LanguageCode = languageCode, PhoneNumberPrefix = phoneNumberPrefix - }); - } + LanguageCode = languageCode, PhoneNumberPrefix = phoneNumberPrefix + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPollOptionProperties.cs b/TdLib.Api/Functions/GetPollOptionProperties.cs index 995fb066..ec17393c 100644 --- a/TdLib.Api/Functions/GetPollOptionProperties.cs +++ b/TdLib.Api/Functions/GetPollOptionProperties.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns properties of a poll option. This is an offline method /// - public static partial class TdApi + public class GetPollOptionProperties : Function { /// - /// Returns properties of a poll option. This is an offline method + /// Data type for serialization /// - public class GetPollOptionProperties : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPollOptionProperties"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPollOptionProperties"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique identifier of the answer option, which properties will be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_option_id")] - public string PollOptionId { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns properties of a poll option. This is an offline method + /// Unique identifier of the answer option, which properties will be returned /// - public static Task GetPollOptionPropertiesAsync( - this IClient client, long chatId = default, long messageId = default, string pollOptionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_option_id")] + public string PollOptionId { get; set; } + } + + /// + /// Returns properties of a poll option. This is an offline method + /// + public static Task GetPollOptionPropertiesAsync( + this IClient client, long chatId = default, long messageId = default, string pollOptionId = default) + { + return client.ExecuteAsync(new GetPollOptionProperties { - return client.ExecuteAsync(new GetPollOptionProperties - { - ChatId = chatId, MessageId = messageId, PollOptionId = pollOptionId - }); - } + ChatId = chatId, MessageId = messageId, PollOptionId = pollOptionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPollVoteStatistics.cs b/TdLib.Api/Functions/GetPollVoteStatistics.cs index 3c52e132..a6189c05 100644 --- a/TdLib.Api/Functions/GetPollVoteStatistics.cs +++ b/TdLib.Api/Functions/GetPollVoteStatistics.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns statistics of poll votes in a poll /// - public static partial class TdApi + public class GetPollVoteStatistics : Function { /// - /// Returns statistics of poll votes in a poll + /// Data type for serialization /// - public class GetPollVoteStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPollVoteStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPollVoteStatistics"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the poll belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the poll. Use messageProperties.can_get_poll_vote_statistics to check whether the method can be used for a message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the poll belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if a dark theme is used by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } - } + /// + /// Identifier of the message containing the poll. Use messageProperties.can_get_poll_vote_statistics to check whether the method can be used for a message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Returns statistics of poll votes in a poll + /// Pass true if a dark theme is used by the application /// - public static Task GetPollVoteStatisticsAsync( - this IClient client, long chatId = default, long messageId = default, bool isDark = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } + } + + /// + /// Returns statistics of poll votes in a poll + /// + public static Task GetPollVoteStatisticsAsync( + this IClient client, long chatId = default, long messageId = default, bool isDark = default) + { + return client.ExecuteAsync(new GetPollVoteStatistics { - return client.ExecuteAsync(new GetPollVoteStatistics - { - ChatId = chatId, MessageId = messageId, IsDark = isDark - }); - } + ChatId = chatId, MessageId = messageId, IsDark = isDark + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPollVoters.cs b/TdLib.Api/Functions/GetPollVoters.cs index 9be514b1..bdbfd804 100644 --- a/TdLib.Api/Functions/GetPollVoters.cs +++ b/TdLib.Api/Functions/GetPollVoters.cs @@ -3,79 +3,81 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns message senders voted for the specified option in a poll; use poll.can_get_voters to check whether the method can be used. + /// For optimal performance, the number of returned users is chosen by TDLib /// - public static partial class TdApi + public class GetPollVoters : Function { /// - /// Returns message senders voted for the specified option in a poll; use poll.can_get_voters to check whether the method can be used. - /// For optimal performance, the number of returned users is chosen by TDLib + /// Data type for serialization /// - public class GetPollVoters : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPollVoters"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPollVoters"; - /// - /// Identifier of the chat to which the poll belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the poll belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// 0-based identifier of the answer option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public int OptionId { get; set; } + /// + /// Identifier of the message containing the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Number of voters to skip in the result; must be non-negative - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// 0-based identifier of the answer option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public int OptionId { get; set; } - /// - /// The maximum number of voters to be returned; must be positive and can't be greater than 50. For optimal performance, the number of returned voters is chosen by TDLib and can be smaller than the specified limit, even if the end of the voter list has not been reached - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Number of voters to skip in the result; must be non-negative + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns message senders voted for the specified option in a poll; use poll.can_get_voters to check whether the method can be used. - /// For optimal performance, the number of returned users is chosen by TDLib + /// The maximum number of voters to be returned; must be positive and can't be greater than 50. For optimal performance, the number of returned voters is chosen by TDLib and can be smaller than the specified limit, even if the end of the voter list has not been reached /// - public static Task GetPollVotersAsync( - this IClient client, long chatId = default, long messageId = default, int optionId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns message senders voted for the specified option in a poll; use poll.can_get_voters to check whether the method can be used. + /// For optimal performance, the number of returned users is chosen by TDLib + /// + public static Task GetPollVotersAsync( + this IClient client, long chatId = default, long messageId = default, int optionId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetPollVoters { - return client.ExecuteAsync(new GetPollVoters - { - ChatId = chatId, MessageId = messageId, OptionId = optionId, Offset = offset, Limit = limit - }); - } + ChatId = chatId, MessageId = messageId, OptionId = optionId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPreferredCountryLanguage.cs b/TdLib.Api/Functions/GetPreferredCountryLanguage.cs index 6b69b246..6f216310 100644 --- a/TdLib.Api/Functions/GetPreferredCountryLanguage.cs +++ b/TdLib.Api/Functions/GetPreferredCountryLanguage.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown /// - public static partial class TdApi + public class GetPreferredCountryLanguage : Function { /// - /// Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown + /// Data type for serialization /// - public class GetPreferredCountryLanguage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPreferredCountryLanguage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPreferredCountryLanguage"; - /// - /// A two-letter ISO 3166-1 alpha-2 country code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown + /// A two-letter ISO 3166-1 alpha-2 country code /// - public static Task GetPreferredCountryLanguageAsync( - this IClient client, string countryCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } + } + + /// + /// Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown + /// + public static Task GetPreferredCountryLanguageAsync( + this IClient client, string countryCode = default) + { + return client.ExecuteAsync(new GetPreferredCountryLanguage { - return client.ExecuteAsync(new GetPreferredCountryLanguage - { - CountryCode = countryCode - }); - } + CountryCode = countryCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumFeatures.cs b/TdLib.Api/Functions/GetPremiumFeatures.cs index 984f2dbc..6c7f0281 100644 --- a/TdLib.Api/Functions/GetPremiumFeatures.cs +++ b/TdLib.Api/Functions/GetPremiumFeatures.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about features, available to Premium users /// - public static partial class TdApi + public class GetPremiumFeatures : Function { /// - /// Returns information about features, available to Premium users + /// Data type for serialization /// - public class GetPremiumFeatures : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumFeatures"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumFeatures"; - /// - /// Source of the request; pass null if the method is called from some non-standard source - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public PremiumSource Source { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about features, available to Premium users + /// Source of the request; pass null if the method is called from some non-standard source /// - public static Task GetPremiumFeaturesAsync( - this IClient client, PremiumSource source = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public PremiumSource Source { get; set; } + } + + /// + /// Returns information about features, available to Premium users + /// + public static Task GetPremiumFeaturesAsync( + this IClient client, PremiumSource source = default) + { + return client.ExecuteAsync(new GetPremiumFeatures { - return client.ExecuteAsync(new GetPremiumFeatures - { - Source = source - }); - } + Source = source + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumGiftPaymentOptions.cs b/TdLib.Api/Functions/GetPremiumGiftPaymentOptions.cs index ee53b6aa..5d899e72 100644 --- a/TdLib.Api/Functions/GetPremiumGiftPaymentOptions.cs +++ b/TdLib.Api/Functions/GetPremiumGiftPaymentOptions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available options for gifting Telegram Premium to a user /// - public static partial class TdApi + public class GetPremiumGiftPaymentOptions : Function { /// - /// Returns available options for gifting Telegram Premium to a user + /// Data type for serialization /// - public class GetPremiumGiftPaymentOptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumGiftPaymentOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumGiftPaymentOptions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns available options for gifting Telegram Premium to a user - /// - public static Task GetPremiumGiftPaymentOptionsAsync( - this IClient client) + /// + /// Returns available options for gifting Telegram Premium to a user + /// + public static Task GetPremiumGiftPaymentOptionsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetPremiumGiftPaymentOptions { - return client.ExecuteAsync(new GetPremiumGiftPaymentOptions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumGiveawayPaymentOptions.cs b/TdLib.Api/Functions/GetPremiumGiveawayPaymentOptions.cs index 73c51d92..2877ccab 100644 --- a/TdLib.Api/Functions/GetPremiumGiveawayPaymentOptions.cs +++ b/TdLib.Api/Functions/GetPremiumGiveawayPaymentOptions.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members /// - public static partial class TdApi + public class GetPremiumGiveawayPaymentOptions : Function { /// - /// Returns available options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members + /// Data type for serialization /// - public class GetPremiumGiveawayPaymentOptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumGiveawayPaymentOptions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumGiveawayPaymentOptions"; - /// - /// Identifier of the supergroup or channel chat, which will be automatically boosted by receivers of the gift codes and which is administered by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boosted_chat_id")] - public long BoostedChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns available options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members + /// Identifier of the supergroup or channel chat, which will be automatically boosted by receivers of the gift codes and which is administered by the user /// - public static Task GetPremiumGiveawayPaymentOptionsAsync( - this IClient client, long boostedChatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("boosted_chat_id")] + public long BoostedChatId { get; set; } + } + + /// + /// Returns available options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members + /// + public static Task GetPremiumGiveawayPaymentOptionsAsync( + this IClient client, long boostedChatId = default) + { + return client.ExecuteAsync(new GetPremiumGiveawayPaymentOptions { - return client.ExecuteAsync(new GetPremiumGiveawayPaymentOptions - { - BoostedChatId = boostedChatId - }); - } + BoostedChatId = boostedChatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumInfoSticker.cs b/TdLib.Api/Functions/GetPremiumInfoSticker.cs index a3029a4c..6e26cb63 100644 --- a/TdLib.Api/Functions/GetPremiumInfoSticker.cs +++ b/TdLib.Api/Functions/GetPremiumInfoSticker.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the sticker to be used as representation of the Telegram Premium subscription /// - public static partial class TdApi + public class GetPremiumInfoSticker : Function { /// - /// Returns the sticker to be used as representation of the Telegram Premium subscription + /// Data type for serialization /// - public class GetPremiumInfoSticker : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumInfoSticker"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumInfoSticker"; - /// - /// Number of months the Telegram Premium subscription will be active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the sticker to be used as representation of the Telegram Premium subscription + /// Number of months the Telegram Premium subscription will be active /// - public static Task GetPremiumInfoStickerAsync( - this IClient client, int monthCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } + } + + /// + /// Returns the sticker to be used as representation of the Telegram Premium subscription + /// + public static Task GetPremiumInfoStickerAsync( + this IClient client, int monthCount = default) + { + return client.ExecuteAsync(new GetPremiumInfoSticker { - return client.ExecuteAsync(new GetPremiumInfoSticker - { - MonthCount = monthCount - }); - } + MonthCount = monthCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumLimit.cs b/TdLib.Api/Functions/GetPremiumLimit.cs index 6c2d89b7..ea34ac7e 100644 --- a/TdLib.Api/Functions/GetPremiumLimit.cs +++ b/TdLib.Api/Functions/GetPremiumLimit.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown /// - public static partial class TdApi + public class GetPremiumLimit : Function { /// - /// Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown + /// Data type for serialization /// - public class GetPremiumLimit : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumLimit"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumLimit"; - /// - /// Type of the limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit_type")] - public PremiumLimitType LimitType { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown + /// Type of the limit /// - public static Task GetPremiumLimitAsync( - this IClient client, PremiumLimitType limitType = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit_type")] + public PremiumLimitType LimitType { get; set; } + } + + /// + /// Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown + /// + public static Task GetPremiumLimitAsync( + this IClient client, PremiumLimitType limitType = default) + { + return client.ExecuteAsync(new GetPremiumLimit { - return client.ExecuteAsync(new GetPremiumLimit - { - LimitType = limitType - }); - } + LimitType = limitType + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumState.cs b/TdLib.Api/Functions/GetPremiumState.cs index c03a7b00..a42e6817 100644 --- a/TdLib.Api/Functions/GetPremiumState.cs +++ b/TdLib.Api/Functions/GetPremiumState.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns state of Telegram Premium subscription and promotion videos for Premium features /// - public static partial class TdApi + public class GetPremiumState : Function { /// - /// Returns state of Telegram Premium subscription and promotion videos for Premium features + /// Data type for serialization /// - public class GetPremiumState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumState"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns state of Telegram Premium subscription and promotion videos for Premium features - /// - public static Task GetPremiumStateAsync( - this IClient client) + /// + /// Returns state of Telegram Premium subscription and promotion videos for Premium features + /// + public static Task GetPremiumStateAsync( + this IClient client) + { + return client.ExecuteAsync(new GetPremiumState { - return client.ExecuteAsync(new GetPremiumState - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumStickerExamples.cs b/TdLib.Api/Functions/GetPremiumStickerExamples.cs index 0a080d23..aedcebbd 100644 --- a/TdLib.Api/Functions/GetPremiumStickerExamples.cs +++ b/TdLib.Api/Functions/GetPremiumStickerExamples.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns examples of premium stickers for demonstration purposes /// - public static partial class TdApi + public class GetPremiumStickerExamples : Function { /// - /// Returns examples of premium stickers for demonstration purposes + /// Data type for serialization /// - public class GetPremiumStickerExamples : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumStickerExamples"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumStickerExamples"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns examples of premium stickers for demonstration purposes - /// - public static Task GetPremiumStickerExamplesAsync( - this IClient client) + /// + /// Returns examples of premium stickers for demonstration purposes + /// + public static Task GetPremiumStickerExamplesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetPremiumStickerExamples { - return client.ExecuteAsync(new GetPremiumStickerExamples - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPremiumStickers.cs b/TdLib.Api/Functions/GetPremiumStickers.cs index 4ccaaa69..fbe2a4a4 100644 --- a/TdLib.Api/Functions/GetPremiumStickers.cs +++ b/TdLib.Api/Functions/GetPremiumStickers.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns premium stickers from regular sticker sets /// - public static partial class TdApi + public class GetPremiumStickers : Function { /// - /// Returns premium stickers from regular sticker sets + /// Data type for serialization /// - public class GetPremiumStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPremiumStickers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPremiumStickers"; - /// - /// The maximum number of stickers to be returned; 0-100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns premium stickers from regular sticker sets + /// The maximum number of stickers to be returned; 0-100 /// - public static Task GetPremiumStickersAsync( - this IClient client, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns premium stickers from regular sticker sets + /// + public static Task GetPremiumStickersAsync( + this IClient client, int limit = default) + { + return client.ExecuteAsync(new GetPremiumStickers { - return client.ExecuteAsync(new GetPremiumStickers - { - Limit = limit - }); - } + Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPreparedInlineMessage.cs b/TdLib.Api/Functions/GetPreparedInlineMessage.cs index f93a6a6a..8da4a075 100644 --- a/TdLib.Api/Functions/GetPreparedInlineMessage.cs +++ b/TdLib.Api/Functions/GetPreparedInlineMessage.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Saves an inline message to be sent by the given user /// - public static partial class TdApi + public class GetPreparedInlineMessage : Function { /// - /// Saves an inline message to be sent by the given user + /// Data type for serialization /// - public class GetPreparedInlineMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPreparedInlineMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPreparedInlineMessage"; - /// - /// Identifier of the bot that created the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the prepared message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepared_message_id")] - public string PreparedMessageId { get; set; } - } + /// + /// Identifier of the bot that created the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Saves an inline message to be sent by the given user + /// Identifier of the prepared message /// - public static Task GetPreparedInlineMessageAsync( - this IClient client, long botUserId = default, string preparedMessageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("prepared_message_id")] + public string PreparedMessageId { get; set; } + } + + /// + /// Saves an inline message to be sent by the given user + /// + public static Task GetPreparedInlineMessageAsync( + this IClient client, long botUserId = default, string preparedMessageId = default) + { + return client.ExecuteAsync(new GetPreparedInlineMessage { - return client.ExecuteAsync(new GetPreparedInlineMessage - { - BotUserId = botUserId, PreparedMessageId = preparedMessageId - }); - } + BotUserId = botUserId, PreparedMessageId = preparedMessageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPreparedKeyboardButton.cs b/TdLib.Api/Functions/GetPreparedKeyboardButton.cs index e82a21b4..6df80543 100644 --- a/TdLib.Api/Functions/GetPreparedKeyboardButton.cs +++ b/TdLib.Api/Functions/GetPreparedKeyboardButton.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot /// - public static partial class TdApi + public class GetPreparedKeyboardButton : Function { /// - /// Returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot + /// Data type for serialization /// - public class GetPreparedKeyboardButton : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPreparedKeyboardButton"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPreparedKeyboardButton"; - /// - /// Identifier of the bot that created the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the prepared button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepared_button_id")] - public string PreparedButtonId { get; set; } - } + /// + /// Identifier of the bot that created the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot + /// Identifier of the prepared button /// - public static Task GetPreparedKeyboardButtonAsync( - this IClient client, long botUserId = default, string preparedButtonId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("prepared_button_id")] + public string PreparedButtonId { get; set; } + } + + /// + /// Returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot + /// + public static Task GetPreparedKeyboardButtonAsync( + this IClient client, long botUserId = default, string preparedButtonId = default) + { + return client.ExecuteAsync(new GetPreparedKeyboardButton { - return client.ExecuteAsync(new GetPreparedKeyboardButton - { - BotUserId = botUserId, PreparedButtonId = preparedButtonId - }); - } + BotUserId = botUserId, PreparedButtonId = preparedButtonId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetProxies.cs b/TdLib.Api/Functions/GetProxies.cs index c2479fa4..ca557060 100644 --- a/TdLib.Api/Functions/GetProxies.cs +++ b/TdLib.Api/Functions/GetProxies.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of proxies that are currently set up. Can be called before authorization /// - public static partial class TdApi + public class GetProxies : Function { /// - /// Returns the list of proxies that are currently set up. Can be called before authorization + /// Data type for serialization /// - public class GetProxies : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getProxies"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getProxies"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of proxies that are currently set up. Can be called before authorization - /// - public static Task GetProxiesAsync( - this IClient client) + /// + /// Returns the list of proxies that are currently set up. Can be called before authorization + /// + public static Task GetProxiesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetProxies { - return client.ExecuteAsync(new GetProxies - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPublicPostSearchLimits.cs b/TdLib.Api/Functions/GetPublicPostSearchLimits.cs index ed3ab8cd..ee7c5aed 100644 --- a/TdLib.Api/Functions/GetPublicPostSearchLimits.cs +++ b/TdLib.Api/Functions/GetPublicPostSearchLimits.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks public post search limits without actually performing the search /// - public static partial class TdApi + public class GetPublicPostSearchLimits : Function { /// - /// Checks public post search limits without actually performing the search + /// Data type for serialization /// - public class GetPublicPostSearchLimits : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPublicPostSearchLimits"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPublicPostSearchLimits"; - /// - /// Query that will be searched for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks public post search limits without actually performing the search + /// Query that will be searched for /// - public static Task GetPublicPostSearchLimitsAsync( - this IClient client, string query = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } + } + + /// + /// Checks public post search limits without actually performing the search + /// + public static Task GetPublicPostSearchLimitsAsync( + this IClient client, string query = default) + { + return client.ExecuteAsync(new GetPublicPostSearchLimits { - return client.ExecuteAsync(new GetPublicPostSearchLimits - { - Query = query - }); - } + Query = query + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetPushReceiverId.cs b/TdLib.Api/Functions/GetPushReceiverId.cs index 90c6d68d..a6a6418d 100644 --- a/TdLib.Api/Functions/GetPushReceiverId.cs +++ b/TdLib.Api/Functions/GetPushReceiverId.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously /// - public static partial class TdApi + public class GetPushReceiverId : Function { /// - /// Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously + /// Data type for serialization /// - public class GetPushReceiverId : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getPushReceiverId"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getPushReceiverId"; - /// - /// JSON-encoded push notification payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously + /// JSON-encoded push notification payload /// - public static Task GetPushReceiverIdAsync( - this IClient client, string payload = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } + } + + /// + /// Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously + /// + public static Task GetPushReceiverIdAsync( + this IClient client, string payload = default) + { + return client.ExecuteAsync(new GetPushReceiverId { - return client.ExecuteAsync(new GetPushReceiverId - { - Payload = payload - }); - } + Payload = payload + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetReadDatePrivacySettings.cs b/TdLib.Api/Functions/GetReadDatePrivacySettings.cs index 2878c1a5..80ec7bd9 100644 --- a/TdLib.Api/Functions/GetReadDatePrivacySettings.cs +++ b/TdLib.Api/Functions/GetReadDatePrivacySettings.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns privacy settings for message read date /// - public static partial class TdApi + public class GetReadDatePrivacySettings : Function { /// - /// Returns privacy settings for message read date + /// Data type for serialization /// - public class GetReadDatePrivacySettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getReadDatePrivacySettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getReadDatePrivacySettings"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns privacy settings for message read date - /// - public static Task GetReadDatePrivacySettingsAsync( - this IClient client) + /// + /// Returns privacy settings for message read date + /// + public static Task GetReadDatePrivacySettingsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetReadDatePrivacySettings { - return client.ExecuteAsync(new GetReadDatePrivacySettings - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetReceivedGift.cs b/TdLib.Api/Functions/GetReceivedGift.cs index 9da4514a..56063026 100644 --- a/TdLib.Api/Functions/GetReceivedGift.cs +++ b/TdLib.Api/Functions/GetReceivedGift.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a received gift /// - public static partial class TdApi + public class GetReceivedGift : Function { /// - /// Returns information about a received gift + /// Data type for serialization /// - public class GetReceivedGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getReceivedGift"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getReceivedGift"; - /// - /// Identifier of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a received gift + /// Identifier of the gift /// - public static Task GetReceivedGiftAsync( - this IClient client, string receivedGiftId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } + } + + /// + /// Returns information about a received gift + /// + public static Task GetReceivedGiftAsync( + this IClient client, string receivedGiftId = default) + { + return client.ExecuteAsync(new GetReceivedGift { - return client.ExecuteAsync(new GetReceivedGift - { - ReceivedGiftId = receivedGiftId - }); - } + ReceivedGiftId = receivedGiftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetReceivedGifts.cs b/TdLib.Api/Functions/GetReceivedGifts.cs index 1fff123b..f797d301 100644 --- a/TdLib.Api/Functions/GetReceivedGifts.cs +++ b/TdLib.Api/Functions/GetReceivedGifts.cs @@ -3,140 +3,142 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns gifts received by the given user or chat /// - public static partial class TdApi + public class GetReceivedGifts : Function { /// - /// Returns gifts received by the given user or chat + /// Data type for serialization /// - public class GetReceivedGifts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getReceivedGifts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection on behalf of which to send the request; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } - - /// - /// Identifier of the gift receiver - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } - - /// - /// Pass collection identifier to get gifts only from the specified collection; pass 0 to get gifts regardless of collections - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("collection_id")] - public int CollectionId { get; set; } - - /// - /// Pass true to exclude gifts that aren't saved to the chat's profile page. Always true for gifts received by other users and channel chats without can_post_messages administrator right - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_unsaved")] - public bool ExcludeUnsaved { get; set; } - - /// - /// Pass true to exclude gifts that are saved to the chat's profile page. Always false for gifts received by other users and channel chats without can_post_messages administrator right - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_saved")] - public bool ExcludeSaved { get; set; } - - /// - /// Pass true to exclude gifts that can be purchased unlimited number of times - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_unlimited")] - public bool ExcludeUnlimited { get; set; } - - /// - /// Pass true to exclude gifts that can be purchased limited number of times and can be upgraded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_upgradable")] - public bool ExcludeUpgradable { get; set; } - - /// - /// Pass true to exclude gifts that can be purchased limited number of times and can't be upgraded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_non_upgradable")] - public bool ExcludeNonUpgradable { get; set; } - - /// - /// Pass true to exclude upgraded gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_upgraded")] - public bool ExcludeUpgraded { get; set; } - - /// - /// Pass true to exclude gifts that can't be used in setUpgradedGiftColors - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_without_colors")] - public bool ExcludeWithoutColors { get; set; } - - /// - /// Pass true to exclude gifts that are just hosted and are not owned by the owner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_hosted")] - public bool ExcludeHosted { get; set; } - - /// - /// Pass true to sort results by gift price instead of send date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sort_by_price")] - public bool SortByPrice { get; set; } - - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } - - /// - /// The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } - - /// - /// Returns gifts received by the given user or chat - /// - public static Task GetReceivedGiftsAsync( - this IClient client, string businessConnectionId = default, MessageSender ownerId = default, int collectionId = default, bool excludeUnsaved = default, bool excludeSaved = default, bool excludeUnlimited = default, bool excludeUpgradable = default, bool excludeNonUpgradable = default, bool excludeUpgraded = default, bool excludeWithoutColors = default, bool excludeHosted = default, bool sortByPrice = default, string offset = default, int limit = default) + [JsonProperty("@type")] + public override string DataType { get; set; } = "getReceivedGifts"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of business connection on behalf of which to send the request; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } + + /// + /// Identifier of the gift receiver + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } + + /// + /// Pass collection identifier to get gifts only from the specified collection; pass 0 to get gifts regardless of collections + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_id")] + public int CollectionId { get; set; } + + /// + /// Pass true to exclude gifts that aren't saved to the chat's profile page. Always true for gifts received by other users and channel chats without can_post_messages administrator right + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_unsaved")] + public bool ExcludeUnsaved { get; set; } + + /// + /// Pass true to exclude gifts that are saved to the chat's profile page. Always false for gifts received by other users and channel chats without can_post_messages administrator right + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_saved")] + public bool ExcludeSaved { get; set; } + + /// + /// Pass true to exclude gifts that can be purchased unlimited number of times + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_unlimited")] + public bool ExcludeUnlimited { get; set; } + + /// + /// Pass true to exclude gifts that can be purchased limited number of times and can be upgraded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_upgradable")] + public bool ExcludeUpgradable { get; set; } + + /// + /// Pass true to exclude gifts that can be purchased limited number of times and can't be upgraded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_non_upgradable")] + public bool ExcludeNonUpgradable { get; set; } + + /// + /// Pass true to exclude upgraded gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_upgraded")] + public bool ExcludeUpgraded { get; set; } + + /// + /// Pass true to exclude gifts that can't be used in setUpgradedGiftColors + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_without_colors")] + public bool ExcludeWithoutColors { get; set; } + + /// + /// Pass true to exclude gifts that are just hosted and are not owned by the owner + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_hosted")] + public bool ExcludeHosted { get; set; } + + /// + /// Pass true to sort results by gift price instead of send date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sort_by_price")] + public bool SortByPrice { get; set; } + + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } + + /// + /// The maximum number of gifts to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns gifts received by the given user or chat + /// + public static Task GetReceivedGiftsAsync( + this IClient client, string businessConnectionId = default, MessageSender ownerId = default, int collectionId = default, bool excludeUnsaved = default, bool excludeSaved = default, bool excludeUnlimited = default, bool excludeUpgradable = default, bool excludeNonUpgradable = default, bool excludeUpgraded = default, bool excludeWithoutColors = default, bool excludeHosted = default, bool sortByPrice = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetReceivedGifts { - return client.ExecuteAsync(new GetReceivedGifts - { - BusinessConnectionId = businessConnectionId, OwnerId = ownerId, CollectionId = collectionId, ExcludeUnsaved = excludeUnsaved, ExcludeSaved = excludeSaved, ExcludeUnlimited = excludeUnlimited, ExcludeUpgradable = excludeUpgradable, ExcludeNonUpgradable = excludeNonUpgradable, ExcludeUpgraded = excludeUpgraded, ExcludeWithoutColors = excludeWithoutColors, ExcludeHosted = excludeHosted, SortByPrice = sortByPrice, Offset = offset, Limit = limit - }); - } + BusinessConnectionId = businessConnectionId, OwnerId = ownerId, CollectionId = collectionId, ExcludeUnsaved = excludeUnsaved, ExcludeSaved = excludeSaved, ExcludeUnlimited = excludeUnlimited, ExcludeUpgradable = excludeUpgradable, ExcludeNonUpgradable = excludeNonUpgradable, ExcludeUpgraded = excludeUpgraded, ExcludeWithoutColors = excludeWithoutColors, ExcludeHosted = excludeHosted, SortByPrice = sortByPrice, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecentEmojiStatuses.cs b/TdLib.Api/Functions/GetRecentEmojiStatuses.cs index 677495c6..808448c7 100644 --- a/TdLib.Api/Functions/GetRecentEmojiStatuses.cs +++ b/TdLib.Api/Functions/GetRecentEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns recent emoji statuses for self status /// - public static partial class TdApi + public class GetRecentEmojiStatuses : Function { /// - /// Returns recent emoji statuses for self status + /// Data type for serialization /// - public class GetRecentEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecentEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecentEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns recent emoji statuses for self status - /// - public static Task GetRecentEmojiStatusesAsync( - this IClient client) + /// + /// Returns recent emoji statuses for self status + /// + public static Task GetRecentEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetRecentEmojiStatuses { - return client.ExecuteAsync(new GetRecentEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecentInlineBots.cs b/TdLib.Api/Functions/GetRecentInlineBots.cs index 7d23ebb3..8b9a31a3 100644 --- a/TdLib.Api/Functions/GetRecentInlineBots.cs +++ b/TdLib.Api/Functions/GetRecentInlineBots.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns up to 20 recently used inline bots in the order of their last usage /// - public static partial class TdApi + public class GetRecentInlineBots : Function { /// - /// Returns up to 20 recently used inline bots in the order of their last usage + /// Data type for serialization /// - public class GetRecentInlineBots : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecentInlineBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecentInlineBots"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns up to 20 recently used inline bots in the order of their last usage - /// - public static Task GetRecentInlineBotsAsync( - this IClient client) + /// + /// Returns up to 20 recently used inline bots in the order of their last usage + /// + public static Task GetRecentInlineBotsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetRecentInlineBots { - return client.ExecuteAsync(new GetRecentInlineBots - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecentStickers.cs b/TdLib.Api/Functions/GetRecentStickers.cs index ef3e47c9..4ab70c77 100644 --- a/TdLib.Api/Functions/GetRecentStickers.cs +++ b/TdLib.Api/Functions/GetRecentStickers.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of recently used stickers /// - public static partial class TdApi + public class GetRecentStickers : Function { /// - /// Returns a list of recently used stickers + /// Data type for serialization /// - public class GetRecentStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecentStickers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecentStickers"; - /// - /// Pass true to return stickers and masks that were recently attached to photos or video files; pass false to return recently sent stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_attached")] - public bool IsAttached { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a list of recently used stickers + /// Pass true to return stickers and masks that were recently attached to photos or video files; pass false to return recently sent stickers /// - public static Task GetRecentStickersAsync( - this IClient client, bool isAttached = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_attached")] + public bool IsAttached { get; set; } + } + + /// + /// Returns a list of recently used stickers + /// + public static Task GetRecentStickersAsync( + this IClient client, bool isAttached = default) + { + return client.ExecuteAsync(new GetRecentStickers { - return client.ExecuteAsync(new GetRecentStickers - { - IsAttached = isAttached - }); - } + IsAttached = isAttached + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecentlyOpenedChats.cs b/TdLib.Api/Functions/GetRecentlyOpenedChats.cs index 157b633b..64c5764b 100644 --- a/TdLib.Api/Functions/GetRecentlyOpenedChats.cs +++ b/TdLib.Api/Functions/GetRecentlyOpenedChats.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns recently opened chats. This is an offline method. Returns chats in the order of last opening /// - public static partial class TdApi + public class GetRecentlyOpenedChats : Function { /// - /// Returns recently opened chats. This is an offline method. Returns chats in the order of last opening + /// Data type for serialization /// - public class GetRecentlyOpenedChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecentlyOpenedChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecentlyOpenedChats"; - /// - /// The maximum number of chats to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns recently opened chats. This is an offline method. Returns chats in the order of last opening + /// The maximum number of chats to be returned /// - public static Task GetRecentlyOpenedChatsAsync( - this IClient client, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns recently opened chats. This is an offline method. Returns chats in the order of last opening + /// + public static Task GetRecentlyOpenedChatsAsync( + this IClient client, int limit = default) + { + return client.ExecuteAsync(new GetRecentlyOpenedChats { - return client.ExecuteAsync(new GetRecentlyOpenedChats - { - Limit = limit - }); - } + Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecentlyVisitedTMeUrls.cs b/TdLib.Api/Functions/GetRecentlyVisitedTMeUrls.cs index 11e5876f..717a3fbc 100644 --- a/TdLib.Api/Functions/GetRecentlyVisitedTMeUrls.cs +++ b/TdLib.Api/Functions/GetRecentlyVisitedTMeUrls.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns t.me URLs recently visited by a newly registered user /// - public static partial class TdApi + public class GetRecentlyVisitedTMeUrls : Function { /// - /// Returns t.me URLs recently visited by a newly registered user + /// Data type for serialization /// - public class GetRecentlyVisitedTMeUrls : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecentlyVisitedTMeUrls"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecentlyVisitedTMeUrls"; - /// - /// Google Play referrer to identify the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("referrer")] - public string Referrer { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns t.me URLs recently visited by a newly registered user + /// Google Play referrer to identify the user /// - public static Task GetRecentlyVisitedTMeUrlsAsync( - this IClient client, string referrer = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("referrer")] + public string Referrer { get; set; } + } + + /// + /// Returns t.me URLs recently visited by a newly registered user + /// + public static Task GetRecentlyVisitedTMeUrlsAsync( + this IClient client, string referrer = default) + { + return client.ExecuteAsync(new GetRecentlyVisitedTMeUrls { - return client.ExecuteAsync(new GetRecentlyVisitedTMeUrls - { - Referrer = referrer - }); - } + Referrer = referrer + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecommendedChatFolders.cs b/TdLib.Api/Functions/GetRecommendedChatFolders.cs index 3f24c8da..36e32e1a 100644 --- a/TdLib.Api/Functions/GetRecommendedChatFolders.cs +++ b/TdLib.Api/Functions/GetRecommendedChatFolders.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns recommended chat folders for the current user /// - public static partial class TdApi + public class GetRecommendedChatFolders : Function { /// - /// Returns recommended chat folders for the current user + /// Data type for serialization /// - public class GetRecommendedChatFolders : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecommendedChatFolders"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecommendedChatFolders"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns recommended chat folders for the current user - /// - public static Task GetRecommendedChatFoldersAsync( - this IClient client) + /// + /// Returns recommended chat folders for the current user + /// + public static Task GetRecommendedChatFoldersAsync( + this IClient client) + { + return client.ExecuteAsync(new GetRecommendedChatFolders { - return client.ExecuteAsync(new GetRecommendedChatFolders - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecommendedChats.cs b/TdLib.Api/Functions/GetRecommendedChats.cs index cd3729b8..b8d4a5a2 100644 --- a/TdLib.Api/Functions/GetRecommendedChats.cs +++ b/TdLib.Api/Functions/GetRecommendedChats.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of channel chats recommended to the current user /// - public static partial class TdApi + public class GetRecommendedChats : Function { /// - /// Returns a list of channel chats recommended to the current user + /// Data type for serialization /// - public class GetRecommendedChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecommendedChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecommendedChats"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns a list of channel chats recommended to the current user - /// - public static Task GetRecommendedChatsAsync( - this IClient client) + /// + /// Returns a list of channel chats recommended to the current user + /// + public static Task GetRecommendedChatsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetRecommendedChats { - return client.ExecuteAsync(new GetRecommendedChats - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRecoveryEmailAddress.cs b/TdLib.Api/Functions/GetRecoveryEmailAddress.cs index 796faebc..0ab0a50f 100644 --- a/TdLib.Api/Functions/GetRecoveryEmailAddress.cs +++ b/TdLib.Api/Functions/GetRecoveryEmailAddress.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user /// - public static partial class TdApi + public class GetRecoveryEmailAddress : Function { /// - /// Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user + /// Data type for serialization /// - public class GetRecoveryEmailAddress : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRecoveryEmailAddress"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRecoveryEmailAddress"; - /// - /// The 2-step verification password for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user + /// The 2-step verification password for the current user /// - public static Task GetRecoveryEmailAddressAsync( - this IClient client, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user + /// + public static Task GetRecoveryEmailAddressAsync( + this IClient client, string password = default) + { + return client.ExecuteAsync(new GetRecoveryEmailAddress { - return client.ExecuteAsync(new GetRecoveryEmailAddress - { - Password = password - }); - } + Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRemoteFile.cs b/TdLib.Api/Functions/GetRemoteFile.cs index 242e167f..324fb962 100644 --- a/TdLib.Api/Functions/GetRemoteFile.cs +++ b/TdLib.Api/Functions/GetRemoteFile.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a file by its remote identifier. This is an offline method. Can be used to register a URL as a file for further uploading, or sending as a message. Even if the request succeeds, the file can be used only if it is still accessible to the user. + /// For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application /// - public static partial class TdApi + public class GetRemoteFile : Function { /// - /// Returns information about a file by its remote identifier. This is an offline method. Can be used to register a URL as a file for further uploading, or sending as a message. Even if the request succeeds, the file can be used only if it is still accessible to the user. - /// For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application + /// Data type for serialization /// - public class GetRemoteFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRemoteFile"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRemoteFile"; - /// - /// Remote identifier of the file to get - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("remote_file_id")] - public string RemoteFileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File type; pass null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_type")] - public FileType FileType { get; set; } - } + /// + /// Remote identifier of the file to get + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("remote_file_id")] + public string RemoteFileId { get; set; } /// - /// Returns information about a file by its remote identifier. This is an offline method. Can be used to register a URL as a file for further uploading, or sending as a message. Even if the request succeeds, the file can be used only if it is still accessible to the user. - /// For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application + /// File type; pass null if unknown /// - public static Task GetRemoteFileAsync( - this IClient client, string remoteFileId = default, FileType fileType = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_type")] + public FileType FileType { get; set; } + } + + /// + /// Returns information about a file by its remote identifier. This is an offline method. Can be used to register a URL as a file for further uploading, or sending as a message. Even if the request succeeds, the file can be used only if it is still accessible to the user. + /// For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application + /// + public static Task GetRemoteFileAsync( + this IClient client, string remoteFileId = default, FileType fileType = default) + { + return client.ExecuteAsync(new GetRemoteFile { - return client.ExecuteAsync(new GetRemoteFile - { - RemoteFileId = remoteFileId, FileType = fileType - }); - } + RemoteFileId = remoteFileId, FileType = fileType + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetRepliedMessage.cs b/TdLib.Api/Functions/GetRepliedMessage.cs index bf79c4bc..ada80115 100644 --- a/TdLib.Api/Functions/GetRepliedMessage.cs +++ b/TdLib.Api/Functions/GetRepliedMessage.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, + /// the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, + /// the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information + /// for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, + /// the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, + /// the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, + /// the message with the request to disable content protection for messageChatHasProtectedContentToggled, + /// the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, + /// and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist /// - public static partial class TdApi + public class GetRepliedMessage : Function { /// - /// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, - /// the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, - /// the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information - /// for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, - /// the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, - /// the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, - /// the message with the request to disable content protection for messageChatHasProtectedContentToggled, - /// the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, - /// and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist + /// Data type for serialization /// - public class GetRepliedMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getRepliedMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getRepliedMessage"; - /// - /// Identifier of the chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the reply message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, - /// the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, - /// the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information - /// for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, - /// the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, - /// the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, - /// the message with the request to disable content protection for messageChatHasProtectedContentToggled, - /// the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, - /// and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist + /// Identifier of the reply message /// - public static Task GetRepliedMessageAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns information about a non-bundled message that is replied by a given message. Also, returns the pinned message for messagePinMessage, + /// the game message for messageGameScore, the invoice message for messagePaymentSuccessful, the message with a previously set same background for messageChatSetBackground, + /// the giveaway message for messageGiveawayCompleted, the checklist message for messageChecklistTasksDone, messageChecklistTasksAdded, the message with suggested post information + /// for messageSuggestedPostApprovalFailed, messageSuggestedPostApproved, messageSuggestedPostDeclined, messageSuggestedPostPaid, messageSuggestedPostRefunded, + /// the message with the regular gift that was upgraded for messageUpgradedGift with origin of the type upgradedGiftOriginUpgrade, + /// the message with gift purchase offer for messageUpgradedGiftPurchaseOfferRejected, + /// the message with the request to disable content protection for messageChatHasProtectedContentToggled, + /// the message with the poll for messagePollOptionAdded and messagePollOptionDeleted, + /// and the topic creation message for topic messages without non-bundled replied message. Returns a 404 error if the message doesn't exist + /// + public static Task GetRepliedMessageAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetRepliedMessage { - return client.ExecuteAsync(new GetRepliedMessage - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSavedAnimations.cs b/TdLib.Api/Functions/GetSavedAnimations.cs index 76e6e5b5..6df9c791 100644 --- a/TdLib.Api/Functions/GetSavedAnimations.cs +++ b/TdLib.Api/Functions/GetSavedAnimations.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns saved animations /// - public static partial class TdApi + public class GetSavedAnimations : Function { /// - /// Returns saved animations + /// Data type for serialization /// - public class GetSavedAnimations : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSavedAnimations"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSavedAnimations"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns saved animations - /// - public static Task GetSavedAnimationsAsync( - this IClient client) + /// + /// Returns saved animations + /// + public static Task GetSavedAnimationsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetSavedAnimations { - return client.ExecuteAsync(new GetSavedAnimations - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSavedMessagesTags.cs b/TdLib.Api/Functions/GetSavedMessagesTags.cs index 7a8d7ddb..bca318ac 100644 --- a/TdLib.Api/Functions/GetSavedMessagesTags.cs +++ b/TdLib.Api/Functions/GetSavedMessagesTags.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns tags used in Saved Messages or a Saved Messages topic /// - public static partial class TdApi + public class GetSavedMessagesTags : Function { /// - /// Returns tags used in Saved Messages or a Saved Messages topic + /// Data type for serialization /// - public class GetSavedMessagesTags : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSavedMessagesTags"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSavedMessagesTags"; - /// - /// Identifier of Saved Messages topic which tags will be returned; pass 0 to get all Saved Messages tags - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns tags used in Saved Messages or a Saved Messages topic + /// Identifier of Saved Messages topic which tags will be returned; pass 0 to get all Saved Messages tags /// - public static Task GetSavedMessagesTagsAsync( - this IClient client, long savedMessagesTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } + } + + /// + /// Returns tags used in Saved Messages or a Saved Messages topic + /// + public static Task GetSavedMessagesTagsAsync( + this IClient client, long savedMessagesTopicId = default) + { + return client.ExecuteAsync(new GetSavedMessagesTags { - return client.ExecuteAsync(new GetSavedMessagesTags - { - SavedMessagesTopicId = savedMessagesTopicId - }); - } + SavedMessagesTopicId = savedMessagesTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSavedMessagesTopicHistory.cs b/TdLib.Api/Functions/GetSavedMessagesTopicHistory.cs index c00896b9..c9a57d17 100644 --- a/TdLib.Api/Functions/GetSavedMessagesTopicHistory.cs +++ b/TdLib.Api/Functions/GetSavedMessagesTopicHistory.cs @@ -3,71 +3,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) /// - public static partial class TdApi + public class GetSavedMessagesTopicHistory : Function { /// - /// Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// Data type for serialization /// - public class GetSavedMessagesTopicHistory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSavedMessagesTopicHistory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSavedMessagesTopicHistory"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of Saved Messages topic which messages will be fetched - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Identifier of Saved Messages topic which messages will be fetched + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } - /// - /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. - /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Specify 0 to get results from exactly the message from_message_id or a negative number from -99 to -1 to get additionally -offset newer messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than or equal to -offset. + /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit /// - public static Task GetSavedMessagesTopicHistoryAsync( - this IClient client, long savedMessagesTopicId = default, long fromMessageId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns messages in a Saved Messages topic. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// + public static Task GetSavedMessagesTopicHistoryAsync( + this IClient client, long savedMessagesTopicId = default, long fromMessageId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetSavedMessagesTopicHistory { - return client.ExecuteAsync(new GetSavedMessagesTopicHistory - { - SavedMessagesTopicId = savedMessagesTopicId, FromMessageId = fromMessageId, Offset = offset, Limit = limit - }); - } + SavedMessagesTopicId = savedMessagesTopicId, FromMessageId = fromMessageId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSavedMessagesTopicMessageByDate.cs b/TdLib.Api/Functions/GetSavedMessagesTopicMessageByDate.cs index 43229833..e270df9a 100644 --- a/TdLib.Api/Functions/GetSavedMessagesTopicMessageByDate.cs +++ b/TdLib.Api/Functions/GetSavedMessagesTopicMessageByDate.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the last message sent in a Saved Messages topic no later than the specified date /// - public static partial class TdApi + public class GetSavedMessagesTopicMessageByDate : Function { /// - /// Returns the last message sent in a Saved Messages topic no later than the specified date + /// Data type for serialization /// - public class GetSavedMessagesTopicMessageByDate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSavedMessagesTopicMessageByDate"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSavedMessagesTopicMessageByDate"; - /// - /// Identifier of Saved Messages topic which message will be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) relative to which to search for messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Identifier of Saved Messages topic which message will be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } /// - /// Returns the last message sent in a Saved Messages topic no later than the specified date + /// Point in time (Unix timestamp) relative to which to search for messages /// - public static Task GetSavedMessagesTopicMessageByDateAsync( - this IClient client, long savedMessagesTopicId = default, int date = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + } + + /// + /// Returns the last message sent in a Saved Messages topic no later than the specified date + /// + public static Task GetSavedMessagesTopicMessageByDateAsync( + this IClient client, long savedMessagesTopicId = default, int date = default) + { + return client.ExecuteAsync(new GetSavedMessagesTopicMessageByDate { - return client.ExecuteAsync(new GetSavedMessagesTopicMessageByDate - { - SavedMessagesTopicId = savedMessagesTopicId, Date = date - }); - } + SavedMessagesTopicId = savedMessagesTopicId, Date = date + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSavedNotificationSound.cs b/TdLib.Api/Functions/GetSavedNotificationSound.cs index adb1d2a9..8dac8dfc 100644 --- a/TdLib.Api/Functions/GetSavedNotificationSound.cs +++ b/TdLib.Api/Functions/GetSavedNotificationSound.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the specified identifier /// - public static partial class TdApi + public class GetSavedNotificationSound : Function { /// - /// Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the specified identifier + /// Data type for serialization /// - public class GetSavedNotificationSound : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSavedNotificationSound"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSavedNotificationSound"; - /// - /// Identifier of the notification sound - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("notification_sound_id")] - public long NotificationSoundId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the specified identifier + /// Identifier of the notification sound /// - public static Task GetSavedNotificationSoundAsync( - this IClient client, long notificationSoundId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("notification_sound_id")] + public long NotificationSoundId { get; set; } + } + + /// + /// Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the specified identifier + /// + public static Task GetSavedNotificationSoundAsync( + this IClient client, long notificationSoundId = default) + { + return client.ExecuteAsync(new GetSavedNotificationSound { - return client.ExecuteAsync(new GetSavedNotificationSound - { - NotificationSoundId = notificationSoundId - }); - } + NotificationSoundId = notificationSoundId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSavedNotificationSounds.cs b/TdLib.Api/Functions/GetSavedNotificationSounds.cs index 28158c95..53fdb333 100644 --- a/TdLib.Api/Functions/GetSavedNotificationSounds.cs +++ b/TdLib.Api/Functions/GetSavedNotificationSounds.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used /// - public static partial class TdApi + public class GetSavedNotificationSounds : Function { /// - /// Returns the list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used + /// Data type for serialization /// - public class GetSavedNotificationSounds : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSavedNotificationSounds"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSavedNotificationSounds"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used - /// - public static Task GetSavedNotificationSoundsAsync( - this IClient client) + /// + /// Returns the list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used + /// + public static Task GetSavedNotificationSoundsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetSavedNotificationSounds { - return client.ExecuteAsync(new GetSavedNotificationSounds - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSavedOrderInfo.cs b/TdLib.Api/Functions/GetSavedOrderInfo.cs index 5fa9b8ac..641fbe17 100644 --- a/TdLib.Api/Functions/GetSavedOrderInfo.cs +++ b/TdLib.Api/Functions/GetSavedOrderInfo.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns saved order information. Returns a 404 error if there is no saved order information /// - public static partial class TdApi + public class GetSavedOrderInfo : Function { /// - /// Returns saved order information. Returns a 404 error if there is no saved order information + /// Data type for serialization /// - public class GetSavedOrderInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSavedOrderInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSavedOrderInfo"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns saved order information. Returns a 404 error if there is no saved order information - /// - public static Task GetSavedOrderInfoAsync( - this IClient client) + /// + /// Returns saved order information. Returns a 404 error if there is no saved order information + /// + public static Task GetSavedOrderInfoAsync( + this IClient client) + { + return client.ExecuteAsync(new GetSavedOrderInfo { - return client.ExecuteAsync(new GetSavedOrderInfo - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetScopeNotificationSettings.cs b/TdLib.Api/Functions/GetScopeNotificationSettings.cs index 14bde272..990d9b16 100644 --- a/TdLib.Api/Functions/GetScopeNotificationSettings.cs +++ b/TdLib.Api/Functions/GetScopeNotificationSettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the notification settings for chats of a given type /// - public static partial class TdApi + public class GetScopeNotificationSettings : Function { /// - /// Returns the notification settings for chats of a given type + /// Data type for serialization /// - public class GetScopeNotificationSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getScopeNotificationSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getScopeNotificationSettings"; - /// - /// Types of chats for which to return the notification settings information - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public NotificationSettingsScope Scope { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the notification settings for chats of a given type + /// Types of chats for which to return the notification settings information /// - public static Task GetScopeNotificationSettingsAsync( - this IClient client, NotificationSettingsScope scope = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public NotificationSettingsScope Scope { get; set; } + } + + /// + /// Returns the notification settings for chats of a given type + /// + public static Task GetScopeNotificationSettingsAsync( + this IClient client, NotificationSettingsScope scope = default) + { + return client.ExecuteAsync(new GetScopeNotificationSettings { - return client.ExecuteAsync(new GetScopeNotificationSettings - { - Scope = scope - }); - } + Scope = scope + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSearchSponsoredChats.cs b/TdLib.Api/Functions/GetSearchSponsoredChats.cs index 70783dc9..fc06add1 100644 --- a/TdLib.Api/Functions/GetSearchSponsoredChats.cs +++ b/TdLib.Api/Functions/GetSearchSponsoredChats.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns sponsored chats to be shown in the search results /// - public static partial class TdApi + public class GetSearchSponsoredChats : Function { /// - /// Returns sponsored chats to be shown in the search results + /// Data type for serialization /// - public class GetSearchSponsoredChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSearchSponsoredChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSearchSponsoredChats"; - /// - /// Query the user searches for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns sponsored chats to be shown in the search results + /// Query the user searches for /// - public static Task GetSearchSponsoredChatsAsync( - this IClient client, string query = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } + } + + /// + /// Returns sponsored chats to be shown in the search results + /// + public static Task GetSearchSponsoredChatsAsync( + this IClient client, string query = default) + { + return client.ExecuteAsync(new GetSearchSponsoredChats { - return client.ExecuteAsync(new GetSearchSponsoredChats - { - Query = query - }); - } + Query = query + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSearchedForTags.cs b/TdLib.Api/Functions/GetSearchedForTags.cs index 3b141a96..ed74455a 100644 --- a/TdLib.Api/Functions/GetSearchedForTags.cs +++ b/TdLib.Api/Functions/GetSearchedForTags.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns recently searched for hashtags or cashtags by their prefix /// - public static partial class TdApi + public class GetSearchedForTags : Function { /// - /// Returns recently searched for hashtags or cashtags by their prefix + /// Data type for serialization /// - public class GetSearchedForTags : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSearchedForTags"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSearchedForTags"; - /// - /// Prefix of hashtags or cashtags to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag_prefix")] - public string TagPrefix { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of items to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Prefix of hashtags or cashtags to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag_prefix")] + public string TagPrefix { get; set; } /// - /// Returns recently searched for hashtags or cashtags by their prefix + /// The maximum number of items to be returned /// - public static Task GetSearchedForTagsAsync( - this IClient client, string tagPrefix = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns recently searched for hashtags or cashtags by their prefix + /// + public static Task GetSearchedForTagsAsync( + this IClient client, string tagPrefix = default, int limit = default) + { + return client.ExecuteAsync(new GetSearchedForTags { - return client.ExecuteAsync(new GetSearchedForTags - { - TagPrefix = tagPrefix, Limit = limit - }); - } + TagPrefix = tagPrefix, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSecretChat.cs b/TdLib.Api/Functions/GetSecretChat.cs index 0d4e44d0..7eab869b 100644 --- a/TdLib.Api/Functions/GetSecretChat.cs +++ b/TdLib.Api/Functions/GetSecretChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a secret chat by its identifier. This is an offline method /// - public static partial class TdApi + public class GetSecretChat : Function { /// - /// Returns information about a secret chat by its identifier. This is an offline method + /// Data type for serialization /// - public class GetSecretChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSecretChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSecretChat"; - /// - /// Secret chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secret_chat_id")] - public int SecretChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a secret chat by its identifier. This is an offline method + /// Secret chat identifier /// - public static Task GetSecretChatAsync( - this IClient client, int secretChatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("secret_chat_id")] + public int SecretChatId { get; set; } + } + + /// + /// Returns information about a secret chat by its identifier. This is an offline method + /// + public static Task GetSecretChatAsync( + this IClient client, int secretChatId = default) + { + return client.ExecuteAsync(new GetSecretChat { - return client.ExecuteAsync(new GetSecretChat - { - SecretChatId = secretChatId - }); - } + SecretChatId = secretChatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStakeDiceState.cs b/TdLib.Api/Functions/GetStakeDiceState.cs index a2135711..35ee54ee 100644 --- a/TdLib.Api/Functions/GetStakeDiceState.cs +++ b/TdLib.Api/Functions/GetStakeDiceState.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the current state of stake dice /// - public static partial class TdApi + public class GetStakeDiceState : Function { /// - /// Returns the current state of stake dice + /// Data type for serialization /// - public class GetStakeDiceState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStakeDiceState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStakeDiceState"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the current state of stake dice - /// - public static Task GetStakeDiceStateAsync( - this IClient client) + /// + /// Returns the current state of stake dice + /// + public static Task GetStakeDiceStateAsync( + this IClient client) + { + return client.ExecuteAsync(new GetStakeDiceState { - return client.ExecuteAsync(new GetStakeDiceState - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarAdAccountUrl.cs b/TdLib.Api/Functions/GetStarAdAccountUrl.cs index b72d9b5c..8f5836fc 100644 --- a/TdLib.Api/Functions/GetStarAdAccountUrl.cs +++ b/TdLib.Api/Functions/GetStarAdAccountUrl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for the chat paid in the owned Telegram Stars /// - public static partial class TdApi + public class GetStarAdAccountUrl : Function { /// - /// Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for the chat paid in the owned Telegram Stars + /// Data type for serialization /// - public class GetStarAdAccountUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarAdAccountUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarAdAccountUrl"; - /// - /// Identifier of the owner of the Telegram Stars; can be identifier of an owned bot, or identifier of an owned channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for the chat paid in the owned Telegram Stars + /// Identifier of the owner of the Telegram Stars; can be identifier of an owned bot, or identifier of an owned channel chat /// - public static Task GetStarAdAccountUrlAsync( - this IClient client, MessageSender ownerId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } + } + + /// + /// Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for the chat paid in the owned Telegram Stars + /// + public static Task GetStarAdAccountUrlAsync( + this IClient client, MessageSender ownerId = default) + { + return client.ExecuteAsync(new GetStarAdAccountUrl { - return client.ExecuteAsync(new GetStarAdAccountUrl - { - OwnerId = ownerId - }); - } + OwnerId = ownerId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarGiftPaymentOptions.cs b/TdLib.Api/Functions/GetStarGiftPaymentOptions.cs index b1f352ff..e1312047 100644 --- a/TdLib.Api/Functions/GetStarGiftPaymentOptions.cs +++ b/TdLib.Api/Functions/GetStarGiftPaymentOptions.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available options for Telegram Stars gifting /// - public static partial class TdApi + public class GetStarGiftPaymentOptions : Function { /// - /// Returns available options for Telegram Stars gifting + /// Data type for serialization /// - public class GetStarGiftPaymentOptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarGiftPaymentOptions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarGiftPaymentOptions"; - /// - /// Identifier of the user who will receive Telegram Stars; pass 0 to get options for an unspecified user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns available options for Telegram Stars gifting + /// Identifier of the user who will receive Telegram Stars; pass 0 to get options for an unspecified user /// - public static Task GetStarGiftPaymentOptionsAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns available options for Telegram Stars gifting + /// + public static Task GetStarGiftPaymentOptionsAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new GetStarGiftPaymentOptions { - return client.ExecuteAsync(new GetStarGiftPaymentOptions - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarGiveawayPaymentOptions.cs b/TdLib.Api/Functions/GetStarGiveawayPaymentOptions.cs index 423507c4..748a35c2 100644 --- a/TdLib.Api/Functions/GetStarGiveawayPaymentOptions.cs +++ b/TdLib.Api/Functions/GetStarGiveawayPaymentOptions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available options for Telegram Star giveaway creation /// - public static partial class TdApi + public class GetStarGiveawayPaymentOptions : Function { /// - /// Returns available options for Telegram Star giveaway creation + /// Data type for serialization /// - public class GetStarGiveawayPaymentOptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarGiveawayPaymentOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarGiveawayPaymentOptions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns available options for Telegram Star giveaway creation - /// - public static Task GetStarGiveawayPaymentOptionsAsync( - this IClient client) + /// + /// Returns available options for Telegram Star giveaway creation + /// + public static Task GetStarGiveawayPaymentOptionsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetStarGiveawayPaymentOptions { - return client.ExecuteAsync(new GetStarGiveawayPaymentOptions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarPaymentOptions.cs b/TdLib.Api/Functions/GetStarPaymentOptions.cs index e148f858..6a0a72c8 100644 --- a/TdLib.Api/Functions/GetStarPaymentOptions.cs +++ b/TdLib.Api/Functions/GetStarPaymentOptions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available options for Telegram Stars purchase /// - public static partial class TdApi + public class GetStarPaymentOptions : Function { /// - /// Returns available options for Telegram Stars purchase + /// Data type for serialization /// - public class GetStarPaymentOptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarPaymentOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarPaymentOptions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns available options for Telegram Stars purchase - /// - public static Task GetStarPaymentOptionsAsync( - this IClient client) + /// + /// Returns available options for Telegram Stars purchase + /// + public static Task GetStarPaymentOptionsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetStarPaymentOptions { - return client.ExecuteAsync(new GetStarPaymentOptions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarRevenueStatistics.cs b/TdLib.Api/Functions/GetStarRevenueStatistics.cs index 05218785..f93116f7 100644 --- a/TdLib.Api/Functions/GetStarRevenueStatistics.cs +++ b/TdLib.Api/Functions/GetStarRevenueStatistics.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns detailed Telegram Star revenue statistics /// - public static partial class TdApi + public class GetStarRevenueStatistics : Function { /// - /// Returns detailed Telegram Star revenue statistics + /// Data type for serialization /// - public class GetStarRevenueStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarRevenueStatistics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarRevenueStatistics"; - /// - /// Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or a supergroup or a channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if a dark theme is used by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } - } + /// + /// Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or a supergroup or a channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } /// - /// Returns detailed Telegram Star revenue statistics + /// Pass true if a dark theme is used by the application /// - public static Task GetStarRevenueStatisticsAsync( - this IClient client, MessageSender ownerId = default, bool isDark = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } + } + + /// + /// Returns detailed Telegram Star revenue statistics + /// + public static Task GetStarRevenueStatisticsAsync( + this IClient client, MessageSender ownerId = default, bool isDark = default) + { + return client.ExecuteAsync(new GetStarRevenueStatistics { - return client.ExecuteAsync(new GetStarRevenueStatistics - { - OwnerId = ownerId, IsDark = isDark - }); - } + OwnerId = ownerId, IsDark = isDark + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarSubscriptions.cs b/TdLib.Api/Functions/GetStarSubscriptions.cs index faeecf62..c382db14 100644 --- a/TdLib.Api/Functions/GetStarSubscriptions.cs +++ b/TdLib.Api/Functions/GetStarSubscriptions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of Telegram Star subscriptions for the current user /// - public static partial class TdApi + public class GetStarSubscriptions : Function { /// - /// Returns the list of Telegram Star subscriptions for the current user + /// Data type for serialization /// - public class GetStarSubscriptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarSubscriptions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarSubscriptions"; - /// - /// Pass true to receive only expiring subscriptions for which there aren't enough Telegram Stars to extend - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_expiring")] - public bool OnlyExpiring { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first subscription to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } - } + /// + /// Pass true to receive only expiring subscriptions for which there aren't enough Telegram Stars to extend + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_expiring")] + public bool OnlyExpiring { get; set; } /// - /// Returns the list of Telegram Star subscriptions for the current user + /// Offset of the first subscription to return as received from the previous request; use empty string to get the first chunk of results /// - public static Task GetStarSubscriptionsAsync( - this IClient client, bool onlyExpiring = default, string offset = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } + } + + /// + /// Returns the list of Telegram Star subscriptions for the current user + /// + public static Task GetStarSubscriptionsAsync( + this IClient client, bool onlyExpiring = default, string offset = default) + { + return client.ExecuteAsync(new GetStarSubscriptions { - return client.ExecuteAsync(new GetStarSubscriptions - { - OnlyExpiring = onlyExpiring, Offset = offset - }); - } + OnlyExpiring = onlyExpiring, Offset = offset + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarTransactions.cs b/TdLib.Api/Functions/GetStarTransactions.cs index a56ec78e..c362a18c 100644 --- a/TdLib.Api/Functions/GetStarTransactions.cs +++ b/TdLib.Api/Functions/GetStarTransactions.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of Telegram Star transactions for the specified owner /// - public static partial class TdApi + public class GetStarTransactions : Function { /// - /// Returns the list of Telegram Star transactions for the specified owner + /// Data type for serialization /// - public class GetStarTransactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarTransactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarTransactions"; - /// - /// Identifier of the owner of the Telegram Stars; can be the identifier of the current user, identifier of an owned bot, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// If non-empty, only transactions related to the Star Subscription will be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_id")] - public string SubscriptionId { get; set; } + /// + /// Identifier of the owner of the Telegram Stars; can be the identifier of the current user, identifier of an owned bot, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Direction of the transactions to receive; pass null to get all transactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("direction")] - public TransactionDirection Direction { get; set; } + /// + /// If non-empty, only transactions related to the Star Subscription will be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_id")] + public string SubscriptionId { get; set; } - /// - /// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Direction of the transactions to receive; pass null to get all transactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("direction")] + public TransactionDirection Direction { get; set; } - /// - /// The maximum number of transactions to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns the list of Telegram Star transactions for the specified owner + /// The maximum number of transactions to return /// - public static Task GetStarTransactionsAsync( - this IClient client, MessageSender ownerId = default, string subscriptionId = default, TransactionDirection direction = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of Telegram Star transactions for the specified owner + /// + public static Task GetStarTransactionsAsync( + this IClient client, MessageSender ownerId = default, string subscriptionId = default, TransactionDirection direction = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetStarTransactions { - return client.ExecuteAsync(new GetStarTransactions - { - OwnerId = ownerId, SubscriptionId = subscriptionId, Direction = direction, Offset = offset, Limit = limit - }); - } + OwnerId = ownerId, SubscriptionId = subscriptionId, Direction = direction, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStarWithdrawalUrl.cs b/TdLib.Api/Functions/GetStarWithdrawalUrl.cs index 3c381de9..d4fd12dc 100644 --- a/TdLib.Api/Functions/GetStarWithdrawalUrl.cs +++ b/TdLib.Api/Functions/GetStarWithdrawalUrl.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a URL for Telegram Star withdrawal /// - public static partial class TdApi + public class GetStarWithdrawalUrl : Function { /// - /// Returns a URL for Telegram Star withdrawal + /// Data type for serialization /// - public class GetStarWithdrawalUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStarWithdrawalUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStarWithdrawalUrl"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or an owned supergroup or channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars to withdraw; must be between getOption("star_withdrawal_count_min") and getOption("star_withdrawal_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or an owned supergroup or channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// The number of Telegram Stars to withdraw; must be between getOption("star_withdrawal_count_min") and getOption("star_withdrawal_count_max") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } /// - /// Returns a URL for Telegram Star withdrawal + /// The 2-step verification password of the current user /// - public static Task GetStarWithdrawalUrlAsync( - this IClient client, MessageSender ownerId = default, long starCount = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns a URL for Telegram Star withdrawal + /// + public static Task GetStarWithdrawalUrlAsync( + this IClient client, MessageSender ownerId = default, long starCount = default, string password = default) + { + return client.ExecuteAsync(new GetStarWithdrawalUrl { - return client.ExecuteAsync(new GetStarWithdrawalUrl - { - OwnerId = ownerId, StarCount = starCount, Password = password - }); - } + OwnerId = ownerId, StarCount = starCount, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStatisticalGraph.cs b/TdLib.Api/Functions/GetStatisticalGraph.cs index 25938e07..bf499f27 100644 --- a/TdLib.Api/Functions/GetStatisticalGraph.cs +++ b/TdLib.Api/Functions/GetStatisticalGraph.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads an asynchronous or a zoomed in statistical graph /// - public static partial class TdApi + public class GetStatisticalGraph : Function { /// - /// Loads an asynchronous or a zoomed in statistical graph + /// Data type for serialization /// - public class GetStatisticalGraph : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStatisticalGraph"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStatisticalGraph"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The token for graph loading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// X-value for zoomed in graph or 0 otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("x")] - public long X { get; set; } - } + /// + /// The token for graph loading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } /// - /// Loads an asynchronous or a zoomed in statistical graph + /// X-value for zoomed in graph or 0 otherwise /// - public static Task GetStatisticalGraphAsync( - this IClient client, long chatId = default, string token = default, long x = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("x")] + public long X { get; set; } + } + + /// + /// Loads an asynchronous or a zoomed in statistical graph + /// + public static Task GetStatisticalGraphAsync( + this IClient client, long chatId = default, string token = default, long x = default) + { + return client.ExecuteAsync(new GetStatisticalGraph { - return client.ExecuteAsync(new GetStatisticalGraph - { - ChatId = chatId, Token = token, X = x - }); - } + ChatId = chatId, Token = token, X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStickerEmojis.cs b/TdLib.Api/Functions/GetStickerEmojis.cs index 8c7e1c0c..47746a47 100644 --- a/TdLib.Api/Functions/GetStickerEmojis.cs +++ b/TdLib.Api/Functions/GetStickerEmojis.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object /// - public static partial class TdApi + public class GetStickerEmojis : Function { /// - /// Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object + /// Data type for serialization /// - public class GetStickerEmojis : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStickerEmojis"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStickerEmojis"; - /// - /// Sticker file identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object + /// Sticker file identifier /// - public static Task GetStickerEmojisAsync( - this IClient client, InputFile sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } + } + + /// + /// Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object + /// + public static Task GetStickerEmojisAsync( + this IClient client, InputFile sticker = default) + { + return client.ExecuteAsync(new GetStickerEmojis { - return client.ExecuteAsync(new GetStickerEmojis - { - Sticker = sticker - }); - } + Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStickerOutline.cs b/TdLib.Api/Functions/GetStickerOutline.cs index 39f5792c..5cbc22ed 100644 --- a/TdLib.Api/Functions/GetStickerOutline.cs +++ b/TdLib.Api/Functions/GetStickerOutline.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns outline of a sticker. This is an offline method. Returns a 404 error if the outline isn't known /// - public static partial class TdApi + public class GetStickerOutline : Function { /// - /// Returns outline of a sticker. This is an offline method. Returns a 404 error if the outline isn't known + /// Data type for serialization /// - public class GetStickerOutline : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStickerOutline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStickerOutline"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// File identifier of the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_file_id")] - public int StickerFileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get the outline scaled for animated emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_animated_emoji")] - public bool ForAnimatedEmoji { get; set; } + /// + /// File identifier of the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_file_id")] + public int StickerFileId { get; set; } - /// - /// Pass true to get the outline scaled for clicked animated emoji message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_clicked_animated_emoji_message")] - public bool ForClickedAnimatedEmojiMessage { get; set; } - } + /// + /// Pass true to get the outline scaled for animated emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("for_animated_emoji")] + public bool ForAnimatedEmoji { get; set; } /// - /// Returns outline of a sticker. This is an offline method. Returns a 404 error if the outline isn't known + /// Pass true to get the outline scaled for clicked animated emoji message /// - public static Task GetStickerOutlineAsync( - this IClient client, int stickerFileId = default, bool forAnimatedEmoji = default, bool forClickedAnimatedEmojiMessage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("for_clicked_animated_emoji_message")] + public bool ForClickedAnimatedEmojiMessage { get; set; } + } + + /// + /// Returns outline of a sticker. This is an offline method. Returns a 404 error if the outline isn't known + /// + public static Task GetStickerOutlineAsync( + this IClient client, int stickerFileId = default, bool forAnimatedEmoji = default, bool forClickedAnimatedEmojiMessage = default) + { + return client.ExecuteAsync(new GetStickerOutline { - return client.ExecuteAsync(new GetStickerOutline - { - StickerFileId = stickerFileId, ForAnimatedEmoji = forAnimatedEmoji, ForClickedAnimatedEmojiMessage = forClickedAnimatedEmojiMessage - }); - } + StickerFileId = stickerFileId, ForAnimatedEmoji = forAnimatedEmoji, ForClickedAnimatedEmojiMessage = forClickedAnimatedEmojiMessage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStickerOutlineSvgPath.cs b/TdLib.Api/Functions/GetStickerOutlineSvgPath.cs index 15d290bf..22806021 100644 --- a/TdLib.Api/Functions/GetStickerOutlineSvgPath.cs +++ b/TdLib.Api/Functions/GetStickerOutlineSvgPath.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns outline of a sticker as an SVG path. This is an offline method. Returns an empty string if the outline isn't known /// - public static partial class TdApi + public class GetStickerOutlineSvgPath : Function { /// - /// Returns outline of a sticker as an SVG path. This is an offline method. Returns an empty string if the outline isn't known + /// Data type for serialization /// - public class GetStickerOutlineSvgPath : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStickerOutlineSvgPath"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStickerOutlineSvgPath"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// File identifier of the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_file_id")] - public int StickerFileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get the outline scaled for animated emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_animated_emoji")] - public bool ForAnimatedEmoji { get; set; } + /// + /// File identifier of the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_file_id")] + public int StickerFileId { get; set; } - /// - /// Pass true to get the outline scaled for clicked animated emoji message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_clicked_animated_emoji_message")] - public bool ForClickedAnimatedEmojiMessage { get; set; } - } + /// + /// Pass true to get the outline scaled for animated emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("for_animated_emoji")] + public bool ForAnimatedEmoji { get; set; } /// - /// Returns outline of a sticker as an SVG path. This is an offline method. Returns an empty string if the outline isn't known + /// Pass true to get the outline scaled for clicked animated emoji message /// - public static Task GetStickerOutlineSvgPathAsync( - this IClient client, int stickerFileId = default, bool forAnimatedEmoji = default, bool forClickedAnimatedEmojiMessage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("for_clicked_animated_emoji_message")] + public bool ForClickedAnimatedEmojiMessage { get; set; } + } + + /// + /// Returns outline of a sticker as an SVG path. This is an offline method. Returns an empty string if the outline isn't known + /// + public static Task GetStickerOutlineSvgPathAsync( + this IClient client, int stickerFileId = default, bool forAnimatedEmoji = default, bool forClickedAnimatedEmojiMessage = default) + { + return client.ExecuteAsync(new GetStickerOutlineSvgPath { - return client.ExecuteAsync(new GetStickerOutlineSvgPath - { - StickerFileId = stickerFileId, ForAnimatedEmoji = forAnimatedEmoji, ForClickedAnimatedEmojiMessage = forClickedAnimatedEmojiMessage - }); - } + StickerFileId = stickerFileId, ForAnimatedEmoji = forAnimatedEmoji, ForClickedAnimatedEmojiMessage = forClickedAnimatedEmojiMessage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStickerSet.cs b/TdLib.Api/Functions/GetStickerSet.cs index e70f5879..01bcd416 100644 --- a/TdLib.Api/Functions/GetStickerSet.cs +++ b/TdLib.Api/Functions/GetStickerSet.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a sticker set by its identifier /// - public static partial class TdApi + public class GetStickerSet : Function { /// - /// Returns information about a sticker set by its identifier + /// Data type for serialization /// - public class GetStickerSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStickerSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStickerSet"; - /// - /// Identifier of the sticker set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("set_id")] - public long SetId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a sticker set by its identifier + /// Identifier of the sticker set /// - public static Task GetStickerSetAsync( - this IClient client, long setId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("set_id")] + public long SetId { get; set; } + } + + /// + /// Returns information about a sticker set by its identifier + /// + public static Task GetStickerSetAsync( + this IClient client, long setId = default) + { + return client.ExecuteAsync(new GetStickerSet { - return client.ExecuteAsync(new GetStickerSet - { - SetId = setId - }); - } + SetId = setId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStickerSetName.cs b/TdLib.Api/Functions/GetStickerSetName.cs index 390e399a..be03c563 100644 --- a/TdLib.Api/Functions/GetStickerSetName.cs +++ b/TdLib.Api/Functions/GetStickerSetName.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns name of a sticker set by its identifier /// - public static partial class TdApi + public class GetStickerSetName : Function { /// - /// Returns name of a sticker set by its identifier + /// Data type for serialization /// - public class GetStickerSetName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStickerSetName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStickerSetName"; - /// - /// Identifier of the sticker set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("set_id")] - public long SetId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns name of a sticker set by its identifier + /// Identifier of the sticker set /// - public static Task GetStickerSetNameAsync( - this IClient client, long setId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("set_id")] + public long SetId { get; set; } + } + + /// + /// Returns name of a sticker set by its identifier + /// + public static Task GetStickerSetNameAsync( + this IClient client, long setId = default) + { + return client.ExecuteAsync(new GetStickerSetName { - return client.ExecuteAsync(new GetStickerSetName - { - SetId = setId - }); - } + SetId = setId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStickers.cs b/TdLib.Api/Functions/GetStickers.cs index 71f65538..d7691cb4 100644 --- a/TdLib.Api/Functions/GetStickers.cs +++ b/TdLib.Api/Functions/GetStickers.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be returned /// - public static partial class TdApi + public class GetStickers : Function { /// - /// Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be returned + /// Data type for serialization /// - public class GetStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStickers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Type of the stickers to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Search query; a space-separated list of emojis or a keyword prefix. If empty, returns all known installed stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Type of the stickers to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// The maximum number of stickers to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Search query; a space-separated list of emojis or a keyword prefix. If empty, returns all known installed stickers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Chat identifier for which to return stickers. Available custom emoji stickers may be different for different chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// The maximum number of stickers to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be returned + /// Chat identifier for which to return stickers. Available custom emoji stickers may be different for different chats /// - public static Task GetStickersAsync( - this IClient client, StickerType stickerType = default, string query = default, int limit = default, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be returned + /// + public static Task GetStickersAsync( + this IClient client, StickerType stickerType = default, string query = default, int limit = default, long chatId = default) + { + return client.ExecuteAsync(new GetStickers { - return client.ExecuteAsync(new GetStickers - { - StickerType = stickerType, Query = query, Limit = limit, ChatId = chatId - }); - } + StickerType = stickerType, Query = query, Limit = limit, ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStorageStatistics.cs b/TdLib.Api/Functions/GetStorageStatistics.cs index c22d06e6..442d068f 100644 --- a/TdLib.Api/Functions/GetStorageStatistics.cs +++ b/TdLib.Api/Functions/GetStorageStatistics.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns storage usage statistics. Can be called before authorization /// - public static partial class TdApi + public class GetStorageStatistics : Function { /// - /// Returns storage usage statistics. Can be called before authorization + /// Data type for serialization /// - public class GetStorageStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStorageStatistics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStorageStatistics"; - /// - /// The maximum number of chats with the largest storage usage for which separate statistics need to be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_limit")] - public int ChatLimit { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns storage usage statistics. Can be called before authorization + /// The maximum number of chats with the largest storage usage for which separate statistics need to be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0 /// - public static Task GetStorageStatisticsAsync( - this IClient client, int chatLimit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_limit")] + public int ChatLimit { get; set; } + } + + /// + /// Returns storage usage statistics. Can be called before authorization + /// + public static Task GetStorageStatisticsAsync( + this IClient client, int chatLimit = default) + { + return client.ExecuteAsync(new GetStorageStatistics { - return client.ExecuteAsync(new GetStorageStatistics - { - ChatLimit = chatLimit - }); - } + ChatLimit = chatLimit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStorageStatisticsFast.cs b/TdLib.Api/Functions/GetStorageStatisticsFast.cs index 44b95b35..1f531cc6 100644 --- a/TdLib.Api/Functions/GetStorageStatisticsFast.cs +++ b/TdLib.Api/Functions/GetStorageStatisticsFast.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Quickly returns approximate storage usage statistics. Can be called before authorization /// - public static partial class TdApi + public class GetStorageStatisticsFast : Function { /// - /// Quickly returns approximate storage usage statistics. Can be called before authorization + /// Data type for serialization /// - public class GetStorageStatisticsFast : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStorageStatisticsFast"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStorageStatisticsFast"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Quickly returns approximate storage usage statistics. Can be called before authorization - /// - public static Task GetStorageStatisticsFastAsync( - this IClient client) + /// + /// Quickly returns approximate storage usage statistics. Can be called before authorization + /// + public static Task GetStorageStatisticsFastAsync( + this IClient client) + { + return client.ExecuteAsync(new GetStorageStatisticsFast { - return client.ExecuteAsync(new GetStorageStatisticsFast - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStory.cs b/TdLib.Api/Functions/GetStory.cs index 8568e5fb..6942abd5 100644 --- a/TdLib.Api/Functions/GetStory.cs +++ b/TdLib.Api/Functions/GetStory.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a story /// - public static partial class TdApi + public class GetStory : Function { /// - /// Returns a story + /// Data type for serialization /// - public class GetStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStory"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Pass true to get only locally available information without sending network requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_local")] - public bool OnlyLocal { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } /// - /// Returns a story + /// Pass true to get only locally available information without sending network requests /// - public static Task GetStoryAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, bool onlyLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_local")] + public bool OnlyLocal { get; set; } + } + + /// + /// Returns a story + /// + public static Task GetStoryAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, bool onlyLocal = default) + { + return client.ExecuteAsync(new GetStory { - return client.ExecuteAsync(new GetStory - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, OnlyLocal = onlyLocal - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, OnlyLocal = onlyLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStoryAlbumStories.cs b/TdLib.Api/Functions/GetStoryAlbumStories.cs index c24a250d..9ea4b49b 100644 --- a/TdLib.Api/Functions/GetStoryAlbumStories.cs +++ b/TdLib.Api/Functions/GetStoryAlbumStories.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of stories added to the given story album. For optimal performance, the number of returned stories is chosen by TDLib /// - public static partial class TdApi + public class GetStoryAlbumStories : Function { /// - /// Returns the list of stories added to the given story album. For optimal performance, the number of returned stories is chosen by TDLib + /// Data type for serialization /// - public class GetStoryAlbumStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStoryAlbumStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStoryAlbumStories"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Story album identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_id")] - public int StoryAlbumId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Offset of the first entry to return; use 0 to get results from the first album story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Story album identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_id")] + public int StoryAlbumId { get; set; } - /// - /// The maximum number of stories to be returned. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return; use 0 to get results from the first album story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns the list of stories added to the given story album. For optimal performance, the number of returned stories is chosen by TDLib + /// The maximum number of stories to be returned. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit /// - public static Task GetStoryAlbumStoriesAsync( - this IClient client, long chatId = default, int storyAlbumId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of stories added to the given story album. For optimal performance, the number of returned stories is chosen by TDLib + /// + public static Task GetStoryAlbumStoriesAsync( + this IClient client, long chatId = default, int storyAlbumId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetStoryAlbumStories { - return client.ExecuteAsync(new GetStoryAlbumStories - { - ChatId = chatId, StoryAlbumId = storyAlbumId, Offset = offset, Limit = limit - }); - } + ChatId = chatId, StoryAlbumId = storyAlbumId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStoryAvailableReactions.cs b/TdLib.Api/Functions/GetStoryAvailableReactions.cs index 1c0c2a97..47181745 100644 --- a/TdLib.Api/Functions/GetStoryAvailableReactions.cs +++ b/TdLib.Api/Functions/GetStoryAvailableReactions.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns reactions, which can be chosen for a story /// - public static partial class TdApi + public class GetStoryAvailableReactions : Function { /// - /// Returns reactions, which can be chosen for a story + /// Data type for serialization /// - public class GetStoryAvailableReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStoryAvailableReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStoryAvailableReactions"; - /// - /// Number of reaction per row, 5-25 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("row_size")] - public int RowSize { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns reactions, which can be chosen for a story + /// Number of reaction per row, 5-25 /// - public static Task GetStoryAvailableReactionsAsync( - this IClient client, int rowSize = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("row_size")] + public int RowSize { get; set; } + } + + /// + /// Returns reactions, which can be chosen for a story + /// + public static Task GetStoryAvailableReactionsAsync( + this IClient client, int rowSize = default) + { + return client.ExecuteAsync(new GetStoryAvailableReactions { - return client.ExecuteAsync(new GetStoryAvailableReactions - { - RowSize = rowSize - }); - } + RowSize = rowSize + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStoryInteractions.cs b/TdLib.Api/Functions/GetStoryInteractions.cs index 1c471fca..2df93891 100644 --- a/TdLib.Api/Functions/GetStoryInteractions.cs +++ b/TdLib.Api/Functions/GetStoryInteractions.cs @@ -3,91 +3,93 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns interactions with a story. The method can be called only for stories posted on behalf of the current user /// - public static partial class TdApi + public class GetStoryInteractions : Function { /// - /// Returns interactions with a story. The method can be called only for stories posted on behalf of the current user + /// Data type for serialization /// - public class GetStoryInteractions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStoryInteractions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStoryInteractions"; - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for in names, usernames and titles; may be empty to get all relevant interactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// Pass true to get only interactions by contacts; pass false to get all relevant interactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_contacts")] - public bool OnlyContacts { get; set; } + /// + /// Query to search for in names, usernames and titles; may be empty to get all relevant interactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted just by interaction date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prefer_forwards")] - public bool PreferForwards { get; set; } + /// + /// Pass true to get only interactions by contacts; pass false to get all relevant interactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_contacts")] + public bool OnlyContacts { get; set; } - /// - /// Pass true to get interactions with reaction first; pass false to get interactions sorted just by interaction date. Ignored if prefer_forwards == true - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prefer_with_reaction")] - public bool PreferWithReaction { get; set; } + /// + /// Pass true to get forwards and reposts first, then reactions, then other views; pass false to get interactions sorted just by interaction date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prefer_forwards")] + public bool PreferForwards { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Pass true to get interactions with reaction first; pass false to get interactions sorted just by interaction date. Ignored if prefer_forwards == true + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prefer_with_reaction")] + public bool PreferWithReaction { get; set; } - /// - /// The maximum number of story interactions to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns interactions with a story. The method can be called only for stories posted on behalf of the current user + /// The maximum number of story interactions to return /// - public static Task GetStoryInteractionsAsync( - this IClient client, int storyId = default, string query = default, bool onlyContacts = default, bool preferForwards = default, bool preferWithReaction = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns interactions with a story. The method can be called only for stories posted on behalf of the current user + /// + public static Task GetStoryInteractionsAsync( + this IClient client, int storyId = default, string query = default, bool onlyContacts = default, bool preferForwards = default, bool preferWithReaction = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetStoryInteractions { - return client.ExecuteAsync(new GetStoryInteractions - { - StoryId = storyId, Query = query, OnlyContacts = onlyContacts, PreferForwards = preferForwards, PreferWithReaction = preferWithReaction, Offset = offset, Limit = limit - }); - } + StoryId = storyId, Query = query, OnlyContacts = onlyContacts, PreferForwards = preferForwards, PreferWithReaction = preferWithReaction, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStoryNotificationSettingsExceptions.cs b/TdLib.Api/Functions/GetStoryNotificationSettingsExceptions.cs index 445c8b02..a64d3cff 100644 --- a/TdLib.Api/Functions/GetStoryNotificationSettingsExceptions.cs +++ b/TdLib.Api/Functions/GetStoryNotificationSettingsExceptions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of chats with non-default notification settings for stories /// - public static partial class TdApi + public class GetStoryNotificationSettingsExceptions : Function { /// - /// Returns the list of chats with non-default notification settings for stories + /// Data type for serialization /// - public class GetStoryNotificationSettingsExceptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStoryNotificationSettingsExceptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStoryNotificationSettingsExceptions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of chats with non-default notification settings for stories - /// - public static Task GetStoryNotificationSettingsExceptionsAsync( - this IClient client) + /// + /// Returns the list of chats with non-default notification settings for stories + /// + public static Task GetStoryNotificationSettingsExceptionsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetStoryNotificationSettingsExceptions { - return client.ExecuteAsync(new GetStoryNotificationSettingsExceptions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStoryPublicForwards.cs b/TdLib.Api/Functions/GetStoryPublicForwards.cs index 36795912..7be11c50 100644 --- a/TdLib.Api/Functions/GetStoryPublicForwards.cs +++ b/TdLib.Api/Functions/GetStoryPublicForwards.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story is posted on behalf of the current user or story.can_get_statistics == true. + /// For optimal performance, the number of returned messages and stories is chosen by TDLib /// - public static partial class TdApi + public class GetStoryPublicForwards : Function { /// - /// Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story is posted on behalf of the current user or story.can_get_statistics == true. - /// For optimal performance, the number of returned messages and stories is chosen by TDLib + /// Data type for serialization /// - public class GetStoryPublicForwards : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStoryPublicForwards"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStoryPublicForwards"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The identifier of the poster of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// The identifier of the poster of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// The identifier of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// The maximum number of messages and stories to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story is posted on behalf of the current user or story.can_get_statistics == true. - /// For optimal performance, the number of returned messages and stories is chosen by TDLib + /// The maximum number of messages and stories to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned objects is chosen by TDLib and can be smaller than the specified limit /// - public static Task GetStoryPublicForwardsAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story is posted on behalf of the current user or story.can_get_statistics == true. + /// For optimal performance, the number of returned messages and stories is chosen by TDLib + /// + public static Task GetStoryPublicForwardsAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetStoryPublicForwards { - return client.ExecuteAsync(new GetStoryPublicForwards - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, Offset = offset, Limit = limit - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetStoryStatistics.cs b/TdLib.Api/Functions/GetStoryStatistics.cs index 274035d0..8f6649e8 100644 --- a/TdLib.Api/Functions/GetStoryStatistics.cs +++ b/TdLib.Api/Functions/GetStoryStatistics.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns detailed statistics about a story. Can be used only if story.can_get_statistics == true /// - public static partial class TdApi + public class GetStoryStatistics : Function { /// - /// Returns detailed statistics about a story. Can be used only if story.can_get_statistics == true + /// Data type for serialization /// - public class GetStoryStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getStoryStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getStoryStatistics"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if a dark theme is used by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } /// - /// Returns detailed statistics about a story. Can be used only if story.can_get_statistics == true + /// Pass true if a dark theme is used by the application /// - public static Task GetStoryStatisticsAsync( - this IClient client, long chatId = default, int storyId = default, bool isDark = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } + } + + /// + /// Returns detailed statistics about a story. Can be used only if story.can_get_statistics == true + /// + public static Task GetStoryStatisticsAsync( + this IClient client, long chatId = default, int storyId = default, bool isDark = default) + { + return client.ExecuteAsync(new GetStoryStatistics { - return client.ExecuteAsync(new GetStoryStatistics - { - ChatId = chatId, StoryId = storyId, IsDark = isDark - }); - } + ChatId = chatId, StoryId = storyId, IsDark = isDark + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSuggestedFileName.cs b/TdLib.Api/Functions/GetSuggestedFileName.cs index d4086942..88b00f9b 100644 --- a/TdLib.Api/Functions/GetSuggestedFileName.cs +++ b/TdLib.Api/Functions/GetSuggestedFileName.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns suggested name for saving a file in a given directory /// - public static partial class TdApi + public class GetSuggestedFileName : Function { /// - /// Returns suggested name for saving a file in a given directory + /// Data type for serialization /// - public class GetSuggestedFileName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSuggestedFileName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSuggestedFileName"; - /// - /// Identifier of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Directory in which the file is expected to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("directory")] - public string Directory { get; set; } - } + /// + /// Identifier of the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } /// - /// Returns suggested name for saving a file in a given directory + /// Directory in which the file is expected to be saved /// - public static Task GetSuggestedFileNameAsync( - this IClient client, int fileId = default, string directory = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("directory")] + public string Directory { get; set; } + } + + /// + /// Returns suggested name for saving a file in a given directory + /// + public static Task GetSuggestedFileNameAsync( + this IClient client, int fileId = default, string directory = default) + { + return client.ExecuteAsync(new GetSuggestedFileName { - return client.ExecuteAsync(new GetSuggestedFileName - { - FileId = fileId, Directory = directory - }); - } + FileId = fileId, Directory = directory + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSuggestedStickerSetName.cs b/TdLib.Api/Functions/GetSuggestedStickerSetName.cs index aafc470f..323d6fd7 100644 --- a/TdLib.Api/Functions/GetSuggestedStickerSetName.cs +++ b/TdLib.Api/Functions/GetSuggestedStickerSetName.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a suggested name for a new sticker set with a given title /// - public static partial class TdApi + public class GetSuggestedStickerSetName : Function { /// - /// Returns a suggested name for a new sticker set with a given title + /// Data type for serialization /// - public class GetSuggestedStickerSetName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSuggestedStickerSetName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSuggestedStickerSetName"; - /// - /// Sticker set title; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a suggested name for a new sticker set with a given title + /// Sticker set title; 1-64 characters /// - public static Task GetSuggestedStickerSetNameAsync( - this IClient client, string title = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + } + + /// + /// Returns a suggested name for a new sticker set with a given title + /// + public static Task GetSuggestedStickerSetNameAsync( + this IClient client, string title = default) + { + return client.ExecuteAsync(new GetSuggestedStickerSetName { - return client.ExecuteAsync(new GetSuggestedStickerSetName - { - Title = title - }); - } + Title = title + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSuitableDiscussionChats.cs b/TdLib.Api/Functions/GetSuitableDiscussionChats.cs index 3feb6d7a..731a67ff 100644 --- a/TdLib.Api/Functions/GetSuitableDiscussionChats.cs +++ b/TdLib.Api/Functions/GetSuitableDiscussionChats.cs @@ -3,46 +3,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. + /// To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first /// - public static partial class TdApi + public class GetSuitableDiscussionChats : Function { /// - /// Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. - /// To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first + /// Data type for serialization /// - public class GetSuitableDiscussionChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSuitableDiscussionChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSuitableDiscussionChats"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. - /// To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first - /// - public static Task GetSuitableDiscussionChatsAsync( - this IClient client) + /// + /// Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. + /// To set a returned supergroup as a discussion group, access to its old messages must be enabled using toggleSupergroupIsAllHistoryAvailable first + /// + public static Task GetSuitableDiscussionChatsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetSuitableDiscussionChats { - return client.ExecuteAsync(new GetSuitableDiscussionChats - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSuitablePersonalChats.cs b/TdLib.Api/Functions/GetSuitablePersonalChats.cs index 751f21b9..ab54bd1e 100644 --- a/TdLib.Api/Functions/GetSuitablePersonalChats.cs +++ b/TdLib.Api/Functions/GetSuitablePersonalChats.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of channel chats, which can be used as a personal chat /// - public static partial class TdApi + public class GetSuitablePersonalChats : Function { /// - /// Returns a list of channel chats, which can be used as a personal chat + /// Data type for serialization /// - public class GetSuitablePersonalChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSuitablePersonalChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSuitablePersonalChats"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns a list of channel chats, which can be used as a personal chat - /// - public static Task GetSuitablePersonalChatsAsync( - this IClient client) + /// + /// Returns a list of channel chats, which can be used as a personal chat + /// + public static Task GetSuitablePersonalChatsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetSuitablePersonalChats { - return client.ExecuteAsync(new GetSuitablePersonalChats - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSupergroup.cs b/TdLib.Api/Functions/GetSupergroup.cs index 2ec353d5..14b099d5 100644 --- a/TdLib.Api/Functions/GetSupergroup.cs +++ b/TdLib.Api/Functions/GetSupergroup.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a supergroup or a channel by its identifier. This is an offline method if the current user is not a bot /// - public static partial class TdApi + public class GetSupergroup : Function { /// - /// Returns information about a supergroup or a channel by its identifier. This is an offline method if the current user is not a bot + /// Data type for serialization /// - public class GetSupergroup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSupergroup"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSupergroup"; - /// - /// Supergroup or channel identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a supergroup or a channel by its identifier. This is an offline method if the current user is not a bot + /// Supergroup or channel identifier /// - public static Task GetSupergroupAsync( - this IClient client, long supergroupId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } + } + + /// + /// Returns information about a supergroup or a channel by its identifier. This is an offline method if the current user is not a bot + /// + public static Task GetSupergroupAsync( + this IClient client, long supergroupId = default) + { + return client.ExecuteAsync(new GetSupergroup { - return client.ExecuteAsync(new GetSupergroup - { - SupergroupId = supergroupId - }); - } + SupergroupId = supergroupId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSupergroupFullInfo.cs b/TdLib.Api/Functions/GetSupergroupFullInfo.cs index f43c373d..c51668d6 100644 --- a/TdLib.Api/Functions/GetSupergroupFullInfo.cs +++ b/TdLib.Api/Functions/GetSupergroupFullInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute /// - public static partial class TdApi + public class GetSupergroupFullInfo : Function { /// - /// Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute + /// Data type for serialization /// - public class GetSupergroupFullInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSupergroupFullInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSupergroupFullInfo"; - /// - /// Supergroup or channel identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute + /// Supergroup or channel identifier /// - public static Task GetSupergroupFullInfoAsync( - this IClient client, long supergroupId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } + } + + /// + /// Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute + /// + public static Task GetSupergroupFullInfoAsync( + this IClient client, long supergroupId = default) + { + return client.ExecuteAsync(new GetSupergroupFullInfo { - return client.ExecuteAsync(new GetSupergroupFullInfo - { - SupergroupId = supergroupId - }); - } + SupergroupId = supergroupId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSupergroupMembers.cs b/TdLib.Api/Functions/GetSupergroupMembers.cs index d64bc65d..76866391 100644 --- a/TdLib.Api/Functions/GetSupergroupMembers.cs +++ b/TdLib.Api/Functions/GetSupergroupMembers.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about members or banned users in a supergroup or channel. Can be used only if supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters /// - public static partial class TdApi + public class GetSupergroupMembers : Function { /// - /// Returns information about members or banned users in a supergroup or channel. Can be used only if supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters + /// Data type for serialization /// - public class GetSupergroupMembers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSupergroupMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSupergroupMembers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The type of users to return; pass null to use supergroupMembersFilterRecent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SupergroupMembersFilter Filter { get; set; } + /// + /// Identifier of the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } - /// - /// Number of users to skip - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// The type of users to return; pass null to use supergroupMembersFilterRecent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SupergroupMembersFilter Filter { get; set; } - /// - /// The maximum number of users to be returned; up to 200 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Number of users to skip + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns information about members or banned users in a supergroup or channel. Can be used only if supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters + /// The maximum number of users to be returned; up to 200 /// - public static Task GetSupergroupMembersAsync( - this IClient client, long supergroupId = default, SupergroupMembersFilter filter = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns information about members or banned users in a supergroup or channel. Can be used only if supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters + /// + public static Task GetSupergroupMembersAsync( + this IClient client, long supergroupId = default, SupergroupMembersFilter filter = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetSupergroupMembers { - return client.ExecuteAsync(new GetSupergroupMembers - { - SupergroupId = supergroupId, Filter = filter, Offset = offset, Limit = limit - }); - } + SupergroupId = supergroupId, Filter = filter, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSupportName.cs b/TdLib.Api/Functions/GetSupportName.cs index f750b333..64606174 100644 --- a/TdLib.Api/Functions/GetSupportName.cs +++ b/TdLib.Api/Functions/GetSupportName.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns localized name of the Telegram support user; for Telegram support only /// - public static partial class TdApi + public class GetSupportName : Function { /// - /// Returns localized name of the Telegram support user; for Telegram support only + /// Data type for serialization /// - public class GetSupportName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSupportName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSupportName"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns localized name of the Telegram support user; for Telegram support only - /// - public static Task GetSupportNameAsync( - this IClient client) + /// + /// Returns localized name of the Telegram support user; for Telegram support only + /// + public static Task GetSupportNameAsync( + this IClient client) + { + return client.ExecuteAsync(new GetSupportName { - return client.ExecuteAsync(new GetSupportName - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetSupportUser.cs b/TdLib.Api/Functions/GetSupportUser.cs index 9c8192a0..8fc0f447 100644 --- a/TdLib.Api/Functions/GetSupportUser.cs +++ b/TdLib.Api/Functions/GetSupportUser.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a user who can be contacted to get support /// - public static partial class TdApi + public class GetSupportUser : Function { /// - /// Returns a user who can be contacted to get support + /// Data type for serialization /// - public class GetSupportUser : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getSupportUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getSupportUser"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns a user who can be contacted to get support - /// - public static Task GetSupportUserAsync( - this IClient client) + /// + /// Returns a user who can be contacted to get support + /// + public static Task GetSupportUserAsync( + this IClient client) + { + return client.ExecuteAsync(new GetSupportUser { - return client.ExecuteAsync(new GetSupportUser - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTemporaryPasswordState.cs b/TdLib.Api/Functions/GetTemporaryPasswordState.cs index 9aab983a..b08023b3 100644 --- a/TdLib.Api/Functions/GetTemporaryPasswordState.cs +++ b/TdLib.Api/Functions/GetTemporaryPasswordState.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the current temporary password /// - public static partial class TdApi + public class GetTemporaryPasswordState : Function { /// - /// Returns information about the current temporary password + /// Data type for serialization /// - public class GetTemporaryPasswordState : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getTemporaryPasswordState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTemporaryPasswordState"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns information about the current temporary password - /// - public static Task GetTemporaryPasswordStateAsync( - this IClient client) + /// + /// Returns information about the current temporary password + /// + public static Task GetTemporaryPasswordStateAsync( + this IClient client) + { + return client.ExecuteAsync(new GetTemporaryPasswordState { - return client.ExecuteAsync(new GetTemporaryPasswordState - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTextCompositionStyleExample.cs b/TdLib.Api/Functions/GetTextCompositionStyleExample.cs index 493e72a7..7f69ff75 100644 --- a/TdLib.Api/Functions/GetTextCompositionStyleExample.cs +++ b/TdLib.Api/Functions/GetTextCompositionStyleExample.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an example of usage of a custom text composition style /// - public static partial class TdApi + public class GetTextCompositionStyleExample : Function { /// - /// Returns an example of usage of a custom text composition style + /// Data type for serialization /// - public class GetTextCompositionStyleExample : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getTextCompositionStyleExample"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTextCompositionStyleExample"; - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// 0-based unique number of the requested example; must be non-negative and less than getOption("text_composition_style_example_count") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("example_number")] - public int ExampleNumber { get; set; } - } + /// + /// Name of the style + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Returns an example of usage of a custom text composition style + /// 0-based unique number of the requested example; must be non-negative and less than getOption("text_composition_style_example_count") /// - public static Task GetTextCompositionStyleExampleAsync( - this IClient client, string name = default, int exampleNumber = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("example_number")] + public int ExampleNumber { get; set; } + } + + /// + /// Returns an example of usage of a custom text composition style + /// + public static Task GetTextCompositionStyleExampleAsync( + this IClient client, string name = default, int exampleNumber = default) + { + return client.ExecuteAsync(new GetTextCompositionStyleExample { - return client.ExecuteAsync(new GetTextCompositionStyleExample - { - Name = name, ExampleNumber = exampleNumber - }); - } + Name = name, ExampleNumber = exampleNumber + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTextEntities.cs b/TdLib.Api/Functions/GetTextEntities.cs index 7e40f955..74fdb08d 100644 --- a/TdLib.Api/Functions/GetTextEntities.cs +++ b/TdLib.Api/Functions/GetTextEntities.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, TON blockchain addresses, URLs, and email addresses) found in the text. Can be called synchronously /// - public static partial class TdApi + public class GetTextEntities : Function { /// - /// Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in the text. Can be called synchronously + /// Data type for serialization /// - public class GetTextEntities : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getTextEntities"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTextEntities"; - /// - /// The text in which to look for entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in the text. Can be called synchronously + /// The text in which to look for entities /// - public static Task GetTextEntitiesAsync( - this IClient client, string text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } + } + + /// + /// Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, TON blockchain addresses, URLs, and email addresses) found in the text. Can be called synchronously + /// + public static Task GetTextEntitiesAsync( + this IClient client, string text = default) + { + return client.ExecuteAsync(new GetTextEntities { - return client.ExecuteAsync(new GetTextEntities - { - Text = text - }); - } + Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetThemeParametersJsonString.cs b/TdLib.Api/Functions/GetThemeParametersJsonString.cs index 1898e318..02ee86fe 100644 --- a/TdLib.Api/Functions/GetThemeParametersJsonString.cs +++ b/TdLib.Api/Functions/GetThemeParametersJsonString.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously /// - public static partial class TdApi + public class GetThemeParametersJsonString : Function { /// - /// Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously + /// Data type for serialization /// - public class GetThemeParametersJsonString : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getThemeParametersJsonString"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getThemeParametersJsonString"; - /// - /// Theme parameters to convert to JSON - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme")] - public ThemeParameters Theme { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously + /// Theme parameters to convert to JSON /// - public static Task GetThemeParametersJsonStringAsync( - this IClient client, ThemeParameters theme = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public ThemeParameters Theme { get; set; } + } + + /// + /// Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously + /// + public static Task GetThemeParametersJsonStringAsync( + this IClient client, ThemeParameters theme = default) + { + return client.ExecuteAsync(new GetThemeParametersJsonString { - return client.ExecuteAsync(new GetThemeParametersJsonString - { - Theme = theme - }); - } + Theme = theme + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetThemedChatEmojiStatuses.cs b/TdLib.Api/Functions/GetThemedChatEmojiStatuses.cs index e963c0d6..6f5c1836 100644 --- a/TdLib.Api/Functions/GetThemedChatEmojiStatuses.cs +++ b/TdLib.Api/Functions/GetThemedChatEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns up to 8 emoji statuses, which must be shown in the emoji status list for chats /// - public static partial class TdApi + public class GetThemedChatEmojiStatuses : Function { /// - /// Returns up to 8 emoji statuses, which must be shown in the emoji status list for chats + /// Data type for serialization /// - public class GetThemedChatEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getThemedChatEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getThemedChatEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns up to 8 emoji statuses, which must be shown in the emoji status list for chats - /// - public static Task GetThemedChatEmojiStatusesAsync( - this IClient client) + /// + /// Returns up to 8 emoji statuses, which must be shown in the emoji status list for chats + /// + public static Task GetThemedChatEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetThemedChatEmojiStatuses { - return client.ExecuteAsync(new GetThemedChatEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetThemedEmojiStatuses.cs b/TdLib.Api/Functions/GetThemedEmojiStatuses.cs index 29383047..e04184cd 100644 --- a/TdLib.Api/Functions/GetThemedEmojiStatuses.cs +++ b/TdLib.Api/Functions/GetThemedEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list for self status /// - public static partial class TdApi + public class GetThemedEmojiStatuses : Function { /// - /// Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list for self status + /// Data type for serialization /// - public class GetThemedEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getThemedEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getThemedEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list for self status - /// - public static Task GetThemedEmojiStatusesAsync( - this IClient client) + /// + /// Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list for self status + /// + public static Task GetThemedEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetThemedEmojiStatuses { - return client.ExecuteAsync(new GetThemedEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTimeZones.cs b/TdLib.Api/Functions/GetTimeZones.cs index 4f82f39c..53b7e0bd 100644 --- a/TdLib.Api/Functions/GetTimeZones.cs +++ b/TdLib.Api/Functions/GetTimeZones.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of supported time zones /// - public static partial class TdApi + public class GetTimeZones : Function { /// - /// Returns the list of supported time zones + /// Data type for serialization /// - public class GetTimeZones : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getTimeZones"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTimeZones"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns the list of supported time zones - /// - public static Task GetTimeZonesAsync( - this IClient client) + /// + /// Returns the list of supported time zones + /// + public static Task GetTimeZonesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetTimeZones { - return client.ExecuteAsync(new GetTimeZones - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonCenterStreamingApiUrl.cs b/TdLib.Api/Functions/GetTonCenterStreamingApiUrl.cs new file mode 100644 index 00000000..6305bd25 --- /dev/null +++ b/TdLib.Api/Functions/GetTonCenterStreamingApiUrl.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns a URL for TON Center Streaming API + /// + public class GetTonCenterStreamingApiUrl : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonCenterStreamingApiUrl"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + + /// + /// Returns a URL for TON Center Streaming API + /// + public static Task GetTonCenterStreamingApiUrlAsync( + this IClient client) + { + return client.ExecuteAsync(new GetTonCenterStreamingApiUrl + { + + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonConnectDAppPendingRequests.cs b/TdLib.Api/Functions/GetTonConnectDAppPendingRequests.cs new file mode 100644 index 00000000..c7dab421 --- /dev/null +++ b/TdLib.Api/Functions/GetTonConnectDAppPendingRequests.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns pending requests with a dApp through TON Connect + /// + public class GetTonConnectDAppPendingRequests : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonConnectDAppPendingRequests"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Hex-encoded public X25519 key of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dapp_client_id")] + public string DappClientId { get; set; } + } + + /// + /// Returns pending requests with a dApp through TON Connect + /// + public static Task GetTonConnectDAppPendingRequestsAsync( + this IClient client, string dappClientId = default) + { + return client.ExecuteAsync(new GetTonConnectDAppPendingRequests + { + DappClientId = dappClientId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonConnectSessionNextEventId.cs b/TdLib.Api/Functions/GetTonConnectSessionNextEventId.cs new file mode 100644 index 00000000..eff14e16 --- /dev/null +++ b/TdLib.Api/Functions/GetTonConnectSessionNextEventId.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns the next event identifier for the given TON Connect session + /// + public class GetTonConnectSessionNextEventId : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonConnectSessionNextEventId"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the TON Connect session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + } + + /// + /// Returns the next event identifier for the given TON Connect session + /// + public static Task GetTonConnectSessionNextEventIdAsync( + this IClient client, long sessionId = default) + { + return client.ExecuteAsync(new GetTonConnectSessionNextEventId + { + SessionId = sessionId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonConnectSessionPendingRequests.cs b/TdLib.Api/Functions/GetTonConnectSessionPendingRequests.cs new file mode 100644 index 00000000..d0f40e9d --- /dev/null +++ b/TdLib.Api/Functions/GetTonConnectSessionPendingRequests.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns pending requests in a TON Connect session + /// + public class GetTonConnectSessionPendingRequests : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonConnectSessionPendingRequests"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + } + + /// + /// Returns pending requests in a TON Connect session + /// + public static Task GetTonConnectSessionPendingRequestsAsync( + this IClient client, long sessionId = default) + { + return client.ExecuteAsync(new GetTonConnectSessionPendingRequests + { + SessionId = sessionId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonConnectSessions.cs b/TdLib.Api/Functions/GetTonConnectSessions.cs new file mode 100644 index 00000000..ab217bd5 --- /dev/null +++ b/TdLib.Api/Functions/GetTonConnectSessions.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns active TON Connect sessions; can be used only if getOption("can_use_ton_wallet") + /// + public class GetTonConnectSessions : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonConnectSessions"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + + /// + /// Returns active TON Connect sessions; can be used only if getOption("can_use_ton_wallet") + /// + public static Task GetTonConnectSessionsAsync( + this IClient client) + { + return client.ExecuteAsync(new GetTonConnectSessions + { + + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonTransactions.cs b/TdLib.Api/Functions/GetTonTransactions.cs index 3102255a..e304360b 100644 --- a/TdLib.Api/Functions/GetTonTransactions.cs +++ b/TdLib.Api/Functions/GetTonTransactions.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of TON Gram transactions of the current user /// - public static partial class TdApi + public class GetTonTransactions : Function { /// - /// Returns the list of TON blockchain transactions of the current user + /// Data type for serialization /// - public class GetTonTransactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getTonTransactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonTransactions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Direction of the transactions to receive; pass null to get all transactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("direction")] - public TransactionDirection Direction { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Direction of the transactions to receive; pass null to get all transactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("direction")] + public TransactionDirection Direction { get; set; } - /// - /// The maximum number of transactions to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns the list of TON blockchain transactions of the current user + /// The maximum number of transactions to return /// - public static Task GetTonTransactionsAsync( - this IClient client, TransactionDirection direction = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of TON Gram transactions of the current user + /// + public static Task GetTonTransactionsAsync( + this IClient client, TransactionDirection direction = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetTonTransactions { - return client.ExecuteAsync(new GetTonTransactions - { - Direction = direction, Offset = offset, Limit = limit - }); - } + Direction = direction, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonWalletNfts.cs b/TdLib.Api/Functions/GetTonWalletNfts.cs new file mode 100644 index 00000000..2190f79f --- /dev/null +++ b/TdLib.Api/Functions/GetTonWalletNfts.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns NFTs stored on the TON wallet of the user; can be used only if getOption("can_use_ton_wallet") + /// + public class GetTonWalletNfts : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonWalletNfts"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } + + /// + /// The maximum number of NFTs to be returned; must be positive and can't be greater than 20 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns NFTs stored on the TON wallet of the user; can be used only if getOption("can_use_ton_wallet") + /// + public static Task GetTonWalletNftsAsync( + this IClient client, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetTonWalletNfts + { + Offset = offset, Limit = limit + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonWalletOwnershipProofChallenge.cs b/TdLib.Api/Functions/GetTonWalletOwnershipProofChallenge.cs new file mode 100644 index 00000000..a286de41 --- /dev/null +++ b/TdLib.Api/Functions/GetTonWalletOwnershipProofChallenge.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns a challenge which may be used to proof ownership of a TON wallet; can be used only if getOption("can_use_ton_wallet") + /// + public class GetTonWalletOwnershipProofChallenge : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonWalletOwnershipProofChallenge"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + + /// + /// Returns a challenge which may be used to proof ownership of a TON wallet; can be used only if getOption("can_use_ton_wallet") + /// + public static Task GetTonWalletOwnershipProofChallengeAsync( + this IClient client) + { + return client.ExecuteAsync(new GetTonWalletOwnershipProofChallenge + { + + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonWalletSecretPhrase.cs b/TdLib.Api/Functions/GetTonWalletSecretPhrase.cs new file mode 100644 index 00000000..2711d7f3 --- /dev/null +++ b/TdLib.Api/Functions/GetTonWalletSecretPhrase.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns the secret phrase of the user's TON wallet as a space separated list of words. Works only if tonWalletState.can_export_phrase is true + /// + public class GetTonWalletSecretPhrase : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonWalletSecretPhrase"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns the secret phrase of the user's TON wallet as a space separated list of words. Works only if tonWalletState.can_export_phrase is true + /// + public static Task GetTonWalletSecretPhraseAsync( + this IClient client, string password = default) + { + return client.ExecuteAsync(new GetTonWalletSecretPhrase + { + Password = password + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonWalletTransaction.cs b/TdLib.Api/Functions/GetTonWalletTransaction.cs new file mode 100644 index 00000000..bd8c8643 --- /dev/null +++ b/TdLib.Api/Functions/GetTonWalletTransaction.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns a TON wallet transaction by their identifier + /// + public class GetTonWalletTransaction : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonWalletTransaction"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction_id")] + public string TransactionId { get; set; } + } + + /// + /// Returns a TON wallet transaction by their identifier + /// + public static Task GetTonWalletTransactionAsync( + this IClient client, string transactionId = default) + { + return client.ExecuteAsync(new GetTonWalletTransaction + { + TransactionId = transactionId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonWalletTransactionByMsgHash.cs b/TdLib.Api/Functions/GetTonWalletTransactionByMsgHash.cs new file mode 100644 index 00000000..5f10fef1 --- /dev/null +++ b/TdLib.Api/Functions/GetTonWalletTransactionByMsgHash.cs @@ -0,0 +1,53 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns a TON wallet transaction by their msg_hash; return an error if the transaction isn't finalized yet + /// + public class GetTonWalletTransactionByMsgHash : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonWalletTransactionByMsgHash"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Value of msg_hash of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("msg_hash")] + public string MsgHash { get; set; } + } + + /// + /// Returns a TON wallet transaction by their msg_hash; return an error if the transaction isn't finalized yet + /// + public static Task GetTonWalletTransactionByMsgHashAsync( + this IClient client, string msgHash = default) + { + return client.ExecuteAsync(new GetTonWalletTransactionByMsgHash + { + MsgHash = msgHash + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTonWalletTransactions.cs b/TdLib.Api/Functions/GetTonWalletTransactions.cs new file mode 100644 index 00000000..2b515d9d --- /dev/null +++ b/TdLib.Api/Functions/GetTonWalletTransactions.cs @@ -0,0 +1,67 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns the list of TON wallet transactions of the current user; can be used only if getOption("can_use_ton_wallet") + /// + public class GetTonWalletTransactions : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTonWalletTransactions"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Direction of the transactions to receive; pass null to get all transactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("direction")] + public TransactionDirection Direction { get; set; } + + /// + /// Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } + + /// + /// The maximum number of transactions to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of TON wallet transactions of the current user; can be used only if getOption("can_use_ton_wallet") + /// + public static Task GetTonWalletTransactionsAsync( + this IClient client, TransactionDirection direction = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new GetTonWalletTransactions + { + Direction = direction, Offset = offset, Limit = limit + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTopChats.cs b/TdLib.Api/Functions/GetTopChats.cs index a358546f..82da5e06 100644 --- a/TdLib.Api/Functions/GetTopChats.cs +++ b/TdLib.Api/Functions/GetTopChats.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of frequently used chats /// - public static partial class TdApi + public class GetTopChats : Function { /// - /// Returns a list of frequently used chats + /// Data type for serialization /// - public class GetTopChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getTopChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTopChats"; - /// - /// Category of chats to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("category")] - public TopChatCategory Category { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of chats to be returned; up to 30 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Category of chats to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("category")] + public TopChatCategory Category { get; set; } /// - /// Returns a list of frequently used chats + /// The maximum number of chats to be returned; up to 30 /// - public static Task GetTopChatsAsync( - this IClient client, TopChatCategory category = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns a list of frequently used chats + /// + public static Task GetTopChatsAsync( + this IClient client, TopChatCategory category = default, int limit = default) + { + return client.ExecuteAsync(new GetTopChats { - return client.ExecuteAsync(new GetTopChats - { - Category = category, Limit = limit - }); - } + Category = category, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetTrendingStickerSets.cs b/TdLib.Api/Functions/GetTrendingStickerSets.cs index 68dbc34c..5f40a34a 100644 --- a/TdLib.Api/Functions/GetTrendingStickerSets.cs +++ b/TdLib.Api/Functions/GetTrendingStickerSets.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib /// - public static partial class TdApi + public class GetTrendingStickerSets : Function { /// - /// Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib + /// Data type for serialization /// - public class GetTrendingStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getTrendingStickerSets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getTrendingStickerSets"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Type of the sticker sets to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The offset from which to return the sticker sets; must be non-negative - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Type of the sticker sets to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// The maximum number of sticker sets to be returned; up to 100. For optimal performance, the number of returned sticker sets is chosen by TDLib and can be smaller than the specified limit, even if the end of the list has not been reached - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The offset from which to return the sticker sets; must be non-negative + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib + /// The maximum number of sticker sets to be returned; up to 100. For optimal performance, the number of returned sticker sets is chosen by TDLib and can be smaller than the specified limit, even if the end of the list has not been reached /// - public static Task GetTrendingStickerSetsAsync( - this IClient client, StickerType stickerType = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib + /// + public static Task GetTrendingStickerSetsAsync( + this IClient client, StickerType stickerType = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetTrendingStickerSets { - return client.ExecuteAsync(new GetTrendingStickerSets - { - StickerType = stickerType, Offset = offset, Limit = limit - }); - } + StickerType = stickerType, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUpgradedGift.cs b/TdLib.Api/Functions/GetUpgradedGift.cs index 9d4b95fc..7cafb045 100644 --- a/TdLib.Api/Functions/GetUpgradedGift.cs +++ b/TdLib.Api/Functions/GetUpgradedGift.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about an upgraded gift by its name /// - public static partial class TdApi + public class GetUpgradedGift : Function { /// - /// Returns information about an upgraded gift by its name + /// Data type for serialization /// - public class GetUpgradedGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUpgradedGift"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUpgradedGift"; - /// - /// Unique name of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about an upgraded gift by its name + /// Unique name of the upgraded gift /// - public static Task GetUpgradedGiftAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Returns information about an upgraded gift by its name + /// + public static Task GetUpgradedGiftAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new GetUpgradedGift { - return client.ExecuteAsync(new GetUpgradedGift - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUpgradedGiftEmojiStatuses.cs b/TdLib.Api/Functions/GetUpgradedGiftEmojiStatuses.cs index 0c62ba55..48f561c2 100644 --- a/TdLib.Api/Functions/GetUpgradedGiftEmojiStatuses.cs +++ b/TdLib.Api/Functions/GetUpgradedGiftEmojiStatuses.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns available upgraded gift emoji statuses for self status /// - public static partial class TdApi + public class GetUpgradedGiftEmojiStatuses : Function { /// - /// Returns available upgraded gift emoji statuses for self status + /// Data type for serialization /// - public class GetUpgradedGiftEmojiStatuses : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUpgradedGiftEmojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUpgradedGiftEmojiStatuses"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns available upgraded gift emoji statuses for self status - /// - public static Task GetUpgradedGiftEmojiStatusesAsync( - this IClient client) + /// + /// Returns available upgraded gift emoji statuses for self status + /// + public static Task GetUpgradedGiftEmojiStatusesAsync( + this IClient client) + { + return client.ExecuteAsync(new GetUpgradedGiftEmojiStatuses { - return client.ExecuteAsync(new GetUpgradedGiftEmojiStatuses - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUpgradedGiftValueInfo.cs b/TdLib.Api/Functions/GetUpgradedGiftValueInfo.cs index fc51ecd4..036873b4 100644 --- a/TdLib.Api/Functions/GetUpgradedGiftValueInfo.cs +++ b/TdLib.Api/Functions/GetUpgradedGiftValueInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about value of an upgraded gift by its name /// - public static partial class TdApi + public class GetUpgradedGiftValueInfo : Function { /// - /// Returns information about value of an upgraded gift by its name + /// Data type for serialization /// - public class GetUpgradedGiftValueInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUpgradedGiftValueInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUpgradedGiftValueInfo"; - /// - /// Unique name of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about value of an upgraded gift by its name + /// Unique name of the upgraded gift /// - public static Task GetUpgradedGiftValueInfoAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Returns information about value of an upgraded gift by its name + /// + public static Task GetUpgradedGiftValueInfoAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new GetUpgradedGiftValueInfo { - return client.ExecuteAsync(new GetUpgradedGiftValueInfo - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUpgradedGiftVariants.cs b/TdLib.Api/Functions/GetUpgradedGiftVariants.cs index f935455f..e8a6df21 100644 --- a/TdLib.Api/Functions/GetUpgradedGiftVariants.cs +++ b/TdLib.Api/Functions/GetUpgradedGiftVariants.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns all possible variants of upgraded gifts for a regular gift /// - public static partial class TdApi + public class GetUpgradedGiftVariants : Function { /// - /// Returns all possible variants of upgraded gifts for a regular gift + /// Data type for serialization /// - public class GetUpgradedGiftVariants : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUpgradedGiftVariants"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUpgradedGiftVariants"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the regular gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("regular_gift_id")] - public long RegularGiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get models that can be obtained by upgrading a regular gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_upgrade_models")] - public bool ReturnUpgradeModels { get; set; } + /// + /// Identifier of the regular gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("regular_gift_id")] + public long RegularGiftId { get; set; } - /// - /// Pass true to get models that can be obtained by crafting a gift from upgraded gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_craft_models")] - public bool ReturnCraftModels { get; set; } - } + /// + /// Pass true to get models that can be obtained by upgrading a regular gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("return_upgrade_models")] + public bool ReturnUpgradeModels { get; set; } /// - /// Returns all possible variants of upgraded gifts for a regular gift + /// Pass true to get models that can be obtained by crafting a gift from upgraded gifts /// - public static Task GetUpgradedGiftVariantsAsync( - this IClient client, long regularGiftId = default, bool returnUpgradeModels = default, bool returnCraftModels = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("return_craft_models")] + public bool ReturnCraftModels { get; set; } + } + + /// + /// Returns all possible variants of upgraded gifts for a regular gift + /// + public static Task GetUpgradedGiftVariantsAsync( + this IClient client, long regularGiftId = default, bool returnUpgradeModels = default, bool returnCraftModels = default) + { + return client.ExecuteAsync(new GetUpgradedGiftVariants { - return client.ExecuteAsync(new GetUpgradedGiftVariants - { - RegularGiftId = regularGiftId, ReturnUpgradeModels = returnUpgradeModels, ReturnCraftModels = returnCraftModels - }); - } + RegularGiftId = regularGiftId, ReturnUpgradeModels = returnUpgradeModels, ReturnCraftModels = returnCraftModels + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUpgradedGiftWithdrawalUrl.cs b/TdLib.Api/Functions/GetUpgradedGiftWithdrawalUrl.cs index 424430c0..fc775e2c 100644 --- a/TdLib.Api/Functions/GetUpgradedGiftWithdrawalUrl.cs +++ b/TdLib.Api/Functions/GetUpgradedGiftWithdrawalUrl.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a URL for upgraded gift withdrawal in the TON blockchain as an NFT; requires owner privileges for gifts owned by a chat /// - public static partial class TdApi + public class GetUpgradedGiftWithdrawalUrl : Function { /// - /// Returns a URL for upgraded gift withdrawal in the TON blockchain as an NFT; requires owner privileges for gifts owned by a chat + /// Data type for serialization /// - public class GetUpgradedGiftWithdrawalUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUpgradedGiftWithdrawalUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUpgradedGiftWithdrawalUrl"; - /// - /// Identifier of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Identifier of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } /// - /// Returns a URL for upgraded gift withdrawal in the TON blockchain as an NFT; requires owner privileges for gifts owned by a chat + /// The 2-step verification password of the current user /// - public static Task GetUpgradedGiftWithdrawalUrlAsync( - this IClient client, string receivedGiftId = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Returns a URL for upgraded gift withdrawal in the TON blockchain as an NFT; requires owner privileges for gifts owned by a chat + /// + public static Task GetUpgradedGiftWithdrawalUrlAsync( + this IClient client, string receivedGiftId = default, string password = default) + { + return client.ExecuteAsync(new GetUpgradedGiftWithdrawalUrl { - return client.ExecuteAsync(new GetUpgradedGiftWithdrawalUrl - { - ReceivedGiftId = receivedGiftId, Password = password - }); - } + ReceivedGiftId = receivedGiftId, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUpgradedGiftsPromotionalAnimation.cs b/TdLib.Api/Functions/GetUpgradedGiftsPromotionalAnimation.cs index ecf3dc33..aab29d38 100644 --- a/TdLib.Api/Functions/GetUpgradedGiftsPromotionalAnimation.cs +++ b/TdLib.Api/Functions/GetUpgradedGiftsPromotionalAnimation.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns promotional animation for upgraded gifts /// - public static partial class TdApi + public class GetUpgradedGiftsPromotionalAnimation : Function { /// - /// Returns promotional animation for upgraded gifts + /// Data type for serialization /// - public class GetUpgradedGiftsPromotionalAnimation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUpgradedGiftsPromotionalAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUpgradedGiftsPromotionalAnimation"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns promotional animation for upgraded gifts - /// - public static Task GetUpgradedGiftsPromotionalAnimationAsync( - this IClient client) + /// + /// Returns promotional animation for upgraded gifts + /// + public static Task GetUpgradedGiftsPromotionalAnimationAsync( + this IClient client) + { + return client.ExecuteAsync(new GetUpgradedGiftsPromotionalAnimation { - return client.ExecuteAsync(new GetUpgradedGiftsPromotionalAnimation - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUser.cs b/TdLib.Api/Functions/GetUser.cs index 73346960..db61ebe6 100644 --- a/TdLib.Api/Functions/GetUser.cs +++ b/TdLib.Api/Functions/GetUser.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a user by their identifier. This is an offline method if the current user is not a bot /// - public static partial class TdApi + public class GetUser : Function { /// - /// Returns information about a user by their identifier. This is an offline method if the current user is not a bot + /// Data type for serialization /// - public class GetUser : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUser"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUser"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns information about a user by their identifier. This is an offline method if the current user is not a bot + /// User identifier /// - public static Task GetUserAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns information about a user by their identifier. This is an offline method if the current user is not a bot + /// + public static Task GetUserAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new GetUser { - return client.ExecuteAsync(new GetUser - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserChatBoosts.cs b/TdLib.Api/Functions/GetUserChatBoosts.cs index 554f8910..e0b9fc6f 100644 --- a/TdLib.Api/Functions/GetUserChatBoosts.cs +++ b/TdLib.Api/Functions/GetUserChatBoosts.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of boosts applied to a chat by a given user; requires administrator rights in the chat; for bots only /// - public static partial class TdApi + public class GetUserChatBoosts : Function { /// - /// Returns the list of boosts applied to a chat by a given user; requires administrator rights in the chat; for bots only + /// Data type for serialization /// - public class GetUserChatBoosts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUserChatBoosts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserChatBoosts"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns the list of boosts applied to a chat by a given user; requires administrator rights in the chat; for bots only + /// Identifier of the user /// - public static Task GetUserChatBoostsAsync( - this IClient client, long chatId = default, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns the list of boosts applied to a chat by a given user; requires administrator rights in the chat; for bots only + /// + public static Task GetUserChatBoostsAsync( + this IClient client, long chatId = default, long userId = default) + { + return client.ExecuteAsync(new GetUserChatBoosts { - return client.ExecuteAsync(new GetUserChatBoosts - { - ChatId = chatId, UserId = userId - }); - } + ChatId = chatId, UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserFullInfo.cs b/TdLib.Api/Functions/GetUserFullInfo.cs index 938f337a..ff766607 100644 --- a/TdLib.Api/Functions/GetUserFullInfo.cs +++ b/TdLib.Api/Functions/GetUserFullInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns full information about a user by their identifier /// - public static partial class TdApi + public class GetUserFullInfo : Function { /// - /// Returns full information about a user by their identifier + /// Data type for serialization /// - public class GetUserFullInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUserFullInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserFullInfo"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns full information about a user by their identifier + /// User identifier /// - public static Task GetUserFullInfoAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns full information about a user by their identifier + /// + public static Task GetUserFullInfoAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new GetUserFullInfo { - return client.ExecuteAsync(new GetUserFullInfo - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserLink.cs b/TdLib.Api/Functions/GetUserLink.cs index 8169801c..c08f967a 100644 --- a/TdLib.Api/Functions/GetUserLink.cs +++ b/TdLib.Api/Functions/GetUserLink.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS link, which can be used to get information about the current user /// - public static partial class TdApi + public class GetUserLink : Function { /// - /// Returns an HTTPS link, which can be used to get information about the current user + /// Data type for serialization /// - public class GetUserLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUserLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserLink"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Returns an HTTPS link, which can be used to get information about the current user - /// - public static Task GetUserLinkAsync( - this IClient client) + /// + /// Returns an HTTPS link, which can be used to get information about the current user + /// + public static Task GetUserLinkAsync( + this IClient client) + { + return client.ExecuteAsync(new GetUserLink { - return client.ExecuteAsync(new GetUserLink - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserPrivacySettingRules.cs b/TdLib.Api/Functions/GetUserPrivacySettingRules.cs index 72d7e01b..e7e6bd98 100644 --- a/TdLib.Api/Functions/GetUserPrivacySettingRules.cs +++ b/TdLib.Api/Functions/GetUserPrivacySettingRules.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the current privacy settings /// - public static partial class TdApi + public class GetUserPrivacySettingRules : Function { /// - /// Returns the current privacy settings + /// Data type for serialization /// - public class GetUserPrivacySettingRules : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUserPrivacySettingRules"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserPrivacySettingRules"; - /// - /// The privacy setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("setting")] - public UserPrivacySetting Setting { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the current privacy settings + /// The privacy setting /// - public static Task GetUserPrivacySettingRulesAsync( - this IClient client, UserPrivacySetting setting = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("setting")] + public UserPrivacySetting Setting { get; set; } + } + + /// + /// Returns the current privacy settings + /// + public static Task GetUserPrivacySettingRulesAsync( + this IClient client, UserPrivacySetting setting = default) + { + return client.ExecuteAsync(new GetUserPrivacySettingRules { - return client.ExecuteAsync(new GetUserPrivacySettingRules - { - Setting = setting - }); - } + Setting = setting + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserProfileAudios.cs b/TdLib.Api/Functions/GetUserProfileAudios.cs index 34d7ee97..b6bcadd5 100644 --- a/TdLib.Api/Functions/GetUserProfileAudios.cs +++ b/TdLib.Api/Functions/GetUserProfileAudios.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of profile audio files of a user /// - public static partial class TdApi + public class GetUserProfileAudios : Function { /// - /// Returns the list of profile audio files of a user + /// Data type for serialization /// - public class GetUserProfileAudios : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUserProfileAudios"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserProfileAudios"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of audio files to skip; must be non-negative - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The maximum number of audio files to be returned; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The number of audio files to skip; must be non-negative + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns the list of profile audio files of a user + /// The maximum number of audio files to be returned; up to 100 /// - public static Task GetUserProfileAudiosAsync( - this IClient client, long userId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the list of profile audio files of a user + /// + public static Task GetUserProfileAudiosAsync( + this IClient client, long userId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetUserProfileAudios { - return client.ExecuteAsync(new GetUserProfileAudios - { - UserId = userId, Offset = offset, Limit = limit - }); - } + UserId = userId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserProfilePhotos.cs b/TdLib.Api/Functions/GetUserProfilePhotos.cs index 16b501e3..10446404 100644 --- a/TdLib.Api/Functions/GetUserProfilePhotos.cs +++ b/TdLib.Api/Functions/GetUserProfilePhotos.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the profile photos of a user. Personal and public photo aren't returned /// - public static partial class TdApi + public class GetUserProfilePhotos : Function { /// - /// Returns the profile photos of a user. Personal and public photo aren't returned + /// Data type for serialization /// - public class GetUserProfilePhotos : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUserProfilePhotos"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserProfilePhotos"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of photos to skip; must be non-negative - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The maximum number of photos to be returned; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The number of photos to skip; must be non-negative + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Returns the profile photos of a user. Personal and public photo aren't returned + /// The maximum number of photos to be returned; up to 100 /// - public static Task GetUserProfilePhotosAsync( - this IClient client, long userId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns the profile photos of a user. Personal and public photo aren't returned + /// + public static Task GetUserProfilePhotosAsync( + this IClient client, long userId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new GetUserProfilePhotos { - return client.ExecuteAsync(new GetUserProfilePhotos - { - UserId = userId, Offset = offset, Limit = limit - }); - } + UserId = userId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserSupportInfo.cs b/TdLib.Api/Functions/GetUserSupportInfo.cs index 8f70162f..8d7e9210 100644 --- a/TdLib.Api/Functions/GetUserSupportInfo.cs +++ b/TdLib.Api/Functions/GetUserSupportInfo.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns support information for the given user; for Telegram support only /// - public static partial class TdApi + public class GetUserSupportInfo : Function { /// - /// Returns support information for the given user; for Telegram support only + /// Data type for serialization /// - public class GetUserSupportInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getUserSupportInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserSupportInfo"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns support information for the given user; for Telegram support only + /// User identifier /// - public static Task GetUserSupportInfoAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Returns support information for the given user; for Telegram support only + /// + public static Task GetUserSupportInfoAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new GetUserSupportInfo { - return client.ExecuteAsync(new GetUserSupportInfo - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetUserTonWalletAddresses.cs b/TdLib.Api/Functions/GetUserTonWalletAddresses.cs new file mode 100644 index 00000000..26487819 --- /dev/null +++ b/TdLib.Api/Functions/GetUserTonWalletAddresses.cs @@ -0,0 +1,52 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Returns TON wallet addresses of the specified users; can be used only if getOption("can_use_ton_wallet") + /// + public class GetUserTonWalletAddresses : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "getUserTonWalletAddresses"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifiers of the users whose wallet addresses have to be returned. If a user has no TON wallet, it will be skipped in the result + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } + } + + /// + /// Returns TON wallet addresses of the specified users; can be used only if getOption("can_use_ton_wallet") + /// + public static Task GetUserTonWalletAddressesAsync( + this IClient client, long[] userIds = default) + { + return client.ExecuteAsync(new GetUserTonWalletAddresses + { + UserIds = userIds + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetVideoChatAvailableParticipants.cs b/TdLib.Api/Functions/GetVideoChatAvailableParticipants.cs index b88ae554..b99c18f2 100644 --- a/TdLib.Api/Functions/GetVideoChatAvailableParticipants.cs +++ b/TdLib.Api/Functions/GetVideoChatAvailableParticipants.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined /// - public static partial class TdApi + public class GetVideoChatAvailableParticipants : Function { /// - /// Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined + /// Data type for serialization /// - public class GetVideoChatAvailableParticipants : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getVideoChatAvailableParticipants"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getVideoChatAvailableParticipants"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined + /// Chat identifier /// - public static Task GetVideoChatAvailableParticipantsAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns the list of participant identifiers, on whose behalf a video chat in the chat can be joined + /// + public static Task GetVideoChatAvailableParticipantsAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetVideoChatAvailableParticipants { - return client.ExecuteAsync(new GetVideoChatAvailableParticipants - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetVideoChatInviteLink.cs b/TdLib.Api/Functions/GetVideoChatInviteLink.cs index 9c11f696..cc0f9d4f 100644 --- a/TdLib.Api/Functions/GetVideoChatInviteLink.cs +++ b/TdLib.Api/Functions/GetVideoChatInviteLink.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns invite link to a video chat in a public chat /// - public static partial class TdApi + public class GetVideoChatInviteLink : Function { /// - /// Returns invite link to a video chat in a public chat + /// Data type for serialization /// - public class GetVideoChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getVideoChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getVideoChatInviteLink"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the invite link needs to contain an invite hash, passing which to joinVideoChat would allow the invited user to unmute themselves. Requires groupCall.can_be_managed right - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_self_unmute")] - public bool CanSelfUnmute { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Returns invite link to a video chat in a public chat + /// Pass true if the invite link needs to contain an invite hash, passing which to joinVideoChat would allow the invited user to unmute themselves. Requires groupCall.can_be_managed right /// - public static Task GetVideoChatInviteLinkAsync( - this IClient client, int groupCallId = default, bool canSelfUnmute = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("can_self_unmute")] + public bool CanSelfUnmute { get; set; } + } + + /// + /// Returns invite link to a video chat in a public chat + /// + public static Task GetVideoChatInviteLinkAsync( + this IClient client, int groupCallId = default, bool canSelfUnmute = default) + { + return client.ExecuteAsync(new GetVideoChatInviteLink { - return client.ExecuteAsync(new GetVideoChatInviteLink - { - GroupCallId = groupCallId, CanSelfUnmute = canSelfUnmute - }); - } + GroupCallId = groupCallId, CanSelfUnmute = canSelfUnmute + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetVideoChatRtmpUrl.cs b/TdLib.Api/Functions/GetVideoChatRtmpUrl.cs index 26630bf5..eafae2d4 100644 --- a/TdLib.Api/Functions/GetVideoChatRtmpUrl.cs +++ b/TdLib.Api/Functions/GetVideoChatRtmpUrl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns RTMP URL for streaming to the video chat of a chat; requires can_manage_video_chats administrator right /// - public static partial class TdApi + public class GetVideoChatRtmpUrl : Function { /// - /// Returns RTMP URL for streaming to the video chat of a chat; requires can_manage_video_chats administrator right + /// Data type for serialization /// - public class GetVideoChatRtmpUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getVideoChatRtmpUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getVideoChatRtmpUrl"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns RTMP URL for streaming to the video chat of a chat; requires can_manage_video_chats administrator right + /// Chat identifier /// - public static Task GetVideoChatRtmpUrlAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Returns RTMP URL for streaming to the video chat of a chat; requires can_manage_video_chats administrator right + /// + public static Task GetVideoChatRtmpUrlAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new GetVideoChatRtmpUrl { - return client.ExecuteAsync(new GetVideoChatRtmpUrl - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetVideoMessageAdvertisements.cs b/TdLib.Api/Functions/GetVideoMessageAdvertisements.cs index e4fd28df..24eac803 100644 --- a/TdLib.Api/Functions/GetVideoMessageAdvertisements.cs +++ b/TdLib.Api/Functions/GetVideoMessageAdvertisements.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.can_get_video_advertisements /// - public static partial class TdApi + public class GetVideoMessageAdvertisements : Function { /// - /// Returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.can_get_video_advertisements + /// Data type for serialization /// - public class GetVideoMessageAdvertisements : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getVideoMessageAdvertisements"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getVideoMessageAdvertisements"; - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.can_get_video_advertisements + /// Identifier of the message /// - public static Task GetVideoMessageAdvertisementsAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.can_get_video_advertisements + /// + public static Task GetVideoMessageAdvertisementsAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new GetVideoMessageAdvertisements { - return client.ExecuteAsync(new GetVideoMessageAdvertisements - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetWebAppLinkUrl.cs b/TdLib.Api/Functions/GetWebAppLinkUrl.cs index 64bb85a2..d2fdf22d 100644 --- a/TdLib.Api/Functions/GetWebAppLinkUrl.cs +++ b/TdLib.Api/Functions/GetWebAppLinkUrl.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked /// - public static partial class TdApi + public class GetWebAppLinkUrl : Function { /// - /// Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked + /// Data type for serialization /// - public class GetWebAppLinkUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getWebAppLinkUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getWebAppLinkUrl"; - /// - /// Identifier of the chat in which the link was clicked; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Identifier of the chat in which the link was clicked; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Short name of the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_short_name")] - public string WebAppShortName { get; set; } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Start parameter from internalLinkTypeWebApp - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } + /// + /// Short name of the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_short_name")] + public string WebAppShortName { get; set; } - /// - /// Pass true if the current user allowed the bot to send them messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_write_access")] - public bool AllowWriteAccess { get; set; } + /// + /// Start parameter from internalLinkTypeWebApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } - /// - /// Parameters to use to open the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public WebAppOpenParameters Parameters { get; set; } - } + /// + /// Pass true if the current user allowed the bot to send them messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_write_access")] + public bool AllowWriteAccess { get; set; } /// - /// Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked + /// Parameters to use to open the Web App /// - public static Task GetWebAppLinkUrlAsync( - this IClient client, long chatId = default, long botUserId = default, string webAppShortName = default, string startParameter = default, bool allowWriteAccess = default, WebAppOpenParameters parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public WebAppOpenParameters Parameters { get; set; } + } + + /// + /// Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked + /// + public static Task GetWebAppLinkUrlAsync( + this IClient client, long chatId = default, long botUserId = default, string webAppShortName = default, string startParameter = default, bool allowWriteAccess = default, WebAppOpenParameters parameters = default) + { + return client.ExecuteAsync(new GetWebAppLinkUrl { - return client.ExecuteAsync(new GetWebAppLinkUrl - { - ChatId = chatId, BotUserId = botUserId, WebAppShortName = webAppShortName, StartParameter = startParameter, AllowWriteAccess = allowWriteAccess, Parameters = parameters - }); - } + ChatId = chatId, BotUserId = botUserId, WebAppShortName = webAppShortName, StartParameter = startParameter, AllowWriteAccess = allowWriteAccess, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetWebAppPlaceholder.cs b/TdLib.Api/Functions/GetWebAppPlaceholder.cs index 4165d749..f9b2db24 100644 --- a/TdLib.Api/Functions/GetWebAppPlaceholder.cs +++ b/TdLib.Api/Functions/GetWebAppPlaceholder.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns a default placeholder for Web Apps of a bot. This is an offline method. Returns a 404 error if the placeholder isn't known /// - public static partial class TdApi + public class GetWebAppPlaceholder : Function { /// - /// Returns a default placeholder for Web Apps of a bot. This is an offline method. Returns a 404 error if the placeholder isn't known + /// Data type for serialization /// - public class GetWebAppPlaceholder : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getWebAppPlaceholder"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getWebAppPlaceholder"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns a default placeholder for Web Apps of a bot. This is an offline method. Returns a 404 error if the placeholder isn't known + /// Identifier of the target bot /// - public static Task GetWebAppPlaceholderAsync( - this IClient client, long botUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + } + + /// + /// Returns a default placeholder for Web Apps of a bot. This is an offline method. Returns a 404 error if the placeholder isn't known + /// + public static Task GetWebAppPlaceholderAsync( + this IClient client, long botUserId = default) + { + return client.ExecuteAsync(new GetWebAppPlaceholder { - return client.ExecuteAsync(new GetWebAppPlaceholder - { - BotUserId = botUserId - }); - } + BotUserId = botUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetWebAppUrl.cs b/TdLib.Api/Functions/GetWebAppUrl.cs index 1ddd5f92..e925576c 100644 --- a/TdLib.Api/Functions/GetWebAppUrl.cs +++ b/TdLib.Api/Functions/GetWebAppUrl.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an inlineQueryResultsButtonTypeWebApp button /// - public static partial class TdApi + public class GetWebAppUrl : Function { /// - /// Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an inlineQueryResultsButtonTypeWebApp button + /// Data type for serialization /// - public class GetWebAppUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getWebAppUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "getWebAppUrl"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot. If the bot is restricted for the current user, then show an error instead of calling the method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, or an empty string when the bot is opened from the side menu - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Identifier of the target bot. If the bot is restricted for the current user, then show an error instead of calling the method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Parameters to use to open the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public WebAppOpenParameters Parameters { get; set; } - } + /// + /// The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, or an empty string when the bot is opened from the side menu + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } /// - /// Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an inlineQueryResultsButtonTypeWebApp button + /// Parameters to use to open the Web App /// - public static Task GetWebAppUrlAsync( - this IClient client, long botUserId = default, string url = default, WebAppOpenParameters parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public WebAppOpenParameters Parameters { get; set; } + } + + /// + /// Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, or an inlineQueryResultsButtonTypeWebApp button + /// + public static Task GetWebAppUrlAsync( + this IClient client, long botUserId = default, string url = default, WebAppOpenParameters parameters = default) + { + return client.ExecuteAsync(new GetWebAppUrl { - return client.ExecuteAsync(new GetWebAppUrl - { - BotUserId = botUserId, Url = url, Parameters = parameters - }); - } + BotUserId = botUserId, Url = url, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GetWebPageInstantView.cs b/TdLib.Api/Functions/GetWebPageInstantView.cs index b41e01cb..4c6a6e4f 100644 --- a/TdLib.Api/Functions/GetWebPageInstantView.cs +++ b/TdLib.Api/Functions/GetWebPageInstantView.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns an instant view version of a web page if available. This is an offline method if only_local is true. Returns a 404 error if the web page has no instant view page /// - public static partial class TdApi + public class GetWebPageInstantView : Function { /// - /// Returns an instant view version of a web page if available. This is an offline method if only_local is true. Returns a 404 error if the web page has no instant view page + /// Data type for serialization /// - public class GetWebPageInstantView : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "getWebPageInstantView"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "getWebPageInstantView"; - /// - /// The web page URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get only locally available information without sending network requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_local")] - public bool OnlyLocal { get; set; } - } + /// + /// The web page URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } /// - /// Returns an instant view version of a web page if available. This is an offline method if only_local is true. Returns a 404 error if the web page has no instant view page + /// Pass true to get only locally available information without sending network requests /// - public static Task GetWebPageInstantViewAsync( - this IClient client, string url = default, bool onlyLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_local")] + public bool OnlyLocal { get; set; } + } + + /// + /// Returns an instant view version of a web page if available. This is an offline method if only_local is true. Returns a 404 error if the web page has no instant view page + /// + public static Task GetWebPageInstantViewAsync( + this IClient client, string url = default, bool onlyLocal = default) + { + return client.ExecuteAsync(new GetWebPageInstantView { - return client.ExecuteAsync(new GetWebPageInstantView - { - Url = url, OnlyLocal = onlyLocal - }); - } + Url = url, OnlyLocal = onlyLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/GiftPremiumWithStars.cs b/TdLib.Api/Functions/GiftPremiumWithStars.cs index 24fab9db..33b7a91e 100644 --- a/TdLib.Api/Functions/GiftPremiumWithStars.cs +++ b/TdLib.Api/Functions/GiftPremiumWithStars.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only /// - public static partial class TdApi + public class GiftPremiumWithStars : Function { /// - /// Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only + /// Data type for serialization /// - public class GiftPremiumWithStars : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftPremiumWithStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftPremiumWithStars"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user who will receive Telegram Premium - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars to pay for subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Identifier of the user who will receive Telegram Premium + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active for the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// The number of Telegram Stars to pay for subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Number of months the Telegram Premium subscription will be active for the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } /// - /// Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only + /// Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed /// - public static Task GiftPremiumWithStarsAsync( - this IClient client, long userId = default, long starCount = default, int monthCount = default, FormattedText text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + } + + /// + /// Allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only + /// + public static Task GiftPremiumWithStarsAsync( + this IClient client, long userId = default, long starCount = default, int monthCount = default, FormattedText text = default) + { + return client.ExecuteAsync(new GiftPremiumWithStars { - return client.ExecuteAsync(new GiftPremiumWithStars - { - UserId = userId, StarCount = starCount, MonthCount = monthCount, Text = text - }); - } + UserId = userId, StarCount = starCount, MonthCount = monthCount, Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/HideContactCloseBirthdays.cs b/TdLib.Api/Functions/HideContactCloseBirthdays.cs index a9885df0..006b6ac8 100644 --- a/TdLib.Api/Functions/HideContactCloseBirthdays.cs +++ b/TdLib.Api/Functions/HideContactCloseBirthdays.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Hides the list of contacts that have close birthdays for 24 hours /// - public static partial class TdApi + public class HideContactCloseBirthdays : Function { /// - /// Hides the list of contacts that have close birthdays for 24 hours + /// Data type for serialization /// - public class HideContactCloseBirthdays : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "hideContactCloseBirthdays"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "hideContactCloseBirthdays"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Hides the list of contacts that have close birthdays for 24 hours - /// - public static Task HideContactCloseBirthdaysAsync( - this IClient client) + /// + /// Hides the list of contacts that have close birthdays for 24 hours + /// + public static Task HideContactCloseBirthdaysAsync( + this IClient client) + { + return client.ExecuteAsync(new HideContactCloseBirthdays { - return client.ExecuteAsync(new HideContactCloseBirthdays - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/HideSuggestedAction.cs b/TdLib.Api/Functions/HideSuggestedAction.cs index 738b5b29..d229d9fc 100644 --- a/TdLib.Api/Functions/HideSuggestedAction.cs +++ b/TdLib.Api/Functions/HideSuggestedAction.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Hides a suggested action /// - public static partial class TdApi + public class HideSuggestedAction : Function { /// - /// Hides a suggested action + /// Data type for serialization /// - public class HideSuggestedAction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "hideSuggestedAction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "hideSuggestedAction"; - /// - /// Suggested action to hide - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action")] - public SuggestedAction Action { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Hides a suggested action + /// Suggested action to hide /// - public static Task HideSuggestedActionAsync( - this IClient client, SuggestedAction action = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("action")] + public SuggestedAction Action { get; set; } + } + + /// + /// Hides a suggested action + /// + public static Task HideSuggestedActionAsync( + this IClient client, SuggestedAction action = default) + { + return client.ExecuteAsync(new HideSuggestedAction { - return client.ExecuteAsync(new HideSuggestedAction - { - Action = action - }); - } + Action = action + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ImportContacts.cs b/TdLib.Api/Functions/ImportContacts.cs index 92ab5de8..72c66443 100644 --- a/TdLib.Api/Functions/ImportContacts.cs +++ b/TdLib.Api/Functions/ImportContacts.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored /// - public static partial class TdApi + public class ImportContacts : Function { /// - /// Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored + /// Data type for serialization /// - public class ImportContacts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "importContacts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "importContacts"; - /// - /// The list of contacts to import or edit - /// - [JsonProperty("contacts", ItemConverterType = typeof(Converter))] - public ImportedContact[] Contacts { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored + /// The list of contacts to import or edit /// - public static Task ImportContactsAsync( - this IClient client, ImportedContact[] contacts = default) + [JsonProperty("contacts", ItemConverterType = typeof(Converter))] + public ImportedContact[] Contacts { get; set; } + } + + /// + /// Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored + /// + public static Task ImportContactsAsync( + this IClient client, ImportedContact[] contacts = default) + { + return client.ExecuteAsync(new ImportContacts { - return client.ExecuteAsync(new ImportContacts - { - Contacts = contacts - }); - } + Contacts = contacts + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ImportMessages.cs b/TdLib.Api/Functions/ImportMessages.cs index 5bae6101..54d4d2d1 100644 --- a/TdLib.Api/Functions/ImportMessages.cs +++ b/TdLib.Api/Functions/ImportMessages.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Imports messages exported from another application /// - public static partial class TdApi + public class ImportMessages : Function { /// - /// Imports messages exported from another application + /// Data type for serialization /// - public class ImportMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "importMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "importMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info member right - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously uploaded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_file")] - public InputFile MessageFile { get; set; } + /// + /// Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info member right + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be previously uploaded - /// - [JsonProperty("attached_files", ItemConverterType = typeof(Converter))] - public InputFile[] AttachedFiles { get; set; } - } + /// + /// File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously uploaded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_file")] + public InputFile MessageFile { get; set; } /// - /// Imports messages exported from another application + /// Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be previously uploaded /// - public static Task ImportMessagesAsync( - this IClient client, long chatId = default, InputFile messageFile = default, InputFile[] attachedFiles = default) + [JsonProperty("attached_files", ItemConverterType = typeof(Converter))] + public InputFile[] AttachedFiles { get; set; } + } + + /// + /// Imports messages exported from another application + /// + public static Task ImportMessagesAsync( + this IClient client, long chatId = default, InputFile messageFile = default, InputFile[] attachedFiles = default) + { + return client.ExecuteAsync(new ImportMessages { - return client.ExecuteAsync(new ImportMessages - { - ChatId = chatId, MessageFile = messageFile, AttachedFiles = attachedFiles - }); - } + ChatId = chatId, MessageFile = messageFile, AttachedFiles = attachedFiles + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/IncreaseGiftAuctionBid.cs b/TdLib.Api/Functions/IncreaseGiftAuctionBid.cs index 1cc9785c..793e0a9b 100644 --- a/TdLib.Api/Functions/IncreaseGiftAuctionBid.cs +++ b/TdLib.Api/Functions/IncreaseGiftAuctionBid.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Increases a bid for an auction gift without changing gift text and receiver /// - public static partial class TdApi + public class IncreaseGiftAuctionBid : Function { /// - /// Increases a bid for an auction gift without changing gift text and receiver + /// Data type for serialization /// - public class IncreaseGiftAuctionBid : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "increaseGiftAuctionBid"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "increaseGiftAuctionBid"; - /// - /// Identifier of the gift to put the bid on - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars to put in the bid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Identifier of the gift to put the bid on + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } /// - /// Increases a bid for an auction gift without changing gift text and receiver + /// The number of Telegram Stars to put in the bid /// - public static Task IncreaseGiftAuctionBidAsync( - this IClient client, long giftId = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Increases a bid for an auction gift without changing gift text and receiver + /// + public static Task IncreaseGiftAuctionBidAsync( + this IClient client, long giftId = default, long starCount = default) + { + return client.ExecuteAsync(new IncreaseGiftAuctionBid { - return client.ExecuteAsync(new IncreaseGiftAuctionBid - { - GiftId = giftId, StarCount = starCount - }); - } + GiftId = giftId, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/InviteGroupCallParticipant.cs b/TdLib.Api/Functions/InviteGroupCallParticipant.cs index 54a2b77d..b5df4fe0 100644 --- a/TdLib.Api/Functions/InviteGroupCallParticipant.cs +++ b/TdLib.Api/Functions/InviteGroupCallParticipant.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Invites a user to an active group call; for group calls not bound to a chat only. Sends a service message of the type messageGroupCall. + /// The group call can have at most getOption("group_call_participant_count_max") participants /// - public static partial class TdApi + public class InviteGroupCallParticipant : Function { /// - /// Invites a user to an active group call; for group calls not bound to a chat only. Sends a service message of the type messageGroupCall. - /// The group call can have at most getOption("group_call_participant_count_max") participants + /// Data type for serialization /// - public class InviteGroupCallParticipant : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteGroupCallParticipant"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteGroupCallParticipant"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Pass true if the group call is a video call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video")] - public bool IsVideo { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Invites a user to an active group call; for group calls not bound to a chat only. Sends a service message of the type messageGroupCall. - /// The group call can have at most getOption("group_call_participant_count_max") participants + /// Pass true if the group call is a video call /// - public static Task InviteGroupCallParticipantAsync( - this IClient client, int groupCallId = default, long userId = default, bool isVideo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video")] + public bool IsVideo { get; set; } + } + + /// + /// Invites a user to an active group call; for group calls not bound to a chat only. Sends a service message of the type messageGroupCall. + /// The group call can have at most getOption("group_call_participant_count_max") participants + /// + public static Task InviteGroupCallParticipantAsync( + this IClient client, int groupCallId = default, long userId = default, bool isVideo = default) + { + return client.ExecuteAsync(new InviteGroupCallParticipant { - return client.ExecuteAsync(new InviteGroupCallParticipant - { - GroupCallId = groupCallId, UserId = userId, IsVideo = isVideo - }); - } + GroupCallId = groupCallId, UserId = userId, IsVideo = isVideo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/InviteVideoChatParticipants.cs b/TdLib.Api/Functions/InviteVideoChatParticipants.cs index f046fada..550a331d 100644 --- a/TdLib.Api/Functions/InviteVideoChatParticipants.cs +++ b/TdLib.Api/Functions/InviteVideoChatParticipants.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Invites users to an active video chat. Sends a service message of the type messageInviteVideoChatParticipants to the chat bound to the group call /// - public static partial class TdApi + public class InviteVideoChatParticipants : Function { /// - /// Invites users to an active video chat. Sends a service message of the type messageInviteVideoChatParticipants to the chat bound to the group call + /// Data type for serialization /// - public class InviteVideoChatParticipants : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteVideoChatParticipants"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteVideoChatParticipants"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifiers. At most 10 users can be invited simultaneously - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Invites users to an active video chat. Sends a service message of the type messageInviteVideoChatParticipants to the chat bound to the group call + /// User identifiers. At most 10 users can be invited simultaneously /// - public static Task InviteVideoChatParticipantsAsync( - this IClient client, int groupCallId = default, long[] userIds = default) + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } + } + + /// + /// Invites users to an active video chat. Sends a service message of the type messageInviteVideoChatParticipants to the chat bound to the group call + /// + public static Task InviteVideoChatParticipantsAsync( + this IClient client, int groupCallId = default, long[] userIds = default) + { + return client.ExecuteAsync(new InviteVideoChatParticipants { - return client.ExecuteAsync(new InviteVideoChatParticipants - { - GroupCallId = groupCallId, UserIds = userIds - }); - } + GroupCallId = groupCallId, UserIds = userIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/IsLoginEmailAddressRequired.cs b/TdLib.Api/Functions/IsLoginEmailAddressRequired.cs index 96f5d658..7778bc9e 100644 --- a/TdLib.Api/Functions/IsLoginEmailAddressRequired.cs +++ b/TdLib.Api/Functions/IsLoginEmailAddressRequired.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether the current user is required to set login email address /// - public static partial class TdApi + public class IsLoginEmailAddressRequired : Function { /// - /// Checks whether the current user is required to set login email address + /// Data type for serialization /// - public class IsLoginEmailAddressRequired : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "isLoginEmailAddressRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "isLoginEmailAddressRequired"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Checks whether the current user is required to set login email address - /// - public static Task IsLoginEmailAddressRequiredAsync( - this IClient client) + /// + /// Checks whether the current user is required to set login email address + /// + public static Task IsLoginEmailAddressRequiredAsync( + this IClient client) + { + return client.ExecuteAsync(new IsLoginEmailAddressRequired { - return client.ExecuteAsync(new IsLoginEmailAddressRequired - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/IsProfileAudio.cs b/TdLib.Api/Functions/IsProfileAudio.cs index 79a527a3..e0390ac3 100644 --- a/TdLib.Api/Functions/IsProfileAudio.cs +++ b/TdLib.Api/Functions/IsProfileAudio.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Checks whether a file is in the profile audio files of the current user. Returns a 404 error if it isn't /// - public static partial class TdApi + public class IsProfileAudio : Function { /// - /// Checks whether a file is in the profile audio files of the current user. Returns a 404 error if it isn't + /// Data type for serialization /// - public class IsProfileAudio : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "isProfileAudio"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "isProfileAudio"; - /// - /// Identifier of the audio file to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Checks whether a file is in the profile audio files of the current user. Returns a 404 error if it isn't + /// Identifier of the audio file to check /// - public static Task IsProfileAudioAsync( - this IClient client, int fileId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } + } + + /// + /// Checks whether a file is in the profile audio files of the current user. Returns a 404 error if it isn't + /// + public static Task IsProfileAudioAsync( + this IClient client, int fileId = default) + { + return client.ExecuteAsync(new IsProfileAudio { - return client.ExecuteAsync(new IsProfileAudio - { - FileId = fileId - }); - } + FileId = fileId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/JoinChat.cs b/TdLib.Api/Functions/JoinChat.cs index 4abb25f0..8acd954e 100644 --- a/TdLib.Api/Functions/JoinChat.cs +++ b/TdLib.Api/Functions/JoinChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method /// - public static partial class TdApi + public class JoinChat : Function { /// - /// Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method + /// Data type for serialization /// - public class JoinChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "joinChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "joinChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method + /// Chat identifier /// - public static Task JoinChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method + /// + public static Task JoinChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new JoinChat { - return client.ExecuteAsync(new JoinChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/JoinChatByInviteLink.cs b/TdLib.Api/Functions/JoinChatByInviteLink.cs index 4b2e2f59..d596974f 100644 --- a/TdLib.Api/Functions/JoinChatByInviteLink.cs +++ b/TdLib.Api/Functions/JoinChatByInviteLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Uses an invite link to add the current user to the chat if possible /// - public static partial class TdApi + public class JoinChatByInviteLink : Function { /// - /// Uses an invite link to add the current user to the chat if possible + /// Data type for serialization /// - public class JoinChatByInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "joinChatByInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "joinChatByInviteLink"; - /// - /// Invite link to use - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Uses an invite link to add the current user to the chat if possible + /// Invite link to use /// - public static Task JoinChatByInviteLinkAsync( - this IClient client, string inviteLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + } + + /// + /// Uses an invite link to add the current user to the chat if possible + /// + public static Task JoinChatByInviteLinkAsync( + this IClient client, string inviteLink = default) + { + return client.ExecuteAsync(new JoinChatByInviteLink { - return client.ExecuteAsync(new JoinChatByInviteLink - { - InviteLink = inviteLink - }); - } + InviteLink = inviteLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/JoinGroupCall.cs b/TdLib.Api/Functions/JoinGroupCall.cs index ba4e8232..959a123d 100644 --- a/TdLib.Api/Functions/JoinGroupCall.cs +++ b/TdLib.Api/Functions/JoinGroupCall.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Joins a regular group call that is not bound to a chat /// - public static partial class TdApi + public class JoinGroupCall : Function { /// - /// Joins a regular group call that is not bound to a chat + /// Data type for serialization /// - public class JoinGroupCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "joinGroupCall"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "joinGroupCall"; - /// - /// The group call to join - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_group_call")] - public InputGroupCall InputGroupCall { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Parameters to join the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_parameters")] - public GroupCallJoinParameters JoinParameters { get; set; } - } + /// + /// The group call to join + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_group_call")] + public InputGroupCall InputGroupCall { get; set; } /// - /// Joins a regular group call that is not bound to a chat + /// Parameters to join the call /// - public static Task JoinGroupCallAsync( - this IClient client, InputGroupCall inputGroupCall = default, GroupCallJoinParameters joinParameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("join_parameters")] + public GroupCallJoinParameters JoinParameters { get; set; } + } + + /// + /// Joins a regular group call that is not bound to a chat + /// + public static Task JoinGroupCallAsync( + this IClient client, InputGroupCall inputGroupCall = default, GroupCallJoinParameters joinParameters = default) + { + return client.ExecuteAsync(new JoinGroupCall { - return client.ExecuteAsync(new JoinGroupCall - { - InputGroupCall = inputGroupCall, JoinParameters = joinParameters - }); - } + InputGroupCall = inputGroupCall, JoinParameters = joinParameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/JoinLiveStory.cs b/TdLib.Api/Functions/JoinLiveStory.cs index 255c8a50..27748eb6 100644 --- a/TdLib.Api/Functions/JoinLiveStory.cs +++ b/TdLib.Api/Functions/JoinLiveStory.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Joins a group call of an active live story. Returns join response payload for tgcalls /// - public static partial class TdApi + public class JoinLiveStory : Function { /// - /// Joins a group call of an active live story. Returns join response payload for tgcalls + /// Data type for serialization /// - public class JoinLiveStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "joinLiveStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "joinLiveStory"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Parameters to join the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_parameters")] - public GroupCallJoinParameters JoinParameters { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Joins a group call of an active live story. Returns join response payload for tgcalls + /// Parameters to join the call /// - public static Task JoinLiveStoryAsync( - this IClient client, int groupCallId = default, GroupCallJoinParameters joinParameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("join_parameters")] + public GroupCallJoinParameters JoinParameters { get; set; } + } + + /// + /// Joins a group call of an active live story. Returns join response payload for tgcalls + /// + public static Task JoinLiveStoryAsync( + this IClient client, int groupCallId = default, GroupCallJoinParameters joinParameters = default) + { + return client.ExecuteAsync(new JoinLiveStory { - return client.ExecuteAsync(new JoinLiveStory - { - GroupCallId = groupCallId, JoinParameters = joinParameters - }); - } + GroupCallId = groupCallId, JoinParameters = joinParameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/JoinVideoChat.cs b/TdLib.Api/Functions/JoinVideoChat.cs index 09ac63f0..9afdbfe3 100644 --- a/TdLib.Api/Functions/JoinVideoChat.cs +++ b/TdLib.Api/Functions/JoinVideoChat.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Joins an active video chat. Returns join response payload for tgcalls /// - public static partial class TdApi + public class JoinVideoChat : Function { /// - /// Joins an active video chat. Returns join response payload for tgcalls + /// Data type for serialization /// - public class JoinVideoChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "joinVideoChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "joinVideoChat"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a group call participant, which will be used to join the call; pass null to join as self - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Parameters to join the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_parameters")] - public GroupCallJoinParameters JoinParameters { get; set; } + /// + /// Identifier of a group call participant, which will be used to join the call; pass null to join as self + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } - /// - /// Invite hash as received from internalLinkTypeVideoChat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_hash")] - public string InviteHash { get; set; } - } + /// + /// Parameters to join the call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_parameters")] + public GroupCallJoinParameters JoinParameters { get; set; } /// - /// Joins an active video chat. Returns join response payload for tgcalls + /// Invite hash as received from internalLinkTypeVideoChat /// - public static Task JoinVideoChatAsync( - this IClient client, int groupCallId = default, MessageSender participantId = default, GroupCallJoinParameters joinParameters = default, string inviteHash = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_hash")] + public string InviteHash { get; set; } + } + + /// + /// Joins an active video chat. Returns join response payload for tgcalls + /// + public static Task JoinVideoChatAsync( + this IClient client, int groupCallId = default, MessageSender participantId = default, GroupCallJoinParameters joinParameters = default, string inviteHash = default) + { + return client.ExecuteAsync(new JoinVideoChat { - return client.ExecuteAsync(new JoinVideoChat - { - GroupCallId = groupCallId, ParticipantId = participantId, JoinParameters = joinParameters, InviteHash = inviteHash - }); - } + GroupCallId = groupCallId, ParticipantId = participantId, JoinParameters = joinParameters, InviteHash = inviteHash + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LaunchPrepaidGiveaway.cs b/TdLib.Api/Functions/LaunchPrepaidGiveaway.cs index 670caa65..f36223b9 100644 --- a/TdLib.Api/Functions/LaunchPrepaidGiveaway.cs +++ b/TdLib.Api/Functions/LaunchPrepaidGiveaway.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Launches a prepaid giveaway /// - public static partial class TdApi + public class LaunchPrepaidGiveaway : Function { /// - /// Launches a prepaid giveaway + /// Data type for serialization /// - public class LaunchPrepaidGiveaway : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "launchPrepaidGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "launchPrepaidGiveaway"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of the prepaid giveaway - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("giveaway_id")] - public long GiveawayId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Giveaway parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public GiveawayParameters Parameters { get; set; } + /// + /// Unique identifier of the prepaid giveaway + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("giveaway_id")] + public long GiveawayId { get; set; } - /// - /// The number of users to receive giveaway prize - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Giveaway parameters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public GiveawayParameters Parameters { get; set; } - /// - /// The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The number of users to receive giveaway prize + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } /// - /// Launches a prepaid giveaway + /// The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways /// - public static Task LaunchPrepaidGiveawayAsync( - this IClient client, long giveawayId = default, GiveawayParameters parameters = default, int winnerCount = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Launches a prepaid giveaway + /// + public static Task LaunchPrepaidGiveawayAsync( + this IClient client, long giveawayId = default, GiveawayParameters parameters = default, int winnerCount = default, long starCount = default) + { + return client.ExecuteAsync(new LaunchPrepaidGiveaway { - return client.ExecuteAsync(new LaunchPrepaidGiveaway - { - GiveawayId = giveawayId, Parameters = parameters, WinnerCount = winnerCount, StarCount = starCount - }); - } + GiveawayId = giveawayId, Parameters = parameters, WinnerCount = winnerCount, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LeaveChat.cs b/TdLib.Api/Functions/LeaveChat.cs index 6a8869d6..a6cea78c 100644 --- a/TdLib.Api/Functions/LeaveChat.cs +++ b/TdLib.Api/Functions/LeaveChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes the current user from chat members. Private and secret chats can't be left using this method /// - public static partial class TdApi + public class LeaveChat : Function { /// - /// Removes the current user from chat members. Private and secret chats can't be left using this method + /// Data type for serialization /// - public class LeaveChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "leaveChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "leaveChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes the current user from chat members. Private and secret chats can't be left using this method + /// Chat identifier /// - public static Task LeaveChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Removes the current user from chat members. Private and secret chats can't be left using this method + /// + public static Task LeaveChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new LeaveChat { - return client.ExecuteAsync(new LeaveChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LeaveGroupCall.cs b/TdLib.Api/Functions/LeaveGroupCall.cs index 06ddcf1f..4b1e5906 100644 --- a/TdLib.Api/Functions/LeaveGroupCall.cs +++ b/TdLib.Api/Functions/LeaveGroupCall.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Leaves a group call /// - public static partial class TdApi + public class LeaveGroupCall : Function { /// - /// Leaves a group call + /// Data type for serialization /// - public class LeaveGroupCall : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "leaveGroupCall"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "leaveGroupCall"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Leaves a group call + /// Group call identifier /// - public static Task LeaveGroupCallAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Leaves a group call + /// + public static Task LeaveGroupCallAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new LeaveGroupCall { - return client.ExecuteAsync(new LeaveGroupCall - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ListenToAudio.cs b/TdLib.Api/Functions/ListenToAudio.cs index 83a8c095..ff030842 100644 --- a/TdLib.Api/Functions/ListenToAudio.cs +++ b/TdLib.Api/Functions/ListenToAudio.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that an audio was listened by the user /// - public static partial class TdApi + public class ListenToAudio : Function { /// - /// Informs TDLib that an audio was listened by the user + /// Data type for serialization /// - public class ListenToAudio : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "listenToAudio"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "listenToAudio"; - /// - /// Identifier of the file with an audio - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio_file_id")] - public int AudioFileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Duration of the listening to the audio, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } - } + /// + /// Identifier of the file with an audio + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio_file_id")] + public int AudioFileId { get; set; } /// - /// Informs TDLib that an audio was listened by the user + /// Duration of the listening to the audio, in seconds /// - public static Task ListenToAudioAsync( - this IClient client, int audioFileId = default, int duration = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } + } + + /// + /// Informs TDLib that an audio was listened by the user + /// + public static Task ListenToAudioAsync( + this IClient client, int audioFileId = default, int duration = default) + { + return client.ExecuteAsync(new ListenToAudio { - return client.ExecuteAsync(new ListenToAudio - { - AudioFileId = audioFileId, Duration = duration - }); - } + AudioFileId = audioFileId, Duration = duration + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadActiveStories.cs b/TdLib.Api/Functions/LoadActiveStories.cs index 8497a03a..5d5f7065 100644 --- a/TdLib.Api/Functions/LoadActiveStories.cs +++ b/TdLib.Api/Functions/LoadActiveStories.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted by + /// the pair (active_stories.order, active_stories.story_poster_chat_id) in descending order. Returns a 404 error if all active stories have been loaded /// - public static partial class TdApi + public class LoadActiveStories : Function { /// - /// Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted by - /// the pair (active_stories.order, active_stories.story_poster_chat_id) in descending order. Returns a 404 error if all active stories have been loaded + /// Data type for serialization /// - public class LoadActiveStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadActiveStories"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadActiveStories"; - /// - /// The story list in which to load active stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_list")] - public StoryList StoryList { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted by - /// the pair (active_stories.order, active_stories.story_poster_chat_id) in descending order. Returns a 404 error if all active stories have been loaded + /// The story list in which to load active stories /// - public static Task LoadActiveStoriesAsync( - this IClient client, StoryList storyList = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("story_list")] + public StoryList StoryList { get; set; } + } + + /// + /// Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted by + /// the pair (active_stories.order, active_stories.story_poster_chat_id) in descending order. Returns a 404 error if all active stories have been loaded + /// + public static Task LoadActiveStoriesAsync( + this IClient client, StoryList storyList = default) + { + return client.ExecuteAsync(new LoadActiveStories { - return client.ExecuteAsync(new LoadActiveStories - { - StoryList = storyList - }); - } + StoryList = storyList + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadChatWelcomeMessages.cs b/TdLib.Api/Functions/LoadChatWelcomeMessages.cs index 57874ad1..e73f7aee 100644 --- a/TdLib.Api/Functions/LoadChatWelcomeMessages.cs +++ b/TdLib.Api/Functions/LoadChatWelcomeMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. The loaded messages will be sent through updateChatWelcomeMessages /// - public static partial class TdApi + public class LoadChatWelcomeMessages : Function { /// - /// Loads welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. The loaded messages will be sent through updateChatWelcomeMessages + /// Data type for serialization /// - public class LoadChatWelcomeMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadChatWelcomeMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadChatWelcomeMessages"; - /// - /// The identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Loads welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. The loaded messages will be sent through updateChatWelcomeMessages + /// The identifier of the chat /// - public static Task LoadChatWelcomeMessagesAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Loads welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. The loaded messages will be sent through updateChatWelcomeMessages + /// + public static Task LoadChatWelcomeMessagesAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new LoadChatWelcomeMessages { - return client.ExecuteAsync(new LoadChatWelcomeMessages - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadChats.cs b/TdLib.Api/Functions/LoadChats.cs index 8d7f161b..a3f1c665 100644 --- a/TdLib.Api/Functions/LoadChats.cs +++ b/TdLib.Api/Functions/LoadChats.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded /// - public static partial class TdApi + public class LoadChats : Function { /// - /// Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded + /// Data type for serialization /// - public class LoadChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadChats"; - /// - /// The chat list in which to load chats; pass null to load chats from the main chat list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of chats to be loaded. For optimal performance, the number of loaded chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The chat list in which to load chats; pass null to load chats from the main chat list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } /// - /// Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded + /// The maximum number of chats to be loaded. For optimal performance, the number of loaded chats is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached /// - public static Task LoadChatsAsync( - this IClient client, ChatList chatList = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded + /// + public static Task LoadChatsAsync( + this IClient client, ChatList chatList = default, int limit = default) + { + return client.ExecuteAsync(new LoadChats { - return client.ExecuteAsync(new LoadChats - { - ChatList = chatList, Limit = limit - }); - } + ChatList = chatList, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadCommunityFullInfo.cs b/TdLib.Api/Functions/LoadCommunityFullInfo.cs deleted file mode 100644 index ad31434a..00000000 --- a/TdLib.Api/Functions/LoadCommunityFullInfo.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Threading.Tasks; -using Newtonsoft.Json; - -// REUSE-IgnoreStart -namespace TdLib -{ - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi - { - /// - /// Returns full information about a community. The data will be sent through update. - /// - public class LoadCommunityFullInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadCommunityFullInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Community identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } - } - - /// - /// Returns full information about a community. The data will be sent through update. - /// - public static Task LoadCommunityFullInfoAsync( - this IClient client, long communityId = default) - { - return client.ExecuteAsync(new LoadCommunityFullInfo - { - CommunityId = communityId - }); - } - } -} -// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadDirectMessagesChatTopics.cs b/TdLib.Api/Functions/LoadDirectMessagesChatTopics.cs index 1d2832b9..b505993a 100644 --- a/TdLib.Api/Functions/LoadDirectMessagesChatTopics.cs +++ b/TdLib.Api/Functions/LoadDirectMessagesChatTopics.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads more topics in a channel direct messages chat administered by the current user. The loaded topics will be sent through updateDirectMessagesChatTopic. + /// Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded /// - public static partial class TdApi + public class LoadDirectMessagesChatTopics : Function { /// - /// Loads more topics in a channel direct messages chat administered by the current user. The loaded topics will be sent through updateDirectMessagesChatTopic. - /// Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded + /// Data type for serialization /// - public class LoadDirectMessagesChatTopics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadDirectMessagesChatTopics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadDirectMessagesChatTopics"; - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Loads more topics in a channel direct messages chat administered by the current user. The loaded topics will be sent through updateDirectMessagesChatTopic. - /// Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded + /// The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached /// - public static Task LoadDirectMessagesChatTopicsAsync( - this IClient client, long chatId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Loads more topics in a channel direct messages chat administered by the current user. The loaded topics will be sent through updateDirectMessagesChatTopic. + /// Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded + /// + public static Task LoadDirectMessagesChatTopicsAsync( + this IClient client, long chatId = default, int limit = default) + { + return client.ExecuteAsync(new LoadDirectMessagesChatTopics { - return client.ExecuteAsync(new LoadDirectMessagesChatTopics - { - ChatId = chatId, Limit = limit - }); - } + ChatId = chatId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadGroupCallParticipants.cs b/TdLib.Api/Functions/LoadGroupCallParticipants.cs index 3a6ded48..177aa954 100644 --- a/TdLib.Api/Functions/LoadGroupCallParticipants.cs +++ b/TdLib.Api/Functions/LoadGroupCallParticipants.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads more participants of a group call; not supported in live stories. The loaded participants will be received through updates. + /// Use the field groupCall.loaded_all_participants to check whether all participants have already been loaded /// - public static partial class TdApi + public class LoadGroupCallParticipants : Function { /// - /// Loads more participants of a group call; not supported in live stories. The loaded participants will be received through updates. - /// Use the field groupCall.loaded_all_participants to check whether all participants have already been loaded + /// Data type for serialization /// - public class LoadGroupCallParticipants : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadGroupCallParticipants"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadGroupCallParticipants"; - /// - /// Group call identifier. The group call must be previously received through getGroupCall and must be joined or being joined - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of participants to load; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Group call identifier. The group call must be previously received through getGroupCall and must be joined or being joined + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Loads more participants of a group call; not supported in live stories. The loaded participants will be received through updates. - /// Use the field groupCall.loaded_all_participants to check whether all participants have already been loaded + /// The maximum number of participants to load; up to 100 /// - public static Task LoadGroupCallParticipantsAsync( - this IClient client, int groupCallId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Loads more participants of a group call; not supported in live stories. The loaded participants will be received through updates. + /// Use the field groupCall.loaded_all_participants to check whether all participants have already been loaded + /// + public static Task LoadGroupCallParticipantsAsync( + this IClient client, int groupCallId = default, int limit = default) + { + return client.ExecuteAsync(new LoadGroupCallParticipants { - return client.ExecuteAsync(new LoadGroupCallParticipants - { - GroupCallId = groupCallId, Limit = limit - }); - } + GroupCallId = groupCallId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadQuickReplyShortcutMessages.cs b/TdLib.Api/Functions/LoadQuickReplyShortcutMessages.cs index eb46b5eb..d7311664 100644 --- a/TdLib.Api/Functions/LoadQuickReplyShortcutMessages.cs +++ b/TdLib.Api/Functions/LoadQuickReplyShortcutMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads quick reply messages that can be sent by a given quick reply shortcut. The loaded messages will be sent through updateQuickReplyShortcutMessages /// - public static partial class TdApi + public class LoadQuickReplyShortcutMessages : Function { /// - /// Loads quick reply messages that can be sent by a given quick reply shortcut. The loaded messages will be sent through updateQuickReplyShortcutMessages + /// Data type for serialization /// - public class LoadQuickReplyShortcutMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadQuickReplyShortcutMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadQuickReplyShortcutMessages"; - /// - /// Unique identifier of the quick reply shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Loads quick reply messages that can be sent by a given quick reply shortcut. The loaded messages will be sent through updateQuickReplyShortcutMessages + /// Unique identifier of the quick reply shortcut /// - public static Task LoadQuickReplyShortcutMessagesAsync( - this IClient client, int shortcutId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } + } + + /// + /// Loads quick reply messages that can be sent by a given quick reply shortcut. The loaded messages will be sent through updateQuickReplyShortcutMessages + /// + public static Task LoadQuickReplyShortcutMessagesAsync( + this IClient client, int shortcutId = default) + { + return client.ExecuteAsync(new LoadQuickReplyShortcutMessages { - return client.ExecuteAsync(new LoadQuickReplyShortcutMessages - { - ShortcutId = shortcutId - }); - } + ShortcutId = shortcutId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadQuickReplyShortcuts.cs b/TdLib.Api/Functions/LoadQuickReplyShortcuts.cs index 6a43517c..e1738630 100644 --- a/TdLib.Api/Functions/LoadQuickReplyShortcuts.cs +++ b/TdLib.Api/Functions/LoadQuickReplyShortcuts.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads quick reply shortcuts created by the current user. The loaded data will be sent through updateQuickReplyShortcut and updateQuickReplyShortcuts /// - public static partial class TdApi + public class LoadQuickReplyShortcuts : Function { /// - /// Loads quick reply shortcuts created by the current user. The loaded data will be sent through updateQuickReplyShortcut and updateQuickReplyShortcuts + /// Data type for serialization /// - public class LoadQuickReplyShortcuts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadQuickReplyShortcuts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadQuickReplyShortcuts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Loads quick reply shortcuts created by the current user. The loaded data will be sent through updateQuickReplyShortcut and updateQuickReplyShortcuts - /// - public static Task LoadQuickReplyShortcutsAsync( - this IClient client) + /// + /// Loads quick reply shortcuts created by the current user. The loaded data will be sent through updateQuickReplyShortcut and updateQuickReplyShortcuts + /// + public static Task LoadQuickReplyShortcutsAsync( + this IClient client) + { + return client.ExecuteAsync(new LoadQuickReplyShortcuts { - return client.ExecuteAsync(new LoadQuickReplyShortcuts - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadSavedMessagesTopics.cs b/TdLib.Api/Functions/LoadSavedMessagesTopics.cs index 8ae4f9c5..c4fdddd9 100644 --- a/TdLib.Api/Functions/LoadSavedMessagesTopics.cs +++ b/TdLib.Api/Functions/LoadSavedMessagesTopics.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded /// - public static partial class TdApi + public class LoadSavedMessagesTopics : Function { /// - /// Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded + /// Data type for serialization /// - public class LoadSavedMessagesTopics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loadSavedMessagesTopics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadSavedMessagesTopics"; - /// - /// The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded + /// The maximum number of topics to be loaded. For optimal performance, the number of loaded topics is chosen by TDLib and can be smaller than the specified limit, even if the end of the list is not reached /// - public static Task LoadSavedMessagesTopicsAsync( - this IClient client, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Loads more Saved Messages topics. The loaded topics will be sent through updateSavedMessagesTopic. Topics are sorted by their topic.order in descending order. Returns a 404 error if all topics have been loaded + /// + public static Task LoadSavedMessagesTopicsAsync( + this IClient client, int limit = default) + { + return client.ExecuteAsync(new LoadSavedMessagesTopics { - return client.ExecuteAsync(new LoadSavedMessagesTopics - { - Limit = limit - }); - } + Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadTonWalletGaslessTransfersInfo.cs b/TdLib.Api/Functions/LoadTonWalletGaslessTransfersInfo.cs new file mode 100644 index 00000000..6519f402 --- /dev/null +++ b/TdLib.Api/Functions/LoadTonWalletGaslessTransfersInfo.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Loads or reloads the current state of gasless transfers for the current user; can be used only if getOption("can_use_ton_wallet") + /// + public class LoadTonWalletGaslessTransfersInfo : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadTonWalletGaslessTransfersInfo"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + + /// + /// Loads or reloads the current state of gasless transfers for the current user; can be used only if getOption("can_use_ton_wallet") + /// + public static Task LoadTonWalletGaslessTransfersInfoAsync( + this IClient client) + { + return client.ExecuteAsync(new LoadTonWalletGaslessTransfersInfo + { + + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LoadTonWalletState.cs b/TdLib.Api/Functions/LoadTonWalletState.cs new file mode 100644 index 00000000..fcc69113 --- /dev/null +++ b/TdLib.Api/Functions/LoadTonWalletState.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Loads state of the TON wallet of the current user; can be used only if getOption("can_use_ton_wallet") + /// + public class LoadTonWalletState : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "loadTonWalletState"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + + /// + /// Loads state of the TON wallet of the current user; can be used only if getOption("can_use_ton_wallet") + /// + public static Task LoadTonWalletStateAsync( + this IClient client) + { + return client.ExecuteAsync(new LoadTonWalletState + { + + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/LogOut.cs b/TdLib.Api/Functions/LogOut.cs index aeba03b5..7f80b8a1 100644 --- a/TdLib.Api/Functions/LogOut.cs +++ b/TdLib.Api/Functions/LogOut.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent /// - public static partial class TdApi + public class LogOut : Function { /// - /// Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent + /// Data type for serialization /// - public class LogOut : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "logOut"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "logOut"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent - /// - public static Task LogOutAsync( - this IClient client) + /// + /// Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent + /// + public static Task LogOutAsync( + this IClient client) + { + return client.ExecuteAsync(new LogOut { - return client.ExecuteAsync(new LogOut - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/MarkChecklistTasksAsDone.cs b/TdLib.Api/Functions/MarkChecklistTasksAsDone.cs index c2422357..283c007f 100644 --- a/TdLib.Api/Functions/MarkChecklistTasksAsDone.cs +++ b/TdLib.Api/Functions/MarkChecklistTasksAsDone.cs @@ -3,68 +3,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds tasks of a checklist in a message as done or not done /// - public static partial class TdApi + public class MarkChecklistTasksAsDone : Function { /// - /// Adds tasks of a checklist in a message as done or not done + /// Data type for serialization /// - public class MarkChecklistTasksAsDone : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "markChecklistTasksAsDone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "markChecklistTasksAsDone"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the checklist. Use messageProperties.can_mark_tasks_as_done to check whether the tasks can be marked as done or not done - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifiers of tasks that were marked as done - /// - [JsonProperty("marked_as_done_task_ids", ItemConverterType = typeof(Converter))] - public int[] MarkedAsDoneTaskIds { get; set; } + /// + /// Identifier of the message containing the checklist. Use messageProperties.can_mark_tasks_as_done to check whether the tasks can be marked as done or not done + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Identifiers of tasks that were marked as not done - /// - [JsonProperty("marked_as_not_done_task_ids", ItemConverterType = typeof(Converter))] - public int[] MarkedAsNotDoneTaskIds { get; set; } - } + /// + /// Identifiers of tasks that were marked as done + /// + [JsonProperty("marked_as_done_task_ids", ItemConverterType = typeof(Converter))] + public int[] MarkedAsDoneTaskIds { get; set; } /// - /// Adds tasks of a checklist in a message as done or not done + /// Identifiers of tasks that were marked as not done /// - public static Task MarkChecklistTasksAsDoneAsync( - this IClient client, long chatId = default, long messageId = default, int[] markedAsDoneTaskIds = default, int[] markedAsNotDoneTaskIds = default) + [JsonProperty("marked_as_not_done_task_ids", ItemConverterType = typeof(Converter))] + public int[] MarkedAsNotDoneTaskIds { get; set; } + } + + /// + /// Adds tasks of a checklist in a message as done or not done + /// + public static Task MarkChecklistTasksAsDoneAsync( + this IClient client, long chatId = default, long messageId = default, int[] markedAsDoneTaskIds = default, int[] markedAsNotDoneTaskIds = default) + { + return client.ExecuteAsync(new MarkChecklistTasksAsDone { - return client.ExecuteAsync(new MarkChecklistTasksAsDone - { - ChatId = chatId, MessageId = messageId, MarkedAsDoneTaskIds = markedAsDoneTaskIds, MarkedAsNotDoneTaskIds = markedAsNotDoneTaskIds - }); - } + ChatId = chatId, MessageId = messageId, MarkedAsDoneTaskIds = markedAsDoneTaskIds, MarkedAsNotDoneTaskIds = markedAsNotDoneTaskIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenBotSimilarBot.cs b/TdLib.Api/Functions/OpenBotSimilarBot.cs index 1179276e..a8b6e2bc 100644 --- a/TdLib.Api/Functions/OpenBotSimilarBot.cs +++ b/TdLib.Api/Functions/OpenBotSimilarBot.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a bot was opened from the list of similar bots /// - public static partial class TdApi + public class OpenBotSimilarBot : Function { /// - /// Informs TDLib that a bot was opened from the list of similar bots + /// Data type for serialization /// - public class OpenBotSimilarBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openBotSimilarBot"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openBotSimilarBot"; - /// - /// Identifier of the original bot, which similar bots were requested - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the opened bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("opened_bot_user_id")] - public long OpenedBotUserId { get; set; } - } + /// + /// Identifier of the original bot, which similar bots were requested + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Informs TDLib that a bot was opened from the list of similar bots + /// Identifier of the opened bot /// - public static Task OpenBotSimilarBotAsync( - this IClient client, long botUserId = default, long openedBotUserId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("opened_bot_user_id")] + public long OpenedBotUserId { get; set; } + } + + /// + /// Informs TDLib that a bot was opened from the list of similar bots + /// + public static Task OpenBotSimilarBotAsync( + this IClient client, long botUserId = default, long openedBotUserId = default) + { + return client.ExecuteAsync(new OpenBotSimilarBot { - return client.ExecuteAsync(new OpenBotSimilarBot - { - BotUserId = botUserId, OpenedBotUserId = openedBotUserId - }); - } + BotUserId = botUserId, OpenedBotUserId = openedBotUserId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenChat.cs b/TdLib.Api/Functions/OpenChat.cs index 0d4c0c1f..d846609c 100644 --- a/TdLib.Api/Functions/OpenChat.cs +++ b/TdLib.Api/Functions/OpenChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats) /// - public static partial class TdApi + public class OpenChat : Function { /// - /// Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats) + /// Data type for serialization /// - public class OpenChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats) + /// Chat identifier /// - public static Task OpenChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats) + /// + public static Task OpenChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new OpenChat { - return client.ExecuteAsync(new OpenChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenChatSimilarChat.cs b/TdLib.Api/Functions/OpenChatSimilarChat.cs index 2fa5fb95..4dc97e7e 100644 --- a/TdLib.Api/Functions/OpenChatSimilarChat.cs +++ b/TdLib.Api/Functions/OpenChatSimilarChat.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat methods /// - public static partial class TdApi + public class OpenChatSimilarChat : Function { /// - /// Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat methods + /// Data type for serialization /// - public class OpenChatSimilarChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openChatSimilarChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openChatSimilarChat"; - /// - /// Identifier of the original chat, which similar chats were requested - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the opened chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("opened_chat_id")] - public long OpenedChatId { get; set; } - } + /// + /// Identifier of the original chat, which similar chats were requested + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat methods + /// Identifier of the opened chat /// - public static Task OpenChatSimilarChatAsync( - this IClient client, long chatId = default, long openedChatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("opened_chat_id")] + public long OpenedChatId { get; set; } + } + + /// + /// Informs TDLib that a chat was opened from the list of similar chats. The method is independent of openChat and closeChat methods + /// + public static Task OpenChatSimilarChatAsync( + this IClient client, long chatId = default, long openedChatId = default) + { + return client.ExecuteAsync(new OpenChatSimilarChat { - return client.ExecuteAsync(new OpenChatSimilarChat - { - ChatId = chatId, OpenedChatId = openedChatId - }); - } + ChatId = chatId, OpenedChatId = openedChatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenGiftAuction.cs b/TdLib.Api/Functions/OpenGiftAuction.cs index c66ca49e..7f77e893 100644 --- a/TdLib.Api/Functions/OpenGiftAuction.cs +++ b/TdLib.Api/Functions/OpenGiftAuction.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a gift auction was opened by the user /// - public static partial class TdApi + public class OpenGiftAuction : Function { /// - /// Informs TDLib that a gift auction was opened by the user + /// Data type for serialization /// - public class OpenGiftAuction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openGiftAuction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openGiftAuction"; - /// - /// Identifier of the gift, which auction was opened - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that a gift auction was opened by the user + /// Identifier of the gift, which auction was opened /// - public static Task OpenGiftAuctionAsync( - this IClient client, long giftId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } + } + + /// + /// Informs TDLib that a gift auction was opened by the user + /// + public static Task OpenGiftAuctionAsync( + this IClient client, long giftId = default) + { + return client.ExecuteAsync(new OpenGiftAuction { - return client.ExecuteAsync(new OpenGiftAuction - { - GiftId = giftId - }); - } + GiftId = giftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenMessageContent.cs b/TdLib.Api/Functions/OpenMessageContent.cs index 63d532cf..4d51f472 100644 --- a/TdLib.Api/Functions/OpenMessageContent.cs +++ b/TdLib.Api/Functions/OpenMessageContent.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). + /// An updateMessageContentOpened update will be generated if something has changed /// - public static partial class TdApi + public class OpenMessageContent : Function { /// - /// Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). - /// An updateMessageContentOpened update will be generated if something has changed + /// Data type for serialization /// - public class OpenMessageContent : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openMessageContent"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openMessageContent"; - /// - /// Chat identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the opened content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Chat identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). - /// An updateMessageContentOpened update will be generated if something has changed + /// Identifier of the message with the opened content /// - public static Task OpenMessageContentAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). + /// An updateMessageContentOpened update will be generated if something has changed + /// + public static Task OpenMessageContentAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new OpenMessageContent { - return client.ExecuteAsync(new OpenMessageContent - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenSponsoredChat.cs b/TdLib.Api/Functions/OpenSponsoredChat.cs index 7cfa3741..341a7299 100644 --- a/TdLib.Api/Functions/OpenSponsoredChat.cs +++ b/TdLib.Api/Functions/OpenSponsoredChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the user opened a sponsored chat /// - public static partial class TdApi + public class OpenSponsoredChat : Function { /// - /// Informs TDLib that the user opened a sponsored chat + /// Data type for serialization /// - public class OpenSponsoredChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openSponsoredChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openSponsoredChat"; - /// - /// Unique identifier of the sponsored chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sponsored_chat_unique_id")] - public long SponsoredChatUniqueId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that the user opened a sponsored chat + /// Unique identifier of the sponsored chat /// - public static Task OpenSponsoredChatAsync( - this IClient client, long sponsoredChatUniqueId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sponsored_chat_unique_id")] + public long SponsoredChatUniqueId { get; set; } + } + + /// + /// Informs TDLib that the user opened a sponsored chat + /// + public static Task OpenSponsoredChatAsync( + this IClient client, long sponsoredChatUniqueId = default) + { + return client.ExecuteAsync(new OpenSponsoredChat { - return client.ExecuteAsync(new OpenSponsoredChat - { - SponsoredChatUniqueId = sponsoredChatUniqueId - }); - } + SponsoredChatUniqueId = sponsoredChatUniqueId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenStory.cs b/TdLib.Api/Functions/OpenStory.cs index aff24a41..ec28e5fd 100644 --- a/TdLib.Api/Functions/OpenStory.cs +++ b/TdLib.Api/Functions/OpenStory.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a story is opened and is being viewed by the user /// - public static partial class TdApi + public class OpenStory : Function { /// - /// Informs TDLib that a story is opened and is being viewed by the user + /// Data type for serialization /// - public class OpenStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openStory"; - /// - /// The identifier of the chat that posted the opened story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// The identifier of the chat that posted the opened story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } /// - /// Informs TDLib that a story is opened and is being viewed by the user + /// The identifier of the story /// - public static Task OpenStoryAsync( - this IClient client, long storyPosterChatId = default, int storyId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } + } + + /// + /// Informs TDLib that a story is opened and is being viewed by the user + /// + public static Task OpenStoryAsync( + this IClient client, long storyPosterChatId = default, int storyId = default) + { + return client.ExecuteAsync(new OpenStory { - return client.ExecuteAsync(new OpenStory - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OpenWebApp.cs b/TdLib.Api/Functions/OpenWebApp.cs index 61a75b0b..340fa944 100644 --- a/TdLib.Api/Functions/OpenWebApp.cs +++ b/TdLib.Api/Functions/OpenWebApp.cs @@ -3,86 +3,88 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. + /// For each bot, a confirmation alert about data sent to the bot must be shown once /// - public static partial class TdApi + public class OpenWebApp : Function { /// - /// Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. - /// For each bot, a confirmation alert about data sent to the bot must be shown once + /// Data type for serialization /// - public class OpenWebApp : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "openWebApp"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "openWebApp"; - /// - /// Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot, providing the Web App. If the bot is restricted for the current user, then show an error instead of calling the method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Identifier of the bot, providing the Web App. If the bot is restricted for the current user, then show an error instead of calling the method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Topic in which the message will be sent; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Information about the message or story to be replied in the message sent by the Web App; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Topic in which the message will be sent; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Parameters to use to open the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public WebAppOpenParameters Parameters { get; set; } - } + /// + /// Information about the message or story to be replied in the message sent by the Web App; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } /// - /// Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. - /// For each bot, a confirmation alert about data sent to the bot must be shown once + /// Parameters to use to open the Web App /// - public static Task OpenWebAppAsync( - this IClient client, long chatId = default, long botUserId = default, string url = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, WebAppOpenParameters parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public WebAppOpenParameters Parameters { get; set; } + } + + /// + /// Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. + /// For each bot, a confirmation alert about data sent to the bot must be shown once + /// + public static Task OpenWebAppAsync( + this IClient client, long chatId = default, long botUserId = default, string url = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, WebAppOpenParameters parameters = default) + { + return client.ExecuteAsync(new OpenWebApp { - return client.ExecuteAsync(new OpenWebApp - { - ChatId = chatId, BotUserId = botUserId, Url = url, TopicId = topicId, ReplyTo = replyTo, Parameters = parameters - }); - } + ChatId = chatId, BotUserId = botUserId, Url = url, TopicId = topicId, ReplyTo = replyTo, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/OptimizeStorage.cs b/TdLib.Api/Functions/OptimizeStorage.cs index 10ba28ff..af4ac0ca 100644 --- a/TdLib.Api/Functions/OptimizeStorage.cs +++ b/TdLib.Api/Functions/OptimizeStorage.cs @@ -3,102 +3,104 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted /// - public static partial class TdApi + public class OptimizeStorage : Function { /// - /// Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted + /// Data type for serialization /// - public class OptimizeStorage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "optimizeStorage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "optimizeStorage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Limit on the total size of files after deletion, in bytes. Pass -1 to use the default limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public long Size { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Limit on the time that has passed since the last time a file was accessed (or creation time for some filesystems). Pass -1 to use the default limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ttl")] - public int Ttl { get; set; } + /// + /// Limit on the total size of files after deletion, in bytes. Pass -1 to use the default limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public long Size { get; set; } - /// - /// Limit on the total number of files after deletion. Pass -1 to use the default limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public int Count { get; set; } + /// + /// Limit on the time that has passed since the last time a file was accessed (or creation time for some filesystems). Pass -1 to use the default limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ttl")] + public int Ttl { get; set; } - /// - /// The amount of time after the creation of a file during which it can't be deleted, in seconds. Pass -1 to use the default value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("immunity_delay")] - public int ImmunityDelay { get; set; } + /// + /// Limit on the total number of files after deletion. Pass -1 to use the default limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public int Count { get; set; } - /// - /// If non-empty, only files with the given types are considered. By default, all types except thumbnails, profile photos, stickers and wallpapers are deleted - /// - [JsonProperty("file_types", ItemConverterType = typeof(Converter))] - public FileType[] FileTypes { get; set; } + /// + /// The amount of time after the creation of a file during which it can't be deleted, in seconds. Pass -1 to use the default value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("immunity_delay")] + public int ImmunityDelay { get; set; } - /// - /// If non-empty, only files from the given chats are considered. Use 0 as chat identifier to delete files not belonging to any chat (e.g., profile photos) - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } + /// + /// If non-empty, only files with the given types are considered. By default, all types except thumbnails, profile photos, stickers and wallpapers are deleted + /// + [JsonProperty("file_types", ItemConverterType = typeof(Converter))] + public FileType[] FileTypes { get; set; } - /// - /// If non-empty, files from the given chats are excluded. Use 0 as chat identifier to exclude all files not belonging to any chat (e.g., profile photos) - /// - [JsonProperty("exclude_chat_ids", ItemConverterType = typeof(Converter))] - public long[] ExcludeChatIds { get; set; } + /// + /// If non-empty, only files from the given chats are considered. Use 0 as chat identifier to delete files not belonging to any chat (e.g., profile photos) + /// + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } - /// - /// Pass true if statistics about the files that were deleted must be returned instead of the whole storage usage statistics. Affects only returned statistics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_deleted_file_statistics")] - public bool ReturnDeletedFileStatistics { get; set; } + /// + /// If non-empty, files from the given chats are excluded. Use 0 as chat identifier to exclude all files not belonging to any chat (e.g., profile photos) + /// + [JsonProperty("exclude_chat_ids", ItemConverterType = typeof(Converter))] + public long[] ExcludeChatIds { get; set; } - /// - /// Same as in getStorageStatistics. Affects only returned statistics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_limit")] - public int ChatLimit { get; set; } - } + /// + /// Pass true if statistics about the files that were deleted must be returned instead of the whole storage usage statistics. Affects only returned statistics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("return_deleted_file_statistics")] + public bool ReturnDeletedFileStatistics { get; set; } /// - /// Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted + /// Same as in getStorageStatistics. Affects only returned statistics /// - public static Task OptimizeStorageAsync( - this IClient client, long size = default, int ttl = default, int count = default, int immunityDelay = default, FileType[] fileTypes = default, long[] chatIds = default, long[] excludeChatIds = default, bool returnDeletedFileStatistics = default, int chatLimit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_limit")] + public int ChatLimit { get; set; } + } + + /// + /// Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted + /// + public static Task OptimizeStorageAsync( + this IClient client, long size = default, int ttl = default, int count = default, int immunityDelay = default, FileType[] fileTypes = default, long[] chatIds = default, long[] excludeChatIds = default, bool returnDeletedFileStatistics = default, int chatLimit = default) + { + return client.ExecuteAsync(new OptimizeStorage { - return client.ExecuteAsync(new OptimizeStorage - { - Size = size, Ttl = ttl, Count = count, ImmunityDelay = immunityDelay, FileTypes = fileTypes, ChatIds = chatIds, ExcludeChatIds = excludeChatIds, ReturnDeletedFileStatistics = returnDeletedFileStatistics, ChatLimit = chatLimit - }); - } + Size = size, Ttl = ttl, Count = count, ImmunityDelay = immunityDelay, FileTypes = fileTypes, ChatIds = chatIds, ExcludeChatIds = excludeChatIds, ReturnDeletedFileStatistics = returnDeletedFileStatistics, ChatLimit = chatLimit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ParseMarkdown.cs b/TdLib.Api/Functions/ParseMarkdown.cs index fdf58ee9..90759f4d 100644 --- a/TdLib.Api/Functions/ParseMarkdown.cs +++ b/TdLib.Api/Functions/ParseMarkdown.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously /// - public static partial class TdApi + public class ParseMarkdown : Function { /// - /// Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously + /// Data type for serialization /// - public class ParseMarkdown : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "parseMarkdown"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "parseMarkdown"; - /// - /// The text to parse. For example, "__italic__ ~~strikethrough~~ ||spoiler|| **bold** `code` ```pre``` __[italic__ text_url](telegram.org) __italic**bold italic__bold**" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously + /// The text to parse. For example, "__italic__ ~~strikethrough~~ ||spoiler|| **bold** `code` ```pre``` __[italic__ text_url](telegram.org) __italic**bold italic__bold**" /// - public static Task ParseMarkdownAsync( - this IClient client, FormattedText text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + } + + /// + /// Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously + /// + public static Task ParseMarkdownAsync( + this IClient client, FormattedText text = default) + { + return client.ExecuteAsync(new ParseMarkdown { - return client.ExecuteAsync(new ParseMarkdown - { - Text = text - }); - } + Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ParseTextEntities.cs b/TdLib.Api/Functions/ParseTextEntities.cs index 61189c80..9c3ad00f 100644 --- a/TdLib.Api/Functions/ParseTextEntities.cs +++ b/TdLib.Api/Functions/ParseTextEntities.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl, + /// MentionName, and DateTime entities from a marked-up text. Can be called synchronously /// - public static partial class TdApi + public class ParseTextEntities : Function { /// - /// Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl, - /// MentionName, and DateTime entities from a marked-up text. Can be called synchronously + /// Data type for serialization /// - public class ParseTextEntities : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "parseTextEntities"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "parseTextEntities"; - /// - /// The text to parse - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text parse mode - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parse_mode")] - public TextParseMode ParseMode { get; set; } - } + /// + /// The text to parse + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } /// - /// Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl, - /// MentionName, and DateTime entities from a marked-up text. Can be called synchronously + /// Text parse mode /// - public static Task ParseTextEntitiesAsync( - this IClient client, string text = default, TextParseMode parseMode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parse_mode")] + public TextParseMode ParseMode { get; set; } + } + + /// + /// Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl, + /// MentionName, and DateTime entities from a marked-up text. Can be called synchronously + /// + public static Task ParseTextEntitiesAsync( + this IClient client, string text = default, TextParseMode parseMode = default) + { + return client.ExecuteAsync(new ParseTextEntities { - return client.ExecuteAsync(new ParseTextEntities - { - Text = text, ParseMode = parseMode - }); - } + Text = text, ParseMode = parseMode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/PinChatMessage.cs b/TdLib.Api/Functions/PinChatMessage.cs index 97ea8dbe..b599bc76 100644 --- a/TdLib.Api/Functions/PinChatMessage.cs +++ b/TdLib.Api/Functions/PinChatMessage.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned /// - public static partial class TdApi + public class PinChatMessage : Function { /// - /// Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned + /// Data type for serialization /// - public class PinChatMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pinChatMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pinChatMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the new pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_notification")] - public bool DisableNotification { get; set; } + /// + /// Identifier of the new pinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Pass true to pin the message only for self; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_for_self")] - public bool OnlyForSelf { get; set; } - } + /// + /// Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_notification")] + public bool DisableNotification { get; set; } /// - /// Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned + /// Pass true to pin the message only for self; private chats only /// - public static Task PinChatMessageAsync( - this IClient client, long chatId = default, long messageId = default, bool disableNotification = default, bool onlyForSelf = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_for_self")] + public bool OnlyForSelf { get; set; } + } + + /// + /// Pins a message in a chat. A message can be pinned only if messageProperties.can_be_pinned + /// + public static Task PinChatMessageAsync( + this IClient client, long chatId = default, long messageId = default, bool disableNotification = default, bool onlyForSelf = default) + { + return client.ExecuteAsync(new PinChatMessage { - return client.ExecuteAsync(new PinChatMessage - { - ChatId = chatId, MessageId = messageId, DisableNotification = disableNotification, OnlyForSelf = onlyForSelf - }); - } + ChatId = chatId, MessageId = messageId, DisableNotification = disableNotification, OnlyForSelf = onlyForSelf + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/PingProxy.cs b/TdLib.Api/Functions/PingProxy.cs index 3e5c07e5..078d76a6 100644 --- a/TdLib.Api/Functions/PingProxy.cs +++ b/TdLib.Api/Functions/PingProxy.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization /// - public static partial class TdApi + public class PingProxy : Function { /// - /// Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization + /// Data type for serialization /// - public class PingProxy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pingProxy"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "pingProxy"; - /// - /// The proxy to test; pass null to ping a Telegram server without a proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy")] - public Proxy Proxy { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization + /// The proxy to test; pass null to ping a Telegram server without a proxy /// - public static Task PingProxyAsync( - this IClient client, Proxy proxy = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy")] + public Proxy Proxy { get; set; } + } + + /// + /// Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization + /// + public static Task PingProxyAsync( + this IClient client, Proxy proxy = default) + { + return client.ExecuteAsync(new PingProxy { - return client.ExecuteAsync(new PingProxy - { - Proxy = proxy - }); - } + Proxy = proxy + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/PlaceGiftAuctionBid.cs b/TdLib.Api/Functions/PlaceGiftAuctionBid.cs index 57d34c7e..6d6366cf 100644 --- a/TdLib.Api/Functions/PlaceGiftAuctionBid.cs +++ b/TdLib.Api/Functions/PlaceGiftAuctionBid.cs @@ -3,78 +3,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Places a bid on an auction gift /// - public static partial class TdApi + public class PlaceGiftAuctionBid : Function { /// - /// Places a bid on an auction gift + /// Data type for serialization /// - public class PlaceGiftAuctionBid : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "placeGiftAuctionBid"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "placeGiftAuctionBid"; - /// - /// Identifier of the gift to place the bid on - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars to place in the bid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Identifier of the gift to place the bid on + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } - /// - /// Identifier of the user who will receive the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// The number of Telegram Stars to place in the bid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. - /// Must be empty if the receiver enabled paid messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Identifier of the user who will receive the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_private")] - public bool IsPrivate { get; set; } - } + /// + /// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. + /// Must be empty if the receiver enabled paid messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } /// - /// Places a bid on an auction gift + /// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them /// - public static Task PlaceGiftAuctionBidAsync( - this IClient client, long giftId = default, long starCount = default, long userId = default, FormattedText text = default, bool isPrivate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_private")] + public bool IsPrivate { get; set; } + } + + /// + /// Places a bid on an auction gift + /// + public static Task PlaceGiftAuctionBidAsync( + this IClient client, long giftId = default, long starCount = default, long userId = default, FormattedText text = default, bool isPrivate = default) + { + return client.ExecuteAsync(new PlaceGiftAuctionBid { - return client.ExecuteAsync(new PlaceGiftAuctionBid - { - GiftId = giftId, StarCount = starCount, UserId = userId, Text = text, IsPrivate = isPrivate - }); - } + GiftId = giftId, StarCount = starCount, UserId = userId, Text = text, IsPrivate = isPrivate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/PostStory.cs b/TdLib.Api/Functions/PostStory.cs index b23bae84..8cf77d39 100644 --- a/TdLib.Api/Functions/PostStory.cs +++ b/TdLib.Api/Functions/PostStory.cs @@ -3,111 +3,113 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story /// - public static partial class TdApi + public class PostStory : Function { /// - /// Posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story + /// Data type for serialization /// - public class PostStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "postStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "postStory"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Content of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public InputStoryContent Content { get; set; } + /// + /// Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Clickable rectangle areas to be shown on the story media; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("areas")] - public InputStoryAreas Areas { get; set; } + /// + /// Content of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public InputStoryContent Content { get; set; } - /// - /// Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters; can have entities only if getOption("can_use_text_entities_in_story_caption") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Clickable rectangle areas to be shown on the story media; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("areas")] + public InputStoryAreas Areas { get; set; } - /// - /// The privacy settings for the story; ignored for stories posted on behalf of supergroup and channel chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("privacy_settings")] - public StoryPrivacySettings PrivacySettings { get; set; } + /// + /// Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters; can have entities only if getOption("can_use_text_entities_in_story_caption") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// Identifiers of story albums to which the story will be added upon posting. An album can have up to getOption("story_album_size_max") stories - /// - [JsonProperty("album_ids", ItemConverterType = typeof(Converter))] - public int[] AlbumIds { get; set; } + /// + /// The privacy settings for the story; ignored for stories posted on behalf of supergroup and channel chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("privacy_settings")] + public StoryPrivacySettings PrivacySettings { get; set; } - /// - /// Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_period")] - public int ActivePeriod { get; set; } + /// + /// Identifiers of story albums to which the story will be added upon posting. An album can have up to getOption("story_album_size_max") stories + /// + [JsonProperty("album_ids", ItemConverterType = typeof(Converter))] + public int[] AlbumIds { get; set; } - /// - /// Full identifier of the original story, which content was used to create the story; pass null if the story isn't repost of another story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_story_full_id")] - public StoryFullId FromStoryFullId { get; set; } + /// + /// Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_period")] + public int ActivePeriod { get; set; } - /// - /// Pass true to keep the story accessible after expiration - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_posted_to_chat_page")] - public bool IsPostedToChatPage { get; set; } + /// + /// Full identifier of the original story, which content was used to create the story; pass null if the story isn't repost of another story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_story_full_id")] + public StoryFullId FromStoryFullId { get; set; } - /// - /// Pass true if the content of the story must be protected from forwarding and screenshotting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protect_content")] - public bool ProtectContent { get; set; } - } + /// + /// Pass true to keep the story accessible after expiration + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_posted_to_chat_page")] + public bool IsPostedToChatPage { get; set; } /// - /// Posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story + /// Pass true if the content of the story must be protected from forwarding and screenshotting /// - public static Task PostStoryAsync( - this IClient client, long chatId = default, InputStoryContent content = default, InputStoryAreas areas = default, FormattedText caption = default, StoryPrivacySettings privacySettings = default, int[] albumIds = default, int activePeriod = default, StoryFullId fromStoryFullId = default, bool isPostedToChatPage = default, bool protectContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("protect_content")] + public bool ProtectContent { get; set; } + } + + /// + /// Posts a new story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats. Returns a temporary story + /// + public static Task PostStoryAsync( + this IClient client, long chatId = default, InputStoryContent content = default, InputStoryAreas areas = default, FormattedText caption = default, StoryPrivacySettings privacySettings = default, int[] albumIds = default, int activePeriod = default, StoryFullId fromStoryFullId = default, bool isPostedToChatPage = default, bool protectContent = default) + { + return client.ExecuteAsync(new PostStory { - return client.ExecuteAsync(new PostStory - { - ChatId = chatId, Content = content, Areas = areas, Caption = caption, PrivacySettings = privacySettings, AlbumIds = albumIds, ActivePeriod = activePeriod, FromStoryFullId = fromStoryFullId, IsPostedToChatPage = isPostedToChatPage, ProtectContent = protectContent - }); - } + ChatId = chatId, Content = content, Areas = areas, Caption = caption, PrivacySettings = privacySettings, AlbumIds = albumIds, ActivePeriod = activePeriod, FromStoryFullId = fromStoryFullId, IsPostedToChatPage = isPostedToChatPage, ProtectContent = protectContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/PreliminaryUploadFile.cs b/TdLib.Api/Functions/PreliminaryUploadFile.cs index 8c57bbb6..0e72682f 100644 --- a/TdLib.Api/Functions/PreliminaryUploadFile.cs +++ b/TdLib.Api/Functions/PreliminaryUploadFile.cs @@ -3,67 +3,69 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Preliminarily uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. + /// In all other cases there is no need to preliminary upload a file. Updates updateFile will be used to notify about upload progress. + /// The upload will not be completed until the file is sent in a message /// - public static partial class TdApi + public class PreliminaryUploadFile : Function { /// - /// Preliminarily uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. - /// In all other cases there is no need to preliminary upload a file. Updates updateFile will be used to notify about upload progress. - /// The upload will not be completed until the file is sent in a message + /// Data type for serialization /// - public class PreliminaryUploadFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "preliminaryUploadFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "preliminaryUploadFile"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// File to upload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file")] - public InputFile File { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File type; pass null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_type")] - public FileType FileType { get; set; } + /// + /// File to upload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file")] + public InputFile File { get; set; } - /// - /// Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which preliminaryUploadFile was called will be uploaded first - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("priority")] - public int Priority { get; set; } - } + /// + /// File type; pass null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_type")] + public FileType FileType { get; set; } /// - /// Preliminarily uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. - /// In all other cases there is no need to preliminary upload a file. Updates updateFile will be used to notify about upload progress. - /// The upload will not be completed until the file is sent in a message + /// Priority of the upload (1-32). The higher the priority, the earlier the file will be uploaded. If the priorities of two files are equal, then the first one for which preliminaryUploadFile was called will be uploaded first /// - public static Task PreliminaryUploadFileAsync( - this IClient client, InputFile file = default, FileType fileType = default, int priority = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("priority")] + public int Priority { get; set; } + } + + /// + /// Preliminarily uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. + /// In all other cases there is no need to preliminary upload a file. Updates updateFile will be used to notify about upload progress. + /// The upload will not be completed until the file is sent in a message + /// + public static Task PreliminaryUploadFileAsync( + this IClient client, InputFile file = default, FileType fileType = default, int priority = default) + { + return client.ExecuteAsync(new PreliminaryUploadFile { - return client.ExecuteAsync(new PreliminaryUploadFile - { - File = file, FileType = fileType, Priority = priority - }); - } + File = file, FileType = fileType, Priority = priority + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ProcessChatFolderNewChats.cs b/TdLib.Api/Functions/ProcessChatFolderNewChats.cs index 6a24bd83..c359d035 100644 --- a/TdLib.Api/Functions/ProcessChatFolderNewChats.cs +++ b/TdLib.Api/Functions/ProcessChatFolderNewChats.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Process new chats added to a shareable chat folder by its owner /// - public static partial class TdApi + public class ProcessChatFolderNewChats : Function { /// - /// Process new chats added to a shareable chat folder by its owner + /// Data type for serialization /// - public class ProcessChatFolderNewChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "processChatFolderNewChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "processChatFolderNewChats"; - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the new chats, which are added to the chat folder. The chats are automatically joined if they aren't joined yet - /// - [JsonProperty("added_chat_ids", ItemConverterType = typeof(Converter))] - public long[] AddedChatIds { get; set; } - } + /// + /// Chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } /// - /// Process new chats added to a shareable chat folder by its owner + /// Identifiers of the new chats, which are added to the chat folder. The chats are automatically joined if they aren't joined yet /// - public static Task ProcessChatFolderNewChatsAsync( - this IClient client, int chatFolderId = default, long[] addedChatIds = default) + [JsonProperty("added_chat_ids", ItemConverterType = typeof(Converter))] + public long[] AddedChatIds { get; set; } + } + + /// + /// Process new chats added to a shareable chat folder by its owner + /// + public static Task ProcessChatFolderNewChatsAsync( + this IClient client, int chatFolderId = default, long[] addedChatIds = default) + { + return client.ExecuteAsync(new ProcessChatFolderNewChats { - return client.ExecuteAsync(new ProcessChatFolderNewChats - { - ChatFolderId = chatFolderId, AddedChatIds = addedChatIds - }); - } + ChatFolderId = chatFolderId, AddedChatIds = addedChatIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ProcessChatHasProtectedContentDisableRequest.cs b/TdLib.Api/Functions/ProcessChatHasProtectedContentDisableRequest.cs index 3f410bb3..d2d0081e 100644 --- a/TdLib.Api/Functions/ProcessChatHasProtectedContentDisableRequest.cs +++ b/TdLib.Api/Functions/ProcessChatHasProtectedContentDisableRequest.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Processes request to disable has_protected_content in a chat /// - public static partial class TdApi + public class ProcessChatHasProtectedContentDisableRequest : Function { /// - /// Processes request to disable has_protected_content in a chat + /// Data type for serialization /// - public class ProcessChatHasProtectedContentDisableRequest : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "processChatHasProtectedContentDisableRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "processChatHasProtectedContentDisableRequest"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the request. The message must be incoming and has content of the type messageChatHasProtectedContentDisableRequested - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_message_id")] - public long RequestMessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to approve the request; pass false to reject the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("approve")] - public bool Approve { get; set; } - } + /// + /// Identifier of the message with the request. The message must be incoming and has content of the type messageChatHasProtectedContentDisableRequested + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_message_id")] + public long RequestMessageId { get; set; } /// - /// Processes request to disable has_protected_content in a chat + /// Pass true to approve the request; pass false to reject the request /// - public static Task ProcessChatHasProtectedContentDisableRequestAsync( - this IClient client, long chatId = default, long requestMessageId = default, bool approve = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("approve")] + public bool Approve { get; set; } + } + + /// + /// Processes request to disable has_protected_content in a chat + /// + public static Task ProcessChatHasProtectedContentDisableRequestAsync( + this IClient client, long chatId = default, long requestMessageId = default, bool approve = default) + { + return client.ExecuteAsync(new ProcessChatHasProtectedContentDisableRequest { - return client.ExecuteAsync(new ProcessChatHasProtectedContentDisableRequest - { - ChatId = chatId, RequestMessageId = requestMessageId, Approve = approve - }); - } + ChatId = chatId, RequestMessageId = requestMessageId, Approve = approve + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ProcessChatJoinRequest.cs b/TdLib.Api/Functions/ProcessChatJoinRequest.cs index 88f0fb1c..74a65a81 100644 --- a/TdLib.Api/Functions/ProcessChatJoinRequest.cs +++ b/TdLib.Api/Functions/ProcessChatJoinRequest.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Handles a pending join request in a chat /// - public static partial class TdApi + public class ProcessChatJoinRequest : Function { /// - /// Handles a pending join request in a chat + /// Data type for serialization /// - public class ProcessChatJoinRequest : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "processChatJoinRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "processChatJoinRequest"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who sent the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to approve the request; pass false to decline it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("approve")] - public bool Approve { get; set; } - } + /// + /// Identifier of the user who sent the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Handles a pending join request in a chat + /// Pass true to approve the request; pass false to decline it /// - public static Task ProcessChatJoinRequestAsync( - this IClient client, long chatId = default, long userId = default, bool approve = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("approve")] + public bool Approve { get; set; } + } + + /// + /// Handles a pending join request in a chat + /// + public static Task ProcessChatJoinRequestAsync( + this IClient client, long chatId = default, long userId = default, bool approve = default) + { + return client.ExecuteAsync(new ProcessChatJoinRequest { - return client.ExecuteAsync(new ProcessChatJoinRequest - { - ChatId = chatId, UserId = userId, Approve = approve - }); - } + ChatId = chatId, UserId = userId, Approve = approve + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ProcessChatJoinRequests.cs b/TdLib.Api/Functions/ProcessChatJoinRequests.cs index 9f47c59c..663d462f 100644 --- a/TdLib.Api/Functions/ProcessChatJoinRequests.cs +++ b/TdLib.Api/Functions/ProcessChatJoinRequests.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Handles all pending join requests for a given link in a chat /// - public static partial class TdApi + public class ProcessChatJoinRequests : Function { /// - /// Handles all pending join requests for a given link in a chat + /// Data type for serialization /// - public class ProcessChatJoinRequests : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "processChatJoinRequests"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "processChatJoinRequests"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link for which to process join requests. If empty, all join requests will be processed. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to approve all requests; pass false to decline them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("approve")] - public bool Approve { get; set; } - } + /// + /// Invite link for which to process join requests. If empty, all join requests will be processed. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } /// - /// Handles all pending join requests for a given link in a chat + /// Pass true to approve all requests; pass false to decline them /// - public static Task ProcessChatJoinRequestsAsync( - this IClient client, long chatId = default, string inviteLink = default, bool approve = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("approve")] + public bool Approve { get; set; } + } + + /// + /// Handles all pending join requests for a given link in a chat + /// + public static Task ProcessChatJoinRequestsAsync( + this IClient client, long chatId = default, string inviteLink = default, bool approve = default) + { + return client.ExecuteAsync(new ProcessChatJoinRequests { - return client.ExecuteAsync(new ProcessChatJoinRequests - { - ChatId = chatId, InviteLink = inviteLink, Approve = approve - }); - } + ChatId = chatId, InviteLink = inviteLink, Approve = approve + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ProcessGiftPurchaseOffer.cs b/TdLib.Api/Functions/ProcessGiftPurchaseOffer.cs index e37dab86..fc220941 100644 --- a/TdLib.Api/Functions/ProcessGiftPurchaseOffer.cs +++ b/TdLib.Api/Functions/ProcessGiftPurchaseOffer.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Handles a pending gift purchase offer /// - public static partial class TdApi + public class ProcessGiftPurchaseOffer : Function { /// - /// Handles a pending gift purchase offer + /// Data type for serialization /// - public class ProcessGiftPurchaseOffer : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "processGiftPurchaseOffer"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "processGiftPurchaseOffer"; - /// - /// Identifier of the message with the gift purchase offer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to accept the request; pass false to reject it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accept")] - public bool Accept { get; set; } - } + /// + /// Identifier of the message with the gift purchase offer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Handles a pending gift purchase offer + /// Pass true to accept the request; pass false to reject it /// - public static Task ProcessGiftPurchaseOfferAsync( - this IClient client, long messageId = default, bool accept = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("accept")] + public bool Accept { get; set; } + } + + /// + /// Handles a pending gift purchase offer + /// + public static Task ProcessGiftPurchaseOfferAsync( + this IClient client, long messageId = default, bool accept = default) + { + return client.ExecuteAsync(new ProcessGiftPurchaseOffer { - return client.ExecuteAsync(new ProcessGiftPurchaseOffer - { - MessageId = messageId, Accept = accept - }); - } + MessageId = messageId, Accept = accept + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ProcessPushNotification.cs b/TdLib.Api/Functions/ProcessPushNotification.cs index ebb45d7d..46ed9ca0 100644 --- a/TdLib.Api/Functions/ProcessPushNotification.cs +++ b/TdLib.Api/Functions/ProcessPushNotification.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization /// - public static partial class TdApi + public class ProcessPushNotification : Function { /// - /// Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization + /// Data type for serialization /// - public class ProcessPushNotification : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "processPushNotification"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "processPushNotification"; - /// - /// JSON-encoded push notification payload with all fields sent by the server, and "google.sent_time" and "google.notification.sound" fields added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization + /// JSON-encoded push notification payload with all fields sent by the server, and "google.sent_time" and "google.notification.sound" fields added /// - public static Task ProcessPushNotificationAsync( - this IClient client, string payload = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } + } + + /// + /// Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization + /// + public static Task ProcessPushNotificationAsync( + this IClient client, string payload = default) + { + return client.ExecuteAsync(new ProcessPushNotification { - return client.ExecuteAsync(new ProcessPushNotification - { - Payload = payload - }); - } + Payload = payload + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RateSpeechRecognition.cs b/TdLib.Api/Functions/RateSpeechRecognition.cs index 8cba9a6a..ba29f6d7 100644 --- a/TdLib.Api/Functions/RateSpeechRecognition.cs +++ b/TdLib.Api/Functions/RateSpeechRecognition.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Rates recognized speech in a video note or a voice note message /// - public static partial class TdApi + public class RateSpeechRecognition : Function { /// - /// Rates recognized speech in a video note or a voice note message + /// Data type for serialization /// - public class RateSpeechRecognition : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "rateSpeechRecognition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "rateSpeechRecognition"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if the speech recognition is good - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_good")] - public bool IsGood { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Rates recognized speech in a video note or a voice note message + /// Pass true if the speech recognition is good /// - public static Task RateSpeechRecognitionAsync( - this IClient client, long chatId = default, long messageId = default, bool isGood = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_good")] + public bool IsGood { get; set; } + } + + /// + /// Rates recognized speech in a video note or a voice note message + /// + public static Task RateSpeechRecognitionAsync( + this IClient client, long chatId = default, long messageId = default, bool isGood = default) + { + return client.ExecuteAsync(new RateSpeechRecognition { - return client.ExecuteAsync(new RateSpeechRecognition - { - ChatId = chatId, MessageId = messageId, IsGood = isGood - }); - } + ChatId = chatId, MessageId = messageId, IsGood = isGood + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadAllChatMentions.cs b/TdLib.Api/Functions/ReadAllChatMentions.cs index 9ae93033..42c852a6 100644 --- a/TdLib.Api/Functions/ReadAllChatMentions.cs +++ b/TdLib.Api/Functions/ReadAllChatMentions.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Marks all mentions in a chat as read /// - public static partial class TdApi + public class ReadAllChatMentions : Function { /// - /// Marks all mentions in a chat as read + /// Data type for serialization /// - public class ReadAllChatMentions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readAllChatMentions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readAllChatMentions"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Marks all mentions in a chat as read + /// Chat identifier /// - public static Task ReadAllChatMentionsAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Marks all mentions in a chat as read + /// + public static Task ReadAllChatMentionsAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new ReadAllChatMentions { - return client.ExecuteAsync(new ReadAllChatMentions - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadAllChatPollVotes.cs b/TdLib.Api/Functions/ReadAllChatPollVotes.cs index bd3795c8..8daf30a0 100644 --- a/TdLib.Api/Functions/ReadAllChatPollVotes.cs +++ b/TdLib.Api/Functions/ReadAllChatPollVotes.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Marks all poll votes in a chat as read /// - public static partial class TdApi + public class ReadAllChatPollVotes : Function { /// - /// Marks all poll votes in a chat as read + /// Data type for serialization /// - public class ReadAllChatPollVotes : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readAllChatPollVotes"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readAllChatPollVotes"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Marks all poll votes in a chat as read + /// Chat identifier /// - public static Task ReadAllChatPollVotesAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Marks all poll votes in a chat as read + /// + public static Task ReadAllChatPollVotesAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new ReadAllChatPollVotes { - return client.ExecuteAsync(new ReadAllChatPollVotes - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadAllChatReactions.cs b/TdLib.Api/Functions/ReadAllChatReactions.cs index b46e7a8b..83f33091 100644 --- a/TdLib.Api/Functions/ReadAllChatReactions.cs +++ b/TdLib.Api/Functions/ReadAllChatReactions.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Marks all reactions in a chat as read /// - public static partial class TdApi + public class ReadAllChatReactions : Function { /// - /// Marks all reactions in a chat as read + /// Data type for serialization /// - public class ReadAllChatReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readAllChatReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readAllChatReactions"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Marks all reactions in a chat as read + /// Chat identifier /// - public static Task ReadAllChatReactionsAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Marks all reactions in a chat as read + /// + public static Task ReadAllChatReactionsAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new ReadAllChatReactions { - return client.ExecuteAsync(new ReadAllChatReactions - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadAllDirectMessagesChatTopicReactions.cs b/TdLib.Api/Functions/ReadAllDirectMessagesChatTopicReactions.cs index 305370d4..ec25187f 100644 --- a/TdLib.Api/Functions/ReadAllDirectMessagesChatTopicReactions.cs +++ b/TdLib.Api/Functions/ReadAllDirectMessagesChatTopicReactions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes all unread reactions in the topic in a channel direct messages chat administered by the current user /// - public static partial class TdApi + public class ReadAllDirectMessagesChatTopicReactions : Function { /// - /// Removes all unread reactions in the topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public class ReadAllDirectMessagesChatTopicReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readAllDirectMessagesChatTopicReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readAllDirectMessagesChatTopicReactions"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Removes all unread reactions in the topic in a channel direct messages chat administered by the current user + /// Topic identifier /// - public static Task ReadAllDirectMessagesChatTopicReactionsAsync( - this IClient client, long chatId = default, long topicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } + } + + /// + /// Removes all unread reactions in the topic in a channel direct messages chat administered by the current user + /// + public static Task ReadAllDirectMessagesChatTopicReactionsAsync( + this IClient client, long chatId = default, long topicId = default) + { + return client.ExecuteAsync(new ReadAllDirectMessagesChatTopicReactions { - return client.ExecuteAsync(new ReadAllDirectMessagesChatTopicReactions - { - ChatId = chatId, TopicId = topicId - }); - } + ChatId = chatId, TopicId = topicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadAllForumTopicMentions.cs b/TdLib.Api/Functions/ReadAllForumTopicMentions.cs index 5213eae0..d769bbe1 100644 --- a/TdLib.Api/Functions/ReadAllForumTopicMentions.cs +++ b/TdLib.Api/Functions/ReadAllForumTopicMentions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Marks all mentions in a topic in a forum supergroup chat as read /// - public static partial class TdApi + public class ReadAllForumTopicMentions : Function { /// - /// Marks all mentions in a topic in a forum supergroup chat as read + /// Data type for serialization /// - public class ReadAllForumTopicMentions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readAllForumTopicMentions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readAllForumTopicMentions"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier in which mentions are marked as read - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Marks all mentions in a topic in a forum supergroup chat as read + /// Forum topic identifier in which mentions are marked as read /// - public static Task ReadAllForumTopicMentionsAsync( - this IClient client, long chatId = default, int forumTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } + } + + /// + /// Marks all mentions in a topic in a forum supergroup chat as read + /// + public static Task ReadAllForumTopicMentionsAsync( + this IClient client, long chatId = default, int forumTopicId = default) + { + return client.ExecuteAsync(new ReadAllForumTopicMentions { - return client.ExecuteAsync(new ReadAllForumTopicMentions - { - ChatId = chatId, ForumTopicId = forumTopicId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadAllForumTopicPollVotes.cs b/TdLib.Api/Functions/ReadAllForumTopicPollVotes.cs index a6f27c15..c574f7d3 100644 --- a/TdLib.Api/Functions/ReadAllForumTopicPollVotes.cs +++ b/TdLib.Api/Functions/ReadAllForumTopicPollVotes.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Marks all poll votes in a topic in a forum supergroup chat as read /// - public static partial class TdApi + public class ReadAllForumTopicPollVotes : Function { /// - /// Marks all poll votes in a topic in a forum supergroup chat as read + /// Data type for serialization /// - public class ReadAllForumTopicPollVotes : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readAllForumTopicPollVotes"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readAllForumTopicPollVotes"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier in which poll votes are marked as read - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Marks all poll votes in a topic in a forum supergroup chat as read + /// Forum topic identifier in which poll votes are marked as read /// - public static Task ReadAllForumTopicPollVotesAsync( - this IClient client, long chatId = default, int forumTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } + } + + /// + /// Marks all poll votes in a topic in a forum supergroup chat as read + /// + public static Task ReadAllForumTopicPollVotesAsync( + this IClient client, long chatId = default, int forumTopicId = default) + { + return client.ExecuteAsync(new ReadAllForumTopicPollVotes { - return client.ExecuteAsync(new ReadAllForumTopicPollVotes - { - ChatId = chatId, ForumTopicId = forumTopicId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadAllForumTopicReactions.cs b/TdLib.Api/Functions/ReadAllForumTopicReactions.cs index 25b62d89..a5193643 100644 --- a/TdLib.Api/Functions/ReadAllForumTopicReactions.cs +++ b/TdLib.Api/Functions/ReadAllForumTopicReactions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Marks all reactions in a topic in a forum supergroup chat or a chat with a bot with topics as read /// - public static partial class TdApi + public class ReadAllForumTopicReactions : Function { /// - /// Marks all reactions in a topic in a forum supergroup chat or a chat with a bot with topics as read + /// Data type for serialization /// - public class ReadAllForumTopicReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readAllForumTopicReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readAllForumTopicReactions"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier in which reactions are marked as read - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Marks all reactions in a topic in a forum supergroup chat or a chat with a bot with topics as read + /// Forum topic identifier in which reactions are marked as read /// - public static Task ReadAllForumTopicReactionsAsync( - this IClient client, long chatId = default, int forumTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } + } + + /// + /// Marks all reactions in a topic in a forum supergroup chat or a chat with a bot with topics as read + /// + public static Task ReadAllForumTopicReactionsAsync( + this IClient client, long chatId = default, int forumTopicId = default) + { + return client.ExecuteAsync(new ReadAllForumTopicReactions { - return client.ExecuteAsync(new ReadAllForumTopicReactions - { - ChatId = chatId, ForumTopicId = forumTopicId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadBusinessMessage.cs b/TdLib.Api/Functions/ReadBusinessMessage.cs index 8b4c39bb..2a308f2d 100644 --- a/TdLib.Api/Functions/ReadBusinessMessage.cs +++ b/TdLib.Api/Functions/ReadBusinessMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reads a message on behalf of a business account; for bots only /// - public static partial class TdApi + public class ReadBusinessMessage : Function { /// - /// Reads a message on behalf of a business account; for bots only + /// Data type for serialization /// - public class ReadBusinessMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readBusinessMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "readBusinessMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection through which the message was received - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection through which the message was received + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Reads a message on behalf of a business account; for bots only + /// Identifier of the message /// - public static Task ReadBusinessMessageAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Reads a message on behalf of a business account; for bots only + /// + public static Task ReadBusinessMessageAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new ReadBusinessMessage { - return client.ExecuteAsync(new ReadBusinessMessage - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadChatList.cs b/TdLib.Api/Functions/ReadChatList.cs index 5e434083..af15c852 100644 --- a/TdLib.Api/Functions/ReadChatList.cs +++ b/TdLib.Api/Functions/ReadChatList.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Traverses all chats in a chat list and marks all messages in the chats as read /// - public static partial class TdApi + public class ReadChatList : Function { /// - /// Traverses all chats in a chat list and marks all messages in the chats as read + /// Data type for serialization /// - public class ReadChatList : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readChatList"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readChatList"; - /// - /// Chat list in which to mark all chats as read - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Traverses all chats in a chat list and marks all messages in the chats as read + /// Chat list in which to mark all chats as read /// - public static Task ReadChatListAsync( - this IClient client, ChatList chatList = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } + } + + /// + /// Traverses all chats in a chat list and marks all messages in the chats as read + /// + public static Task ReadChatListAsync( + this IClient client, ChatList chatList = default) + { + return client.ExecuteAsync(new ReadChatList { - return client.ExecuteAsync(new ReadChatList - { - ChatList = chatList - }); - } + ChatList = chatList + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReadFilePart.cs b/TdLib.Api/Functions/ReadFilePart.cs index de5fe04b..69d996d9 100644 --- a/TdLib.Api/Functions/ReadFilePart.cs +++ b/TdLib.Api/Functions/ReadFilePart.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file /// - public static partial class TdApi + public class ReadFilePart : Function { /// - /// Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file + /// Data type for serialization /// - public class ReadFilePart : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readFilePart"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "readFilePart"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the file. The file must be located in the TDLib file cache - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The offset from which to read the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public long Offset { get; set; } + /// + /// Identifier of the file. The file must be located in the TDLib file cache + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } - /// - /// Number of bytes to read. An error will be returned if there are not enough bytes available in the file from the specified position. Pass 0 to read all available data from the specified position - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public long Count { get; set; } - } + /// + /// The offset from which to read the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public long Offset { get; set; } /// - /// Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file + /// Number of bytes to read. An error will be returned if there are not enough bytes available in the file from the specified position. Pass 0 to read all available data from the specified position /// - public static Task ReadFilePartAsync( - this IClient client, int fileId = default, long offset = default, long count = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public long Count { get; set; } + } + + /// + /// Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file + /// + public static Task ReadFilePartAsync( + this IClient client, int fileId = default, long offset = default, long count = default) + { + return client.ExecuteAsync(new ReadFilePart { - return client.ExecuteAsync(new ReadFilePart - { - FileId = fileId, Offset = offset, Count = count - }); - } + FileId = fileId, Offset = offset, Count = count + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReaddQuickReplyShortcutMessages.cs b/TdLib.Api/Functions/ReaddQuickReplyShortcutMessages.cs index fbfc52ea..577ac205 100644 --- a/TdLib.Api/Functions/ReaddQuickReplyShortcutMessages.cs +++ b/TdLib.Api/Functions/ReaddQuickReplyShortcutMessages.cs @@ -3,57 +3,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. + /// If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-added, null will be returned instead of the message /// - public static partial class TdApi + public class ReaddQuickReplyShortcutMessages : Function { /// - /// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. - /// If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-added, null will be returned instead of the message + /// Data type for serialization /// - public class ReaddQuickReplyShortcutMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readdQuickReplyShortcutMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "readdQuickReplyShortcutMessages"; - /// - /// Name of the target shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_name")] - public string ShortcutName { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the quick reply messages to re-add. Message identifiers must be in a strictly increasing order - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } - } + /// + /// Name of the target shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_name")] + public string ShortcutName { get; set; } /// - /// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. - /// If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-added, null will be returned instead of the message + /// Identifiers of the quick reply messages to re-add. Message identifiers must be in a strictly increasing order /// - public static Task ReaddQuickReplyShortcutMessagesAsync( - this IClient client, string shortcutName = default, long[] messageIds = default) + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } + } + + /// + /// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. + /// If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-added, null will be returned instead of the message + /// + public static Task ReaddQuickReplyShortcutMessagesAsync( + this IClient client, string shortcutName = default, long[] messageIds = default) + { + return client.ExecuteAsync(new ReaddQuickReplyShortcutMessages { - return client.ExecuteAsync(new ReaddQuickReplyShortcutMessages - { - ShortcutName = shortcutName, MessageIds = messageIds - }); - } + ShortcutName = shortcutName, MessageIds = messageIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RecognizeSpeech.cs b/TdLib.Api/Functions/RecognizeSpeech.cs index 96f220a5..b06e22a5 100644 --- a/TdLib.Api/Functions/RecognizeSpeech.cs +++ b/TdLib.Api/Functions/RecognizeSpeech.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Recognizes speech in a video note or a voice note message /// - public static partial class TdApi + public class RecognizeSpeech : Function { /// - /// Recognizes speech in a video note or a voice note message + /// Data type for serialization /// - public class RecognizeSpeech : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "recognizeSpeech"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "recognizeSpeech"; - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_recognize_speech to check whether the message is suitable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Recognizes speech in a video note or a voice note message + /// Identifier of the message. Use messageProperties.can_recognize_speech to check whether the message is suitable /// - public static Task RecognizeSpeechAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Recognizes speech in a video note or a voice note message + /// + public static Task RecognizeSpeechAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new RecognizeSpeech { - return client.ExecuteAsync(new RecognizeSpeech - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RecoverAuthenticationPassword.cs b/TdLib.Api/Functions/RecoverAuthenticationPassword.cs index a973e320..2882c6f5 100644 --- a/TdLib.Api/Functions/RecoverAuthenticationPassword.cs +++ b/TdLib.Api/Functions/RecoverAuthenticationPassword.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword /// - public static partial class TdApi + public class RecoverAuthenticationPassword : Function { /// - /// Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword + /// Data type for serialization /// - public class RecoverAuthenticationPassword : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "recoverAuthenticationPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "recoverAuthenticationPassword"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Recovery code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recovery_code")] - public string RecoveryCode { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New 2-step verification password of the user; may be empty to remove the password - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_password")] - public string NewPassword { get; set; } + /// + /// Recovery code to check + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recovery_code")] + public string RecoveryCode { get; set; } - /// - /// New password hint; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_hint")] - public string NewHint { get; set; } - } + /// + /// New 2-step verification password of the user; may be empty to remove the password + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_password")] + public string NewPassword { get; set; } /// - /// Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword + /// New password hint; may be empty /// - public static Task RecoverAuthenticationPasswordAsync( - this IClient client, string recoveryCode = default, string newPassword = default, string newHint = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_hint")] + public string NewHint { get; set; } + } + + /// + /// Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword + /// + public static Task RecoverAuthenticationPasswordAsync( + this IClient client, string recoveryCode = default, string newPassword = default, string newHint = default) + { + return client.ExecuteAsync(new RecoverAuthenticationPassword { - return client.ExecuteAsync(new RecoverAuthenticationPassword - { - RecoveryCode = recoveryCode, NewPassword = newPassword, NewHint = newHint - }); - } + RecoveryCode = recoveryCode, NewPassword = newPassword, NewHint = newHint + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RecoverPassword.cs b/TdLib.Api/Functions/RecoverPassword.cs index 6139ef0f..6d779c09 100644 --- a/TdLib.Api/Functions/RecoverPassword.cs +++ b/TdLib.Api/Functions/RecoverPassword.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up /// - public static partial class TdApi + public class RecoverPassword : Function { /// - /// Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up + /// Data type for serialization /// - public class RecoverPassword : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "recoverPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "recoverPassword"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Recovery code to check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recovery_code")] - public string RecoveryCode { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New 2-step verification password of the user; may be empty to remove the password - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_password")] - public string NewPassword { get; set; } + /// + /// Recovery code to check + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recovery_code")] + public string RecoveryCode { get; set; } - /// - /// New password hint; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_hint")] - public string NewHint { get; set; } - } + /// + /// New 2-step verification password of the user; may be empty to remove the password + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_password")] + public string NewPassword { get; set; } /// - /// Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up + /// New password hint; may be empty /// - public static Task RecoverPasswordAsync( - this IClient client, string recoveryCode = default, string newPassword = default, string newHint = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_hint")] + public string NewHint { get; set; } + } + + /// + /// Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up + /// + public static Task RecoverPasswordAsync( + this IClient client, string recoveryCode = default, string newPassword = default, string newHint = default) + { + return client.ExecuteAsync(new RecoverPassword { - return client.ExecuteAsync(new RecoverPassword - { - RecoveryCode = recoveryCode, NewPassword = newPassword, NewHint = newHint - }); - } + RecoveryCode = recoveryCode, NewPassword = newPassword, NewHint = newHint + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RefundStarPayment.cs b/TdLib.Api/Functions/RefundStarPayment.cs index a39987a7..3548fda8 100644 --- a/TdLib.Api/Functions/RefundStarPayment.cs +++ b/TdLib.Api/Functions/RefundStarPayment.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Refunds a previously done payment in Telegram Stars; for bots only /// - public static partial class TdApi + public class RefundStarPayment : Function { /// - /// Refunds a previously done payment in Telegram Stars; for bots only + /// Data type for serialization /// - public class RefundStarPayment : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "refundStarPayment"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "refundStarPayment"; - /// - /// Identifier of the user who did the payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Telegram payment identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("telegram_payment_charge_id")] - public string TelegramPaymentChargeId { get; set; } - } + /// + /// Identifier of the user who did the payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Refunds a previously done payment in Telegram Stars; for bots only + /// Telegram payment identifier /// - public static Task RefundStarPaymentAsync( - this IClient client, long userId = default, string telegramPaymentChargeId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("telegram_payment_charge_id")] + public string TelegramPaymentChargeId { get; set; } + } + + /// + /// Refunds a previously done payment in Telegram Stars; for bots only + /// + public static Task RefundStarPaymentAsync( + this IClient client, long userId = default, string telegramPaymentChargeId = default) + { + return client.ExecuteAsync(new RefundStarPayment { - return client.ExecuteAsync(new RefundStarPayment - { - UserId = userId, TelegramPaymentChargeId = telegramPaymentChargeId - }); - } + UserId = userId, TelegramPaymentChargeId = telegramPaymentChargeId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RegisterDevice.cs b/TdLib.Api/Functions/RegisterDevice.cs index 407c7d19..66166be0 100644 --- a/TdLib.Api/Functions/RegisterDevice.cs +++ b/TdLib.Api/Functions/RegisterDevice.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription /// - public static partial class TdApi + public class RegisterDevice : Function { /// - /// Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription + /// Data type for serialization /// - public class RegisterDevice : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "registerDevice"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "registerDevice"; - /// - /// Device token - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_token")] - public DeviceToken DeviceToken { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of user identifiers of other users currently using the application - /// - [JsonProperty("other_user_ids", ItemConverterType = typeof(Converter))] - public long[] OtherUserIds { get; set; } - } + /// + /// Device token + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_token")] + public DeviceToken DeviceToken { get; set; } /// - /// Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription + /// List of user identifiers of other users currently using the application /// - public static Task RegisterDeviceAsync( - this IClient client, DeviceToken deviceToken = default, long[] otherUserIds = default) + [JsonProperty("other_user_ids", ItemConverterType = typeof(Converter))] + public long[] OtherUserIds { get; set; } + } + + /// + /// Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription + /// + public static Task RegisterDeviceAsync( + this IClient client, DeviceToken deviceToken = default, long[] otherUserIds = default) + { + return client.ExecuteAsync(new RegisterDevice { - return client.ExecuteAsync(new RegisterDevice - { - DeviceToken = deviceToken, OtherUserIds = otherUserIds - }); - } + DeviceToken = deviceToken, OtherUserIds = otherUserIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RegisterUser.cs b/TdLib.Api/Functions/RegisterUser.cs index 4a476621..dcb007a2 100644 --- a/TdLib.Api/Functions/RegisterUser.cs +++ b/TdLib.Api/Functions/RegisterUser.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration /// - public static partial class TdApi + public class RegisterUser : Function { /// - /// Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration + /// Data type for serialization /// - public class RegisterUser : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "registerUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "registerUser"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The first name of the user; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The last name of the user; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } + /// + /// The first name of the user; 1-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } - /// - /// Pass true to disable notification about the current user joining Telegram for other users that added them to contact list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_notification")] - public bool DisableNotification { get; set; } - } + /// + /// The last name of the user; 0-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } /// - /// Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration + /// Pass true to disable notification about the current user joining Telegram for other users that added them to contact list /// - public static Task RegisterUserAsync( - this IClient client, string firstName = default, string lastName = default, bool disableNotification = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_notification")] + public bool DisableNotification { get; set; } + } + + /// + /// Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration + /// + public static Task RegisterUserAsync( + this IClient client, string firstName = default, string lastName = default, bool disableNotification = default) + { + return client.ExecuteAsync(new RegisterUser { - return client.ExecuteAsync(new RegisterUser - { - FirstName = firstName, LastName = lastName, DisableNotification = disableNotification - }); - } + FirstName = firstName, LastName = lastName, DisableNotification = disableNotification + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveAllFilesFromDownloads.cs b/TdLib.Api/Functions/RemoveAllFilesFromDownloads.cs index 24c351bf..628411fa 100644 --- a/TdLib.Api/Functions/RemoveAllFilesFromDownloads.cs +++ b/TdLib.Api/Functions/RemoveAllFilesFromDownloads.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes all files from the file download list /// - public static partial class TdApi + public class RemoveAllFilesFromDownloads : Function { /// - /// Removes all files from the file download list + /// Data type for serialization /// - public class RemoveAllFilesFromDownloads : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeAllFilesFromDownloads"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeAllFilesFromDownloads"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Pass true to remove only active downloads, including paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_active")] - public bool OnlyActive { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to remove only completed downloads - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_completed")] - public bool OnlyCompleted { get; set; } + /// + /// Pass true to remove only active downloads, including paused + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_active")] + public bool OnlyActive { get; set; } - /// - /// Pass true to delete the file from the TDLib file cache - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("delete_from_cache")] - public bool DeleteFromCache { get; set; } - } + /// + /// Pass true to remove only completed downloads + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_completed")] + public bool OnlyCompleted { get; set; } /// - /// Removes all files from the file download list + /// Pass true to delete the file from the TDLib file cache /// - public static Task RemoveAllFilesFromDownloadsAsync( - this IClient client, bool onlyActive = default, bool onlyCompleted = default, bool deleteFromCache = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("delete_from_cache")] + public bool DeleteFromCache { get; set; } + } + + /// + /// Removes all files from the file download list + /// + public static Task RemoveAllFilesFromDownloadsAsync( + this IClient client, bool onlyActive = default, bool onlyCompleted = default, bool deleteFromCache = default) + { + return client.ExecuteAsync(new RemoveAllFilesFromDownloads { - return client.ExecuteAsync(new RemoveAllFilesFromDownloads - { - OnlyActive = onlyActive, OnlyCompleted = onlyCompleted, DeleteFromCache = deleteFromCache - }); - } + OnlyActive = onlyActive, OnlyCompleted = onlyCompleted, DeleteFromCache = deleteFromCache + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveAllWebBrowserSettingsExceptions.cs b/TdLib.Api/Functions/RemoveAllWebBrowserSettingsExceptions.cs index 0d593ee1..53c09140 100644 --- a/TdLib.Api/Functions/RemoveAllWebBrowserSettingsExceptions.cs +++ b/TdLib.Api/Functions/RemoveAllWebBrowserSettingsExceptions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes special handling for the opening of all links /// - public static partial class TdApi + public class RemoveAllWebBrowserSettingsExceptions : Function { /// - /// Removes special handling for the opening of all links + /// Data type for serialization /// - public class RemoveAllWebBrowserSettingsExceptions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeAllWebBrowserSettingsExceptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeAllWebBrowserSettingsExceptions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Removes special handling for the opening of all links - /// - public static Task RemoveAllWebBrowserSettingsExceptionsAsync( - this IClient client) + /// + /// Removes special handling for the opening of all links + /// + public static Task RemoveAllWebBrowserSettingsExceptionsAsync( + this IClient client) + { + return client.ExecuteAsync(new RemoveAllWebBrowserSettingsExceptions { - return client.ExecuteAsync(new RemoveAllWebBrowserSettingsExceptions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveBusinessConnectedBotFromChat.cs b/TdLib.Api/Functions/RemoveBusinessConnectedBotFromChat.cs index d5f65769..925f20f2 100644 --- a/TdLib.Api/Functions/RemoveBusinessConnectedBotFromChat.cs +++ b/TdLib.Api/Functions/RemoveBusinessConnectedBotFromChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes the connected business bot from a specific chat by adding the chat to businessRecipients.excluded_chat_ids /// - public static partial class TdApi + public class RemoveBusinessConnectedBotFromChat : Function { /// - /// Removes the connected business bot from a specific chat by adding the chat to businessRecipients.excluded_chat_ids + /// Data type for serialization /// - public class RemoveBusinessConnectedBotFromChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeBusinessConnectedBotFromChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeBusinessConnectedBotFromChat"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes the connected business bot from a specific chat by adding the chat to businessRecipients.excluded_chat_ids + /// Chat identifier /// - public static Task RemoveBusinessConnectedBotFromChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Removes the connected business bot from a specific chat by adding the chat to businessRecipients.excluded_chat_ids + /// + public static Task RemoveBusinessConnectedBotFromChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new RemoveBusinessConnectedBotFromChat { - return client.ExecuteAsync(new RemoveBusinessConnectedBotFromChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveChatActionBar.cs b/TdLib.Api/Functions/RemoveChatActionBar.cs index 6486640f..db9a945d 100644 --- a/TdLib.Api/Functions/RemoveChatActionBar.cs +++ b/TdLib.Api/Functions/RemoveChatActionBar.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a chat action bar without any other action /// - public static partial class TdApi + public class RemoveChatActionBar : Function { /// - /// Removes a chat action bar without any other action + /// Data type for serialization /// - public class RemoveChatActionBar : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeChatActionBar"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeChatActionBar"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a chat action bar without any other action + /// Chat identifier /// - public static Task RemoveChatActionBarAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Removes a chat action bar without any other action + /// + public static Task RemoveChatActionBarAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new RemoveChatActionBar { - return client.ExecuteAsync(new RemoveChatActionBar - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveContacts.cs b/TdLib.Api/Functions/RemoveContacts.cs index 0a7f8ff0..2c964841 100644 --- a/TdLib.Api/Functions/RemoveContacts.cs +++ b/TdLib.Api/Functions/RemoveContacts.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes users from the contact list /// - public static partial class TdApi + public class RemoveContacts : Function { /// - /// Removes users from the contact list + /// Data type for serialization /// - public class RemoveContacts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeContacts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeContacts"; - /// - /// Identifiers of users to be deleted - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes users from the contact list + /// Identifiers of users to be deleted /// - public static Task RemoveContactsAsync( - this IClient client, long[] userIds = default) + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } + } + + /// + /// Removes users from the contact list + /// + public static Task RemoveContactsAsync( + this IClient client, long[] userIds = default) + { + return client.ExecuteAsync(new RemoveContacts { - return client.ExecuteAsync(new RemoveContacts - { - UserIds = userIds - }); - } + UserIds = userIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveFavoriteSticker.cs b/TdLib.Api/Functions/RemoveFavoriteSticker.cs index 16c4ab85..528845f7 100644 --- a/TdLib.Api/Functions/RemoveFavoriteSticker.cs +++ b/TdLib.Api/Functions/RemoveFavoriteSticker.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a sticker from the list of favorite stickers /// - public static partial class TdApi + public class RemoveFavoriteSticker : Function { /// - /// Removes a sticker from the list of favorite stickers + /// Data type for serialization /// - public class RemoveFavoriteSticker : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeFavoriteSticker"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeFavoriteSticker"; - /// - /// Sticker file to delete from the list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a sticker from the list of favorite stickers + /// Sticker file to delete from the list /// - public static Task RemoveFavoriteStickerAsync( - this IClient client, InputFile sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } + } + + /// + /// Removes a sticker from the list of favorite stickers + /// + public static Task RemoveFavoriteStickerAsync( + this IClient client, InputFile sticker = default) + { + return client.ExecuteAsync(new RemoveFavoriteSticker { - return client.ExecuteAsync(new RemoveFavoriteSticker - { - Sticker = sticker - }); - } + Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveFileFromDownloads.cs b/TdLib.Api/Functions/RemoveFileFromDownloads.cs index 550e9216..0a2fbeca 100644 --- a/TdLib.Api/Functions/RemoveFileFromDownloads.cs +++ b/TdLib.Api/Functions/RemoveFileFromDownloads.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a file from the file download list /// - public static partial class TdApi + public class RemoveFileFromDownloads : Function { /// - /// Removes a file from the file download list + /// Data type for serialization /// - public class RemoveFileFromDownloads : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeFileFromDownloads"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeFileFromDownloads"; - /// - /// Identifier of the downloaded file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to delete the file from the TDLib file cache - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("delete_from_cache")] - public bool DeleteFromCache { get; set; } - } + /// + /// Identifier of the downloaded file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } /// - /// Removes a file from the file download list + /// Pass true to delete the file from the TDLib file cache /// - public static Task RemoveFileFromDownloadsAsync( - this IClient client, int fileId = default, bool deleteFromCache = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("delete_from_cache")] + public bool DeleteFromCache { get; set; } + } + + /// + /// Removes a file from the file download list + /// + public static Task RemoveFileFromDownloadsAsync( + this IClient client, int fileId = default, bool deleteFromCache = default) + { + return client.ExecuteAsync(new RemoveFileFromDownloads { - return client.ExecuteAsync(new RemoveFileFromDownloads - { - FileId = fileId, DeleteFromCache = deleteFromCache - }); - } + FileId = fileId, DeleteFromCache = deleteFromCache + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveGiftCollectionGifts.cs b/TdLib.Api/Functions/RemoveGiftCollectionGifts.cs index bd97bdce..f3bacec4 100644 --- a/TdLib.Api/Functions/RemoveGiftCollectionGifts.cs +++ b/TdLib.Api/Functions/RemoveGiftCollectionGifts.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes gifts from a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection /// - public static partial class TdApi + public class RemoveGiftCollectionGifts : Function { /// - /// Removes gifts from a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// Data type for serialization /// - public class RemoveGiftCollectionGifts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeGiftCollectionGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeGiftCollectionGifts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user or the channel chat that owns the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("collection_id")] - public int CollectionId { get; set; } + /// + /// Identifier of the user or the channel chat that owns the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Identifier of the gifts to remove from the collection - /// - [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] - public string[] ReceivedGiftIds { get; set; } - } + /// + /// Identifier of the gift collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_id")] + public int CollectionId { get; set; } /// - /// Removes gifts from a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// Identifier of the gifts to remove from the collection /// - public static Task RemoveGiftCollectionGiftsAsync( - this IClient client, MessageSender ownerId = default, int collectionId = default, string[] receivedGiftIds = default) + [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] + public string[] ReceivedGiftIds { get; set; } + } + + /// + /// Removes gifts from a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// + public static Task RemoveGiftCollectionGiftsAsync( + this IClient client, MessageSender ownerId = default, int collectionId = default, string[] receivedGiftIds = default) + { + return client.ExecuteAsync(new RemoveGiftCollectionGifts { - return client.ExecuteAsync(new RemoveGiftCollectionGifts - { - OwnerId = ownerId, CollectionId = collectionId, ReceivedGiftIds = receivedGiftIds - }); - } + OwnerId = ownerId, CollectionId = collectionId, ReceivedGiftIds = receivedGiftIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveInstalledBackground.cs b/TdLib.Api/Functions/RemoveInstalledBackground.cs index 03e1ef4f..b798b446 100644 --- a/TdLib.Api/Functions/RemoveInstalledBackground.cs +++ b/TdLib.Api/Functions/RemoveInstalledBackground.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes background from the list of installed backgrounds /// - public static partial class TdApi + public class RemoveInstalledBackground : Function { /// - /// Removes background from the list of installed backgrounds + /// Data type for serialization /// - public class RemoveInstalledBackground : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeInstalledBackground"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeInstalledBackground"; - /// - /// The background identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_id")] - public long BackgroundId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes background from the list of installed backgrounds + /// The background identifier /// - public static Task RemoveInstalledBackgroundAsync( - this IClient client, long backgroundId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_id")] + public long BackgroundId { get; set; } + } + + /// + /// Removes background from the list of installed backgrounds + /// + public static Task RemoveInstalledBackgroundAsync( + this IClient client, long backgroundId = default) + { + return client.ExecuteAsync(new RemoveInstalledBackground { - return client.ExecuteAsync(new RemoveInstalledBackground - { - BackgroundId = backgroundId - }); - } + BackgroundId = backgroundId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveLoginPasskey.cs b/TdLib.Api/Functions/RemoveLoginPasskey.cs index 14973eee..a4411f98 100644 --- a/TdLib.Api/Functions/RemoveLoginPasskey.cs +++ b/TdLib.Api/Functions/RemoveLoginPasskey.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a passkey from the list of passkeys allowed to be used for the login by the current user /// - public static partial class TdApi + public class RemoveLoginPasskey : Function { /// - /// Removes a passkey from the list of passkeys allowed to be used for the login by the current user + /// Data type for serialization /// - public class RemoveLoginPasskey : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeLoginPasskey"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeLoginPasskey"; - /// - /// Unique identifier of the passkey to remove - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("passkey_id")] - public string PasskeyId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a passkey from the list of passkeys allowed to be used for the login by the current user + /// Unique identifier of the passkey to remove /// - public static Task RemoveLoginPasskeyAsync( - this IClient client, string passkeyId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("passkey_id")] + public string PasskeyId { get; set; } + } + + /// + /// Removes a passkey from the list of passkeys allowed to be used for the login by the current user + /// + public static Task RemoveLoginPasskeyAsync( + this IClient client, string passkeyId = default) + { + return client.ExecuteAsync(new RemoveLoginPasskey { - return client.ExecuteAsync(new RemoveLoginPasskey - { - PasskeyId = passkeyId - }); - } + PasskeyId = passkeyId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveMessageReaction.cs b/TdLib.Api/Functions/RemoveMessageReaction.cs index 926799f4..29e59bb0 100644 --- a/TdLib.Api/Functions/RemoveMessageReaction.cs +++ b/TdLib.Api/Functions/RemoveMessageReaction.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a reaction from a message. A chosen reaction can always be removed /// - public static partial class TdApi + public class RemoveMessageReaction : Function { /// - /// Removes a reaction from a message. A chosen reaction can always be removed + /// Data type for serialization /// - public class RemoveMessageReaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeMessageReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeMessageReaction"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Type of the reaction to remove. The paid reaction can't be removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Removes a reaction from a message. A chosen reaction can always be removed + /// Type of the reaction to remove. The paid reaction can't be removed /// - public static Task RemoveMessageReactionAsync( - this IClient client, long chatId = default, long messageId = default, ReactionType reactionType = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } + } + + /// + /// Removes a reaction from a message. A chosen reaction can always be removed + /// + public static Task RemoveMessageReactionAsync( + this IClient client, long chatId = default, long messageId = default, ReactionType reactionType = default) + { + return client.ExecuteAsync(new RemoveMessageReaction { - return client.ExecuteAsync(new RemoveMessageReaction - { - ChatId = chatId, MessageId = messageId, ReactionType = reactionType - }); - } + ChatId = chatId, MessageId = messageId, ReactionType = reactionType + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveMessageSenderBotVerification.cs b/TdLib.Api/Functions/RemoveMessageSenderBotVerification.cs index 6c12e44f..d876eb3c 100644 --- a/TdLib.Api/Functions/RemoveMessageSenderBotVerification.cs +++ b/TdLib.Api/Functions/RemoveMessageSenderBotVerification.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes the verification status of a user or a chat by an owned bot /// - public static partial class TdApi + public class RemoveMessageSenderBotVerification : Function { /// - /// Removes the verification status of a user or a chat by an owned bot + /// Data type for serialization /// - public class RemoveMessageSenderBotVerification : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeMessageSenderBotVerification"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeMessageSenderBotVerification"; - /// - /// Identifier of the owned bot, which verified the user or the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the supergroup or channel chat, which verification is removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verified_id")] - public MessageSender VerifiedId { get; set; } - } + /// + /// Identifier of the owned bot, which verified the user or the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Removes the verification status of a user or a chat by an owned bot + /// Identifier of the user or the supergroup or channel chat, which verification is removed /// - public static Task RemoveMessageSenderBotVerificationAsync( - this IClient client, long botUserId = default, MessageSender verifiedId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("verified_id")] + public MessageSender VerifiedId { get; set; } + } + + /// + /// Removes the verification status of a user or a chat by an owned bot + /// + public static Task RemoveMessageSenderBotVerificationAsync( + this IClient client, long botUserId = default, MessageSender verifiedId = default) + { + return client.ExecuteAsync(new RemoveMessageSenderBotVerification { - return client.ExecuteAsync(new RemoveMessageSenderBotVerification - { - BotUserId = botUserId, VerifiedId = verifiedId - }); - } + BotUserId = botUserId, VerifiedId = verifiedId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveNotification.cs b/TdLib.Api/Functions/RemoveNotification.cs index d0a3141a..3b28904f 100644 --- a/TdLib.Api/Functions/RemoveNotification.cs +++ b/TdLib.Api/Functions/RemoveNotification.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user /// - public static partial class TdApi + public class RemoveNotification : Function { /// - /// Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user + /// Data type for serialization /// - public class RemoveNotification : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeNotification"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeNotification"; - /// - /// Identifier of notification group to which the notification belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_group_id")] - public int NotificationGroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of removed notification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_id")] - public int NotificationId { get; set; } - } + /// + /// Identifier of notification group to which the notification belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_group_id")] + public int NotificationGroupId { get; set; } /// - /// Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user + /// Identifier of removed notification /// - public static Task RemoveNotificationAsync( - this IClient client, int notificationGroupId = default, int notificationId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_id")] + public int NotificationId { get; set; } + } + + /// + /// Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user + /// + public static Task RemoveNotificationAsync( + this IClient client, int notificationGroupId = default, int notificationId = default) + { + return client.ExecuteAsync(new RemoveNotification { - return client.ExecuteAsync(new RemoveNotification - { - NotificationGroupId = notificationGroupId, NotificationId = notificationId - }); - } + NotificationGroupId = notificationGroupId, NotificationId = notificationId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveNotificationGroup.cs b/TdLib.Api/Functions/RemoveNotificationGroup.cs index d018136e..e9fcb7db 100644 --- a/TdLib.Api/Functions/RemoveNotificationGroup.cs +++ b/TdLib.Api/Functions/RemoveNotificationGroup.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user /// - public static partial class TdApi + public class RemoveNotificationGroup : Function { /// - /// Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user + /// Data type for serialization /// - public class RemoveNotificationGroup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeNotificationGroup"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeNotificationGroup"; - /// - /// Notification group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_group_id")] - public int NotificationGroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum identifier of removed notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_notification_id")] - public int MaxNotificationId { get; set; } - } + /// + /// Notification group identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_group_id")] + public int NotificationGroupId { get; set; } /// - /// Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user + /// The maximum identifier of removed notifications /// - public static Task RemoveNotificationGroupAsync( - this IClient client, int notificationGroupId = default, int maxNotificationId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("max_notification_id")] + public int MaxNotificationId { get; set; } + } + + /// + /// Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user + /// + public static Task RemoveNotificationGroupAsync( + this IClient client, int notificationGroupId = default, int maxNotificationId = default) + { + return client.ExecuteAsync(new RemoveNotificationGroup { - return client.ExecuteAsync(new RemoveNotificationGroup - { - NotificationGroupId = notificationGroupId, MaxNotificationId = maxNotificationId - }); - } + NotificationGroupId = notificationGroupId, MaxNotificationId = maxNotificationId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemovePendingLiveStoryReactions.cs b/TdLib.Api/Functions/RemovePendingLiveStoryReactions.cs index d576f124..75a4798d 100644 --- a/TdLib.Api/Functions/RemovePendingLiveStoryReactions.cs +++ b/TdLib.Api/Functions/RemovePendingLiveStoryReactions.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes all pending paid reactions in a live story group call /// - public static partial class TdApi + public class RemovePendingLiveStoryReactions : Function { /// - /// Removes all pending paid reactions in a live story group call + /// Data type for serialization /// - public class RemovePendingLiveStoryReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removePendingLiveStoryReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removePendingLiveStoryReactions"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes all pending paid reactions in a live story group call + /// Group call identifier /// - public static Task RemovePendingLiveStoryReactionsAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Removes all pending paid reactions in a live story group call + /// + public static Task RemovePendingLiveStoryReactionsAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new RemovePendingLiveStoryReactions { - return client.ExecuteAsync(new RemovePendingLiveStoryReactions - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemovePendingPaidMessageReactions.cs b/TdLib.Api/Functions/RemovePendingPaidMessageReactions.cs index 88eea03c..6c35e95a 100644 --- a/TdLib.Api/Functions/RemovePendingPaidMessageReactions.cs +++ b/TdLib.Api/Functions/RemovePendingPaidMessageReactions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes all pending paid reactions on a message /// - public static partial class TdApi + public class RemovePendingPaidMessageReactions : Function { /// - /// Removes all pending paid reactions on a message + /// Data type for serialization /// - public class RemovePendingPaidMessageReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removePendingPaidMessageReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removePendingPaidMessageReactions"; - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Removes all pending paid reactions on a message + /// Identifier of the message /// - public static Task RemovePendingPaidMessageReactionsAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Removes all pending paid reactions on a message + /// + public static Task RemovePendingPaidMessageReactionsAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new RemovePendingPaidMessageReactions { - return client.ExecuteAsync(new RemovePendingPaidMessageReactions - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveProfileAudio.cs b/TdLib.Api/Functions/RemoveProfileAudio.cs index 98fde8b3..52b70f59 100644 --- a/TdLib.Api/Functions/RemoveProfileAudio.cs +++ b/TdLib.Api/Functions/RemoveProfileAudio.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes an audio file from the profile audio files of the current user /// - public static partial class TdApi + public class RemoveProfileAudio : Function { /// - /// Removes an audio file from the profile audio files of the current user + /// Data type for serialization /// - public class RemoveProfileAudio : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeProfileAudio"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeProfileAudio"; - /// - /// Identifier of the audio file to be removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes an audio file from the profile audio files of the current user + /// Identifier of the audio file to be removed /// - public static Task RemoveProfileAudioAsync( - this IClient client, int fileId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } + } + + /// + /// Removes an audio file from the profile audio files of the current user + /// + public static Task RemoveProfileAudioAsync( + this IClient client, int fileId = default) + { + return client.ExecuteAsync(new RemoveProfileAudio { - return client.ExecuteAsync(new RemoveProfileAudio - { - FileId = fileId - }); - } + FileId = fileId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveProxy.cs b/TdLib.Api/Functions/RemoveProxy.cs index 2d79e445..62d76403 100644 --- a/TdLib.Api/Functions/RemoveProxy.cs +++ b/TdLib.Api/Functions/RemoveProxy.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a proxy server. Can be called before authorization /// - public static partial class TdApi + public class RemoveProxy : Function { /// - /// Removes a proxy server. Can be called before authorization + /// Data type for serialization /// - public class RemoveProxy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeProxy"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeProxy"; - /// - /// Proxy identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy_id")] - public int ProxyId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a proxy server. Can be called before authorization + /// Proxy identifier /// - public static Task RemoveProxyAsync( - this IClient client, int proxyId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy_id")] + public int ProxyId { get; set; } + } + + /// + /// Removes a proxy server. Can be called before authorization + /// + public static Task RemoveProxyAsync( + this IClient client, int proxyId = default) + { + return client.ExecuteAsync(new RemoveProxy { - return client.ExecuteAsync(new RemoveProxy - { - ProxyId = proxyId - }); - } + ProxyId = proxyId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveRecentHashtag.cs b/TdLib.Api/Functions/RemoveRecentHashtag.cs index 56600641..bab80cda 100644 --- a/TdLib.Api/Functions/RemoveRecentHashtag.cs +++ b/TdLib.Api/Functions/RemoveRecentHashtag.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a hashtag from the list of recently used hashtags /// - public static partial class TdApi + public class RemoveRecentHashtag : Function { /// - /// Removes a hashtag from the list of recently used hashtags + /// Data type for serialization /// - public class RemoveRecentHashtag : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeRecentHashtag"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeRecentHashtag"; - /// - /// Hashtag to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hashtag")] - public string Hashtag { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a hashtag from the list of recently used hashtags + /// Hashtag to delete /// - public static Task RemoveRecentHashtagAsync( - this IClient client, string hashtag = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("hashtag")] + public string Hashtag { get; set; } + } + + /// + /// Removes a hashtag from the list of recently used hashtags + /// + public static Task RemoveRecentHashtagAsync( + this IClient client, string hashtag = default) + { + return client.ExecuteAsync(new RemoveRecentHashtag { - return client.ExecuteAsync(new RemoveRecentHashtag - { - Hashtag = hashtag - }); - } + Hashtag = hashtag + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveRecentSticker.cs b/TdLib.Api/Functions/RemoveRecentSticker.cs index 74d5bf6e..1f2c5c9b 100644 --- a/TdLib.Api/Functions/RemoveRecentSticker.cs +++ b/TdLib.Api/Functions/RemoveRecentSticker.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a sticker from the list of recently used stickers /// - public static partial class TdApi + public class RemoveRecentSticker : Function { /// - /// Removes a sticker from the list of recently used stickers + /// Data type for serialization /// - public class RemoveRecentSticker : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeRecentSticker"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeRecentSticker"; - /// - /// Pass true to remove the sticker from the list of stickers recently attached to photo or video files; pass false to remove the sticker from the list of recently sent stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_attached")] - public bool IsAttached { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker file to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Pass true to remove the sticker from the list of stickers recently attached to photo or video files; pass false to remove the sticker from the list of recently sent stickers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_attached")] + public bool IsAttached { get; set; } /// - /// Removes a sticker from the list of recently used stickers + /// Sticker file to delete /// - public static Task RemoveRecentStickerAsync( - this IClient client, bool isAttached = default, InputFile sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } + } + + /// + /// Removes a sticker from the list of recently used stickers + /// + public static Task RemoveRecentStickerAsync( + this IClient client, bool isAttached = default, InputFile sticker = default) + { + return client.ExecuteAsync(new RemoveRecentSticker { - return client.ExecuteAsync(new RemoveRecentSticker - { - IsAttached = isAttached, Sticker = sticker - }); - } + IsAttached = isAttached, Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveRecentlyFoundChat.cs b/TdLib.Api/Functions/RemoveRecentlyFoundChat.cs index b8d26692..affb9a5e 100644 --- a/TdLib.Api/Functions/RemoveRecentlyFoundChat.cs +++ b/TdLib.Api/Functions/RemoveRecentlyFoundChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a chat from the list of recently found chats /// - public static partial class TdApi + public class RemoveRecentlyFoundChat : Function { /// - /// Removes a chat from the list of recently found chats + /// Data type for serialization /// - public class RemoveRecentlyFoundChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeRecentlyFoundChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeRecentlyFoundChat"; - /// - /// Identifier of the chat to be removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a chat from the list of recently found chats + /// Identifier of the chat to be removed /// - public static Task RemoveRecentlyFoundChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Removes a chat from the list of recently found chats + /// + public static Task RemoveRecentlyFoundChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new RemoveRecentlyFoundChat { - return client.ExecuteAsync(new RemoveRecentlyFoundChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveSavedAnimation.cs b/TdLib.Api/Functions/RemoveSavedAnimation.cs index 6f87c20a..ad5ac212 100644 --- a/TdLib.Api/Functions/RemoveSavedAnimation.cs +++ b/TdLib.Api/Functions/RemoveSavedAnimation.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes an animation from the list of saved animations /// - public static partial class TdApi + public class RemoveSavedAnimation : Function { /// - /// Removes an animation from the list of saved animations + /// Data type for serialization /// - public class RemoveSavedAnimation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeSavedAnimation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeSavedAnimation"; - /// - /// Animation file to be removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public InputFile Animation { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes an animation from the list of saved animations + /// Animation file to be removed /// - public static Task RemoveSavedAnimationAsync( - this IClient client, InputFile animation = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public InputFile Animation { get; set; } + } + + /// + /// Removes an animation from the list of saved animations + /// + public static Task RemoveSavedAnimationAsync( + this IClient client, InputFile animation = default) + { + return client.ExecuteAsync(new RemoveSavedAnimation { - return client.ExecuteAsync(new RemoveSavedAnimation - { - Animation = animation - }); - } + Animation = animation + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveSavedNotificationSound.cs b/TdLib.Api/Functions/RemoveSavedNotificationSound.cs index aa1bb98c..8599706a 100644 --- a/TdLib.Api/Functions/RemoveSavedNotificationSound.cs +++ b/TdLib.Api/Functions/RemoveSavedNotificationSound.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a notification sound from the list of saved notification sounds /// - public static partial class TdApi + public class RemoveSavedNotificationSound : Function { /// - /// Removes a notification sound from the list of saved notification sounds + /// Data type for serialization /// - public class RemoveSavedNotificationSound : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeSavedNotificationSound"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeSavedNotificationSound"; - /// - /// Identifier of the notification sound - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("notification_sound_id")] - public long NotificationSoundId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a notification sound from the list of saved notification sounds + /// Identifier of the notification sound /// - public static Task RemoveSavedNotificationSoundAsync( - this IClient client, long notificationSoundId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("notification_sound_id")] + public long NotificationSoundId { get; set; } + } + + /// + /// Removes a notification sound from the list of saved notification sounds + /// + public static Task RemoveSavedNotificationSoundAsync( + this IClient client, long notificationSoundId = default) + { + return client.ExecuteAsync(new RemoveSavedNotificationSound { - return client.ExecuteAsync(new RemoveSavedNotificationSound - { - NotificationSoundId = notificationSoundId - }); - } + NotificationSoundId = notificationSoundId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveSearchedForTag.cs b/TdLib.Api/Functions/RemoveSearchedForTag.cs index 796db823..ea83ed10 100644 --- a/TdLib.Api/Functions/RemoveSearchedForTag.cs +++ b/TdLib.Api/Functions/RemoveSearchedForTag.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags /// - public static partial class TdApi + public class RemoveSearchedForTag : Function { /// - /// Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags + /// Data type for serialization /// - public class RemoveSearchedForTag : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeSearchedForTag"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeSearchedForTag"; - /// - /// Hashtag or cashtag to delete - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public string Tag { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags + /// Hashtag or cashtag to delete /// - public static Task RemoveSearchedForTagAsync( - this IClient client, string tag = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public string Tag { get; set; } + } + + /// + /// Removes a hashtag or a cashtag from the list of recently searched for hashtags or cashtags + /// + public static Task RemoveSearchedForTagAsync( + this IClient client, string tag = default) + { + return client.ExecuteAsync(new RemoveSearchedForTag { - return client.ExecuteAsync(new RemoveSearchedForTag - { - Tag = tag - }); - } + Tag = tag + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveStickerFromSet.cs b/TdLib.Api/Functions/RemoveStickerFromSet.cs index c1d34dc4..52e49648 100644 --- a/TdLib.Api/Functions/RemoveStickerFromSet.cs +++ b/TdLib.Api/Functions/RemoveStickerFromSet.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a sticker from the set to which it belongs. The sticker set must be owned by the current user /// - public static partial class TdApi + public class RemoveStickerFromSet : Function { /// - /// Removes a sticker from the set to which it belongs. The sticker set must be owned by the current user + /// Data type for serialization /// - public class RemoveStickerFromSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeStickerFromSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeStickerFromSet"; - /// - /// Sticker to remove from the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a sticker from the set to which it belongs. The sticker set must be owned by the current user + /// Sticker to remove from the set /// - public static Task RemoveStickerFromSetAsync( - this IClient client, InputFile sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } + } + + /// + /// Removes a sticker from the set to which it belongs. The sticker set must be owned by the current user + /// + public static Task RemoveStickerFromSetAsync( + this IClient client, InputFile sticker = default) + { + return client.ExecuteAsync(new RemoveStickerFromSet { - return client.ExecuteAsync(new RemoveStickerFromSet - { - Sticker = sticker - }); - } + Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveStoryAlbumStories.cs b/TdLib.Api/Functions/RemoveStoryAlbumStories.cs index d093015a..5e872178 100644 --- a/TdLib.Api/Functions/RemoveStoryAlbumStories.cs +++ b/TdLib.Api/Functions/RemoveStoryAlbumStories.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes stories from an album. If the album is owned by a supergroup or a channel chat, then + /// requires can_edit_stories administrator right in the chat. Returns the changed album /// - public static partial class TdApi + public class RemoveStoryAlbumStories : Function { /// - /// Removes stories from an album. If the album is owned by a supergroup or a channel chat, then - /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// Data type for serialization /// - public class RemoveStoryAlbumStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeStoryAlbumStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeStoryAlbumStories"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that owns the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_id")] - public int StoryAlbumId { get; set; } + /// + /// Identifier of the chat that owns the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the stories to remove from the album - /// - [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] - public int[] StoryIds { get; set; } - } + /// + /// Identifier of the story album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_id")] + public int StoryAlbumId { get; set; } /// - /// Removes stories from an album. If the album is owned by a supergroup or a channel chat, then - /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// Identifier of the stories to remove from the album /// - public static Task RemoveStoryAlbumStoriesAsync( - this IClient client, long chatId = default, int storyAlbumId = default, int[] storyIds = default) + [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] + public int[] StoryIds { get; set; } + } + + /// + /// Removes stories from an album. If the album is owned by a supergroup or a channel chat, then + /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// + public static Task RemoveStoryAlbumStoriesAsync( + this IClient client, long chatId = default, int storyAlbumId = default, int[] storyIds = default) + { + return client.ExecuteAsync(new RemoveStoryAlbumStories { - return client.ExecuteAsync(new RemoveStoryAlbumStories - { - ChatId = chatId, StoryAlbumId = storyAlbumId, StoryIds = storyIds - }); - } + ChatId = chatId, StoryAlbumId = storyAlbumId, StoryIds = storyIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveTextCompositionStyle.cs b/TdLib.Api/Functions/RemoveTextCompositionStyle.cs index ac98d4fd..9005fb71 100644 --- a/TdLib.Api/Functions/RemoveTextCompositionStyle.cs +++ b/TdLib.Api/Functions/RemoveTextCompositionStyle.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a custom text composition style from the list of used by the user styles. If the style was created by the current user, then it can only be deleted /// - public static partial class TdApi + public class RemoveTextCompositionStyle : Function { /// - /// Removes a custom text composition style from the list of used by the user styles. If the style was created by the current user, then it can only be deleted + /// Data type for serialization /// - public class RemoveTextCompositionStyle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeTextCompositionStyle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeTextCompositionStyle"; - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a custom text composition style from the list of used by the user styles. If the style was created by the current user, then it can only be deleted + /// Name of the style /// - public static Task RemoveTextCompositionStyleAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Removes a custom text composition style from the list of used by the user styles. If the style was created by the current user, then it can only be deleted + /// + public static Task RemoveTextCompositionStyleAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new RemoveTextCompositionStyle { - return client.ExecuteAsync(new RemoveTextCompositionStyle - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveTopChat.cs b/TdLib.Api/Functions/RemoveTopChat.cs index 8e1135b5..f6483f29 100644 --- a/TdLib.Api/Functions/RemoveTopChat.cs +++ b/TdLib.Api/Functions/RemoveTopChat.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled /// - public static partial class TdApi + public class RemoveTopChat : Function { /// - /// Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled + /// Data type for serialization /// - public class RemoveTopChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeTopChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeTopChat"; - /// - /// Category of frequently used chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("category")] - public TopChatCategory Category { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Category of frequently used chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("category")] + public TopChatCategory Category { get; set; } /// - /// Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled + /// Chat identifier /// - public static Task RemoveTopChatAsync( - this IClient client, TopChatCategory category = default, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled + /// + public static Task RemoveTopChatAsync( + this IClient client, TopChatCategory category = default, long chatId = default) + { + return client.ExecuteAsync(new RemoveTopChat { - return client.ExecuteAsync(new RemoveTopChat - { - Category = category, ChatId = chatId - }); - } + Category = category, ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RemoveWebBrowserSettingsException.cs b/TdLib.Api/Functions/RemoveWebBrowserSettingsException.cs index b5c1f010..4d2b122e 100644 --- a/TdLib.Api/Functions/RemoveWebBrowserSettingsException.cs +++ b/TdLib.Api/Functions/RemoveWebBrowserSettingsException.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a special handling for the opening of the specified URL /// - public static partial class TdApi + public class RemoveWebBrowserSettingsException : Function { /// - /// Removes a special handling for the opening of the specified URL + /// Data type for serialization /// - public class RemoveWebBrowserSettingsException : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "removeWebBrowserSettingsException"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "removeWebBrowserSettingsException"; - /// - /// URL of the website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes a special handling for the opening of the specified URL + /// URL of the website /// - public static Task RemoveWebBrowserSettingsExceptionAsync( - this IClient client, string url = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } + + /// + /// Removes a special handling for the opening of the specified URL + /// + public static Task RemoveWebBrowserSettingsExceptionAsync( + this IClient client, string url = default) + { + return client.ExecuteAsync(new RemoveWebBrowserSettingsException { - return client.ExecuteAsync(new RemoveWebBrowserSettingsException - { - Url = url - }); - } + Url = url + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderActiveUsernames.cs b/TdLib.Api/Functions/ReorderActiveUsernames.cs index a9f610a2..751a3c51 100644 --- a/TdLib.Api/Functions/ReorderActiveUsernames.cs +++ b/TdLib.Api/Functions/ReorderActiveUsernames.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of active usernames of the current user /// - public static partial class TdApi + public class ReorderActiveUsernames : Function { /// - /// Changes order of active usernames of the current user + /// Data type for serialization /// - public class ReorderActiveUsernames : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderActiveUsernames"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderActiveUsernames"; - /// - /// The new order of active usernames. All currently active usernames must be specified - /// - [JsonProperty("usernames", ItemConverterType = typeof(Converter))] - public string[] Usernames { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes order of active usernames of the current user + /// The new order of active usernames. All currently active usernames must be specified /// - public static Task ReorderActiveUsernamesAsync( - this IClient client, string[] usernames = default) + [JsonProperty("usernames", ItemConverterType = typeof(Converter))] + public string[] Usernames { get; set; } + } + + /// + /// Changes order of active usernames of the current user + /// + public static Task ReorderActiveUsernamesAsync( + this IClient client, string[] usernames = default) + { + return client.ExecuteAsync(new ReorderActiveUsernames { - return client.ExecuteAsync(new ReorderActiveUsernames - { - Usernames = usernames - }); - } + Usernames = usernames + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderBotActiveUsernames.cs b/TdLib.Api/Functions/ReorderBotActiveUsernames.cs index e0ed8816..980d7712 100644 --- a/TdLib.Api/Functions/ReorderBotActiveUsernames.cs +++ b/TdLib.Api/Functions/ReorderBotActiveUsernames.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class ReorderBotActiveUsernames : Function { /// - /// Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class ReorderBotActiveUsernames : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderBotActiveUsernames"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderBotActiveUsernames"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new order of active usernames. All currently active usernames must be specified - /// - [JsonProperty("usernames", ItemConverterType = typeof(Converter))] - public string[] Usernames { get; set; } - } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true + /// The new order of active usernames. All currently active usernames must be specified /// - public static Task ReorderBotActiveUsernamesAsync( - this IClient client, long botUserId = default, string[] usernames = default) + [JsonProperty("usernames", ItemConverterType = typeof(Converter))] + public string[] Usernames { get; set; } + } + + /// + /// Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task ReorderBotActiveUsernamesAsync( + this IClient client, long botUserId = default, string[] usernames = default) + { + return client.ExecuteAsync(new ReorderBotActiveUsernames { - return client.ExecuteAsync(new ReorderBotActiveUsernames - { - BotUserId = botUserId, Usernames = usernames - }); - } + BotUserId = botUserId, Usernames = usernames + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderBotMediaPreviews.cs b/TdLib.Api/Functions/ReorderBotMediaPreviews.cs index 22f4a22e..7f08cd43 100644 --- a/TdLib.Api/Functions/ReorderBotMediaPreviews.cs +++ b/TdLib.Api/Functions/ReorderBotMediaPreviews.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of media previews in the list of media previews of a bot /// - public static partial class TdApi + public class ReorderBotMediaPreviews : Function { /// - /// Changes order of media previews in the list of media previews of a bot + /// Data type for serialization /// - public class ReorderBotMediaPreviews : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderBotMediaPreviews"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderBotMediaPreviews"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot. The bot must be owned and must have the main Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Language code of the media previews to reorder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Identifier of the target bot. The bot must be owned and must have the main Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// File identifiers of the media in the new order - /// - [JsonProperty("file_ids", ItemConverterType = typeof(Converter))] - public int[] FileIds { get; set; } - } + /// + /// Language code of the media previews to reorder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Changes order of media previews in the list of media previews of a bot + /// File identifiers of the media in the new order /// - public static Task ReorderBotMediaPreviewsAsync( - this IClient client, long botUserId = default, string languageCode = default, int[] fileIds = default) + [JsonProperty("file_ids", ItemConverterType = typeof(Converter))] + public int[] FileIds { get; set; } + } + + /// + /// Changes order of media previews in the list of media previews of a bot + /// + public static Task ReorderBotMediaPreviewsAsync( + this IClient client, long botUserId = default, string languageCode = default, int[] fileIds = default) + { + return client.ExecuteAsync(new ReorderBotMediaPreviews { - return client.ExecuteAsync(new ReorderBotMediaPreviews - { - BotUserId = botUserId, LanguageCode = languageCode, FileIds = fileIds - }); - } + BotUserId = botUserId, LanguageCode = languageCode, FileIds = fileIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderChatFolders.cs b/TdLib.Api/Functions/ReorderChatFolders.cs index 89c30363..2d7d3d5c 100644 --- a/TdLib.Api/Functions/ReorderChatFolders.cs +++ b/TdLib.Api/Functions/ReorderChatFolders.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the order of chat folders /// - public static partial class TdApi + public class ReorderChatFolders : Function { /// - /// Changes the order of chat folders + /// Data type for serialization /// - public class ReorderChatFolders : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderChatFolders"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderChatFolders"; - /// - /// Identifiers of chat folders in the new correct order - /// - [JsonProperty("chat_folder_ids", ItemConverterType = typeof(Converter))] - public int[] ChatFolderIds { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_chat_list_position")] - public int MainChatListPosition { get; set; } - } + /// + /// Identifiers of chat folders in the new correct order + /// + [JsonProperty("chat_folder_ids", ItemConverterType = typeof(Converter))] + public int[] ChatFolderIds { get; set; } /// - /// Changes the order of chat folders + /// Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users /// - public static Task ReorderChatFoldersAsync( - this IClient client, int[] chatFolderIds = default, int mainChatListPosition = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("main_chat_list_position")] + public int MainChatListPosition { get; set; } + } + + /// + /// Changes the order of chat folders + /// + public static Task ReorderChatFoldersAsync( + this IClient client, int[] chatFolderIds = default, int mainChatListPosition = default) + { + return client.ExecuteAsync(new ReorderChatFolders { - return client.ExecuteAsync(new ReorderChatFolders - { - ChatFolderIds = chatFolderIds, MainChatListPosition = mainChatListPosition - }); - } + ChatFolderIds = chatFolderIds, MainChatListPosition = mainChatListPosition + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderGiftCollectionGifts.cs b/TdLib.Api/Functions/ReorderGiftCollectionGifts.cs index fa0f7b33..cb3b6d5c 100644 --- a/TdLib.Api/Functions/ReorderGiftCollectionGifts.cs +++ b/TdLib.Api/Functions/ReorderGiftCollectionGifts.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of gifts in a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection /// - public static partial class TdApi + public class ReorderGiftCollectionGifts : Function { /// - /// Changes order of gifts in a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// Data type for serialization /// - public class ReorderGiftCollectionGifts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderGiftCollectionGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderGiftCollectionGifts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user or the channel chat that owns the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("collection_id")] - public int CollectionId { get; set; } + /// + /// Identifier of the user or the channel chat that owns the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Identifier of the gifts to move to the beginning of the collection. All other gifts are placed in the current order after the specified gifts - /// - [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] - public string[] ReceivedGiftIds { get; set; } - } + /// + /// Identifier of the gift collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_id")] + public int CollectionId { get; set; } /// - /// Changes order of gifts in a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// Identifier of the gifts to move to the beginning of the collection. All other gifts are placed in the current order after the specified gifts /// - public static Task ReorderGiftCollectionGiftsAsync( - this IClient client, MessageSender ownerId = default, int collectionId = default, string[] receivedGiftIds = default) + [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] + public string[] ReceivedGiftIds { get; set; } + } + + /// + /// Changes order of gifts in a collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// + public static Task ReorderGiftCollectionGiftsAsync( + this IClient client, MessageSender ownerId = default, int collectionId = default, string[] receivedGiftIds = default) + { + return client.ExecuteAsync(new ReorderGiftCollectionGifts { - return client.ExecuteAsync(new ReorderGiftCollectionGifts - { - OwnerId = ownerId, CollectionId = collectionId, ReceivedGiftIds = receivedGiftIds - }); - } + OwnerId = ownerId, CollectionId = collectionId, ReceivedGiftIds = receivedGiftIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderGiftCollections.cs b/TdLib.Api/Functions/ReorderGiftCollections.cs index e4a51a55..b9503a53 100644 --- a/TdLib.Api/Functions/ReorderGiftCollections.cs +++ b/TdLib.Api/Functions/ReorderGiftCollections.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of gift collections. If the collections are owned by a channel chat, then requires can_post_messages administrator right in the channel chat /// - public static partial class TdApi + public class ReorderGiftCollections : Function { /// - /// Changes order of gift collections. If the collections are owned by a channel chat, then requires can_post_messages administrator right in the channel chat + /// Data type for serialization /// - public class ReorderGiftCollections : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderGiftCollections"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderGiftCollections"; - /// - /// Identifier of the user or the channel chat that owns the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New order of gift collections - /// - [JsonProperty("collection_ids", ItemConverterType = typeof(Converter))] - public int[] CollectionIds { get; set; } - } + /// + /// Identifier of the user or the channel chat that owns the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } /// - /// Changes order of gift collections. If the collections are owned by a channel chat, then requires can_post_messages administrator right in the channel chat + /// New order of gift collections /// - public static Task ReorderGiftCollectionsAsync( - this IClient client, MessageSender ownerId = default, int[] collectionIds = default) + [JsonProperty("collection_ids", ItemConverterType = typeof(Converter))] + public int[] CollectionIds { get; set; } + } + + /// + /// Changes order of gift collections. If the collections are owned by a channel chat, then requires can_post_messages administrator right in the channel chat + /// + public static Task ReorderGiftCollectionsAsync( + this IClient client, MessageSender ownerId = default, int[] collectionIds = default) + { + return client.ExecuteAsync(new ReorderGiftCollections { - return client.ExecuteAsync(new ReorderGiftCollections - { - OwnerId = ownerId, CollectionIds = collectionIds - }); - } + OwnerId = ownerId, CollectionIds = collectionIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderInstalledStickerSets.cs b/TdLib.Api/Functions/ReorderInstalledStickerSets.cs index a79d00e2..9b9a471b 100644 --- a/TdLib.Api/Functions/ReorderInstalledStickerSets.cs +++ b/TdLib.Api/Functions/ReorderInstalledStickerSets.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the order of installed sticker sets /// - public static partial class TdApi + public class ReorderInstalledStickerSets : Function { /// - /// Changes the order of installed sticker sets + /// Data type for serialization /// - public class ReorderInstalledStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderInstalledStickerSets"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderInstalledStickerSets"; - /// - /// Type of the sticker sets to reorder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of installed sticker sets in the new correct order - /// - [JsonProperty("sticker_set_ids", ItemConverterType = typeof(Converter))] - public long[] StickerSetIds { get; set; } - } + /// + /// Type of the sticker sets to reorder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } /// - /// Changes the order of installed sticker sets + /// Identifiers of installed sticker sets in the new correct order /// - public static Task ReorderInstalledStickerSetsAsync( - this IClient client, StickerType stickerType = default, long[] stickerSetIds = default) + [JsonProperty("sticker_set_ids", ItemConverterType = typeof(Converter))] + public long[] StickerSetIds { get; set; } + } + + /// + /// Changes the order of installed sticker sets + /// + public static Task ReorderInstalledStickerSetsAsync( + this IClient client, StickerType stickerType = default, long[] stickerSetIds = default) + { + return client.ExecuteAsync(new ReorderInstalledStickerSets { - return client.ExecuteAsync(new ReorderInstalledStickerSets - { - StickerType = stickerType, StickerSetIds = stickerSetIds - }); - } + StickerType = stickerType, StickerSetIds = stickerSetIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderQuickReplyShortcuts.cs b/TdLib.Api/Functions/ReorderQuickReplyShortcuts.cs index c1ea2562..68ee345b 100644 --- a/TdLib.Api/Functions/ReorderQuickReplyShortcuts.cs +++ b/TdLib.Api/Functions/ReorderQuickReplyShortcuts.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the order of quick reply shortcuts /// - public static partial class TdApi + public class ReorderQuickReplyShortcuts : Function { /// - /// Changes the order of quick reply shortcuts + /// Data type for serialization /// - public class ReorderQuickReplyShortcuts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderQuickReplyShortcuts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderQuickReplyShortcuts"; - /// - /// The new order of quick reply shortcuts - /// - [JsonProperty("shortcut_ids", ItemConverterType = typeof(Converter))] - public int[] ShortcutIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the order of quick reply shortcuts + /// The new order of quick reply shortcuts /// - public static Task ReorderQuickReplyShortcutsAsync( - this IClient client, int[] shortcutIds = default) + [JsonProperty("shortcut_ids", ItemConverterType = typeof(Converter))] + public int[] ShortcutIds { get; set; } + } + + /// + /// Changes the order of quick reply shortcuts + /// + public static Task ReorderQuickReplyShortcutsAsync( + this IClient client, int[] shortcutIds = default) + { + return client.ExecuteAsync(new ReorderQuickReplyShortcuts { - return client.ExecuteAsync(new ReorderQuickReplyShortcuts - { - ShortcutIds = shortcutIds - }); - } + ShortcutIds = shortcutIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderStoryAlbumStories.cs b/TdLib.Api/Functions/ReorderStoryAlbumStories.cs index 98859151..811dd9f5 100644 --- a/TdLib.Api/Functions/ReorderStoryAlbumStories.cs +++ b/TdLib.Api/Functions/ReorderStoryAlbumStories.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of stories in an album. If the album is owned by a supergroup or a channel chat, then + /// requires can_edit_stories administrator right in the chat. Returns the changed album /// - public static partial class TdApi + public class ReorderStoryAlbumStories : Function { /// - /// Changes order of stories in an album. If the album is owned by a supergroup or a channel chat, then - /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// Data type for serialization /// - public class ReorderStoryAlbumStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderStoryAlbumStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderStoryAlbumStories"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that owns the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_id")] - public int StoryAlbumId { get; set; } + /// + /// Identifier of the chat that owns the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the stories to move to the beginning of the album. All other stories are placed in the current order after the specified stories - /// - [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] - public int[] StoryIds { get; set; } - } + /// + /// Identifier of the story album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_id")] + public int StoryAlbumId { get; set; } /// - /// Changes order of stories in an album. If the album is owned by a supergroup or a channel chat, then - /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// Identifier of the stories to move to the beginning of the album. All other stories are placed in the current order after the specified stories /// - public static Task ReorderStoryAlbumStoriesAsync( - this IClient client, long chatId = default, int storyAlbumId = default, int[] storyIds = default) + [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] + public int[] StoryIds { get; set; } + } + + /// + /// Changes order of stories in an album. If the album is owned by a supergroup or a channel chat, then + /// requires can_edit_stories administrator right in the chat. Returns the changed album + /// + public static Task ReorderStoryAlbumStoriesAsync( + this IClient client, long chatId = default, int storyAlbumId = default, int[] storyIds = default) + { + return client.ExecuteAsync(new ReorderStoryAlbumStories { - return client.ExecuteAsync(new ReorderStoryAlbumStories - { - ChatId = chatId, StoryAlbumId = storyAlbumId, StoryIds = storyIds - }); - } + ChatId = chatId, StoryAlbumId = storyAlbumId, StoryIds = storyIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderStoryAlbums.cs b/TdLib.Api/Functions/ReorderStoryAlbums.cs index 75003547..348dd2e1 100644 --- a/TdLib.Api/Functions/ReorderStoryAlbums.cs +++ b/TdLib.Api/Functions/ReorderStoryAlbums.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of story albums. If the albums are owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat /// - public static partial class TdApi + public class ReorderStoryAlbums : Function { /// - /// Changes order of story albums. If the albums are owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat + /// Data type for serialization /// - public class ReorderStoryAlbums : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderStoryAlbums"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderStoryAlbums"; - /// - /// Identifier of the chat that owns the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New order of story albums - /// - [JsonProperty("story_album_ids", ItemConverterType = typeof(Converter))] - public int[] StoryAlbumIds { get; set; } - } + /// + /// Identifier of the chat that owns the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes order of story albums. If the albums are owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat + /// New order of story albums /// - public static Task ReorderStoryAlbumsAsync( - this IClient client, long chatId = default, int[] storyAlbumIds = default) + [JsonProperty("story_album_ids", ItemConverterType = typeof(Converter))] + public int[] StoryAlbumIds { get; set; } + } + + /// + /// Changes order of story albums. If the albums are owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat + /// + public static Task ReorderStoryAlbumsAsync( + this IClient client, long chatId = default, int[] storyAlbumIds = default) + { + return client.ExecuteAsync(new ReorderStoryAlbums { - return client.ExecuteAsync(new ReorderStoryAlbums - { - ChatId = chatId, StoryAlbumIds = storyAlbumIds - }); - } + ChatId = chatId, StoryAlbumIds = storyAlbumIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReorderSupergroupActiveUsernames.cs b/TdLib.Api/Functions/ReorderSupergroupActiveUsernames.cs index 31704cef..ff360069 100644 --- a/TdLib.Api/Functions/ReorderSupergroupActiveUsernames.cs +++ b/TdLib.Api/Functions/ReorderSupergroupActiveUsernames.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel /// - public static partial class TdApi + public class ReorderSupergroupActiveUsernames : Function { /// - /// Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel + /// Data type for serialization /// - public class ReorderSupergroupActiveUsernames : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reorderSupergroupActiveUsernames"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reorderSupergroupActiveUsernames"; - /// - /// Identifier of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new order of active usernames. All currently active usernames must be specified - /// - [JsonProperty("usernames", ItemConverterType = typeof(Converter))] - public string[] Usernames { get; set; } - } + /// + /// Identifier of the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel + /// The new order of active usernames. All currently active usernames must be specified /// - public static Task ReorderSupergroupActiveUsernamesAsync( - this IClient client, long supergroupId = default, string[] usernames = default) + [JsonProperty("usernames", ItemConverterType = typeof(Converter))] + public string[] Usernames { get; set; } + } + + /// + /// Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel + /// + public static Task ReorderSupergroupActiveUsernamesAsync( + this IClient client, long supergroupId = default, string[] usernames = default) + { + return client.ExecuteAsync(new ReorderSupergroupActiveUsernames { - return client.ExecuteAsync(new ReorderSupergroupActiveUsernames - { - SupergroupId = supergroupId, Usernames = usernames - }); - } + SupergroupId = supergroupId, Usernames = usernames + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReplaceLiveStoryRtmpUrl.cs b/TdLib.Api/Functions/ReplaceLiveStoryRtmpUrl.cs index c2a09749..cbfb811e 100644 --- a/TdLib.Api/Functions/ReplaceLiveStoryRtmpUrl.cs +++ b/TdLib.Api/Functions/ReplaceLiveStoryRtmpUrl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Replaces the current RTMP URL for streaming to a live story; requires owner privileges for channel chats /// - public static partial class TdApi + public class ReplaceLiveStoryRtmpUrl : Function { /// - /// Replaces the current RTMP URL for streaming to a live story; requires owner privileges for channel chats + /// Data type for serialization /// - public class ReplaceLiveStoryRtmpUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replaceLiveStoryRtmpUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "replaceLiveStoryRtmpUrl"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Replaces the current RTMP URL for streaming to a live story; requires owner privileges for channel chats + /// Chat identifier /// - public static Task ReplaceLiveStoryRtmpUrlAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Replaces the current RTMP URL for streaming to a live story; requires owner privileges for channel chats + /// + public static Task ReplaceLiveStoryRtmpUrlAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new ReplaceLiveStoryRtmpUrl { - return client.ExecuteAsync(new ReplaceLiveStoryRtmpUrl - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReplacePrimaryChatInviteLink.cs b/TdLib.Api/Functions/ReplacePrimaryChatInviteLink.cs index 2c62607c..e03fbd4e 100644 --- a/TdLib.Api/Functions/ReplacePrimaryChatInviteLink.cs +++ b/TdLib.Api/Functions/ReplacePrimaryChatInviteLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right /// - public static partial class TdApi + public class ReplacePrimaryChatInviteLink : Function { /// - /// Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right + /// Data type for serialization /// - public class ReplacePrimaryChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replacePrimaryChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "replacePrimaryChatInviteLink"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right + /// Chat identifier /// - public static Task ReplacePrimaryChatInviteLinkAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right + /// + public static Task ReplacePrimaryChatInviteLinkAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new ReplacePrimaryChatInviteLink { - return client.ExecuteAsync(new ReplacePrimaryChatInviteLink - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReplaceStickerInSet.cs b/TdLib.Api/Functions/ReplaceStickerInSet.cs index 5b90a449..40cdeb8f 100644 --- a/TdLib.Api/Functions/ReplaceStickerInSet.cs +++ b/TdLib.Api/Functions/ReplaceStickerInSet.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet /// - public static partial class TdApi + public class ReplaceStickerInSet : Function { /// - /// Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet + /// Data type for serialization /// - public class ReplaceStickerInSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replaceStickerInSet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "replaceStickerInSet"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Sticker set owner; ignored for regular users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker set name. The sticker set must be owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Sticker set owner; ignored for regular users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Sticker to remove from the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_sticker")] - public InputFile OldSticker { get; set; } + /// + /// Sticker set name. The sticker set must be owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Sticker to add to the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_sticker")] - public NewSticker NewSticker { get; set; } - } + /// + /// Sticker to remove from the set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_sticker")] + public InputFile OldSticker { get; set; } /// - /// Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet + /// Sticker to add to the set /// - public static Task ReplaceStickerInSetAsync( - this IClient client, long userId = default, string name = default, InputFile oldSticker = default, NewSticker newSticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_sticker")] + public NewSticker NewSticker { get; set; } + } + + /// + /// Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet + /// + public static Task ReplaceStickerInSetAsync( + this IClient client, long userId = default, string name = default, InputFile oldSticker = default, NewSticker newSticker = default) + { + return client.ExecuteAsync(new ReplaceStickerInSet { - return client.ExecuteAsync(new ReplaceStickerInSet - { - UserId = userId, Name = name, OldSticker = oldSticker, NewSticker = newSticker - }); - } + UserId = userId, Name = name, OldSticker = oldSticker, NewSticker = newSticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReplaceTonWallet.cs b/TdLib.Api/Functions/ReplaceTonWallet.cs new file mode 100644 index 00000000..79d3a976 --- /dev/null +++ b/TdLib.Api/Functions/ReplaceTonWallet.cs @@ -0,0 +1,67 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Replaces the current TON wallet with another existing v6r2 wallet or changes private key of the current TON wallet; can be used only if getOption("can_use_ton_wallet") + /// + public class ReplaceTonWallet : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "replaceTonWallet"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + + /// + /// Original public key of the new TON wallet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("anchor_public_key")] + public byte[] AnchorPublicKey { get; set; } + + /// + /// Proof of ownership of the new private key of the TON wallet; use getTonWalletOwnershipProofChallenge to get a challenge for the proof + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proof")] + public TonWalletOwnershipProof Proof { get; set; } + } + + /// + /// Replaces the current TON wallet with another existing v6r2 wallet or changes private key of the current TON wallet; can be used only if getOption("can_use_ton_wallet") + /// + public static Task ReplaceTonWalletAsync( + this IClient client, string password = default, byte[] anchorPublicKey = default, TonWalletOwnershipProof proof = default) + { + return client.ExecuteAsync(new ReplaceTonWallet + { + Password = password, AnchorPublicKey = anchorPublicKey, Proof = proof + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReplaceVideoChatRtmpUrl.cs b/TdLib.Api/Functions/ReplaceVideoChatRtmpUrl.cs index 8ec800d2..d3094bf3 100644 --- a/TdLib.Api/Functions/ReplaceVideoChatRtmpUrl.cs +++ b/TdLib.Api/Functions/ReplaceVideoChatRtmpUrl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Replaces the current RTMP URL for streaming to the video chat of a chat; requires owner privileges in the chat /// - public static partial class TdApi + public class ReplaceVideoChatRtmpUrl : Function { /// - /// Replaces the current RTMP URL for streaming to the video chat of a chat; requires owner privileges in the chat + /// Data type for serialization /// - public class ReplaceVideoChatRtmpUrl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replaceVideoChatRtmpUrl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "replaceVideoChatRtmpUrl"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Replaces the current RTMP URL for streaming to the video chat of a chat; requires owner privileges in the chat + /// Chat identifier /// - public static Task ReplaceVideoChatRtmpUrlAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Replaces the current RTMP URL for streaming to the video chat of a chat; requires owner privileges in the chat + /// + public static Task ReplaceVideoChatRtmpUrlAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new ReplaceVideoChatRtmpUrl { - return client.ExecuteAsync(new ReplaceVideoChatRtmpUrl - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReplyToCallbackQueryWithEphemeralMessage.cs b/TdLib.Api/Functions/ReplyToCallbackQueryWithEphemeralMessage.cs new file mode 100644 index 00000000..ba2cc64b --- /dev/null +++ b/TdLib.Api/Functions/ReplyToCallbackQueryWithEphemeralMessage.cs @@ -0,0 +1,81 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Replies to a callback query with an ephemeral message; for bots only + /// + public class ReplyToCallbackQueryWithEphemeralMessage : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "replyToCallbackQueryWithEphemeralMessage"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the callback query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("callback_query_id")] + public long CallbackQueryId { get; set; } + + /// + /// Pass true if the ephemeral message must replace the message from which the callback query originated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("replace_callback_query_message")] + public bool ReplaceCallbackQueryMessage { get; set; } + + /// + /// Pass true if the content of the message must be protected from forwarding and saving + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protect_content")] + public bool ProtectContent { get; set; } + + /// + /// The new message reply markup; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } + + /// + /// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Replies to a callback query with an ephemeral message; for bots only + /// + public static Task ReplyToCallbackQueryWithEphemeralMessageAsync( + this IClient client, long callbackQueryId = default, bool replaceCallbackQueryMessage = default, bool protectContent = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new ReplyToCallbackQueryWithEphemeralMessage + { + CallbackQueryId = callbackQueryId, ReplaceCallbackQueryMessage = replaceCallbackQueryMessage, ProtectContent = protectContent, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportAuthenticationCodeMissing.cs b/TdLib.Api/Functions/ReportAuthenticationCodeMissing.cs index f4d090f0..b1a43c9a 100644 --- a/TdLib.Api/Functions/ReportAuthenticationCodeMissing.cs +++ b/TdLib.Api/Functions/ReportAuthenticationCodeMissing.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the current authorization state is authorizationStateWaitCode /// - public static partial class TdApi + public class ReportAuthenticationCodeMissing : Function { /// - /// Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the current authorization state is authorizationStateWaitCode + /// Data type for serialization /// - public class ReportAuthenticationCodeMissing : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportAuthenticationCodeMissing"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportAuthenticationCodeMissing"; - /// - /// Current mobile network code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mobile_network_code")] - public string MobileNetworkCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the current authorization state is authorizationStateWaitCode + /// Current mobile network code /// - public static Task ReportAuthenticationCodeMissingAsync( - this IClient client, string mobileNetworkCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("mobile_network_code")] + public string MobileNetworkCode { get; set; } + } + + /// + /// Reports that authentication code wasn't delivered via SMS; for official mobile applications only. Works only when the current authorization state is authorizationStateWaitCode + /// + public static Task ReportAuthenticationCodeMissingAsync( + this IClient client, string mobileNetworkCode = default) + { + return client.ExecuteAsync(new ReportAuthenticationCodeMissing { - return client.ExecuteAsync(new ReportAuthenticationCodeMissing - { - MobileNetworkCode = mobileNetworkCode - }); - } + MobileNetworkCode = mobileNetworkCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportChat.cs b/TdLib.Api/Functions/ReportChat.cs index 602e5404..1cb8c6fd 100644 --- a/TdLib.Api/Functions/ReportChat.cs +++ b/TdLib.Api/Functions/ReportChat.cs @@ -3,69 +3,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, if chat.can_be_reported, or if messageProperties.can_report_chat /// - public static partial class TdApi + public class ReportChat : Function { /// - /// Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported + /// Data type for serialization /// - public class ReportChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportChat"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Option identifier chosen by the user; leave empty for the initial request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public byte[] OptionId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifiers of reported messages. Use messageProperties.can_report_chat to check whether the message can be reported - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } + /// + /// Option identifier chosen by the user; leave empty for the initial request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public byte[] OptionId { get; set; } - /// - /// Additional report details if asked by the server; 0-1024 characters; leave empty for the initial request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Identifiers of reported messages. Use messageProperties.can_report_chat to check whether the message can be reported + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } /// - /// Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported + /// Additional report details if asked by the server; 0-1024 characters; leave empty for the initial request /// - public static Task ReportChatAsync( - this IClient client, long chatId = default, byte[] optionId = default, long[] messageIds = default, string text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } + } + + /// + /// Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, if chat.can_be_reported, or if messageProperties.can_report_chat + /// + public static Task ReportChatAsync( + this IClient client, long chatId = default, byte[] optionId = default, long[] messageIds = default, string text = default) + { + return client.ExecuteAsync(new ReportChat { - return client.ExecuteAsync(new ReportChat - { - ChatId = chatId, OptionId = optionId, MessageIds = messageIds, Text = text - }); - } + ChatId = chatId, OptionId = optionId, MessageIds = messageIds, Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportChatPhoto.cs b/TdLib.Api/Functions/ReportChatPhoto.cs index 6b032905..352d262a 100644 --- a/TdLib.Api/Functions/ReportChatPhoto.cs +++ b/TdLib.Api/Functions/ReportChatPhoto.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported /// - public static partial class TdApi + public class ReportChatPhoto : Function { /// - /// Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported + /// Data type for serialization /// - public class ReportChatPhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportChatPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportChatPhoto"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the photo to report. Only full photos from chatPhoto can be reported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The reason for reporting the chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public ReportReason Reason { get; set; } + /// + /// Identifier of the photo to report. Only full photos from chatPhoto can be reported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } - /// - /// Additional report details; 0-1024 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// The reason for reporting the chat photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public ReportReason Reason { get; set; } /// - /// Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported + /// Additional report details; 0-1024 characters /// - public static Task ReportChatPhotoAsync( - this IClient client, long chatId = default, int fileId = default, ReportReason reason = default, string text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } + } + + /// + /// Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported + /// + public static Task ReportChatPhotoAsync( + this IClient client, long chatId = default, int fileId = default, ReportReason reason = default, string text = default) + { + return client.ExecuteAsync(new ReportChatPhoto { - return client.ExecuteAsync(new ReportChatPhoto - { - ChatId = chatId, FileId = fileId, Reason = reason, Text = text - }); - } + ChatId = chatId, FileId = fileId, Reason = reason, Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportChatSponsoredMessage.cs b/TdLib.Api/Functions/ReportChatSponsoredMessage.cs index 128924ff..3ca777d3 100644 --- a/TdLib.Api/Functions/ReportChatSponsoredMessage.cs +++ b/TdLib.Api/Functions/ReportChatSponsoredMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports a sponsored message to Telegram moderators /// - public static partial class TdApi + public class ReportChatSponsoredMessage : Function { /// - /// Reports a sponsored message to Telegram moderators + /// Data type for serialization /// - public class ReportChatSponsoredMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportChatSponsoredMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportChatSponsoredMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the sponsored message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sponsored message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier of the sponsored message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Option identifier chosen by the user; leave empty for the initial request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public byte[] OptionId { get; set; } - } + /// + /// Identifier of the sponsored message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Reports a sponsored message to Telegram moderators + /// Option identifier chosen by the user; leave empty for the initial request /// - public static Task ReportChatSponsoredMessageAsync( - this IClient client, long chatId = default, long messageId = default, byte[] optionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public byte[] OptionId { get; set; } + } + + /// + /// Reports a sponsored message to Telegram moderators + /// + public static Task ReportChatSponsoredMessageAsync( + this IClient client, long chatId = default, long messageId = default, byte[] optionId = default) + { + return client.ExecuteAsync(new ReportChatSponsoredMessage { - return client.ExecuteAsync(new ReportChatSponsoredMessage - { - ChatId = chatId, MessageId = messageId, OptionId = optionId - }); - } + ChatId = chatId, MessageId = messageId, OptionId = optionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportMessageReactions.cs b/TdLib.Api/Functions/ReportMessageReactions.cs index 84369c24..33c722e6 100644 --- a/TdLib.Api/Functions/ReportMessageReactions.cs +++ b/TdLib.Api/Functions/ReportMessageReactions.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if messageProperties.can_report_reactions /// - public static partial class TdApi + public class ReportMessageReactions : Function { /// - /// Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if messageProperties.can_report_reactions + /// Data type for serialization /// - public class ReportMessageReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportMessageReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportMessageReactions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the sender, which added the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if messageProperties.can_report_reactions + /// Identifier of the sender, which added the reaction /// - public static Task ReportMessageReactionsAsync( - this IClient client, long chatId = default, long messageId = default, MessageSender senderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + } + + /// + /// Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if messageProperties.can_report_reactions + /// + public static Task ReportMessageReactionsAsync( + this IClient client, long chatId = default, long messageId = default, MessageSender senderId = default) + { + return client.ExecuteAsync(new ReportMessageReactions { - return client.ExecuteAsync(new ReportMessageReactions - { - ChatId = chatId, MessageId = messageId, SenderId = senderId - }); - } + ChatId = chatId, MessageId = messageId, SenderId = senderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportPhoneNumberCodeMissing.cs b/TdLib.Api/Functions/ReportPhoneNumberCodeMissing.cs index 42d0b62c..8867bf64 100644 --- a/TdLib.Api/Functions/ReportPhoneNumberCodeMissing.cs +++ b/TdLib.Api/Functions/ReportPhoneNumberCodeMissing.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports that authentication code wasn't delivered via SMS to the specified phone number; for official mobile applications only /// - public static partial class TdApi + public class ReportPhoneNumberCodeMissing : Function { /// - /// Reports that authentication code wasn't delivered via SMS to the specified phone number; for official mobile applications only + /// Data type for serialization /// - public class ReportPhoneNumberCodeMissing : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportPhoneNumberCodeMissing"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportPhoneNumberCodeMissing"; - /// - /// Current mobile network code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mobile_network_code")] - public string MobileNetworkCode { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Reports that authentication code wasn't delivered via SMS to the specified phone number; for official mobile applications only + /// Current mobile network code /// - public static Task ReportPhoneNumberCodeMissingAsync( - this IClient client, string mobileNetworkCode = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("mobile_network_code")] + public string MobileNetworkCode { get; set; } + } + + /// + /// Reports that authentication code wasn't delivered via SMS to the specified phone number; for official mobile applications only + /// + public static Task ReportPhoneNumberCodeMissingAsync( + this IClient client, string mobileNetworkCode = default) + { + return client.ExecuteAsync(new ReportPhoneNumberCodeMissing { - return client.ExecuteAsync(new ReportPhoneNumberCodeMissing - { - MobileNetworkCode = mobileNetworkCode - }); - } + MobileNetworkCode = mobileNetworkCode + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportSponsoredChat.cs b/TdLib.Api/Functions/ReportSponsoredChat.cs index 8ac5af78..d1500166 100644 --- a/TdLib.Api/Functions/ReportSponsoredChat.cs +++ b/TdLib.Api/Functions/ReportSponsoredChat.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports a sponsored chat to Telegram moderators /// - public static partial class TdApi + public class ReportSponsoredChat : Function { /// - /// Reports a sponsored chat to Telegram moderators + /// Data type for serialization /// - public class ReportSponsoredChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSponsoredChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSponsoredChat"; - /// - /// Unique identifier of the sponsored chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sponsored_chat_unique_id")] - public long SponsoredChatUniqueId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Option identifier chosen by the user; leave empty for the initial request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public byte[] OptionId { get; set; } - } + /// + /// Unique identifier of the sponsored chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sponsored_chat_unique_id")] + public long SponsoredChatUniqueId { get; set; } /// - /// Reports a sponsored chat to Telegram moderators + /// Option identifier chosen by the user; leave empty for the initial request /// - public static Task ReportSponsoredChatAsync( - this IClient client, long sponsoredChatUniqueId = default, byte[] optionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public byte[] OptionId { get; set; } + } + + /// + /// Reports a sponsored chat to Telegram moderators + /// + public static Task ReportSponsoredChatAsync( + this IClient client, long sponsoredChatUniqueId = default, byte[] optionId = default) + { + return client.ExecuteAsync(new ReportSponsoredChat { - return client.ExecuteAsync(new ReportSponsoredChat - { - SponsoredChatUniqueId = sponsoredChatUniqueId, OptionId = optionId - }); - } + SponsoredChatUniqueId = sponsoredChatUniqueId, OptionId = optionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportStory.cs b/TdLib.Api/Functions/ReportStory.cs index 01efb2fe..6ea4a067 100644 --- a/TdLib.Api/Functions/ReportStory.cs +++ b/TdLib.Api/Functions/ReportStory.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports a story to the Telegram moderators /// - public static partial class TdApi + public class ReportStory : Function { /// - /// Reports a story to the Telegram moderators + /// Data type for serialization /// - public class ReportStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportStory"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The identifier of the poster of the story to report - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the story to report - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// The identifier of the poster of the story to report + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Option identifier chosen by the user; leave empty for the initial request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public byte[] OptionId { get; set; } + /// + /// The identifier of the story to report + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// Additional report details; 0-1024 characters; leave empty for the initial request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Option identifier chosen by the user; leave empty for the initial request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public byte[] OptionId { get; set; } /// - /// Reports a story to the Telegram moderators + /// Additional report details; 0-1024 characters; leave empty for the initial request /// - public static Task ReportStoryAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, byte[] optionId = default, string text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } + } + + /// + /// Reports a story to the Telegram moderators + /// + public static Task ReportStoryAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, byte[] optionId = default, string text = default) + { + return client.ExecuteAsync(new ReportStory { - return client.ExecuteAsync(new ReportStory - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, OptionId = optionId, Text = text - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, OptionId = optionId, Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportSupergroupAntiSpamFalsePositive.cs b/TdLib.Api/Functions/ReportSupergroupAntiSpamFalsePositive.cs index a303a79f..b9275abf 100644 --- a/TdLib.Api/Functions/ReportSupergroupAntiSpamFalsePositive.cs +++ b/TdLib.Api/Functions/ReportSupergroupAntiSpamFalsePositive.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true /// - public static partial class TdApi + public class ReportSupergroupAntiSpamFalsePositive : Function { /// - /// Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true + /// Data type for serialization /// - public class ReportSupergroupAntiSpamFalsePositive : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSupergroupAntiSpamFalsePositive"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSupergroupAntiSpamFalsePositive"; - /// - /// Supergroup identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the erroneously deleted message from chatEventMessageDeleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Supergroup identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true + /// Identifier of the erroneously deleted message from chatEventMessageDeleted /// - public static Task ReportSupergroupAntiSpamFalsePositiveAsync( - this IClient client, long supergroupId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true + /// + public static Task ReportSupergroupAntiSpamFalsePositiveAsync( + this IClient client, long supergroupId = default, long messageId = default) + { + return client.ExecuteAsync(new ReportSupergroupAntiSpamFalsePositive { - return client.ExecuteAsync(new ReportSupergroupAntiSpamFalsePositive - { - SupergroupId = supergroupId, MessageId = messageId - }); - } + SupergroupId = supergroupId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportSupergroupSpam.cs b/TdLib.Api/Functions/ReportSupergroupSpam.cs index 6f502459..e8283e6d 100644 --- a/TdLib.Api/Functions/ReportSupergroupSpam.cs +++ b/TdLib.Api/Functions/ReportSupergroupSpam.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports messages in a supergroup as spam; requires administrator rights in the supergroup /// - public static partial class TdApi + public class ReportSupergroupSpam : Function { /// - /// Reports messages in a supergroup as spam; requires administrator rights in the supergroup + /// Data type for serialization /// - public class ReportSupergroupSpam : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSupergroupSpam"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSupergroupSpam"; - /// - /// Supergroup identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of messages to report. Use messageProperties.can_report_supergroup_spam to check whether the message can be reported - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } - } + /// + /// Supergroup identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Reports messages in a supergroup as spam; requires administrator rights in the supergroup + /// Identifiers of messages to report. Use messageProperties.can_report_supergroup_spam to check whether the message can be reported /// - public static Task ReportSupergroupSpamAsync( - this IClient client, long supergroupId = default, long[] messageIds = default) + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } + } + + /// + /// Reports messages in a supergroup as spam; requires administrator rights in the supergroup + /// + public static Task ReportSupergroupSpamAsync( + this IClient client, long supergroupId = default, long[] messageIds = default) + { + return client.ExecuteAsync(new ReportSupergroupSpam { - return client.ExecuteAsync(new ReportSupergroupSpam - { - SupergroupId = supergroupId, MessageIds = messageIds - }); - } + SupergroupId = supergroupId, MessageIds = messageIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReportVideoMessageAdvertisement.cs b/TdLib.Api/Functions/ReportVideoMessageAdvertisement.cs index 75ed6280..e760b80a 100644 --- a/TdLib.Api/Functions/ReportVideoMessageAdvertisement.cs +++ b/TdLib.Api/Functions/ReportVideoMessageAdvertisement.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reports a video message advertisement to Telegram moderators /// - public static partial class TdApi + public class ReportVideoMessageAdvertisement : Function { /// - /// Reports a video message advertisement to Telegram moderators + /// Data type for serialization /// - public class ReportVideoMessageAdvertisement : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportVideoMessageAdvertisement"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportVideoMessageAdvertisement"; - /// - /// Unique identifier of the advertisement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("advertisement_unique_id")] - public long AdvertisementUniqueId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Option identifier chosen by the user; leave empty for the initial request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public byte[] OptionId { get; set; } - } + /// + /// Unique identifier of the advertisement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("advertisement_unique_id")] + public long AdvertisementUniqueId { get; set; } /// - /// Reports a video message advertisement to Telegram moderators + /// Option identifier chosen by the user; leave empty for the initial request /// - public static Task ReportVideoMessageAdvertisementAsync( - this IClient client, long advertisementUniqueId = default, byte[] optionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public byte[] OptionId { get; set; } + } + + /// + /// Reports a video message advertisement to Telegram moderators + /// + public static Task ReportVideoMessageAdvertisementAsync( + this IClient client, long advertisementUniqueId = default, byte[] optionId = default) + { + return client.ExecuteAsync(new ReportVideoMessageAdvertisement { - return client.ExecuteAsync(new ReportVideoMessageAdvertisement - { - AdvertisementUniqueId = advertisementUniqueId, OptionId = optionId - }); - } + AdvertisementUniqueId = advertisementUniqueId, OptionId = optionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RequestAuthenticationPasswordRecovery.cs b/TdLib.Api/Functions/RequestAuthenticationPasswordRecovery.cs index fd9df3e3..8ab27d08 100644 --- a/TdLib.Api/Functions/RequestAuthenticationPasswordRecovery.cs +++ b/TdLib.Api/Functions/RequestAuthenticationPasswordRecovery.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword /// - public static partial class TdApi + public class RequestAuthenticationPasswordRecovery : Function { /// - /// Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword + /// Data type for serialization /// - public class RequestAuthenticationPasswordRecovery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "requestAuthenticationPasswordRecovery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "requestAuthenticationPasswordRecovery"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword - /// - public static Task RequestAuthenticationPasswordRecoveryAsync( - this IClient client) + /// + /// Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword + /// + public static Task RequestAuthenticationPasswordRecoveryAsync( + this IClient client) + { + return client.ExecuteAsync(new RequestAuthenticationPasswordRecovery { - return client.ExecuteAsync(new RequestAuthenticationPasswordRecovery - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RequestPasswordRecovery.cs b/TdLib.Api/Functions/RequestPasswordRecovery.cs index 9e41dfb7..b03c398a 100644 --- a/TdLib.Api/Functions/RequestPasswordRecovery.cs +++ b/TdLib.Api/Functions/RequestPasswordRecovery.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Requests to send a 2-step verification password recovery code to an email address that was previously set up /// - public static partial class TdApi + public class RequestPasswordRecovery : Function { /// - /// Requests to send a 2-step verification password recovery code to an email address that was previously set up + /// Data type for serialization /// - public class RequestPasswordRecovery : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "requestPasswordRecovery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "requestPasswordRecovery"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Requests to send a 2-step verification password recovery code to an email address that was previously set up - /// - public static Task RequestPasswordRecoveryAsync( - this IClient client) + /// + /// Requests to send a 2-step verification password recovery code to an email address that was previously set up + /// + public static Task RequestPasswordRecoveryAsync( + this IClient client) + { + return client.ExecuteAsync(new RequestPasswordRecovery { - return client.ExecuteAsync(new RequestPasswordRecovery - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RequestQrCodeAuthentication.cs b/TdLib.Api/Functions/RequestQrCodeAuthentication.cs index fd9c851d..4ed7f1a4 100644 --- a/TdLib.Api/Functions/RequestQrCodeAuthentication.cs +++ b/TdLib.Api/Functions/RequestQrCodeAuthentication.cs @@ -3,52 +3,54 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, + /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, + /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword /// - public static partial class TdApi + public class RequestQrCodeAuthentication : Function { /// - /// Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, - /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, - /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// Data type for serialization /// - public class RequestQrCodeAuthentication : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "requestQrCodeAuthentication"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "requestQrCodeAuthentication"; - /// - /// List of user identifiers of other users currently using the application - /// - [JsonProperty("other_user_ids", ItemConverterType = typeof(Converter))] - public long[] OtherUserIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, - /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, - /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// List of user identifiers of other users currently using the application /// - public static Task RequestQrCodeAuthenticationAsync( - this IClient client, long[] otherUserIds = default) + [JsonProperty("other_user_ids", ItemConverterType = typeof(Converter))] + public long[] OtherUserIds { get; set; } + } + + /// + /// Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, + /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, + /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// + public static Task RequestQrCodeAuthenticationAsync( + this IClient client, long[] otherUserIds = default) + { + return client.ExecuteAsync(new RequestQrCodeAuthentication { - return client.ExecuteAsync(new RequestQrCodeAuthentication - { - OtherUserIds = otherUserIds - }); - } + OtherUserIds = otherUserIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResendAuthenticationCode.cs b/TdLib.Api/Functions/ResendAuthenticationCode.cs index 82dad145..6daccf1b 100644 --- a/TdLib.Api/Functions/ResendAuthenticationCode.cs +++ b/TdLib.Api/Functions/ResendAuthenticationCode.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null + /// and the server-specified timeout has passed, or when the current authorization state is authorizationStateWaitEmailCode /// - public static partial class TdApi + public class ResendAuthenticationCode : Function { /// - /// Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null - /// and the server-specified timeout has passed, or when the current authorization state is authorizationStateWaitEmailCode + /// Data type for serialization /// - public class ResendAuthenticationCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendAuthenticationCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendAuthenticationCode"; - /// - /// Reason of code resending; pass null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public ResendCodeReason Reason { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null - /// and the server-specified timeout has passed, or when the current authorization state is authorizationStateWaitEmailCode + /// Reason of code resending; pass null if unknown /// - public static Task ResendAuthenticationCodeAsync( - this IClient client, ResendCodeReason reason = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public ResendCodeReason Reason { get; set; } + } + + /// + /// Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null + /// and the server-specified timeout has passed, or when the current authorization state is authorizationStateWaitEmailCode + /// + public static Task ResendAuthenticationCodeAsync( + this IClient client, ResendCodeReason reason = default) + { + return client.ExecuteAsync(new ResendAuthenticationCode { - return client.ExecuteAsync(new ResendAuthenticationCode - { - Reason = reason - }); - } + Reason = reason + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResendEmailAddressVerificationCode.cs b/TdLib.Api/Functions/ResendEmailAddressVerificationCode.cs index 57f9f9cc..83259c68 100644 --- a/TdLib.Api/Functions/ResendEmailAddressVerificationCode.cs +++ b/TdLib.Api/Functions/ResendEmailAddressVerificationCode.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resends the code to verify an email address to be added to a user's Telegram Passport /// - public static partial class TdApi + public class ResendEmailAddressVerificationCode : Function { /// - /// Resends the code to verify an email address to be added to a user's Telegram Passport + /// Data type for serialization /// - public class ResendEmailAddressVerificationCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendEmailAddressVerificationCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendEmailAddressVerificationCode"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Resends the code to verify an email address to be added to a user's Telegram Passport - /// - public static Task ResendEmailAddressVerificationCodeAsync( - this IClient client) + /// + /// Resends the code to verify an email address to be added to a user's Telegram Passport + /// + public static Task ResendEmailAddressVerificationCodeAsync( + this IClient client) + { + return client.ExecuteAsync(new ResendEmailAddressVerificationCode { - return client.ExecuteAsync(new ResendEmailAddressVerificationCode - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResendLoginEmailAddressCode.cs b/TdLib.Api/Functions/ResendLoginEmailAddressCode.cs index d90d0a6e..3bfaed7a 100644 --- a/TdLib.Api/Functions/ResendLoginEmailAddressCode.cs +++ b/TdLib.Api/Functions/ResendLoginEmailAddressCode.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resends the login email address verification code /// - public static partial class TdApi + public class ResendLoginEmailAddressCode : Function { /// - /// Resends the login email address verification code + /// Data type for serialization /// - public class ResendLoginEmailAddressCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendLoginEmailAddressCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendLoginEmailAddressCode"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Resends the login email address verification code - /// - public static Task ResendLoginEmailAddressCodeAsync( - this IClient client) + /// + /// Resends the login email address verification code + /// + public static Task ResendLoginEmailAddressCodeAsync( + this IClient client) + { + return client.ExecuteAsync(new ResendLoginEmailAddressCode { - return client.ExecuteAsync(new ResendLoginEmailAddressCode - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResendMessages.cs b/TdLib.Api/Functions/ResendMessages.cs index f2c9473b..bf2f60fe 100644 --- a/TdLib.Api/Functions/ResendMessages.cs +++ b/TdLib.Api/Functions/ResendMessages.cs @@ -3,71 +3,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. + /// If a message is re-sent, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-sent, null will be returned instead of the message /// - public static partial class TdApi + public class ResendMessages : Function { /// - /// Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. - /// If a message is re-sent, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-sent, null will be returned instead of the message + /// Data type for serialization /// - public class ResendMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to send messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the messages to resend. Message identifiers must be in a strictly increasing order - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } + /// + /// Identifier of the chat to send messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New manually chosen quote from the message to be replied; pass null if none. Ignored if more than one message is re-sent, or if messageSendingStateFailed.need_another_reply_quote == false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("quote")] - public InputTextQuote Quote { get; set; } + /// + /// Identifiers of the messages to resend. Message identifiers must be in a strictly increasing order + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } - /// - /// The number of Telegram Stars the user agreed to pay to send the messages. Ignored if messageSendingStateFailed.required_paid_message_star_count == 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// New manually chosen quote from the message to be replied; pass null if none. Ignored if more than one message is re-sent, or if messageSendingStateFailed.need_another_reply_quote == false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("quote")] + public InputTextQuote Quote { get; set; } /// - /// Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. - /// If a message is re-sent, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-sent, null will be returned instead of the message + /// The number of Telegram Stars the user agreed to pay to send the messages. Ignored if messageSendingStateFailed.required_paid_message_star_count == 0 /// - public static Task ResendMessagesAsync( - this IClient client, long chatId = default, long[] messageIds = default, InputTextQuote quote = default, long paidMessageStarCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + } + + /// + /// Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. + /// If a message is re-sent, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-sent, null will be returned instead of the message + /// + public static Task ResendMessagesAsync( + this IClient client, long chatId = default, long[] messageIds = default, InputTextQuote quote = default, long paidMessageStarCount = default) + { + return client.ExecuteAsync(new ResendMessages { - return client.ExecuteAsync(new ResendMessages - { - ChatId = chatId, MessageIds = messageIds, Quote = quote, PaidMessageStarCount = paidMessageStarCount - }); - } + ChatId = chatId, MessageIds = messageIds, Quote = quote, PaidMessageStarCount = paidMessageStarCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResendPhoneNumberCode.cs b/TdLib.Api/Functions/ResendPhoneNumberCode.cs index 68bff8b6..d81827cf 100644 --- a/TdLib.Api/Functions/ResendPhoneNumberCode.cs +++ b/TdLib.Api/Functions/ResendPhoneNumberCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resends the authentication code sent to a phone number. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed /// - public static partial class TdApi + public class ResendPhoneNumberCode : Function { /// - /// Resends the authentication code sent to a phone number. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed + /// Data type for serialization /// - public class ResendPhoneNumberCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendPhoneNumberCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendPhoneNumberCode"; - /// - /// Reason of code resending; pass null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public ResendCodeReason Reason { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Resends the authentication code sent to a phone number. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed + /// Reason of code resending; pass null if unknown /// - public static Task ResendPhoneNumberCodeAsync( - this IClient client, ResendCodeReason reason = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public ResendCodeReason Reason { get; set; } + } + + /// + /// Resends the authentication code sent to a phone number. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed + /// + public static Task ResendPhoneNumberCodeAsync( + this IClient client, ResendCodeReason reason = default) + { + return client.ExecuteAsync(new ResendPhoneNumberCode { - return client.ExecuteAsync(new ResendPhoneNumberCode - { - Reason = reason - }); - } + Reason = reason + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResendRecoveryEmailAddressCode.cs b/TdLib.Api/Functions/ResendRecoveryEmailAddressCode.cs index 23ed0e70..66c8bf22 100644 --- a/TdLib.Api/Functions/ResendRecoveryEmailAddressCode.cs +++ b/TdLib.Api/Functions/ResendRecoveryEmailAddressCode.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resends the 2-step verification recovery email address verification code /// - public static partial class TdApi + public class ResendRecoveryEmailAddressCode : Function { /// - /// Resends the 2-step verification recovery email address verification code + /// Data type for serialization /// - public class ResendRecoveryEmailAddressCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendRecoveryEmailAddressCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendRecoveryEmailAddressCode"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Resends the 2-step verification recovery email address verification code - /// - public static Task ResendRecoveryEmailAddressCodeAsync( - this IClient client) + /// + /// Resends the 2-step verification recovery email address verification code + /// + public static Task ResendRecoveryEmailAddressCodeAsync( + this IClient client) + { + return client.ExecuteAsync(new ResendRecoveryEmailAddressCode { - return client.ExecuteAsync(new ResendRecoveryEmailAddressCode - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResetAllNotificationSettings.cs b/TdLib.Api/Functions/ResetAllNotificationSettings.cs index a709b6d0..fd360739 100644 --- a/TdLib.Api/Functions/ResetAllNotificationSettings.cs +++ b/TdLib.Api/Functions/ResetAllNotificationSettings.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resets all chat and scope notification settings to their default values. By default, all chats are unmuted and message previews are shown /// - public static partial class TdApi + public class ResetAllNotificationSettings : Function { /// - /// Resets all chat and scope notification settings to their default values. By default, all chats are unmuted and message previews are shown + /// Data type for serialization /// - public class ResetAllNotificationSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetAllNotificationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetAllNotificationSettings"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Resets all chat and scope notification settings to their default values. By default, all chats are unmuted and message previews are shown - /// - public static Task ResetAllNotificationSettingsAsync( - this IClient client) + /// + /// Resets all chat and scope notification settings to their default values. By default, all chats are unmuted and message previews are shown + /// + public static Task ResetAllNotificationSettingsAsync( + this IClient client) + { + return client.ExecuteAsync(new ResetAllNotificationSettings { - return client.ExecuteAsync(new ResetAllNotificationSettings - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResetAuthenticationEmailAddress.cs b/TdLib.Api/Functions/ResetAuthenticationEmailAddress.cs index 410e4ef8..cff5f9eb 100644 --- a/TdLib.Api/Functions/ResetAuthenticationEmailAddress.cs +++ b/TdLib.Api/Functions/ResetAuthenticationEmailAddress.cs @@ -3,46 +3,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. + /// Works only when the current authorization state is authorizationStateWaitEmailCode and authorization_state.can_reset_email_address == true /// - public static partial class TdApi + public class ResetAuthenticationEmailAddress : Function { /// - /// Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. - /// Works only when the current authorization state is authorizationStateWaitEmailCode and authorization_state.can_reset_email_address == true + /// Data type for serialization /// - public class ResetAuthenticationEmailAddress : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetAuthenticationEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetAuthenticationEmailAddress"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. - /// Works only when the current authorization state is authorizationStateWaitEmailCode and authorization_state.can_reset_email_address == true - /// - public static Task ResetAuthenticationEmailAddressAsync( - this IClient client) + /// + /// Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. + /// Works only when the current authorization state is authorizationStateWaitEmailCode and authorization_state.can_reset_email_address == true + /// + public static Task ResetAuthenticationEmailAddressAsync( + this IClient client) + { + return client.ExecuteAsync(new ResetAuthenticationEmailAddress { - return client.ExecuteAsync(new ResetAuthenticationEmailAddress - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResetInstalledBackgrounds.cs b/TdLib.Api/Functions/ResetInstalledBackgrounds.cs index 95bde0d8..8ccc55db 100644 --- a/TdLib.Api/Functions/ResetInstalledBackgrounds.cs +++ b/TdLib.Api/Functions/ResetInstalledBackgrounds.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resets list of installed backgrounds to its default value /// - public static partial class TdApi + public class ResetInstalledBackgrounds : Function { /// - /// Resets list of installed backgrounds to its default value + /// Data type for serialization /// - public class ResetInstalledBackgrounds : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetInstalledBackgrounds"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetInstalledBackgrounds"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Resets list of installed backgrounds to its default value - /// - public static Task ResetInstalledBackgroundsAsync( - this IClient client) + /// + /// Resets list of installed backgrounds to its default value + /// + public static Task ResetInstalledBackgroundsAsync( + this IClient client) + { + return client.ExecuteAsync(new ResetInstalledBackgrounds { - return client.ExecuteAsync(new ResetInstalledBackgrounds - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResetNetworkStatistics.cs b/TdLib.Api/Functions/ResetNetworkStatistics.cs index 1f67a959..e6b86c92 100644 --- a/TdLib.Api/Functions/ResetNetworkStatistics.cs +++ b/TdLib.Api/Functions/ResetNetworkStatistics.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Resets all network data usage statistics to zero. Can be called before authorization /// - public static partial class TdApi + public class ResetNetworkStatistics : Function { /// - /// Resets all network data usage statistics to zero. Can be called before authorization + /// Data type for serialization /// - public class ResetNetworkStatistics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetNetworkStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetNetworkStatistics"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Resets all network data usage statistics to zero. Can be called before authorization - /// - public static Task ResetNetworkStatisticsAsync( - this IClient client) + /// + /// Resets all network data usage statistics to zero. Can be called before authorization + /// + public static Task ResetNetworkStatisticsAsync( + this IClient client) + { + return client.ExecuteAsync(new ResetNetworkStatistics { - return client.ExecuteAsync(new ResetNetworkStatistics - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ResetPassword.cs b/TdLib.Api/Functions/ResetPassword.cs index 27fa26e3..037209fb 100644 --- a/TdLib.Api/Functions/ResetPassword.cs +++ b/TdLib.Api/Functions/ResetPassword.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time /// - public static partial class TdApi + public class ResetPassword : Function { /// - /// Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time + /// Data type for serialization /// - public class ResetPassword : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetPassword"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time - /// - public static Task ResetPasswordAsync( - this IClient client) + /// + /// Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time + /// + public static Task ResetPasswordAsync( + this IClient client) + { + return client.ExecuteAsync(new ResetPassword { - return client.ExecuteAsync(new ResetPassword - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ReuseStarSubscription.cs b/TdLib.Api/Functions/ReuseStarSubscription.cs index 7020c175..cc2e2111 100644 --- a/TdLib.Api/Functions/ReuseStarSubscription.cs +++ b/TdLib.Api/Functions/ReuseStarSubscription.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Reuses an active Telegram Star subscription to a channel chat and joins the chat again /// - public static partial class TdApi + public class ReuseStarSubscription : Function { /// - /// Reuses an active Telegram Star subscription to a channel chat and joins the chat again + /// Data type for serialization /// - public class ReuseStarSubscription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reuseStarSubscription"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "reuseStarSubscription"; - /// - /// Identifier of the subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_id")] - public string SubscriptionId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Reuses an active Telegram Star subscription to a channel chat and joins the chat again + /// Identifier of the subscription /// - public static Task ReuseStarSubscriptionAsync( - this IClient client, string subscriptionId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_id")] + public string SubscriptionId { get; set; } + } + + /// + /// Reuses an active Telegram Star subscription to a channel chat and joins the chat again + /// + public static Task ReuseStarSubscriptionAsync( + this IClient client, string subscriptionId = default) + { + return client.ExecuteAsync(new ReuseStarSubscription { - return client.ExecuteAsync(new ReuseStarSubscription - { - SubscriptionId = subscriptionId - }); - } + SubscriptionId = subscriptionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RevokeChatInviteLink.cs b/TdLib.Api/Functions/RevokeChatInviteLink.cs index e780151a..c7007f35 100644 --- a/TdLib.Api/Functions/RevokeChatInviteLink.cs +++ b/TdLib.Api/Functions/RevokeChatInviteLink.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Revokes invite link for a chat. Available in basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. + /// If a primary link is revoked, then additionally to the revoked link returns new primary link /// - public static partial class TdApi + public class RevokeChatInviteLink : Function { /// - /// Revokes invite link for a chat. Available in basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. - /// If a primary link is revoked, then additionally to the revoked link returns new primary link + /// Data type for serialization /// - public class RevokeChatInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "revokeChatInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "revokeChatInviteLink"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to be revoked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Revokes invite link for a chat. Available in basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. - /// If a primary link is revoked, then additionally to the revoked link returns new primary link + /// Invite link to be revoked /// - public static Task RevokeChatInviteLinkAsync( - this IClient client, long chatId = default, string inviteLink = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + } + + /// + /// Revokes invite link for a chat. Available in basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. + /// If a primary link is revoked, then additionally to the revoked link returns new primary link + /// + public static Task RevokeChatInviteLinkAsync( + this IClient client, long chatId = default, string inviteLink = default) + { + return client.ExecuteAsync(new RevokeChatInviteLink { - return client.ExecuteAsync(new RevokeChatInviteLink - { - ChatId = chatId, InviteLink = inviteLink - }); - } + ChatId = chatId, InviteLink = inviteLink + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/RevokeGroupCallInviteLink.cs b/TdLib.Api/Functions/RevokeGroupCallInviteLink.cs index 70149a88..fb5b1b8c 100644 --- a/TdLib.Api/Functions/RevokeGroupCallInviteLink.cs +++ b/TdLib.Api/Functions/RevokeGroupCallInviteLink.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Revokes invite link for a group call. Requires groupCall.can_be_managed right for video chats or groupCall.is_owned otherwise /// - public static partial class TdApi + public class RevokeGroupCallInviteLink : Function { /// - /// Revokes invite link for a group call. Requires groupCall.can_be_managed right for video chats or groupCall.is_owned otherwise + /// Data type for serialization /// - public class RevokeGroupCallInviteLink : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "revokeGroupCallInviteLink"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "revokeGroupCallInviteLink"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Revokes invite link for a group call. Requires groupCall.can_be_managed right for video chats or groupCall.is_owned otherwise + /// Group call identifier /// - public static Task RevokeGroupCallInviteLinkAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Revokes invite link for a group call. Requires groupCall.can_be_managed right for video chats or groupCall.is_owned otherwise + /// + public static Task RevokeGroupCallInviteLinkAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new RevokeGroupCallInviteLink { - return client.ExecuteAsync(new RevokeGroupCallInviteLink - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SaveApplicationLogEvent.cs b/TdLib.Api/Functions/SaveApplicationLogEvent.cs index e5878ebe..6e6b1212 100644 --- a/TdLib.Api/Functions/SaveApplicationLogEvent.cs +++ b/TdLib.Api/Functions/SaveApplicationLogEvent.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Saves application log event on the server. Can be called before authorization /// - public static partial class TdApi + public class SaveApplicationLogEvent : Function { /// - /// Saves application log event on the server. Can be called before authorization + /// Data type for serialization /// - public class SaveApplicationLogEvent : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "saveApplicationLogEvent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "saveApplicationLogEvent"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Event type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public string Type { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Optional chat identifier, associated with the event - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Event type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public string Type { get; set; } - /// - /// The log event data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public JsonValue Data { get; set; } - } + /// + /// Optional chat identifier, associated with the event + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Saves application log event on the server. Can be called before authorization + /// The log event data /// - public static Task SaveApplicationLogEventAsync( - this IClient client, string type = default, long chatId = default, JsonValue data = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public JsonValue Data { get; set; } + } + + /// + /// Saves application log event on the server. Can be called before authorization + /// + public static Task SaveApplicationLogEventAsync( + this IClient client, string type = default, long chatId = default, JsonValue data = default) + { + return client.ExecuteAsync(new SaveApplicationLogEvent { - return client.ExecuteAsync(new SaveApplicationLogEvent - { - Type = type, ChatId = chatId, Data = data - }); - } + Type = type, ChatId = chatId, Data = data + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SavePreparedInlineMessage.cs b/TdLib.Api/Functions/SavePreparedInlineMessage.cs index 74c1a3b2..c1ccc132 100644 --- a/TdLib.Api/Functions/SavePreparedInlineMessage.cs +++ b/TdLib.Api/Functions/SavePreparedInlineMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Saves an inline message to be sent by the given user; for bots only /// - public static partial class TdApi + public class SavePreparedInlineMessage : Function { /// - /// Saves an inline message to be sent by the given user; for bots only + /// Data type for serialization /// - public class SavePreparedInlineMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savePreparedInlineMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savePreparedInlineMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The description of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result")] - public InputInlineQueryResult Result { get; set; } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Types of the chats to which the message can be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_types")] - public TargetChatTypes ChatTypes { get; set; } - } + /// + /// The description of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result")] + public InputInlineQueryResult Result { get; set; } /// - /// Saves an inline message to be sent by the given user; for bots only + /// Types of the chats to which the message can be sent /// - public static Task SavePreparedInlineMessageAsync( - this IClient client, long userId = default, InputInlineQueryResult result = default, TargetChatTypes chatTypes = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_types")] + public TargetChatTypes ChatTypes { get; set; } + } + + /// + /// Saves an inline message to be sent by the given user; for bots only + /// + public static Task SavePreparedInlineMessageAsync( + this IClient client, long userId = default, InputInlineQueryResult result = default, TargetChatTypes chatTypes = default) + { + return client.ExecuteAsync(new SavePreparedInlineMessage { - return client.ExecuteAsync(new SavePreparedInlineMessage - { - UserId = userId, Result = result, ChatTypes = chatTypes - }); - } + UserId = userId, Result = result, ChatTypes = chatTypes + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SavePreparedKeyboardButton.cs b/TdLib.Api/Functions/SavePreparedKeyboardButton.cs index 55c6801e..32a3a9df 100644 --- a/TdLib.Api/Functions/SavePreparedKeyboardButton.cs +++ b/TdLib.Api/Functions/SavePreparedKeyboardButton.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Saves a keyboard button to be shown to the given user; for bots only /// - public static partial class TdApi + public class SavePreparedKeyboardButton : Function { /// - /// Saves a keyboard button to be shown to the given user; for bots only + /// Data type for serialization /// - public class SavePreparedKeyboardButton : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savePreparedKeyboardButton"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "savePreparedKeyboardButton"; - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The button; must be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button")] - public KeyboardButton Button { get; set; } - } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Saves a keyboard button to be shown to the given user; for bots only + /// The button; must be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot /// - public static Task SavePreparedKeyboardButtonAsync( - this IClient client, long userId = default, KeyboardButton button = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("button")] + public KeyboardButton Button { get; set; } + } + + /// + /// Saves a keyboard button to be shown to the given user; for bots only + /// + public static Task SavePreparedKeyboardButtonAsync( + this IClient client, long userId = default, KeyboardButton button = default) + { + return client.ExecuteAsync(new SavePreparedKeyboardButton { - return client.ExecuteAsync(new SavePreparedKeyboardButton - { - UserId = userId, Button = button - }); - } + UserId = userId, Button = button + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchAffiliatePrograms.cs b/TdLib.Api/Functions/SearchAffiliatePrograms.cs index e221bd3a..88f87114 100644 --- a/TdLib.Api/Functions/SearchAffiliatePrograms.cs +++ b/TdLib.Api/Functions/SearchAffiliatePrograms.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches affiliate programs that can be connected to the given affiliate /// - public static partial class TdApi + public class SearchAffiliatePrograms : Function { /// - /// Searches affiliate programs that can be connected to the given affiliate + /// Data type for serialization /// - public class SearchAffiliatePrograms : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchAffiliatePrograms"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchAffiliatePrograms"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The affiliate for which affiliate programs are searched for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateType Affiliate { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sort order for the results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sort_order")] - public AffiliateProgramSortOrder SortOrder { get; set; } + /// + /// The affiliate for which affiliate programs are searched for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateType Affiliate { get; set; } - /// - /// Offset of the first affiliate program to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Sort order for the results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sort_order")] + public AffiliateProgramSortOrder SortOrder { get; set; } - /// - /// The maximum number of affiliate programs to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first affiliate program to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Searches affiliate programs that can be connected to the given affiliate + /// The maximum number of affiliate programs to return /// - public static Task SearchAffiliateProgramsAsync( - this IClient client, AffiliateType affiliate = default, AffiliateProgramSortOrder sortOrder = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches affiliate programs that can be connected to the given affiliate + /// + public static Task SearchAffiliateProgramsAsync( + this IClient client, AffiliateType affiliate = default, AffiliateProgramSortOrder sortOrder = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchAffiliatePrograms { - return client.ExecuteAsync(new SearchAffiliatePrograms - { - Affiliate = affiliate, SortOrder = sortOrder, Offset = offset, Limit = limit - }); - } + Affiliate = affiliate, SortOrder = sortOrder, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchBackground.cs b/TdLib.Api/Functions/SearchBackground.cs index 280653e7..3649326e 100644 --- a/TdLib.Api/Functions/SearchBackground.cs +++ b/TdLib.Api/Functions/SearchBackground.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for a background by its name /// - public static partial class TdApi + public class SearchBackground : Function { /// - /// Searches for a background by its name + /// Data type for serialization /// - public class SearchBackground : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchBackground"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchBackground"; - /// - /// The name of the background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Searches for a background by its name + /// The name of the background /// - public static Task SearchBackgroundAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Searches for a background by its name + /// + public static Task SearchBackgroundAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new SearchBackground { - return client.ExecuteAsync(new SearchBackground - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchCallMessages.cs b/TdLib.Api/Functions/SearchCallMessages.cs index 2eaf4693..f0ac71b7 100644 --- a/TdLib.Api/Functions/SearchCallMessages.cs +++ b/TdLib.Api/Functions/SearchCallMessages.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for call and group call messages. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib /// - public static partial class TdApi + public class SearchCallMessages : Function { /// - /// Searches for call and group call messages. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// Data type for serialization /// - public class SearchCallMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchCallMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchCallMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } - /// - /// Pass true to search only for messages with missed/declined calls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_missed")] - public bool OnlyMissed { get; set; } - } + /// + /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Searches for call and group call messages. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// Pass true to search only for messages with missed/declined calls /// - public static Task SearchCallMessagesAsync( - this IClient client, string offset = default, int limit = default, bool onlyMissed = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_missed")] + public bool OnlyMissed { get; set; } + } + + /// + /// Searches for call and group call messages. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib + /// + public static Task SearchCallMessagesAsync( + this IClient client, string offset = default, int limit = default, bool onlyMissed = default) + { + return client.ExecuteAsync(new SearchCallMessages { - return client.ExecuteAsync(new SearchCallMessages - { - Offset = offset, Limit = limit, OnlyMissed = onlyMissed - }); - } + Offset = offset, Limit = limit, OnlyMissed = onlyMissed + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchChatAffiliateProgram.cs b/TdLib.Api/Functions/SearchChatAffiliateProgram.cs index a19c88a5..afd177fb 100644 --- a/TdLib.Api/Functions/SearchChatAffiliateProgram.cs +++ b/TdLib.Api/Functions/SearchChatAffiliateProgram.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches a chat with an affiliate program. Returns the chat if found and the program is active /// - public static partial class TdApi + public class SearchChatAffiliateProgram : Function { /// - /// Searches a chat with an affiliate program. Returns the chat if found and the program is active + /// Data type for serialization /// - public class SearchChatAffiliateProgram : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChatAffiliateProgram"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChatAffiliateProgram"; - /// - /// Username of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The referrer from an internalLinkTypeChatAffiliateProgram link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("referrer")] - public string Referrer { get; set; } - } + /// + /// Username of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } /// - /// Searches a chat with an affiliate program. Returns the chat if found and the program is active + /// The referrer from an internalLinkTypeChatAffiliateProgram link /// - public static Task SearchChatAffiliateProgramAsync( - this IClient client, string username = default, string referrer = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("referrer")] + public string Referrer { get; set; } + } + + /// + /// Searches a chat with an affiliate program. Returns the chat if found and the program is active + /// + public static Task SearchChatAffiliateProgramAsync( + this IClient client, string username = default, string referrer = default) + { + return client.ExecuteAsync(new SearchChatAffiliateProgram { - return client.ExecuteAsync(new SearchChatAffiliateProgram - { - Username = username, Referrer = referrer - }); - } + Username = username, Referrer = referrer + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchChatMembers.cs b/TdLib.Api/Functions/SearchChatMembers.cs index 4ec1c89b..8f82974e 100644 --- a/TdLib.Api/Functions/SearchChatMembers.cs +++ b/TdLib.Api/Functions/SearchChatMembers.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires administrator rights if the chat is a channel /// - public static partial class TdApi + public class SearchChatMembers : Function { /// - /// Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires administrator rights if the chat is a channel + /// Data type for serialization /// - public class SearchChatMembers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChatMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChatMembers"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The maximum number of users to be returned; up to 200 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The type of users to search for; pass null to search among all chat members - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public ChatMembersFilter Filter { get; set; } - } + /// + /// The maximum number of users to be returned; up to 200 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires administrator rights if the chat is a channel + /// The type of users to search for; pass null to search among all chat members /// - public static Task SearchChatMembersAsync( - this IClient client, long chatId = default, string query = default, int limit = default, ChatMembersFilter filter = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public ChatMembersFilter Filter { get; set; } + } + + /// + /// Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires administrator rights if the chat is a channel + /// + public static Task SearchChatMembersAsync( + this IClient client, long chatId = default, string query = default, int limit = default, ChatMembersFilter filter = default) + { + return client.ExecuteAsync(new SearchChatMembers { - return client.ExecuteAsync(new SearchChatMembers - { - ChatId = chatId, Query = query, Limit = limit, Filter = filter - }); - } + ChatId = chatId, Query = query, Limit = limit, Filter = filter + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchChatMessages.cs b/TdLib.Api/Functions/SearchChatMessages.cs index 2ae4dcad..f3caa95f 100644 --- a/TdLib.Api/Functions/SearchChatMessages.cs +++ b/TdLib.Api/Functions/SearchChatMessages.cs @@ -3,102 +3,104 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query + /// (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit. + /// A combination of query, sender_id, filter and topic_id search criteria is expected to be supported, only if it is required for Telegram official application implementation /// - public static partial class TdApi + public class SearchChatMessages : Function { /// - /// Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query - /// (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit. - /// A combination of query, sender_id, filter and topic_id search criteria is expected to be supported, only if it is required for Telegram official application implementation + /// Data type for serialization /// - public class SearchChatMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChatMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChatMessages"; - /// - /// Identifier of the chat in which to search messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass topic identifier to search messages only in specific topic; pass null to search for messages in all topics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the chat in which to search messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Pass topic identifier to search messages only in specific topic; pass null to search for messages in all topics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Identifier of the message starting from which history must be fetched; use 0 to get results from the last message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } - /// - /// Additional filter for messages to search; pass null to search for all messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SearchMessagesFilter Filter { get; set; } - } + /// + /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query - /// (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit. - /// A combination of query, sender_id, filter and topic_id search criteria is expected to be supported, only if it is required for Telegram official application implementation + /// Additional filter for messages to search; pass null to search for all messages /// - public static Task SearchChatMessagesAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, string query = default, MessageSender senderId = default, long fromMessageId = default, int offset = default, int limit = default, SearchMessagesFilter filter = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SearchMessagesFilter Filter { get; set; } + } + + /// + /// Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query + /// (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit. + /// A combination of query, sender_id, filter and topic_id search criteria is expected to be supported, only if it is required for Telegram official application implementation + /// + public static Task SearchChatMessagesAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, string query = default, MessageSender senderId = default, long fromMessageId = default, int offset = default, int limit = default, SearchMessagesFilter filter = default) + { + return client.ExecuteAsync(new SearchChatMessages { - return client.ExecuteAsync(new SearchChatMessages - { - ChatId = chatId, TopicId = topicId, Query = query, SenderId = senderId, FromMessageId = fromMessageId, Offset = offset, Limit = limit, Filter = filter - }); - } + ChatId = chatId, TopicId = topicId, Query = query, SenderId = senderId, FromMessageId = fromMessageId, Offset = offset, Limit = limit, Filter = filter + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchChatRecentLocationMessages.cs b/TdLib.Api/Functions/SearchChatRecentLocationMessages.cs index 46dc9cbb..a1562df2 100644 --- a/TdLib.Api/Functions/SearchChatRecentLocationMessages.cs +++ b/TdLib.Api/Functions/SearchChatRecentLocationMessages.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the recent live locations of chat members that were sent to the chat. Returns at most one live location message per user /// - public static partial class TdApi + public class SearchChatRecentLocationMessages : Function { /// - /// Returns information about the recent live locations of chat members that were sent to the chat. Returns at most one live location message per user + /// Data type for serialization /// - public class SearchChatRecentLocationMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChatRecentLocationMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChatRecentLocationMessages"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of messages to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Returns information about the recent live locations of chat members that were sent to the chat. Returns at most one live location message per user + /// The maximum number of messages to be returned /// - public static Task SearchChatRecentLocationMessagesAsync( - this IClient client, long chatId = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns information about the recent live locations of chat members that were sent to the chat. Returns at most one live location message per user + /// + public static Task SearchChatRecentLocationMessagesAsync( + this IClient client, long chatId = default, int limit = default) + { + return client.ExecuteAsync(new SearchChatRecentLocationMessages { - return client.ExecuteAsync(new SearchChatRecentLocationMessages - { - ChatId = chatId, Limit = limit - }); - } + ChatId = chatId, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchChats.cs b/TdLib.Api/Functions/SearchChats.cs index 4a3d176e..eb96808b 100644 --- a/TdLib.Api/Functions/SearchChats.cs +++ b/TdLib.Api/Functions/SearchChats.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list /// - public static partial class TdApi + public class SearchChats : Function { /// - /// Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list + /// Data type for serialization /// - public class SearchChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChats"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Query to search for. If the query is empty, returns up to 50 recently found chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Additional filter for type of the chats to be returned; pass null to search for chats of all types - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type_filter")] - public SearchChatTypeFilter TypeFilter { get; set; } + /// + /// Query to search for. If the query is empty, returns up to 50 recently found chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of chats to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Additional filter for type of the chats to be returned; pass null to search for chats of all types + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type_filter")] + public SearchChatTypeFilter TypeFilter { get; set; } /// - /// Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list + /// The maximum number of chats to be returned /// - public static Task SearchChatsAsync( - this IClient client, string query = default, SearchChatTypeFilter typeFilter = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list + /// + public static Task SearchChatsAsync( + this IClient client, string query = default, SearchChatTypeFilter typeFilter = default, int limit = default) + { + return client.ExecuteAsync(new SearchChats { - return client.ExecuteAsync(new SearchChats - { - Query = query, TypeFilter = typeFilter, Limit = limit - }); - } + Query = query, TypeFilter = typeFilter, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchChatsOnServer.cs b/TdLib.Api/Functions/SearchChatsOnServer.cs index fb46c3a3..0932dd86 100644 --- a/TdLib.Api/Functions/SearchChatsOnServer.cs +++ b/TdLib.Api/Functions/SearchChatsOnServer.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list /// - public static partial class TdApi + public class SearchChatsOnServer : Function { /// - /// Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list + /// Data type for serialization /// - public class SearchChatsOnServer : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChatsOnServer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChatsOnServer"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Additional filter for type of the chats to be returned; pass null to search for chats of all types - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type_filter")] - public SearchChatTypeFilter TypeFilter { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of chats to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Additional filter for type of the chats to be returned; pass null to search for chats of all types + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type_filter")] + public SearchChatTypeFilter TypeFilter { get; set; } /// - /// Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list + /// The maximum number of chats to be returned /// - public static Task SearchChatsOnServerAsync( - this IClient client, string query = default, SearchChatTypeFilter typeFilter = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list + /// + public static Task SearchChatsOnServerAsync( + this IClient client, string query = default, SearchChatTypeFilter typeFilter = default, int limit = default) + { + return client.ExecuteAsync(new SearchChatsOnServer { - return client.ExecuteAsync(new SearchChatsOnServer - { - Query = query, TypeFilter = typeFilter, Limit = limit - }); - } + Query = query, TypeFilter = typeFilter, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchContacts.cs b/TdLib.Api/Functions/SearchContacts.cs index aedb5439..b30338b3 100644 --- a/TdLib.Api/Functions/SearchContacts.cs +++ b/TdLib.Api/Functions/SearchContacts.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for the specified query in the first names, last names and usernames of the known user contacts /// - public static partial class TdApi + public class SearchContacts : Function { /// - /// Searches for the specified query in the first names, last names and usernames of the known user contacts + /// Data type for serialization /// - public class SearchContacts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchContacts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchContacts"; - /// - /// Query to search for; may be empty to return all contacts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of users to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Query to search for; may be empty to return all contacts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } /// - /// Searches for the specified query in the first names, last names and usernames of the known user contacts + /// The maximum number of users to be returned /// - public static Task SearchContactsAsync( - this IClient client, string query = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for the specified query in the first names, last names and usernames of the known user contacts + /// + public static Task SearchContactsAsync( + this IClient client, string query = default, int limit = default) + { + return client.ExecuteAsync(new SearchContacts { - return client.ExecuteAsync(new SearchContacts - { - Query = query, Limit = limit - }); - } + Query = query, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchEmojis.cs b/TdLib.Api/Functions/SearchEmojis.cs index 46fa8675..f27f7acd 100644 --- a/TdLib.Api/Functions/SearchEmojis.cs +++ b/TdLib.Api/Functions/SearchEmojis.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for emojis by keywords. Supported only if the file database is enabled. Order of results is unspecified /// - public static partial class TdApi + public class SearchEmojis : Function { /// - /// Searches for emojis by keywords. Supported only if the file database is enabled. Order of results is unspecified + /// Data type for serialization /// - public class SearchEmojis : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchEmojis"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchEmojis"; - /// - /// Text to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of possible IETF language tags of the user's input language; may be empty if unknown - /// - [JsonProperty("input_language_codes", ItemConverterType = typeof(Converter))] - public string[] InputLanguageCodes { get; set; } - } + /// + /// Text to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } /// - /// Searches for emojis by keywords. Supported only if the file database is enabled. Order of results is unspecified + /// List of possible IETF language tags of the user's input language; may be empty if unknown /// - public static Task SearchEmojisAsync( - this IClient client, string text = default, string[] inputLanguageCodes = default) + [JsonProperty("input_language_codes", ItemConverterType = typeof(Converter))] + public string[] InputLanguageCodes { get; set; } + } + + /// + /// Searches for emojis by keywords. Supported only if the file database is enabled. Order of results is unspecified + /// + public static Task SearchEmojisAsync( + this IClient client, string text = default, string[] inputLanguageCodes = default) + { + return client.ExecuteAsync(new SearchEmojis { - return client.ExecuteAsync(new SearchEmojis - { - Text = text, InputLanguageCodes = inputLanguageCodes - }); - } + Text = text, InputLanguageCodes = inputLanguageCodes + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchFileDownloads.cs b/TdLib.Api/Functions/SearchFileDownloads.cs index 3184e555..949c23d6 100644 --- a/TdLib.Api/Functions/SearchFileDownloads.cs +++ b/TdLib.Api/Functions/SearchFileDownloads.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for files in the file download list or recently downloaded files from the list /// - public static partial class TdApi + public class SearchFileDownloads : Function { /// - /// Searches for files in the file download list or recently downloaded files from the list + /// Data type for serialization /// - public class SearchFileDownloads : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchFileDownloads"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchFileDownloads"; - /// - /// Query to search for; may be empty to return all downloaded files - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to search only for active downloads, including paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_active")] - public bool OnlyActive { get; set; } + /// + /// Query to search for; may be empty to return all downloaded files + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Pass true to search only for completed downloads - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_completed")] - public bool OnlyCompleted { get; set; } + /// + /// Pass true to search only for active downloads, including paused + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_active")] + public bool OnlyActive { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Pass true to search only for completed downloads + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_completed")] + public bool OnlyCompleted { get; set; } - /// - /// The maximum number of files to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Searches for files in the file download list or recently downloaded files from the list + /// The maximum number of files to be returned /// - public static Task SearchFileDownloadsAsync( - this IClient client, string query = default, bool onlyActive = default, bool onlyCompleted = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for files in the file download list or recently downloaded files from the list + /// + public static Task SearchFileDownloadsAsync( + this IClient client, string query = default, bool onlyActive = default, bool onlyCompleted = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchFileDownloads { - return client.ExecuteAsync(new SearchFileDownloads - { - Query = query, OnlyActive = onlyActive, OnlyCompleted = onlyCompleted, Offset = offset, Limit = limit - }); - } + Query = query, OnlyActive = onlyActive, OnlyCompleted = onlyCompleted, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchGiftsForResale.cs b/TdLib.Api/Functions/SearchGiftsForResale.cs index 33f8c6dd..2dbe7840 100644 --- a/TdLib.Api/Functions/SearchGiftsForResale.cs +++ b/TdLib.Api/Functions/SearchGiftsForResale.cs @@ -3,90 +3,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns upgraded gifts that can be bought from other owners using sendResoldGift /// - public static partial class TdApi + public class SearchGiftsForResale : Function { /// - /// Returns upgraded gifts that can be bought from other owners using sendResoldGift + /// Data type for serialization /// - public class SearchGiftsForResale : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchGiftsForResale"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchGiftsForResale"; - /// - /// Identifier of the regular gift that was upgraded to a unique gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Order in which the results will be sorted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order")] - public GiftForResaleOrder Order { get; set; } + /// + /// Identifier of the regular gift that was upgraded to a unique gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } - /// - /// Pass true to get only gifts suitable for crafting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_crafting")] - public bool ForCrafting { get; set; } + /// + /// Order in which the results will be sorted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order")] + public GiftForResaleOrder Order { get; set; } - /// - /// Pass true to get only gifts that can be bought using Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_stars")] - public bool ForStars { get; set; } + /// + /// Pass true to get only gifts suitable for crafting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("for_crafting")] + public bool ForCrafting { get; set; } - /// - /// Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed. - /// - [JsonProperty("attributes", ItemConverterType = typeof(Converter))] - public UpgradedGiftAttributeId[] Attributes { get; set; } + /// + /// Pass true to get only gifts that can be bought using Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("for_stars")] + public bool ForStars { get; set; } - /// - /// Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed. + /// + [JsonProperty("attributes", ItemConverterType = typeof(Converter))] + public UpgradedGiftAttributeId[] Attributes { get; set; } - /// - /// The maximum number of gifts to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Returns upgraded gifts that can be bought from other owners using sendResoldGift + /// The maximum number of gifts to return /// - public static Task SearchGiftsForResaleAsync( - this IClient client, long giftId = default, GiftForResaleOrder order = default, bool forCrafting = default, bool forStars = default, UpgradedGiftAttributeId[] attributes = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Returns upgraded gifts that can be bought from other owners using sendResoldGift + /// + public static Task SearchGiftsForResaleAsync( + this IClient client, long giftId = default, GiftForResaleOrder order = default, bool forCrafting = default, bool forStars = default, UpgradedGiftAttributeId[] attributes = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchGiftsForResale { - return client.ExecuteAsync(new SearchGiftsForResale - { - GiftId = giftId, Order = order, ForCrafting = forCrafting, ForStars = forStars, Attributes = attributes, Offset = offset, Limit = limit - }); - } + GiftId = giftId, Order = order, ForCrafting = forCrafting, ForStars = forStars, Attributes = attributes, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchHashtags.cs b/TdLib.Api/Functions/SearchHashtags.cs index cdb4bce3..b1d4ef81 100644 --- a/TdLib.Api/Functions/SearchHashtags.cs +++ b/TdLib.Api/Functions/SearchHashtags.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for recently used hashtags by their prefix /// - public static partial class TdApi + public class SearchHashtags : Function { /// - /// Searches for recently used hashtags by their prefix + /// Data type for serialization /// - public class SearchHashtags : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchHashtags"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchHashtags"; - /// - /// Hashtag prefix to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prefix")] - public string Prefix { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of hashtags to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Hashtag prefix to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prefix")] + public string Prefix { get; set; } /// - /// Searches for recently used hashtags by their prefix + /// The maximum number of hashtags to be returned /// - public static Task SearchHashtagsAsync( - this IClient client, string prefix = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for recently used hashtags by their prefix + /// + public static Task SearchHashtagsAsync( + this IClient client, string prefix = default, int limit = default) + { + return client.ExecuteAsync(new SearchHashtags { - return client.ExecuteAsync(new SearchHashtags - { - Prefix = prefix, Limit = limit - }); - } + Prefix = prefix, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchInstalledStickerSets.cs b/TdLib.Api/Functions/SearchInstalledStickerSets.cs index 90016d70..436cf605 100644 --- a/TdLib.Api/Functions/SearchInstalledStickerSets.cs +++ b/TdLib.Api/Functions/SearchInstalledStickerSets.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for installed sticker sets by looking for specified query in their title and name /// - public static partial class TdApi + public class SearchInstalledStickerSets : Function { /// - /// Searches for installed sticker sets by looking for specified query in their title and name + /// Data type for serialization /// - public class SearchInstalledStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchInstalledStickerSets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchInstalledStickerSets"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Type of the sticker sets to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Type of the sticker sets to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// The maximum number of sticker sets to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } /// - /// Searches for installed sticker sets by looking for specified query in their title and name + /// The maximum number of sticker sets to return /// - public static Task SearchInstalledStickerSetsAsync( - this IClient client, StickerType stickerType = default, string query = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for installed sticker sets by looking for specified query in their title and name + /// + public static Task SearchInstalledStickerSetsAsync( + this IClient client, StickerType stickerType = default, string query = default, int limit = default) + { + return client.ExecuteAsync(new SearchInstalledStickerSets { - return client.ExecuteAsync(new SearchInstalledStickerSets - { - StickerType = stickerType, Query = query, Limit = limit - }); - } + StickerType = stickerType, Query = query, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchMessages.cs b/TdLib.Api/Functions/SearchMessages.cs index 39990e78..a0418530 100644 --- a/TdLib.Api/Functions/SearchMessages.cs +++ b/TdLib.Api/Functions/SearchMessages.cs @@ -3,100 +3,102 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). + /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit /// - public static partial class TdApi + public class SearchMessages : Function { /// - /// Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). - /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// Data type for serialization /// - public class SearchMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessages"; - /// - /// Chat list in which to search messages; pass null to search in all chats regardless of their chat list. Only Main and Archive chat lists are supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Chat list in which to search messages; pass null to search in all chats regardless of their chat list. Only Main and Archive chat lists are supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } - /// - /// Additional filter for messages to search; pass null to search for all messages. Filters searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SearchMessagesFilter Filter { get; set; } + /// + /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } - /// - /// Additional filter for type of the chat of the searched messages; pass null to search for messages in all chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_type_filter")] - public SearchMessagesChatTypeFilter ChatTypeFilter { get; set; } + /// + /// Additional filter for messages to search; pass null to search for all messages. Filters searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SearchMessagesFilter Filter { get; set; } - /// - /// If not 0, the minimum date of the messages to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_date")] - public int MinDate { get; set; } + /// + /// Additional filter for type of the chat of the searched messages; pass null to search for messages in all chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_type_filter")] + public SearchMessagesChatTypeFilter ChatTypeFilter { get; set; } - /// - /// If not 0, the maximum date of the messages to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_date")] - public int MaxDate { get; set; } - } + /// + /// If not 0, the minimum date of the messages to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_date")] + public int MinDate { get; set; } /// - /// Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). - /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// If not 0, the maximum date of the messages to return /// - public static Task SearchMessagesAsync( - this IClient client, ChatList chatList = default, string query = default, string offset = default, int limit = default, SearchMessagesFilter filter = default, SearchMessagesChatTypeFilter chatTypeFilter = default, int minDate = default, int maxDate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("max_date")] + public int MaxDate { get; set; } + } + + /// + /// Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). + /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + public static Task SearchMessagesAsync( + this IClient client, ChatList chatList = default, string query = default, string offset = default, int limit = default, SearchMessagesFilter filter = default, SearchMessagesChatTypeFilter chatTypeFilter = default, int minDate = default, int maxDate = default) + { + return client.ExecuteAsync(new SearchMessages { - return client.ExecuteAsync(new SearchMessages - { - ChatList = chatList, Query = query, Offset = offset, Limit = limit, Filter = filter, ChatTypeFilter = chatTypeFilter, MinDate = minDate, MaxDate = maxDate - }); - } + ChatList = chatList, Query = query, Offset = offset, Limit = limit, Filter = filter, ChatTypeFilter = chatTypeFilter, MinDate = minDate, MaxDate = maxDate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchOutgoingDocumentMessages.cs b/TdLib.Api/Functions/SearchOutgoingDocumentMessages.cs index 4f6556d3..e47b81cc 100644 --- a/TdLib.Api/Functions/SearchOutgoingDocumentMessages.cs +++ b/TdLib.Api/Functions/SearchOutgoingDocumentMessages.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the results in reverse chronological order /// - public static partial class TdApi + public class SearchOutgoingDocumentMessages : Function { /// - /// Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the results in reverse chronological order + /// Data type for serialization /// - public class SearchOutgoingDocumentMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchOutgoingDocumentMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchOutgoingDocumentMessages"; - /// - /// Query to search for in document file name and message caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of messages to be returned; up to 100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Query to search for in document file name and message caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } /// - /// Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the results in reverse chronological order + /// The maximum number of messages to be returned; up to 100 /// - public static Task SearchOutgoingDocumentMessagesAsync( - this IClient client, string query = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the results in reverse chronological order + /// + public static Task SearchOutgoingDocumentMessagesAsync( + this IClient client, string query = default, int limit = default) + { + return client.ExecuteAsync(new SearchOutgoingDocumentMessages { - return client.ExecuteAsync(new SearchOutgoingDocumentMessages - { - Query = query, Limit = limit - }); - } + Query = query, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchPublicChat.cs b/TdLib.Api/Functions/SearchPublicChat.cs index ca60a85a..a53471b7 100644 --- a/TdLib.Api/Functions/SearchPublicChat.cs +++ b/TdLib.Api/Functions/SearchPublicChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned /// - public static partial class TdApi + public class SearchPublicChat : Function { /// - /// Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned + /// Data type for serialization /// - public class SearchPublicChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchPublicChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchPublicChat"; - /// - /// Username to be resolved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned + /// Username to be resolved /// - public static Task SearchPublicChatAsync( - this IClient client, string username = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } + } + + /// + /// Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned + /// + public static Task SearchPublicChatAsync( + this IClient client, string username = default) + { + return client.ExecuteAsync(new SearchPublicChat { - return client.ExecuteAsync(new SearchPublicChat - { - Username = username - }); - } + Username = username + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchPublicChats.cs b/TdLib.Api/Functions/SearchPublicChats.cs index 75e16763..e0767226 100644 --- a/TdLib.Api/Functions/SearchPublicChats.cs +++ b/TdLib.Api/Functions/SearchPublicChats.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. + /// Excludes private chats with contacts and chats from the chat list from the results /// - public static partial class TdApi + public class SearchPublicChats : Function { /// - /// Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. - /// Excludes private chats with contacts and chats from the chat list from the results + /// Data type for serialization /// - public class SearchPublicChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchPublicChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchPublicChats"; - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Additional filter for type of the chats to be returned; pass null to search for chats of all types - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type_filter")] - public SearchChatTypeFilter TypeFilter { get; set; } - } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } /// - /// Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. - /// Excludes private chats with contacts and chats from the chat list from the results + /// Additional filter for type of the chats to be returned; pass null to search for chats of all types /// - public static Task SearchPublicChatsAsync( - this IClient client, string query = default, SearchChatTypeFilter typeFilter = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type_filter")] + public SearchChatTypeFilter TypeFilter { get; set; } + } + + /// + /// Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. + /// Excludes private chats with contacts and chats from the chat list from the results + /// + public static Task SearchPublicChatsAsync( + this IClient client, string query = default, SearchChatTypeFilter typeFilter = default) + { + return client.ExecuteAsync(new SearchPublicChats { - return client.ExecuteAsync(new SearchPublicChats - { - Query = query, TypeFilter = typeFilter - }); - } + Query = query, TypeFilter = typeFilter + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchPublicMessagesByTag.cs b/TdLib.Api/Functions/SearchPublicMessagesByTag.cs index b933a386..9672337d 100644 --- a/TdLib.Api/Functions/SearchPublicMessagesByTag.cs +++ b/TdLib.Api/Functions/SearchPublicMessagesByTag.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for public channel posts containing the given hashtag or cashtag. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit /// - public static partial class TdApi + public class SearchPublicMessagesByTag : Function { /// - /// Searches for public channel posts containing the given hashtag or cashtag. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// Data type for serialization /// - public class SearchPublicMessagesByTag : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchPublicMessagesByTag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchPublicMessagesByTag"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Hashtag or cashtag to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public string Tag { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Hashtag or cashtag to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public string Tag { get; set; } - /// - /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Searches for public channel posts containing the given hashtag or cashtag. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit /// - public static Task SearchPublicMessagesByTagAsync( - this IClient client, string tag = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for public channel posts containing the given hashtag or cashtag. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + public static Task SearchPublicMessagesByTagAsync( + this IClient client, string tag = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchPublicMessagesByTag { - return client.ExecuteAsync(new SearchPublicMessagesByTag - { - Tag = tag, Offset = offset, Limit = limit - }); - } + Tag = tag, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchPublicPosts.cs b/TdLib.Api/Functions/SearchPublicPosts.cs index fdd8aa04..26947e23 100644 --- a/TdLib.Api/Functions/SearchPublicPosts.cs +++ b/TdLib.Api/Functions/SearchPublicPosts.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for public channel posts using the given query. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit /// - public static partial class TdApi + public class SearchPublicPosts : Function { /// - /// Searches for public channel posts using the given query. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// Data type for serialization /// - public class SearchPublicPosts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchPublicPosts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchPublicPosts"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } - /// - /// The Telegram Star amount the user agreed to pay for the search; pass 0 for free searches - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Searches for public channel posts using the given query. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// The Telegram Star amount the user agreed to pay for the search; pass 0 for free searches /// - public static Task SearchPublicPostsAsync( - this IClient client, string query = default, string offset = default, int limit = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Searches for public channel posts using the given query. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + public static Task SearchPublicPostsAsync( + this IClient client, string query = default, string offset = default, int limit = default, long starCount = default) + { + return client.ExecuteAsync(new SearchPublicPosts { - return client.ExecuteAsync(new SearchPublicPosts - { - Query = query, Offset = offset, Limit = limit, StarCount = starCount - }); - } + Query = query, Offset = offset, Limit = limit, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchPublicStoriesByLocation.cs b/TdLib.Api/Functions/SearchPublicStoriesByLocation.cs index 6a03de70..3d3b7c3c 100644 --- a/TdLib.Api/Functions/SearchPublicStoriesByLocation.cs +++ b/TdLib.Api/Functions/SearchPublicStoriesByLocation.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for public stories by the given address location. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit /// - public static partial class TdApi + public class SearchPublicStoriesByLocation : Function { /// - /// Searches for public stories by the given address location. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// Data type for serialization /// - public class SearchPublicStoriesByLocation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchPublicStoriesByLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchPublicStoriesByLocation"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Address of the location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public LocationAddress Address { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Address of the location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public LocationAddress Address { get; set; } - /// - /// The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Searches for public stories by the given address location. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit /// - public static Task SearchPublicStoriesByLocationAsync( - this IClient client, LocationAddress address = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for public stories by the given address location. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// + public static Task SearchPublicStoriesByLocationAsync( + this IClient client, LocationAddress address = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchPublicStoriesByLocation { - return client.ExecuteAsync(new SearchPublicStoriesByLocation - { - Address = address, Offset = offset, Limit = limit - }); - } + Address = address, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchPublicStoriesByTag.cs b/TdLib.Api/Functions/SearchPublicStoriesByTag.cs index c7470d90..2451b881 100644 --- a/TdLib.Api/Functions/SearchPublicStoriesByTag.cs +++ b/TdLib.Api/Functions/SearchPublicStoriesByTag.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for public stories containing the given hashtag or cashtag. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit /// - public static partial class TdApi + public class SearchPublicStoriesByTag : Function { /// - /// Searches for public stories containing the given hashtag or cashtag. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// Data type for serialization /// - public class SearchPublicStoriesByTag : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchPublicStoriesByTag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchPublicStoriesByTag"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that posted the stories to search for; pass 0 to search stories in all chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Hashtag or cashtag to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public string Tag { get; set; } + /// + /// Identifier of the chat that posted the stories to search for; pass 0 to search stories in all chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Hashtag or cashtag to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public string Tag { get; set; } - /// - /// The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Searches for public stories containing the given hashtag or cashtag. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit /// - public static Task SearchPublicStoriesByTagAsync( - this IClient client, long storyPosterChatId = default, string tag = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for public stories containing the given hashtag or cashtag. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// + public static Task SearchPublicStoriesByTagAsync( + this IClient client, long storyPosterChatId = default, string tag = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchPublicStoriesByTag { - return client.ExecuteAsync(new SearchPublicStoriesByTag - { - StoryPosterChatId = storyPosterChatId, Tag = tag, Offset = offset, Limit = limit - }); - } + StoryPosterChatId = storyPosterChatId, Tag = tag, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchPublicStoriesByVenue.cs b/TdLib.Api/Functions/SearchPublicStoriesByVenue.cs index 593c436d..76b2c646 100644 --- a/TdLib.Api/Functions/SearchPublicStoriesByVenue.cs +++ b/TdLib.Api/Functions/SearchPublicStoriesByVenue.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for public stories from the given venue. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit /// - public static partial class TdApi + public class SearchPublicStoriesByVenue : Function { /// - /// Searches for public stories from the given venue. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// Data type for serialization /// - public class SearchPublicStoriesByVenue : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchPublicStoriesByVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchPublicStoriesByVenue"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Provider of the venue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue_provider")] - public string VenueProvider { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the venue in the provider database - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue_id")] - public string VenueId { get; set; } + /// + /// Provider of the venue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue_provider")] + public string VenueProvider { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Identifier of the venue in the provider database + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue_id")] + public string VenueId { get; set; } - /// - /// The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } /// - /// Searches for public stories from the given venue. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// The maximum number of stories to be returned; up to 100. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit /// - public static Task SearchPublicStoriesByVenueAsync( - this IClient client, string venueProvider = default, string venueId = default, string offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for public stories from the given venue. For optimal performance, the number of returned stories is chosen by TDLib and can be smaller than the specified limit + /// + public static Task SearchPublicStoriesByVenueAsync( + this IClient client, string venueProvider = default, string venueId = default, string offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchPublicStoriesByVenue { - return client.ExecuteAsync(new SearchPublicStoriesByVenue - { - VenueProvider = venueProvider, VenueId = venueId, Offset = offset, Limit = limit - }); - } + VenueProvider = venueProvider, VenueId = venueId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchQuote.cs b/TdLib.Api/Functions/SearchQuote.cs index 146d13c1..a0d47a70 100644 --- a/TdLib.Api/Functions/SearchQuote.cs +++ b/TdLib.Api/Functions/SearchQuote.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously /// - public static partial class TdApi + public class SearchQuote : Function { /// - /// Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously + /// Data type for serialization /// - public class SearchQuote : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchQuote"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Text in which to search for the quote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Quote to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("quote")] - public FormattedText Quote { get; set; } + /// + /// Text in which to search for the quote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Approximate quote position in UTF-16 code units - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("quote_position")] - public int QuotePosition { get; set; } - } + /// + /// Quote to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("quote")] + public FormattedText Quote { get; set; } /// - /// Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously + /// Approximate quote position in UTF-16 code units /// - public static Task SearchQuoteAsync( - this IClient client, FormattedText text = default, FormattedText quote = default, int quotePosition = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("quote_position")] + public int QuotePosition { get; set; } + } + + /// + /// Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously + /// + public static Task SearchQuoteAsync( + this IClient client, FormattedText text = default, FormattedText quote = default, int quotePosition = default) + { + return client.ExecuteAsync(new SearchQuote { - return client.ExecuteAsync(new SearchQuote - { - Text = text, Quote = quote, QuotePosition = quotePosition - }); - } + Text = text, Quote = quote, QuotePosition = quotePosition + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchRecentlyFoundChats.cs b/TdLib.Api/Functions/SearchRecentlyFoundChats.cs index 11666368..eeeeb14a 100644 --- a/TdLib.Api/Functions/SearchRecentlyFoundChats.cs +++ b/TdLib.Api/Functions/SearchRecentlyFoundChats.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for the specified query in the title and username of up to 50 recently found chats. This is an offline method /// - public static partial class TdApi + public class SearchRecentlyFoundChats : Function { /// - /// Searches for the specified query in the title and username of up to 50 recently found chats. This is an offline method + /// Data type for serialization /// - public class SearchRecentlyFoundChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchRecentlyFoundChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchRecentlyFoundChats"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Additional filter for type of the chats to be returned; pass null to search for chats of all types - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type_filter")] - public SearchChatTypeFilter TypeFilter { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of chats to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Additional filter for type of the chats to be returned; pass null to search for chats of all types + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type_filter")] + public SearchChatTypeFilter TypeFilter { get; set; } /// - /// Searches for the specified query in the title and username of up to 50 recently found chats. This is an offline method + /// The maximum number of chats to be returned /// - public static Task SearchRecentlyFoundChatsAsync( - this IClient client, string query = default, SearchChatTypeFilter typeFilter = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for the specified query in the title and username of up to 50 recently found chats. This is an offline method + /// + public static Task SearchRecentlyFoundChatsAsync( + this IClient client, string query = default, SearchChatTypeFilter typeFilter = default, int limit = default) + { + return client.ExecuteAsync(new SearchRecentlyFoundChats { - return client.ExecuteAsync(new SearchRecentlyFoundChats - { - Query = query, TypeFilter = typeFilter, Limit = limit - }); - } + Query = query, TypeFilter = typeFilter, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchSavedMessages.cs b/TdLib.Api/Functions/SearchSavedMessages.cs index 94eb38a6..5dcedc24 100644 --- a/TdLib.Api/Functions/SearchSavedMessages.cs +++ b/TdLib.Api/Functions/SearchSavedMessages.cs @@ -3,89 +3,91 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only. + /// Returns the results in reverse chronological order, i.e. in order of decreasing message_id. + /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit /// - public static partial class TdApi + public class SearchSavedMessages : Function { /// - /// Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only. - /// Returns the results in reverse chronological order, i.e. in order of decreasing message_id. - /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// Data type for serialization /// - public class SearchSavedMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchSavedMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchSavedMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Tag to search for; pass null to return all suitable messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public ReactionType Tag { get; set; } + /// + /// If not 0, only messages in the specified Saved Messages topic will be considered; pass 0 to consider all messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Tag to search for; pass null to return all suitable messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public ReactionType Tag { get; set; } - /// - /// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_message_id")] - public long FromMessageId { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Identifier of the message starting from which messages must be fetched; use 0 to get results from the last message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_message_id")] + public long FromMessageId { get; set; } - /// - /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. - /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// Specify 0 to get results from exactly the message from_message_id or a negative number to get the specified message and some newer messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only. - /// Returns the results in reverse chronological order, i.e. in order of decreasing message_id. + /// The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, then the limit must be greater than -offset. /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit /// - public static Task SearchSavedMessagesAsync( - this IClient client, long savedMessagesTopicId = default, ReactionType tag = default, string query = default, long fromMessageId = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only. + /// Returns the results in reverse chronological order, i.e. in order of decreasing message_id. + /// For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + public static Task SearchSavedMessagesAsync( + this IClient client, long savedMessagesTopicId = default, ReactionType tag = default, string query = default, long fromMessageId = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchSavedMessages { - return client.ExecuteAsync(new SearchSavedMessages - { - SavedMessagesTopicId = savedMessagesTopicId, Tag = tag, Query = query, FromMessageId = fromMessageId, Offset = offset, Limit = limit - }); - } + SavedMessagesTopicId = savedMessagesTopicId, Tag = tag, Query = query, FromMessageId = fromMessageId, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchSecretMessages.cs b/TdLib.Api/Functions/SearchSecretMessages.cs index 16ce5e43..5f0e640b 100644 --- a/TdLib.Api/Functions/SearchSecretMessages.cs +++ b/TdLib.Api/Functions/SearchSecretMessages.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the number of returned messages is chosen by TDLib /// - public static partial class TdApi + public class SearchSecretMessages : Function { /// - /// Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the number of returned messages is chosen by TDLib + /// Data type for serialization /// - public class SearchSecretMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchSecretMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchSecretMessages"; - /// - /// Identifier of the chat in which to search. Specify 0 to search in all secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for. If empty, searchChatMessages must be used instead - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Identifier of the chat in which to search. Specify 0 to search in all secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } + /// + /// Query to search for. If empty, searchChatMessages must be used instead + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } - /// - /// Additional filter for messages to search; pass null to search for all messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("filter")] - public SearchMessagesFilter Filter { get; set; } - } + /// + /// The maximum number of messages to be returned; up to 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the number of returned messages is chosen by TDLib + /// Additional filter for messages to search; pass null to search for all messages /// - public static Task SearchSecretMessagesAsync( - this IClient client, long chatId = default, string query = default, string offset = default, int limit = default, SearchMessagesFilter filter = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("filter")] + public SearchMessagesFilter Filter { get; set; } + } + + /// + /// Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the number of returned messages is chosen by TDLib + /// + public static Task SearchSecretMessagesAsync( + this IClient client, long chatId = default, string query = default, string offset = default, int limit = default, SearchMessagesFilter filter = default) + { + return client.ExecuteAsync(new SearchSecretMessages { - return client.ExecuteAsync(new SearchSecretMessages - { - ChatId = chatId, Query = query, Offset = offset, Limit = limit, Filter = filter - }); - } + ChatId = chatId, Query = query, Offset = offset, Limit = limit, Filter = filter + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchStickerSet.cs b/TdLib.Api/Functions/SearchStickerSet.cs index d3c3b6fb..dfcb6ea8 100644 --- a/TdLib.Api/Functions/SearchStickerSet.cs +++ b/TdLib.Api/Functions/SearchStickerSet.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for a sticker set by its name /// - public static partial class TdApi + public class SearchStickerSet : Function { /// - /// Searches for a sticker set by its name + /// Data type for serialization /// - public class SearchStickerSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchStickerSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchStickerSet"; - /// - /// Name of the sticker set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to ignore local cache of sticker sets and always send a network request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ignore_cache")] - public bool IgnoreCache { get; set; } - } + /// + /// Name of the sticker set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Searches for a sticker set by its name + /// Pass true to ignore local cache of sticker sets and always send a network request /// - public static Task SearchStickerSetAsync( - this IClient client, string name = default, bool ignoreCache = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("ignore_cache")] + public bool IgnoreCache { get; set; } + } + + /// + /// Searches for a sticker set by its name + /// + public static Task SearchStickerSetAsync( + this IClient client, string name = default, bool ignoreCache = default) + { + return client.ExecuteAsync(new SearchStickerSet { - return client.ExecuteAsync(new SearchStickerSet - { - Name = name, IgnoreCache = ignoreCache - }); - } + Name = name, IgnoreCache = ignoreCache + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchStickerSets.cs b/TdLib.Api/Functions/SearchStickerSets.cs index bb8259b3..f66c609c 100644 --- a/TdLib.Api/Functions/SearchStickerSets.cs +++ b/TdLib.Api/Functions/SearchStickerSets.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results /// - public static partial class TdApi + public class SearchStickerSets : Function { /// - /// Searches for sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results + /// Data type for serialization /// - public class SearchStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchStickerSets"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchStickerSets"; - /// - /// Type of the sticker sets to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } - } + /// + /// Type of the sticker sets to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } /// - /// Searches for sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results + /// Query to search for /// - public static Task SearchStickerSetsAsync( - this IClient client, StickerType stickerType = default, string query = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } + } + + /// + /// Searches for sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results + /// + public static Task SearchStickerSetsAsync( + this IClient client, StickerType stickerType = default, string query = default) + { + return client.ExecuteAsync(new SearchStickerSets { - return client.ExecuteAsync(new SearchStickerSets - { - StickerType = stickerType, Query = query - }); - } + StickerType = stickerType, Query = query + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchStickers.cs b/TdLib.Api/Functions/SearchStickers.cs index 608f7979..809632a7 100644 --- a/TdLib.Api/Functions/SearchStickers.cs +++ b/TdLib.Api/Functions/SearchStickers.cs @@ -3,83 +3,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches for stickers from public sticker sets that correspond to any of the given emoji /// - public static partial class TdApi + public class SearchStickers : Function { /// - /// Searches for stickers from public sticker sets that correspond to any of the given emoji + /// Data type for serialization /// - public class SearchStickers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchStickers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchStickers"; - /// - /// Type of the stickers to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Space-separated list of emojis to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emojis")] - public string Emojis { get; set; } + /// + /// Type of the stickers to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// Query to search for; may be empty to search for emoji only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Space-separated list of emojis to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emojis")] + public string Emojis { get; set; } - /// - /// List of possible IETF language tags of the user's input language; may be empty if unknown - /// - [JsonProperty("input_language_codes", ItemConverterType = typeof(Converter))] - public string[] InputLanguageCodes { get; set; } + /// + /// Query to search for; may be empty to search for emoji only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// The offset from which to return the stickers; must be non-negative - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// List of possible IETF language tags of the user's input language; may be empty if unknown + /// + [JsonProperty("input_language_codes", ItemConverterType = typeof(Converter))] + public string[] InputLanguageCodes { get; set; } - /// - /// The maximum number of stickers to be returned; 0-100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } - } + /// + /// The offset from which to return the stickers; must be non-negative + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } /// - /// Searches for stickers from public sticker sets that correspond to any of the given emoji + /// The maximum number of stickers to be returned; 0-100 /// - public static Task SearchStickersAsync( - this IClient client, StickerType stickerType = default, string emojis = default, string query = default, string[] inputLanguageCodes = default, int offset = default, int limit = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } + } + + /// + /// Searches for stickers from public sticker sets that correspond to any of the given emoji + /// + public static Task SearchStickersAsync( + this IClient client, StickerType stickerType = default, string emojis = default, string query = default, string[] inputLanguageCodes = default, int offset = default, int limit = default) + { + return client.ExecuteAsync(new SearchStickers { - return client.ExecuteAsync(new SearchStickers - { - StickerType = stickerType, Emojis = emojis, Query = query, InputLanguageCodes = inputLanguageCodes, Offset = offset, Limit = limit - }); - } + StickerType = stickerType, Emojis = emojis, Query = query, InputLanguageCodes = inputLanguageCodes, Offset = offset, Limit = limit + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchStringsByPrefix.cs b/TdLib.Api/Functions/SearchStringsByPrefix.cs index 43d7095c..0b1cae61 100644 --- a/TdLib.Api/Functions/SearchStringsByPrefix.cs +++ b/TdLib.Api/Functions/SearchStringsByPrefix.cs @@ -3,69 +3,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously /// - public static partial class TdApi + public class SearchStringsByPrefix : Function { /// - /// Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously + /// Data type for serialization /// - public class SearchStringsByPrefix : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchStringsByPrefix"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchStringsByPrefix"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The strings to search in for the query - /// - [JsonProperty("strings", ItemConverterType = typeof(Converter))] - public string[] Strings { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// The strings to search in for the query + /// + [JsonProperty("strings", ItemConverterType = typeof(Converter))] + public string[] Strings { get; set; } - /// - /// The maximum number of objects to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit")] - public int Limit { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Pass true to receive no results for an empty query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("return_none_for_empty_query")] - public bool ReturnNoneForEmptyQuery { get; set; } - } + /// + /// The maximum number of objects to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit")] + public int Limit { get; set; } /// - /// Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously + /// Pass true to receive no results for an empty query /// - public static Task SearchStringsByPrefixAsync( - this IClient client, string[] strings = default, string query = default, int limit = default, bool returnNoneForEmptyQuery = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("return_none_for_empty_query")] + public bool ReturnNoneForEmptyQuery { get; set; } + } + + /// + /// Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously + /// + public static Task SearchStringsByPrefixAsync( + this IClient client, string[] strings = default, string query = default, int limit = default, bool returnNoneForEmptyQuery = default) + { + return client.ExecuteAsync(new SearchStringsByPrefix { - return client.ExecuteAsync(new SearchStringsByPrefix - { - Strings = strings, Query = query, Limit = limit, ReturnNoneForEmptyQuery = returnNoneForEmptyQuery - }); - } + Strings = strings, Query = query, Limit = limit, ReturnNoneForEmptyQuery = returnNoneForEmptyQuery + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchTextCompositionStyle.cs b/TdLib.Api/Functions/SearchTextCompositionStyle.cs index 9bc3d154..0f6b8870 100644 --- a/TdLib.Api/Functions/SearchTextCompositionStyle.cs +++ b/TdLib.Api/Functions/SearchTextCompositionStyle.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches a custom text composition style by its name /// - public static partial class TdApi + public class SearchTextCompositionStyle : Function { /// - /// Searches a custom text composition style by its name + /// Data type for serialization /// - public class SearchTextCompositionStyle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchTextCompositionStyle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchTextCompositionStyle"; - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Searches a custom text composition style by its name + /// Name of the style /// - public static Task SearchTextCompositionStyleAsync( - this IClient client, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Searches a custom text composition style by its name + /// + public static Task SearchTextCompositionStyleAsync( + this IClient client, string name = default) + { + return client.ExecuteAsync(new SearchTextCompositionStyle { - return client.ExecuteAsync(new SearchTextCompositionStyle - { - Name = name - }); - } + Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchUserByPhoneNumber.cs b/TdLib.Api/Functions/SearchUserByPhoneNumber.cs index fb8e3825..b8941eea 100644 --- a/TdLib.Api/Functions/SearchUserByPhoneNumber.cs +++ b/TdLib.Api/Functions/SearchUserByPhoneNumber.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches a user by their phone number. Returns a 404 error if the user can't be found /// - public static partial class TdApi + public class SearchUserByPhoneNumber : Function { /// - /// Searches a user by their phone number. Returns a 404 error if the user can't be found + /// Data type for serialization /// - public class SearchUserByPhoneNumber : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchUserByPhoneNumber"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchUserByPhoneNumber"; - /// - /// Phone number to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to get only locally available information without sending network requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_local")] - public bool OnlyLocal { get; set; } - } + /// + /// Phone number to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } /// - /// Searches a user by their phone number. Returns a 404 error if the user can't be found + /// Pass true to get only locally available information without sending network requests /// - public static Task SearchUserByPhoneNumberAsync( - this IClient client, string phoneNumber = default, bool onlyLocal = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_local")] + public bool OnlyLocal { get; set; } + } + + /// + /// Searches a user by their phone number. Returns a 404 error if the user can't be found + /// + public static Task SearchUserByPhoneNumberAsync( + this IClient client, string phoneNumber = default, bool onlyLocal = default) + { + return client.ExecuteAsync(new SearchUserByPhoneNumber { - return client.ExecuteAsync(new SearchUserByPhoneNumber - { - PhoneNumber = phoneNumber, OnlyLocal = onlyLocal - }); - } + PhoneNumber = phoneNumber, OnlyLocal = onlyLocal + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchUserByToken.cs b/TdLib.Api/Functions/SearchUserByToken.cs index d505bd0d..77111081 100644 --- a/TdLib.Api/Functions/SearchUserByToken.cs +++ b/TdLib.Api/Functions/SearchUserByToken.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Searches a user by a token from the user's link /// - public static partial class TdApi + public class SearchUserByToken : Function { /// - /// Searches a user by a token from the user's link + /// Data type for serialization /// - public class SearchUserByToken : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchUserByToken"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchUserByToken"; - /// - /// Token to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Searches a user by a token from the user's link + /// Token to search for /// - public static Task SearchUserByTokenAsync( - this IClient client, string token = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } + } + + /// + /// Searches a user by a token from the user's link + /// + public static Task SearchUserByTokenAsync( + this IClient client, string token = default) + { + return client.ExecuteAsync(new SearchUserByToken { - return client.ExecuteAsync(new SearchUserByToken - { - Token = token - }); - } + Token = token + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SearchWebApp.cs b/TdLib.Api/Functions/SearchWebApp.cs index 5f79ba74..0f89130e 100644 --- a/TdLib.Api/Functions/SearchWebApp.cs +++ b/TdLib.Api/Functions/SearchWebApp.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found /// - public static partial class TdApi + public class SearchWebApp : Function { /// - /// Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found + /// Data type for serialization /// - public class SearchWebApp : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchWebApp"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchWebApp"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Short name of the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_short_name")] - public string WebAppShortName { get; set; } - } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found + /// Short name of the Web App /// - public static Task SearchWebAppAsync( - this IClient client, long botUserId = default, string webAppShortName = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_short_name")] + public string WebAppShortName { get; set; } + } + + /// + /// Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found + /// + public static Task SearchWebAppAsync( + this IClient client, long botUserId = default, string webAppShortName = default) + { + return client.ExecuteAsync(new SearchWebApp { - return client.ExecuteAsync(new SearchWebApp - { - BotUserId = botUserId, WebAppShortName = webAppShortName - }); - } + BotUserId = botUserId, WebAppShortName = webAppShortName + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SellGift.cs b/TdLib.Api/Functions/SellGift.cs index f9a2693e..2408d3a2 100644 --- a/TdLib.Api/Functions/SellGift.cs +++ b/TdLib.Api/Functions/SellGift.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sells a gift for Telegram Stars; requires owner privileges for gifts owned by a chat /// - public static partial class TdApi + public class SellGift : Function { /// - /// Sells a gift for Telegram Stars; requires owner privileges for gifts owned by a chat + /// Data type for serialization /// - public class SellGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sellGift"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sellGift"; - /// - /// Unique identifier of business connection on behalf of which to send the request; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - } + /// + /// Unique identifier of business connection on behalf of which to send the request; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Sells a gift for Telegram Stars; requires owner privileges for gifts owned by a chat + /// Identifier of the gift /// - public static Task SellGiftAsync( - this IClient client, string businessConnectionId = default, string receivedGiftId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } + } + + /// + /// Sells a gift for Telegram Stars; requires owner privileges for gifts owned by a chat + /// + public static Task SellGiftAsync( + this IClient client, string businessConnectionId = default, string receivedGiftId = default) + { + return client.ExecuteAsync(new SellGift { - return client.ExecuteAsync(new SellGift - { - BusinessConnectionId = businessConnectionId, ReceivedGiftId = receivedGiftId - }); - } + BusinessConnectionId = businessConnectionId, ReceivedGiftId = receivedGiftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendAuthenticationFirebaseSms.cs b/TdLib.Api/Functions/SendAuthenticationFirebaseSms.cs index 922a7f1a..6dab363e 100644 --- a/TdLib.Api/Functions/SendAuthenticationFirebaseSms.cs +++ b/TdLib.Api/Functions/SendAuthenticationFirebaseSms.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos /// - public static partial class TdApi + public class SendAuthenticationFirebaseSms : Function { /// - /// Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos + /// Data type for serialization /// - public class SendAuthenticationFirebaseSms : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendAuthenticationFirebaseSms"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendAuthenticationFirebaseSms"; - /// - /// Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos + /// Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application /// - public static Task SendAuthenticationFirebaseSmsAsync( - this IClient client, string token = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } + } + + /// + /// Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos + /// + public static Task SendAuthenticationFirebaseSmsAsync( + this IClient client, string token = default) + { + return client.ExecuteAsync(new SendAuthenticationFirebaseSms { - return client.ExecuteAsync(new SendAuthenticationFirebaseSms - { - Token = token - }); - } + Token = token + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendBotStartMessage.cs b/TdLib.Api/Functions/SendBotStartMessage.cs index 5a7c3841..f9bdcc12 100644 --- a/TdLib.Api/Functions/SendBotStartMessage.cs +++ b/TdLib.Api/Functions/SendBotStartMessage.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires can_invite_users member right. Bots can't be invited to a private chat other than the chat with the bot. + /// Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message /// - public static partial class TdApi + public class SendBotStartMessage : Function { /// - /// Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires can_invite_users member right. Bots can't be invited to a private chat other than the chat with the bot. - /// Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message + /// Data type for serialization /// - public class SendBotStartMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendBotStartMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendBotStartMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the target chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameter")] - public string Parameter { get; set; } - } + /// + /// Identifier of the target chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires can_invite_users member right. Bots can't be invited to a private chat other than the chat with the bot. - /// Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message + /// A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking) /// - public static Task SendBotStartMessageAsync( - this IClient client, long botUserId = default, long chatId = default, string parameter = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameter")] + public string Parameter { get; set; } + } + + /// + /// Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires can_invite_users member right. Bots can't be invited to a private chat other than the chat with the bot. + /// Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message + /// + public static Task SendBotStartMessageAsync( + this IClient client, long botUserId = default, long chatId = default, string parameter = default) + { + return client.ExecuteAsync(new SendBotStartMessage { - return client.ExecuteAsync(new SendBotStartMessage - { - BotUserId = botUserId, ChatId = chatId, Parameter = parameter - }); - } + BotUserId = botUserId, ChatId = chatId, Parameter = parameter + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendBusinessMessage.cs b/TdLib.Api/Functions/SendBusinessMessage.cs index 68ff44c6..d75eb6e7 100644 --- a/TdLib.Api/Functions/SendBusinessMessage.cs +++ b/TdLib.Api/Functions/SendBusinessMessage.cs @@ -3,98 +3,100 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a message on behalf of a business account; for bots only. Returns the message after it was sent /// - public static partial class TdApi + public class SendBusinessMessage : Function { /// - /// Sends a message on behalf of a business account; for bots only. Returns the message after it was sent + /// Data type for serialization /// - public class SendBusinessMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendBusinessMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendBusinessMessage"; - /// - /// Unique identifier of business connection on behalf of which to send the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Target chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which to send the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Information about the message to be replied; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Target chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to disable notification for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_notification")] - public bool DisableNotification { get; set; } + /// + /// Information about the message to be replied; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// Pass true if the content of the message must be protected from forwarding and saving - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protect_content")] - public bool ProtectContent { get; set; } + /// + /// Pass true to disable notification for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_notification")] + public bool DisableNotification { get; set; } - /// - /// Identifier of the effect to apply to the message - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("effect_id")] - public long EffectId { get; set; } + /// + /// Pass true if the content of the message must be protected from forwarding and saving + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protect_content")] + public bool ProtectContent { get; set; } - /// - /// Markup for replying to the message; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Identifier of the effect to apply to the message + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("effect_id")] + public long EffectId { get; set; } - /// - /// The content of the message to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// Markup for replying to the message; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Sends a message on behalf of a business account; for bots only. Returns the message after it was sent + /// The content of the message to be sent /// - public static Task SendBusinessMessageAsync( - this IClient client, string businessConnectionId = default, long chatId = default, InputMessageReplyTo replyTo = default, bool disableNotification = default, bool protectContent = default, long effectId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Sends a message on behalf of a business account; for bots only. Returns the message after it was sent + /// + public static Task SendBusinessMessageAsync( + this IClient client, string businessConnectionId = default, long chatId = default, InputMessageReplyTo replyTo = default, bool disableNotification = default, bool protectContent = default, long effectId = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new SendBusinessMessage { - return client.ExecuteAsync(new SendBusinessMessage - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, ReplyTo = replyTo, DisableNotification = disableNotification, ProtectContent = protectContent, EffectId = effectId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, ReplyTo = replyTo, DisableNotification = disableNotification, ProtectContent = protectContent, EffectId = effectId, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendBusinessMessageAlbum.cs b/TdLib.Api/Functions/SendBusinessMessageAlbum.cs index b5c4887e..56cbffbc 100644 --- a/TdLib.Api/Functions/SendBusinessMessageAlbum.cs +++ b/TdLib.Api/Functions/SendBusinessMessageAlbum.cs @@ -3,92 +3,94 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends 2-10 messages grouped together into an album on behalf of a business account; for bots only. Currently, only audio, document, photo and video messages can be grouped into an album. + /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages /// - public static partial class TdApi + public class SendBusinessMessageAlbum : Function { /// - /// Sends 2-10 messages grouped together into an album on behalf of a business account; for bots only. Currently, only audio, document, photo and video messages can be grouped into an album. - /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// Data type for serialization /// - public class SendBusinessMessageAlbum : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendBusinessMessageAlbum"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendBusinessMessageAlbum"; - /// - /// Unique identifier of business connection on behalf of which to send the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Target chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which to send the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Information about the message to be replied; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Target chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to disable notification for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_notification")] - public bool DisableNotification { get; set; } + /// + /// Information about the message to be replied; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// Pass true if the content of the message must be protected from forwarding and saving - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protect_content")] - public bool ProtectContent { get; set; } + /// + /// Pass true to disable notification for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_notification")] + public bool DisableNotification { get; set; } - /// - /// Identifier of the effect to apply to the message - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("effect_id")] - public long EffectId { get; set; } + /// + /// Pass true if the content of the message must be protected from forwarding and saving + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protect_content")] + public bool ProtectContent { get; set; } - /// - /// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media - /// - [JsonProperty("input_message_contents", ItemConverterType = typeof(Converter))] - public InputMessageContent[] InputMessageContents { get; set; } - } + /// + /// Identifier of the effect to apply to the message + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("effect_id")] + public long EffectId { get; set; } /// - /// Sends 2-10 messages grouped together into an album on behalf of a business account; for bots only. Currently, only audio, document, photo and video messages can be grouped into an album. - /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media /// - public static Task SendBusinessMessageAlbumAsync( - this IClient client, string businessConnectionId = default, long chatId = default, InputMessageReplyTo replyTo = default, bool disableNotification = default, bool protectContent = default, long effectId = default, InputMessageContent[] inputMessageContents = default) + [JsonProperty("input_message_contents", ItemConverterType = typeof(Converter))] + public InputMessageContent[] InputMessageContents { get; set; } + } + + /// + /// Sends 2-10 messages grouped together into an album on behalf of a business account; for bots only. Currently, only audio, document, photo and video messages can be grouped into an album. + /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// + public static Task SendBusinessMessageAlbumAsync( + this IClient client, string businessConnectionId = default, long chatId = default, InputMessageReplyTo replyTo = default, bool disableNotification = default, bool protectContent = default, long effectId = default, InputMessageContent[] inputMessageContents = default) + { + return client.ExecuteAsync(new SendBusinessMessageAlbum { - return client.ExecuteAsync(new SendBusinessMessageAlbum - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, ReplyTo = replyTo, DisableNotification = disableNotification, ProtectContent = protectContent, EffectId = effectId, InputMessageContents = inputMessageContents - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, ReplyTo = replyTo, DisableNotification = disableNotification, ProtectContent = protectContent, EffectId = effectId, InputMessageContents = inputMessageContents + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendCallDebugInformation.cs b/TdLib.Api/Functions/SendCallDebugInformation.cs index b1fb2bd9..8375a348 100644 --- a/TdLib.Api/Functions/SendCallDebugInformation.cs +++ b/TdLib.Api/Functions/SendCallDebugInformation.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends debug information for a call to Telegram servers /// - public static partial class TdApi + public class SendCallDebugInformation : Function { /// - /// Sends debug information for a call to Telegram servers + /// Data type for serialization /// - public class SendCallDebugInformation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendCallDebugInformation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendCallDebugInformation"; - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public InputCall CallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Debug information in application-specific format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("debug_information")] - public string DebugInformation { get; set; } - } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public InputCall CallId { get; set; } /// - /// Sends debug information for a call to Telegram servers + /// Debug information in application-specific format /// - public static Task SendCallDebugInformationAsync( - this IClient client, InputCall callId = default, string debugInformation = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("debug_information")] + public string DebugInformation { get; set; } + } + + /// + /// Sends debug information for a call to Telegram servers + /// + public static Task SendCallDebugInformationAsync( + this IClient client, InputCall callId = default, string debugInformation = default) + { + return client.ExecuteAsync(new SendCallDebugInformation { - return client.ExecuteAsync(new SendCallDebugInformation - { - CallId = callId, DebugInformation = debugInformation - }); - } + CallId = callId, DebugInformation = debugInformation + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendCallLog.cs b/TdLib.Api/Functions/SendCallLog.cs index f69c1ceb..aa212a20 100644 --- a/TdLib.Api/Functions/SendCallLog.cs +++ b/TdLib.Api/Functions/SendCallLog.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends log file for a call to Telegram servers /// - public static partial class TdApi + public class SendCallLog : Function { /// - /// Sends log file for a call to Telegram servers + /// Data type for serialization /// - public class SendCallLog : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendCallLog"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendCallLog"; - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public InputCall CallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Call log file. Only inputFileLocal and inputFileGenerated are supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("log_file")] - public InputFile LogFile { get; set; } - } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public InputCall CallId { get; set; } /// - /// Sends log file for a call to Telegram servers + /// Call log file. Only inputFileLocal and inputFileGenerated are supported /// - public static Task SendCallLogAsync( - this IClient client, InputCall callId = default, InputFile logFile = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("log_file")] + public InputFile LogFile { get; set; } + } + + /// + /// Sends log file for a call to Telegram servers + /// + public static Task SendCallLogAsync( + this IClient client, InputCall callId = default, InputFile logFile = default) + { + return client.ExecuteAsync(new SendCallLog { - return client.ExecuteAsync(new SendCallLog - { - CallId = callId, LogFile = logFile - }); - } + CallId = callId, LogFile = logFile + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendCallRating.cs b/TdLib.Api/Functions/SendCallRating.cs index 961f0285..3ce08c32 100644 --- a/TdLib.Api/Functions/SendCallRating.cs +++ b/TdLib.Api/Functions/SendCallRating.cs @@ -3,69 +3,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a call rating /// - public static partial class TdApi + public class SendCallRating : Function { /// - /// Sends a call rating + /// Data type for serialization /// - public class SendCallRating : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendCallRating"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendCallRating"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public InputCall CallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Call rating; 1-5 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rating")] - public int Rating { get; set; } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public InputCall CallId { get; set; } - /// - /// An optional user comment if the rating is less than 5 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("comment")] - public string Comment { get; set; } + /// + /// Call rating; 1-5 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rating")] + public int Rating { get; set; } - /// - /// List of the exact types of problems with the call, specified by the user - /// - [JsonProperty("problems", ItemConverterType = typeof(Converter))] - public CallProblem[] Problems { get; set; } - } + /// + /// An optional user comment if the rating is less than 5 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } /// - /// Sends a call rating + /// List of the exact types of problems with the call, specified by the user /// - public static Task SendCallRatingAsync( - this IClient client, InputCall callId = default, int rating = default, string comment = default, CallProblem[] problems = default) + [JsonProperty("problems", ItemConverterType = typeof(Converter))] + public CallProblem[] Problems { get; set; } + } + + /// + /// Sends a call rating + /// + public static Task SendCallRatingAsync( + this IClient client, InputCall callId = default, int rating = default, string comment = default, CallProblem[] problems = default) + { + return client.ExecuteAsync(new SendCallRating { - return client.ExecuteAsync(new SendCallRating - { - CallId = callId, Rating = rating, Comment = comment, Problems = problems - }); - } + CallId = callId, Rating = rating, Comment = comment, Problems = problems + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendCallSignalingData.cs b/TdLib.Api/Functions/SendCallSignalingData.cs index 3f70a853..1837f25b 100644 --- a/TdLib.Api/Functions/SendCallSignalingData.cs +++ b/TdLib.Api/Functions/SendCallSignalingData.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends call signaling data /// - public static partial class TdApi + public class SendCallSignalingData : Function { /// - /// Sends call signaling data + /// Data type for serialization /// - public class SendCallSignalingData : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendCallSignalingData"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendCallSignalingData"; - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public int CallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public int CallId { get; set; } /// - /// Sends call signaling data + /// The data /// - public static Task SendCallSignalingDataAsync( - this IClient client, int callId = default, byte[] data = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } + } + + /// + /// Sends call signaling data + /// + public static Task SendCallSignalingDataAsync( + this IClient client, int callId = default, byte[] data = default) + { + return client.ExecuteAsync(new SendCallSignalingData { - return client.ExecuteAsync(new SendCallSignalingData - { - CallId = callId, Data = data - }); - } + CallId = callId, Data = data + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendChatAction.cs b/TdLib.Api/Functions/SendChatAction.cs index 04f02933..91fab4a4 100644 --- a/TdLib.Api/Functions/SendChatAction.cs +++ b/TdLib.Api/Functions/SendChatAction.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a notification about user activity in a chat /// - public static partial class TdApi + public class SendChatAction : Function { /// - /// Sends a notification about user activity in a chat + /// Data type for serialization /// - public class SendChatAction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendChatAction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendChatAction"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic in which the action is performed; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique identifier of business connection on behalf of which to send the request; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Identifier of the topic in which the action is performed; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// The action description; pass null to cancel the currently active action - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action")] - public ChatAction Action { get; set; } - } + /// + /// Unique identifier of business connection on behalf of which to send the request; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Sends a notification about user activity in a chat + /// The action description; pass null to cancel the currently active action /// - public static Task SendChatActionAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, string businessConnectionId = default, ChatAction action = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("action")] + public ChatAction Action { get; set; } + } + + /// + /// Sends a notification about user activity in a chat + /// + public static Task SendChatActionAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, string businessConnectionId = default, ChatAction action = default) + { + return client.ExecuteAsync(new SendChatAction { - return client.ExecuteAsync(new SendChatAction - { - ChatId = chatId, TopicId = topicId, BusinessConnectionId = businessConnectionId, Action = action - }); - } + ChatId = chatId, TopicId = topicId, BusinessConnectionId = businessConnectionId, Action = action + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendCustomRequest.cs b/TdLib.Api/Functions/SendCustomRequest.cs index 1750fc5f..3fb61934 100644 --- a/TdLib.Api/Functions/SendCustomRequest.cs +++ b/TdLib.Api/Functions/SendCustomRequest.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a custom request; for bots only /// - public static partial class TdApi + public class SendCustomRequest : Function { /// - /// Sends a custom request; for bots only + /// Data type for serialization /// - public class SendCustomRequest : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendCustomRequest"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendCustomRequest"; - /// - /// The method name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("method")] - public string Method { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// JSON-serialized method parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public string Parameters { get; set; } - } + /// + /// The method name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("method")] + public string Method { get; set; } /// - /// Sends a custom request; for bots only + /// JSON-serialized method parameters /// - public static Task SendCustomRequestAsync( - this IClient client, string method = default, string parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public string Parameters { get; set; } + } + + /// + /// Sends a custom request; for bots only + /// + public static Task SendCustomRequestAsync( + this IClient client, string method = default, string parameters = default) + { + return client.ExecuteAsync(new SendCustomRequest { - return client.ExecuteAsync(new SendCustomRequest - { - Method = method, Parameters = parameters - }); - } + Method = method, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendEmailAddressVerificationCode.cs b/TdLib.Api/Functions/SendEmailAddressVerificationCode.cs index 88111b10..f58753b2 100644 --- a/TdLib.Api/Functions/SendEmailAddressVerificationCode.cs +++ b/TdLib.Api/Functions/SendEmailAddressVerificationCode.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a code to verify an email address to be added to a user's Telegram Passport /// - public static partial class TdApi + public class SendEmailAddressVerificationCode : Function { /// - /// Sends a code to verify an email address to be added to a user's Telegram Passport + /// Data type for serialization /// - public class SendEmailAddressVerificationCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendEmailAddressVerificationCode"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendEmailAddressVerificationCode"; - /// - /// Email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address")] - public string EmailAddress { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sends a code to verify an email address to be added to a user's Telegram Passport + /// Email address /// - public static Task SendEmailAddressVerificationCodeAsync( - this IClient client, string emailAddress = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address")] + public string EmailAddress { get; set; } + } + + /// + /// Sends a code to verify an email address to be added to a user's Telegram Passport + /// + public static Task SendEmailAddressVerificationCodeAsync( + this IClient client, string emailAddress = default) + { + return client.ExecuteAsync(new SendEmailAddressVerificationCode { - return client.ExecuteAsync(new SendEmailAddressVerificationCode - { - EmailAddress = emailAddress - }); - } + EmailAddress = emailAddress + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendEphemeralMessage.cs b/TdLib.Api/Functions/SendEphemeralMessage.cs index ad4d39a0..676c869e 100644 --- a/TdLib.Api/Functions/SendEphemeralMessage.cs +++ b/TdLib.Api/Functions/SendEphemeralMessage.cs @@ -3,121 +3,123 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. + /// The message is persistent across application restarts only if the message database is used. Returns the sent message /// - public static partial class TdApi + public class SendEphemeralMessage : Function { /// - /// Sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. - /// The message is persistent across application restarts only if the message database is used. Returns the sent message + /// Data type for serialization /// - public class SendEphemeralMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendEphemeralMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendEphemeralMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Target chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic in which the message will be sent; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Target chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the user who will receive the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_user_id")] - public long ReceiverUserId { get; set; } + /// + /// Topic in which the message will be sent; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Identifier of the callback query which triggered the message; for bots only - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("callback_query_id")] - public long CallbackQueryId { get; set; } + /// + /// Identifier of the user who will receive the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_user_id")] + public long ReceiverUserId { get; set; } - /// - /// Pass true if the ephemeral message must replace the message from which the callback query originated; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("replace_callback_query_message")] - public bool ReplaceCallbackQueryMessage { get; set; } + /// + /// Identifier of the callback query which triggered the message; for bots only + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("callback_query_id")] + public long CallbackQueryId { get; set; } - /// - /// Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Pass true if the ephemeral message must replace the message from which the callback query originated; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("replace_callback_query_message")] + public bool ReplaceCallbackQueryMessage { get; set; } - /// - /// Pass true if the content of the message must be protected from forwarding and saving; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protect_content")] - public bool ProtectContent { get; set; } + /// + /// Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sending_id")] - public int SendingId { get; set; } + /// + /// Pass true if the content of the message must be protected from forwarding and saving; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protect_content")] + public bool ProtectContent { get; set; } - /// - /// Pass true to get a fake message instead of actually sending them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_preview")] - public bool OnlyPreview { get; set; } + /// + /// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sending_id")] + public int SendingId { get; set; } - /// - /// Markup for replying to the message; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Pass true to get a fake message instead of actually sending them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_preview")] + public bool OnlyPreview { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// Markup for replying to the message; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. - /// The message is persistent across application restarts only if the message database is used. Returns the sent message + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, /// - public static Task SendEphemeralMessageAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, long receiverUserId = default, long callbackQueryId = default, bool replaceCallbackQueryMessage = default, InputMessageReplyTo replyTo = default, bool protectContent = default, int sendingId = default, bool onlyPreview = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. + /// The message is persistent across application restarts only if the message database is used. Returns the sent message + /// + public static Task SendEphemeralMessageAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, long receiverUserId = default, long callbackQueryId = default, bool replaceCallbackQueryMessage = default, InputMessageReplyTo replyTo = default, bool protectContent = default, int sendingId = default, bool onlyPreview = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new SendEphemeralMessage { - return client.ExecuteAsync(new SendEphemeralMessage - { - ChatId = chatId, TopicId = topicId, ReceiverUserId = receiverUserId, CallbackQueryId = callbackQueryId, ReplaceCallbackQueryMessage = replaceCallbackQueryMessage, ReplyTo = replyTo, ProtectContent = protectContent, SendingId = sendingId, OnlyPreview = onlyPreview, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, TopicId = topicId, ReceiverUserId = receiverUserId, CallbackQueryId = callbackQueryId, ReplaceCallbackQueryMessage = replaceCallbackQueryMessage, ReplyTo = replyTo, ProtectContent = protectContent, SendingId = sendingId, OnlyPreview = onlyPreview, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendGift.cs b/TdLib.Api/Functions/SendGift.cs index 27201ca0..a4dac8a7 100644 --- a/TdLib.Api/Functions/SendGift.cs +++ b/TdLib.Api/Functions/SendGift.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out /// - public static partial class TdApi + public class SendGift : Function { /// - /// Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out + /// Data type for serialization /// - public class SendGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendGift"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendGift"; - /// - /// Identifier of the gift to send - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("gift_id")] - public long GiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the channel chat that will receive the gift; limited gifts can't be sent to channel chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the gift to send + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("gift_id")] + public long GiftId { get; set; } - /// - /// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Identifier of the user or the channel chat that will receive the gift; limited gifts can't be sent to channel chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_private")] - public bool IsPrivate { get; set; } + /// + /// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Pass true to additionally pay for the gift upgrade and allow the receiver to upgrade it for free - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pay_for_upgrade")] - public bool PayForUpgrade { get; set; } - } + /// + /// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_private")] + public bool IsPrivate { get; set; } /// - /// Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out + /// Pass true to additionally pay for the gift upgrade and allow the receiver to upgrade it for free /// - public static Task SendGiftAsync( - this IClient client, long giftId = default, MessageSender ownerId = default, FormattedText text = default, bool isPrivate = default, bool payForUpgrade = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("pay_for_upgrade")] + public bool PayForUpgrade { get; set; } + } + + /// + /// Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out + /// + public static Task SendGiftAsync( + this IClient client, long giftId = default, MessageSender ownerId = default, FormattedText text = default, bool isPrivate = default, bool payForUpgrade = default) + { + return client.ExecuteAsync(new SendGift { - return client.ExecuteAsync(new SendGift - { - GiftId = giftId, OwnerId = ownerId, Text = text, IsPrivate = isPrivate, PayForUpgrade = payForUpgrade - }); - } + GiftId = giftId, OwnerId = ownerId, Text = text, IsPrivate = isPrivate, PayForUpgrade = payForUpgrade + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendGiftPurchaseOffer.cs b/TdLib.Api/Functions/SendGiftPurchaseOffer.cs index e19ceb14..7b735ff4 100644 --- a/TdLib.Api/Functions/SendGiftPurchaseOffer.cs +++ b/TdLib.Api/Functions/SendGiftPurchaseOffer.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends an offer to purchase an upgraded gift /// - public static partial class TdApi + public class SendGiftPurchaseOffer : Function { /// - /// Sends an offer to purchase an upgraded gift + /// Data type for serialization /// - public class SendGiftPurchaseOffer : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendGiftPurchaseOffer"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendGiftPurchaseOffer"; - /// - /// Identifier of the user or the channel chat that currently owns the gift and will receive the offer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_name")] - public string GiftName { get; set; } + /// + /// Identifier of the user or the channel chat that currently owns the gift and will receive the offer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The price that the user agreed to pay for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } + /// + /// Name of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_name")] + public string GiftName { get; set; } - /// - /// Duration of the offer, in seconds; must be one of 21600, 43200, 86400, 129600, 172800, or 259200. Can also be 120 if Telegram test environment is used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// The price that the user agreed to pay for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } - /// - /// The number of Telegram Stars the user agreed to pay additionally for sending of the offer message to the current gift owner; pass userFullInfo.outgoing_paid_message_star_count for users and 0 otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// Duration of the offer, in seconds; must be one of 21600, 43200, 86400, 129600, 172800, or 259200. Can also be 120 if Telegram test environment is used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } /// - /// Sends an offer to purchase an upgraded gift + /// The number of Telegram Stars the user agreed to pay additionally for sending of the offer message to the current gift owner; pass userFullInfo.outgoing_paid_message_star_count for users and 0 otherwise /// - public static Task SendGiftPurchaseOfferAsync( - this IClient client, MessageSender ownerId = default, string giftName = default, GiftResalePrice price = default, int duration = default, long paidMessageStarCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + } + + /// + /// Sends an offer to purchase an upgraded gift + /// + public static Task SendGiftPurchaseOfferAsync( + this IClient client, MessageSender ownerId = default, string giftName = default, GiftResalePrice price = default, int duration = default, long paidMessageStarCount = default) + { + return client.ExecuteAsync(new SendGiftPurchaseOffer { - return client.ExecuteAsync(new SendGiftPurchaseOffer - { - OwnerId = ownerId, GiftName = giftName, Price = price, Duration = duration, PaidMessageStarCount = paidMessageStarCount - }); - } + OwnerId = ownerId, GiftName = giftName, Price = price, Duration = duration, PaidMessageStarCount = paidMessageStarCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendGroupCallMessage.cs b/TdLib.Api/Functions/SendGroupCallMessage.cs index 801fcf54..26c7a5a9 100644 --- a/TdLib.Api/Functions/SendGroupCallMessage.cs +++ b/TdLib.Api/Functions/SendGroupCallMessage.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a message to other participants of a group call. Requires groupCall.can_send_messages right /// - public static partial class TdApi + public class SendGroupCallMessage : Function { /// - /// Sends a message to other participants of a group call. Requires groupCall.can_send_messages right + /// Data type for serialization /// - public class SendGroupCallMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendGroupCallMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendGroupCallMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the message to send; 1-getOption("group_call_message_text_length_max") characters for non-live-stories; see updateGroupCallMessageLevels for live story restrictions, - /// which depends on paid_message_star_count. Can't contain line feeds for live stories. Can contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities for live stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// The number of Telegram Stars the user agreed to pay to send the message; for live stories only; 0-getOption("paid_group_call_message_star_count_max"). - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// Text of the message to send; 1-getOption("group_call_message_text_length_max") characters for non-live-stories; see updateGroupCallMessageLevels for live story restrictions, + /// which depends on paid_message_star_count. Can't contain line feeds for live stories. Can contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities for live stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } /// - /// Sends a message to other participants of a group call. Requires groupCall.can_send_messages right + /// The number of Telegram Stars the user agreed to pay to send the message; for live stories only; 0-getOption("paid_group_call_message_star_count_max"). /// - public static Task SendGroupCallMessageAsync( - this IClient client, int groupCallId = default, FormattedText text = default, long paidMessageStarCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + } + + /// + /// Sends a message to other participants of a group call. Requires groupCall.can_send_messages right + /// + public static Task SendGroupCallMessageAsync( + this IClient client, int groupCallId = default, FormattedText text = default, long paidMessageStarCount = default) + { + return client.ExecuteAsync(new SendGroupCallMessage { - return client.ExecuteAsync(new SendGroupCallMessage - { - GroupCallId = groupCallId, Text = text, PaidMessageStarCount = paidMessageStarCount - }); - } + GroupCallId = groupCallId, Text = text, PaidMessageStarCount = paidMessageStarCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendInlineQueryResultMessage.cs b/TdLib.Api/Functions/SendInlineQueryResultMessage.cs index a8c0d7be..629f503a 100644 --- a/TdLib.Api/Functions/SendInlineQueryResultMessage.cs +++ b/TdLib.Api/Functions/SendInlineQueryResultMessage.cs @@ -3,91 +3,93 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message /// - public static partial class TdApi + public class SendInlineQueryResultMessage : Function { /// - /// Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message + /// Data type for serialization /// - public class SendInlineQueryResultMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendInlineQueryResultMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendInlineQueryResultMessage"; - /// - /// Target chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic in which the message will be sent; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Target chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Information about the message or story to be replied; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Topic in which the message will be sent; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Options to be used to send the message; pass null to use default options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("options")] - public MessageSendOptions Options { get; set; } + /// + /// Information about the message or story to be replied; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// Identifier of the inline query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } + /// + /// Options to be used to send the message; pass null to use default options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("options")] + public MessageSendOptions Options { get; set; } - /// - /// Identifier of the inline query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result_id")] - public string ResultId { get; set; } + /// + /// Identifier of the inline query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } - /// - /// Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hide_via_bot")] - public bool HideViaBot { get; set; } - } + /// + /// Identifier of the inline query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result_id")] + public string ResultId { get; set; } /// - /// Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message + /// Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username") /// - public static Task SendInlineQueryResultMessageAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, MessageSendOptions options = default, long queryId = default, string resultId = default, bool hideViaBot = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("hide_via_bot")] + public bool HideViaBot { get; set; } + } + + /// + /// Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message + /// + public static Task SendInlineQueryResultMessageAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, MessageSendOptions options = default, long queryId = default, string resultId = default, bool hideViaBot = default) + { + return client.ExecuteAsync(new SendInlineQueryResultMessage { - return client.ExecuteAsync(new SendInlineQueryResultMessage - { - ChatId = chatId, TopicId = topicId, ReplyTo = replyTo, Options = options, QueryId = queryId, ResultId = resultId, HideViaBot = hideViaBot - }); - } + ChatId = chatId, TopicId = topicId, ReplyTo = replyTo, Options = options, QueryId = queryId, ResultId = resultId, HideViaBot = hideViaBot + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendMessage.cs b/TdLib.Api/Functions/SendMessage.cs index 4079cbce..e3fc9c4c 100644 --- a/TdLib.Api/Functions/SendMessage.cs +++ b/TdLib.Api/Functions/SendMessage.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a message. Returns the sent message /// - public static partial class TdApi + public class SendMessage : Function { /// - /// Sends a message. Returns the sent message + /// Data type for serialization /// - public class SendMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendMessage"; - /// - /// Target chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic in which the message will be sent; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Target chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Information about the message or story to be replied; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Topic in which the message will be sent; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Options to be used to send the message; pass null to use default options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("options")] - public MessageSendOptions Options { get; set; } + /// + /// Information about the message or story to be replied; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// Markup for replying to the message; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// Options to be used to send the message; pass null to use default options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("options")] + public MessageSendOptions Options { get; set; } - /// - /// The content of the message to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// Markup for replying to the message; pass null if none; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } /// - /// Sends a message. Returns the sent message + /// The content of the message to be sent /// - public static Task SendMessageAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, MessageSendOptions options = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } + } + + /// + /// Sends a message. Returns the sent message + /// + public static Task SendMessageAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, MessageSendOptions options = default, ReplyMarkup replyMarkup = default, InputMessageContent inputMessageContent = default) + { + return client.ExecuteAsync(new SendMessage { - return client.ExecuteAsync(new SendMessage - { - ChatId = chatId, TopicId = topicId, ReplyTo = replyTo, Options = options, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent - }); - } + ChatId = chatId, TopicId = topicId, ReplyTo = replyTo, Options = options, ReplyMarkup = replyMarkup, InputMessageContent = inputMessageContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendMessageAlbum.cs b/TdLib.Api/Functions/SendMessageAlbum.cs index 6e6da03e..6a4c68e2 100644 --- a/TdLib.Api/Functions/SendMessageAlbum.cs +++ b/TdLib.Api/Functions/SendMessageAlbum.cs @@ -3,78 +3,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. + /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages /// - public static partial class TdApi + public class SendMessageAlbum : Function { /// - /// Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. - /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// Data type for serialization /// - public class SendMessageAlbum : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendMessageAlbum"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendMessageAlbum"; - /// - /// Target chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic in which the messages will be sent; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Target chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Information about the message or story to be replied; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Topic in which the messages will be sent; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Options to be used to send the messages; pass null to use default options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("options")] - public MessageSendOptions Options { get; set; } + /// + /// Information about the message or story to be replied; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media - /// - [JsonProperty("input_message_contents", ItemConverterType = typeof(Converter))] - public InputMessageContent[] InputMessageContents { get; set; } - } + /// + /// Options to be used to send the messages; pass null to use default options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("options")] + public MessageSendOptions Options { get; set; } /// - /// Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. - /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media /// - public static Task SendMessageAlbumAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, MessageSendOptions options = default, InputMessageContent[] inputMessageContents = default) + [JsonProperty("input_message_contents", ItemConverterType = typeof(Converter))] + public InputMessageContent[] InputMessageContents { get; set; } + } + + /// + /// Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. + /// Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages + /// + public static Task SendMessageAlbumAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, InputMessageReplyTo replyTo = default, MessageSendOptions options = default, InputMessageContent[] inputMessageContents = default) + { + return client.ExecuteAsync(new SendMessageAlbum { - return client.ExecuteAsync(new SendMessageAlbum - { - ChatId = chatId, TopicId = topicId, ReplyTo = replyTo, Options = options, InputMessageContents = inputMessageContents - }); - } + ChatId = chatId, TopicId = topicId, ReplyTo = replyTo, Options = options, InputMessageContents = inputMessageContents + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendMessageViewMetrics.cs b/TdLib.Api/Functions/SendMessageViewMetrics.cs index 228de162..f064c653 100644 --- a/TdLib.Api/Functions/SendMessageViewMetrics.cs +++ b/TdLib.Api/Functions/SendMessageViewMetrics.cs @@ -3,86 +3,88 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if + /// the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes /// - public static partial class TdApi + public class SendMessageViewMetrics : Function { /// - /// Informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if - /// the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes + /// Data type for serialization /// - public class SendMessageViewMetrics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendMessageViewMetrics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendMessageViewMetrics"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the message being viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The amount of time the message was seen by at least 1 pixel; in milliseconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("time_in_view_ms")] - public int TimeInViewMs { get; set; } + /// + /// The identifier of the message being viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The amount of time the message was seen by at least 1 pixel within 15 seconds after any action from the user; in milliseconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_time_in_view_ms")] - public int ActiveTimeInViewMs { get; set; } + /// + /// The amount of time the message was seen by at least 1 pixel; in milliseconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("time_in_view_ms")] + public int TimeInViewMs { get; set; } - /// - /// The ratio of the post height to the viewport height in 1/1000 fractions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height_to_viewport_ratio_per_mille")] - public int HeightToViewportRatioPerMille { get; set; } + /// + /// The amount of time the message was seen by at least 1 pixel within 15 seconds after any action from the user; in milliseconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_time_in_view_ms")] + public int ActiveTimeInViewMs { get; set; } - /// - /// The ratio of the viewed post height to the full post height in 1/1000 fractions; 0-1000 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("seen_range_ratio_per_mille")] - public int SeenRangeRatioPerMille { get; set; } - } + /// + /// The ratio of the post height to the viewport height in 1/1000 fractions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height_to_viewport_ratio_per_mille")] + public int HeightToViewportRatioPerMille { get; set; } /// - /// Informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if - /// the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes + /// The ratio of the viewed post height to the full post height in 1/1000 fractions; 0-1000 /// - public static Task SendMessageViewMetricsAsync( - this IClient client, long chatId = default, long messageId = default, int timeInViewMs = default, int activeTimeInViewMs = default, int heightToViewportRatioPerMille = default, int seenRangeRatioPerMille = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("seen_range_ratio_per_mille")] + public int SeenRangeRatioPerMille { get; set; } + } + + /// + /// Informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if + /// the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes + /// + public static Task SendMessageViewMetricsAsync( + this IClient client, long chatId = default, long messageId = default, int timeInViewMs = default, int activeTimeInViewMs = default, int heightToViewportRatioPerMille = default, int seenRangeRatioPerMille = default) + { + return client.ExecuteAsync(new SendMessageViewMetrics { - return client.ExecuteAsync(new SendMessageViewMetrics - { - ChatId = chatId, MessageId = messageId, TimeInViewMs = timeInViewMs, ActiveTimeInViewMs = activeTimeInViewMs, HeightToViewportRatioPerMille = heightToViewportRatioPerMille, SeenRangeRatioPerMille = seenRangeRatioPerMille - }); - } + ChatId = chatId, MessageId = messageId, TimeInViewMs = timeInViewMs, ActiveTimeInViewMs = activeTimeInViewMs, HeightToViewportRatioPerMille = heightToViewportRatioPerMille, SeenRangeRatioPerMille = seenRangeRatioPerMille + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendPassportAuthorizationForm.cs b/TdLib.Api/Functions/SendPassportAuthorizationForm.cs index e11a0bda..9aca214b 100644 --- a/TdLib.Api/Functions/SendPassportAuthorizationForm.cs +++ b/TdLib.Api/Functions/SendPassportAuthorizationForm.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused /// - public static partial class TdApi + public class SendPassportAuthorizationForm : Function { /// - /// Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused + /// Data type for serialization /// - public class SendPassportAuthorizationForm : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendPassportAuthorizationForm"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendPassportAuthorizationForm"; - /// - /// Authorization form identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("authorization_form_id")] - public int AuthorizationFormId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Types of Telegram Passport elements chosen by user to complete the authorization form - /// - [JsonProperty("types", ItemConverterType = typeof(Converter))] - public PassportElementType[] Types { get; set; } - } + /// + /// Authorization form identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("authorization_form_id")] + public int AuthorizationFormId { get; set; } /// - /// Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused + /// Types of Telegram Passport elements chosen by user to complete the authorization form /// - public static Task SendPassportAuthorizationFormAsync( - this IClient client, int authorizationFormId = default, PassportElementType[] types = default) + [JsonProperty("types", ItemConverterType = typeof(Converter))] + public PassportElementType[] Types { get; set; } + } + + /// + /// Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused + /// + public static Task SendPassportAuthorizationFormAsync( + this IClient client, int authorizationFormId = default, PassportElementType[] types = default) + { + return client.ExecuteAsync(new SendPassportAuthorizationForm { - return client.ExecuteAsync(new SendPassportAuthorizationForm - { - AuthorizationFormId = authorizationFormId, Types = types - }); - } + AuthorizationFormId = authorizationFormId, Types = types + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendPaymentForm.cs b/TdLib.Api/Functions/SendPaymentForm.cs index a743bff6..6d766f89 100644 --- a/TdLib.Api/Functions/SendPaymentForm.cs +++ b/TdLib.Api/Functions/SendPaymentForm.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a filled-out payment form to the bot for final verification /// - public static partial class TdApi + public class SendPaymentForm : Function { /// - /// Sends a filled-out payment form to the bot for final verification + /// Data type for serialization /// - public class SendPaymentForm : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendPaymentForm"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendPaymentForm"; - /// - /// The invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_invoice")] - public InputInvoice InputInvoice { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Payment form identifier returned by getPaymentForm - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("payment_form_id")] - public long PaymentFormId { get; set; } + /// + /// The invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_invoice")] + public InputInvoice InputInvoice { get; set; } - /// - /// Identifier returned by validateOrderInfo, or an empty string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order_info_id")] - public string OrderInfoId { get; set; } + /// + /// Payment form identifier returned by getPaymentForm + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("payment_form_id")] + public long PaymentFormId { get; set; } - /// - /// Identifier of a chosen shipping option, if applicable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shipping_option_id")] - public string ShippingOptionId { get; set; } + /// + /// Identifier returned by validateOrderInfo, or an empty string + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order_info_id")] + public string OrderInfoId { get; set; } - /// - /// The credentials chosen by user for payment; pass null for a payment in Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credentials")] - public InputCredentials Credentials { get; set; } + /// + /// Identifier of a chosen shipping option, if applicable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shipping_option_id")] + public string ShippingOptionId { get; set; } - /// - /// Chosen by the user amount of tip in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tip_amount")] - public long TipAmount { get; set; } - } + /// + /// The credentials chosen by user for payment; pass null for a payment in Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credentials")] + public InputCredentials Credentials { get; set; } /// - /// Sends a filled-out payment form to the bot for final verification + /// Chosen by the user amount of tip in the smallest units of the currency /// - public static Task SendPaymentFormAsync( - this IClient client, InputInvoice inputInvoice = default, long paymentFormId = default, string orderInfoId = default, string shippingOptionId = default, InputCredentials credentials = default, long tipAmount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tip_amount")] + public long TipAmount { get; set; } + } + + /// + /// Sends a filled-out payment form to the bot for final verification + /// + public static Task SendPaymentFormAsync( + this IClient client, InputInvoice inputInvoice = default, long paymentFormId = default, string orderInfoId = default, string shippingOptionId = default, InputCredentials credentials = default, long tipAmount = default) + { + return client.ExecuteAsync(new SendPaymentForm { - return client.ExecuteAsync(new SendPaymentForm - { - InputInvoice = inputInvoice, PaymentFormId = paymentFormId, OrderInfoId = orderInfoId, ShippingOptionId = shippingOptionId, Credentials = credentials, TipAmount = tipAmount - }); - } + InputInvoice = inputInvoice, PaymentFormId = paymentFormId, OrderInfoId = orderInfoId, ShippingOptionId = shippingOptionId, Credentials = credentials, TipAmount = tipAmount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendPhoneNumberCode.cs b/TdLib.Api/Functions/SendPhoneNumberCode.cs index 5af7c6e7..422ad60d 100644 --- a/TdLib.Api/Functions/SendPhoneNumberCode.cs +++ b/TdLib.Api/Functions/SendPhoneNumberCode.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code /// - public static partial class TdApi + public class SendPhoneNumberCode : Function { /// - /// Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code + /// Data type for serialization /// - public class SendPhoneNumberCode : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendPhoneNumberCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendPhoneNumberCode"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The phone number, in international format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Settings for the authentication of the user's phone number; pass null to use default settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public PhoneNumberAuthenticationSettings Settings { get; set; } + /// + /// The phone number, in international format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } - /// - /// Type of the request for which the code is sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PhoneNumberCodeType Type { get; set; } - } + /// + /// Settings for the authentication of the user's phone number; pass null to use default settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public PhoneNumberAuthenticationSettings Settings { get; set; } /// - /// Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code + /// Type of the request for which the code is sent /// - public static Task SendPhoneNumberCodeAsync( - this IClient client, string phoneNumber = default, PhoneNumberAuthenticationSettings settings = default, PhoneNumberCodeType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PhoneNumberCodeType Type { get; set; } + } + + /// + /// Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code + /// + public static Task SendPhoneNumberCodeAsync( + this IClient client, string phoneNumber = default, PhoneNumberAuthenticationSettings settings = default, PhoneNumberCodeType type = default) + { + return client.ExecuteAsync(new SendPhoneNumberCode { - return client.ExecuteAsync(new SendPhoneNumberCode - { - PhoneNumber = phoneNumber, Settings = settings, Type = type - }); - } + PhoneNumber = phoneNumber, Settings = settings, Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendPhoneNumberFirebaseSms.cs b/TdLib.Api/Functions/SendPhoneNumberFirebaseSms.cs index 72650fe9..a98535c7 100644 --- a/TdLib.Api/Functions/SendPhoneNumberFirebaseSms.cs +++ b/TdLib.Api/Functions/SendPhoneNumberFirebaseSms.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends Firebase Authentication SMS to the specified phone number. Works only when received a code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos /// - public static partial class TdApi + public class SendPhoneNumberFirebaseSms : Function { /// - /// Sends Firebase Authentication SMS to the specified phone number. Works only when received a code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos + /// Data type for serialization /// - public class SendPhoneNumberFirebaseSms : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendPhoneNumberFirebaseSms"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendPhoneNumberFirebaseSms"; - /// - /// Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sends Firebase Authentication SMS to the specified phone number. Works only when received a code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos + /// Play Integrity API or SafetyNet Attestation API token for the Android application, or secret from push notification for the iOS application /// - public static Task SendPhoneNumberFirebaseSmsAsync( - this IClient client, string token = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } + } + + /// + /// Sends Firebase Authentication SMS to the specified phone number. Works only when received a code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos + /// + public static Task SendPhoneNumberFirebaseSmsAsync( + this IClient client, string token = default) + { + return client.ExecuteAsync(new SendPhoneNumberFirebaseSms { - return client.ExecuteAsync(new SendPhoneNumberFirebaseSms - { - Token = token - }); - } + Token = token + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendQuickReplyShortcutMessages.cs b/TdLib.Api/Functions/SendQuickReplyShortcutMessages.cs index 0e1c9fb1..0fd10979 100644 --- a/TdLib.Api/Functions/SendQuickReplyShortcutMessages.cs +++ b/TdLib.Api/Functions/SendQuickReplyShortcutMessages.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends messages from a quick reply shortcut. Requires Telegram Business subscription. Can't be used to send paid messages /// - public static partial class TdApi + public class SendQuickReplyShortcutMessages : Function { /// - /// Sends messages from a quick reply shortcut. Requires Telegram Business subscription. Can't be used to send paid messages + /// Data type for serialization /// - public class SendQuickReplyShortcutMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendQuickReplyShortcutMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendQuickReplyShortcutMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which to send messages. The chat must be a private chat with a regular user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the quick reply shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } + /// + /// Identifier of the chat to which to send messages. The chat must be a private chat with a regular user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sending_id")] - public int SendingId { get; set; } - } + /// + /// Unique identifier of the quick reply shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } /// - /// Sends messages from a quick reply shortcut. Requires Telegram Business subscription. Can't be used to send paid messages + /// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates /// - public static Task SendQuickReplyShortcutMessagesAsync( - this IClient client, long chatId = default, int shortcutId = default, int sendingId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sending_id")] + public int SendingId { get; set; } + } + + /// + /// Sends messages from a quick reply shortcut. Requires Telegram Business subscription. Can't be used to send paid messages + /// + public static Task SendQuickReplyShortcutMessagesAsync( + this IClient client, long chatId = default, int shortcutId = default, int sendingId = default) + { + return client.ExecuteAsync(new SendQuickReplyShortcutMessages { - return client.ExecuteAsync(new SendQuickReplyShortcutMessages - { - ChatId = chatId, ShortcutId = shortcutId, SendingId = sendingId - }); - } + ChatId = chatId, ShortcutId = shortcutId, SendingId = sendingId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendResoldGift.cs b/TdLib.Api/Functions/SendResoldGift.cs index 8d9ae601..fb73398a 100644 --- a/TdLib.Api/Functions/SendResoldGift.cs +++ b/TdLib.Api/Functions/SendResoldGift.cs @@ -3,80 +3,82 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user + /// must be transferred using transferGift and can't be passed to the method /// - public static partial class TdApi + public class SendResoldGift : Function { /// - /// Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user - /// must be transferred using transferGift and can't be passed to the method + /// Data type for serialization /// - public class SendResoldGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendResoldGift"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendResoldGift"; - /// - /// Name of the upgraded gift to send - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_name")] - public string GiftName { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the channel chat that will receive the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Name of the upgraded gift to send + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_name")] + public string GiftName { get; set; } - /// - /// The price that the user agreed to pay for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } + /// + /// Identifier of the user or the channel chat that will receive the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. - /// Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// The price that the user agreed to pay for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } - /// - /// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_private")] - public bool IsPrivate { get; set; } - } + /// + /// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. + /// Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } /// - /// Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user - /// must be transferred using transferGift and can't be passed to the method + /// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them /// - public static Task SendResoldGiftAsync( - this IClient client, string giftName = default, MessageSender ownerId = default, GiftResalePrice price = default, FormattedText text = default, bool isPrivate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_private")] + public bool IsPrivate { get; set; } + } + + /// + /// Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user + /// must be transferred using transferGift and can't be passed to the method + /// + public static Task SendResoldGiftAsync( + this IClient client, string giftName = default, MessageSender ownerId = default, GiftResalePrice price = default, FormattedText text = default, bool isPrivate = default) + { + return client.ExecuteAsync(new SendResoldGift { - return client.ExecuteAsync(new SendResoldGift - { - GiftName = giftName, OwnerId = ownerId, Price = price, Text = text, IsPrivate = isPrivate - }); - } + GiftName = giftName, OwnerId = ownerId, Price = price, Text = text, IsPrivate = isPrivate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendRichMessageDraft.cs b/TdLib.Api/Functions/SendRichMessageDraft.cs index 1ea10377..b29955c4 100644 --- a/TdLib.Api/Functions/SendRichMessageDraft.cs +++ b/TdLib.Api/Functions/SendRichMessageDraft.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a draft for a being generated rich message; for bots only /// - public static partial class TdApi + public class SendRichMessageDraft : Function { /// - /// Sends a draft for a being generated rich message; for bots only + /// Data type for serialization /// - public class SendRichMessageDraft : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendRichMessageDraft"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendRichMessageDraft"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The forum topic identifier in which the message will be sent; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique identifier of the draft - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("draft_id")] - public long DraftId { get; set; } + /// + /// The forum topic identifier in which the message will be sent; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// Pass true to show the user a button to stop further drafts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_stop")] - public bool CanStop { get; set; } + /// + /// Unique identifier of the draft + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("draft_id")] + public long DraftId { get; set; } - /// - /// Pass true to keep the current draft when the user stops further generation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("keep_on_stop")] - public bool KeepOnStop { get; set; } + /// + /// Pass true to show the user a button to stop further drafts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_stop")] + public bool CanStop { get; set; } - /// - /// Draft of the message; file upload isn't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public InputRichMessage Message { get; set; } - } + /// + /// Pass true to keep the current draft when the user stops further generation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("keep_on_stop")] + public bool KeepOnStop { get; set; } /// - /// Sends a draft for a being generated rich message; for bots only + /// Draft of the message; file upload isn't supported /// - public static Task SendRichMessageDraftAsync( - this IClient client, long chatId = default, int forumTopicId = default, long draftId = default, bool canStop = default, bool keepOnStop = default, InputRichMessage message = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public InputRichMessage Message { get; set; } + } + + /// + /// Sends a draft for a being generated rich message; for bots only + /// + public static Task SendRichMessageDraftAsync( + this IClient client, long chatId = default, int forumTopicId = default, long draftId = default, bool canStop = default, bool keepOnStop = default, InputRichMessage message = default) + { + return client.ExecuteAsync(new SendRichMessageDraft { - return client.ExecuteAsync(new SendRichMessageDraft - { - ChatId = chatId, ForumTopicId = forumTopicId, DraftId = draftId, CanStop = canStop, KeepOnStop = keepOnStop, Message = message - }); - } + ChatId = chatId, ForumTopicId = forumTopicId, DraftId = draftId, CanStop = canStop, KeepOnStop = keepOnStop, Message = message + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendTextMessageDraft.cs b/TdLib.Api/Functions/SendTextMessageDraft.cs index a2480ba2..8850c7bb 100644 --- a/TdLib.Api/Functions/SendTextMessageDraft.cs +++ b/TdLib.Api/Functions/SendTextMessageDraft.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a draft for a being generated text message; for bots only /// - public static partial class TdApi + public class SendTextMessageDraft : Function { /// - /// Sends a draft for a being generated text message; for bots only + /// Data type for serialization /// - public class SendTextMessageDraft : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendTextMessageDraft"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendTextMessageDraft"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The forum topic identifier in which the message will be sent; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique identifier of the draft - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("draft_id")] - public long DraftId { get; set; } + /// + /// The forum topic identifier in which the message will be sent; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// Pass true to show the user a button to stop further drafts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_stop")] - public bool CanStop { get; set; } + /// + /// Unique identifier of the draft + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("draft_id")] + public long DraftId { get; set; } - /// - /// Pass true to keep the current draft when the user stops further generation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("keep_on_stop")] - public bool KeepOnStop { get; set; } + /// + /// Pass true to show the user a button to stop further drafts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_stop")] + public bool CanStop { get; set; } - /// - /// Draft text of the message; pass null to show a "Thinking..." placeholder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Pass true to keep the current draft when the user stops further generation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("keep_on_stop")] + public bool KeepOnStop { get; set; } /// - /// Sends a draft for a being generated text message; for bots only + /// Draft text of the message; pass null to show a "Thinking..." placeholder /// - public static Task SendTextMessageDraftAsync( - this IClient client, long chatId = default, int forumTopicId = default, long draftId = default, bool canStop = default, bool keepOnStop = default, FormattedText text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + } + + /// + /// Sends a draft for a being generated text message; for bots only + /// + public static Task SendTextMessageDraftAsync( + this IClient client, long chatId = default, int forumTopicId = default, long draftId = default, bool canStop = default, bool keepOnStop = default, FormattedText text = default) + { + return client.ExecuteAsync(new SendTextMessageDraft { - return client.ExecuteAsync(new SendTextMessageDraft - { - ChatId = chatId, ForumTopicId = forumTopicId, DraftId = draftId, CanStop = canStop, KeepOnStop = keepOnStop, Text = text - }); - } + ChatId = chatId, ForumTopicId = forumTopicId, DraftId = draftId, CanStop = canStop, KeepOnStop = keepOnStop, Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendTonCenterApiRequest.cs b/TdLib.Api/Functions/SendTonCenterApiRequest.cs new file mode 100644 index 00000000..1d4f9880 --- /dev/null +++ b/TdLib.Api/Functions/SendTonCenterApiRequest.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Sends a request to TON Center API and returns its response in JSON format + /// + public class SendTonCenterApiRequest : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendTonCenterApiRequest"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The path of the requested endpoint. See https://toncenter.com/api/v3/index.html for the list of supported endpoints + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("endpoint")] + public string Endpoint { get; set; } + + /// + /// Type of the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public TonCenterApiRequestType Type { get; set; } + } + + /// + /// Sends a request to TON Center API and returns its response in JSON format + /// + public static Task SendTonCenterApiRequestAsync( + this IClient client, string endpoint = default, TonCenterApiRequestType type = default) + { + return client.ExecuteAsync(new SendTonCenterApiRequest + { + Endpoint = endpoint, Type = type + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendTonConnectSessionConnectResult.cs b/TdLib.Api/Functions/SendTonConnectSessionConnectResult.cs new file mode 100644 index 00000000..f5d7a009 --- /dev/null +++ b/TdLib.Api/Functions/SendTonConnectSessionConnectResult.cs @@ -0,0 +1,81 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Accepts or rejects a TON Connect session + /// + public class SendTonConnectSessionConnectResult : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendTonConnectSessionConnectResult"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + + /// + /// Answer to the challenge received from setTonConnectSessionWalletClientId + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("challenge_answer")] + public byte[] ChallengeAnswer { get; set; } + + /// + /// Pass true to reject the request; pass false to accept it + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_error")] + public bool IsError { get; set; } + + /// + /// Body of the result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("body")] + public byte[] Body { get; set; } + + /// + /// Identifier to trace the connection request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("trace_id")] + public string TraceId { get; set; } + } + + /// + /// Accepts or rejects a TON Connect session + /// + public static Task SendTonConnectSessionConnectResultAsync( + this IClient client, long sessionId = default, byte[] challengeAnswer = default, bool isError = default, byte[] body = default, string traceId = default) + { + return client.ExecuteAsync(new SendTonConnectSessionConnectResult + { + SessionId = sessionId, ChallengeAnswer = challengeAnswer, IsError = isError, Body = body, TraceId = traceId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendTonWalletTransfer.cs b/TdLib.Api/Functions/SendTonWalletTransfer.cs new file mode 100644 index 00000000..5a7d7ca6 --- /dev/null +++ b/TdLib.Api/Functions/SendTonWalletTransfer.cs @@ -0,0 +1,103 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet") + /// + public class SendTonWalletTransfer : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendTonWalletTransfer"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the user who will receive the transfer; pass 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + + /// + /// Address in the TON blockchain of the transaction peer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } + + /// + /// The amount of the sent cryptocurrency, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } + + /// + /// Comment added to the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + + /// + /// Pass true if the comment is encrypted and must be decrypted using the receiver's or sender's private key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_comment_encrypted")] + public bool IsCommentEncrypted { get; set; } + + /// + /// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sending_id")] + public int SendingId { get; set; } + + /// + /// Serialized data for regular cryptocurrency transfer request. The minimum allowed transfer amount is getOption("ton_wallet_transfer_amount_min") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("regular_transfer_data")] + public byte[] RegularTransferData { get; set; } + + /// + /// Serialized data for gasless cryptocurrency transfer request; pass an empty string to force a regular request. + /// The minimum allowed transfer amount for a gassless transfer is getOption("ton_wallet_gasless_transfer_amount_min") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gasless_transfer_data")] + public byte[] GaslessTransferData { get; set; } + } + + /// + /// Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet") + /// + public static Task SendTonWalletTransferAsync( + this IClient client, long userId = default, string address = default, long amount = default, string comment = default, bool isCommentEncrypted = default, int sendingId = default, byte[] regularTransferData = default, byte[] gaslessTransferData = default) + { + return client.ExecuteAsync(new SendTonWalletTransfer + { + UserId = userId, Address = address, Amount = amount, Comment = comment, IsCommentEncrypted = isCommentEncrypted, SendingId = sendingId, RegularTransferData = regularTransferData, GaslessTransferData = gaslessTransferData + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendWebAppCustomRequest.cs b/TdLib.Api/Functions/SendWebAppCustomRequest.cs index 14d48053..48a5c877 100644 --- a/TdLib.Api/Functions/SendWebAppCustomRequest.cs +++ b/TdLib.Api/Functions/SendWebAppCustomRequest.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a custom request from a Web App /// - public static partial class TdApi + public class SendWebAppCustomRequest : Function { /// - /// Sends a custom request from a Web App + /// Data type for serialization /// - public class SendWebAppCustomRequest : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendWebAppCustomRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendWebAppCustomRequest"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The method name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("method")] - public string Method { get; set; } + /// + /// Identifier of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// JSON-serialized method parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public string Parameters { get; set; } - } + /// + /// The method name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("method")] + public string Method { get; set; } /// - /// Sends a custom request from a Web App + /// JSON-serialized method parameters /// - public static Task SendWebAppCustomRequestAsync( - this IClient client, long botUserId = default, string method = default, string parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public string Parameters { get; set; } + } + + /// + /// Sends a custom request from a Web App + /// + public static Task SendWebAppCustomRequestAsync( + this IClient client, long botUserId = default, string method = default, string parameters = default) + { + return client.ExecuteAsync(new SendWebAppCustomRequest { - return client.ExecuteAsync(new SendWebAppCustomRequest - { - BotUserId = botUserId, Method = method, Parameters = parameters - }); - } + BotUserId = botUserId, Method = method, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SendWebAppData.cs b/TdLib.Api/Functions/SendWebAppData.cs index 2b4bd57e..587e96fa 100644 --- a/TdLib.Api/Functions/SendWebAppData.cs +++ b/TdLib.Api/Functions/SendWebAppData.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends data received from a keyboardButtonTypeWebApp Web App to a bot /// - public static partial class TdApi + public class SendWebAppData : Function { /// - /// Sends data received from a keyboardButtonTypeWebApp Web App to a bot + /// Data type for serialization /// - public class SendWebAppData : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sendWebAppData"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sendWebAppData"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the keyboardButtonTypeWebApp button, which opened the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_text")] - public string ButtonText { get; set; } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// The data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } - } + /// + /// Text of the keyboardButtonTypeWebApp button, which opened the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_text")] + public string ButtonText { get; set; } /// - /// Sends data received from a keyboardButtonTypeWebApp Web App to a bot + /// The data /// - public static Task SendWebAppDataAsync( - this IClient client, long botUserId = default, string buttonText = default, string data = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } + } + + /// + /// Sends data received from a keyboardButtonTypeWebApp Web App to a bot + /// + public static Task SendWebAppDataAsync( + this IClient client, long botUserId = default, string buttonText = default, string data = default) + { + return client.ExecuteAsync(new SendWebAppData { - return client.ExecuteAsync(new SendWebAppData - { - BotUserId = botUserId, ButtonText = buttonText, Data = data - }); - } + BotUserId = botUserId, ButtonText = buttonText, Data = data + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAccentColor.cs b/TdLib.Api/Functions/SetAccentColor.cs index dfedb066..3194917f 100644 --- a/TdLib.Api/Functions/SetAccentColor.cs +++ b/TdLib.Api/Functions/SetAccentColor.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes accent color and background custom emoji for the current user; for Telegram Premium users only /// - public static partial class TdApi + public class SetAccentColor : Function { /// - /// Changes accent color and background custom emoji for the current user; for Telegram Premium users only + /// Data type for serialization /// - public class SetAccentColor : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAccentColor"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAccentColor"; - /// - /// Identifier of the accent color to use - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_custom_emoji_id")] - public long BackgroundCustomEmojiId { get; set; } - } + /// + /// Identifier of the accent color to use + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } /// - /// Changes accent color and background custom emoji for the current user; for Telegram Premium users only + /// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none /// - public static Task SetAccentColorAsync( - this IClient client, int accentColorId = default, long backgroundCustomEmojiId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_custom_emoji_id")] + public long BackgroundCustomEmojiId { get; set; } + } + + /// + /// Changes accent color and background custom emoji for the current user; for Telegram Premium users only + /// + public static Task SetAccentColorAsync( + this IClient client, int accentColorId = default, long backgroundCustomEmojiId = default) + { + return client.ExecuteAsync(new SetAccentColor { - return client.ExecuteAsync(new SetAccentColor - { - AccentColorId = accentColorId, BackgroundCustomEmojiId = backgroundCustomEmojiId - }); - } + AccentColorId = accentColorId, BackgroundCustomEmojiId = backgroundCustomEmojiId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAccountTtl.cs b/TdLib.Api/Functions/SetAccountTtl.cs index b5fc175f..e0106dbb 100644 --- a/TdLib.Api/Functions/SetAccountTtl.cs +++ b/TdLib.Api/Functions/SetAccountTtl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the period of inactivity after which the account of the current user will automatically be deleted /// - public static partial class TdApi + public class SetAccountTtl : Function { /// - /// Changes the period of inactivity after which the account of the current user will automatically be deleted + /// Data type for serialization /// - public class SetAccountTtl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAccountTtl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAccountTtl"; - /// - /// New account TTL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ttl")] - public AccountTtl Ttl { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the period of inactivity after which the account of the current user will automatically be deleted + /// New account TTL /// - public static Task SetAccountTtlAsync( - this IClient client, AccountTtl ttl = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("ttl")] + public AccountTtl Ttl { get; set; } + } + + /// + /// Changes the period of inactivity after which the account of the current user will automatically be deleted + /// + public static Task SetAccountTtlAsync( + this IClient client, AccountTtl ttl = default) + { + return client.ExecuteAsync(new SetAccountTtl { - return client.ExecuteAsync(new SetAccountTtl - { - Ttl = ttl - }); - } + Ttl = ttl + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAlarm.cs b/TdLib.Api/Functions/SetAlarm.cs index be837b24..ecc28c04 100644 --- a/TdLib.Api/Functions/SetAlarm.cs +++ b/TdLib.Api/Functions/SetAlarm.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Succeeds after a specified amount of time has passed. Can be called before initialization /// - public static partial class TdApi + public class SetAlarm : Function { /// - /// Succeeds after a specified amount of time has passed. Can be called before initialization + /// Data type for serialization /// - public class SetAlarm : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAlarm"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAlarm"; - /// - /// Number of seconds before the function returns - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("seconds")] - public double? Seconds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Succeeds after a specified amount of time has passed. Can be called before initialization + /// Number of seconds before the function returns /// - public static Task SetAlarmAsync( - this IClient client, double? seconds = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("seconds")] + public double? Seconds { get; set; } + } + + /// + /// Succeeds after a specified amount of time has passed. Can be called before initialization + /// + public static Task SetAlarmAsync( + this IClient client, double? seconds = default) + { + return client.ExecuteAsync(new SetAlarm { - return client.ExecuteAsync(new SetAlarm - { - Seconds = seconds - }); - } + Seconds = seconds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetApplicationVerificationToken.cs b/TdLib.Api/Functions/SetApplicationVerificationToken.cs index b9b78da9..f16d019a 100644 --- a/TdLib.Api/Functions/SetApplicationVerificationToken.cs +++ b/TdLib.Api/Functions/SetApplicationVerificationToken.cs @@ -3,57 +3,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that application or reCAPTCHA verification has been completed. Can be called before authorization /// - public static partial class TdApi + public class SetApplicationVerificationToken : Function { /// - /// Informs TDLib that application or reCAPTCHA verification has been completed. Can be called before authorization + /// Data type for serialization /// - public class SetApplicationVerificationToken : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setApplicationVerificationToken"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setApplicationVerificationToken"; - /// - /// Unique identifier for the verification process as received from updateApplicationVerificationRequired or updateApplicationRecaptchaVerificationRequired - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_id")] - public long VerificationId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Play Integrity API token for the Android application, or secret from push notification for the iOS application for application verification, or reCAPTCHA token for reCAPTCHA verifications; - /// pass an empty string to abort verification and receive the error "VERIFICATION_FAILED" for the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// Unique identifier for the verification process as received from updateApplicationVerificationRequired or updateApplicationRecaptchaVerificationRequired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_id")] + public long VerificationId { get; set; } /// - /// Informs TDLib that application or reCAPTCHA verification has been completed. Can be called before authorization + /// Play Integrity API token for the Android application, or secret from push notification for the iOS application for application verification, or reCAPTCHA token for reCAPTCHA verifications; + /// pass an empty string to abort verification and receive the error "VERIFICATION_FAILED" for the request /// - public static Task SetApplicationVerificationTokenAsync( - this IClient client, long verificationId = default, string token = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } + } + + /// + /// Informs TDLib that application or reCAPTCHA verification has been completed. Can be called before authorization + /// + public static Task SetApplicationVerificationTokenAsync( + this IClient client, long verificationId = default, string token = default) + { + return client.ExecuteAsync(new SetApplicationVerificationToken { - return client.ExecuteAsync(new SetApplicationVerificationToken - { - VerificationId = verificationId, Token = token - }); - } + VerificationId = verificationId, Token = token + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetArchiveChatListSettings.cs b/TdLib.Api/Functions/SetArchiveChatListSettings.cs index 7d5c143f..4c79d181 100644 --- a/TdLib.Api/Functions/SetArchiveChatListSettings.cs +++ b/TdLib.Api/Functions/SetArchiveChatListSettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes settings for automatic moving of chats to and from the Archive chat lists /// - public static partial class TdApi + public class SetArchiveChatListSettings : Function { /// - /// Changes settings for automatic moving of chats to and from the Archive chat lists + /// Data type for serialization /// - public class SetArchiveChatListSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setArchiveChatListSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setArchiveChatListSettings"; - /// - /// New settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public ArchiveChatListSettings Settings { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes settings for automatic moving of chats to and from the Archive chat lists + /// New settings /// - public static Task SetArchiveChatListSettingsAsync( - this IClient client, ArchiveChatListSettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public ArchiveChatListSettings Settings { get; set; } + } + + /// + /// Changes settings for automatic moving of chats to and from the Archive chat lists + /// + public static Task SetArchiveChatListSettingsAsync( + this IClient client, ArchiveChatListSettings settings = default) + { + return client.ExecuteAsync(new SetArchiveChatListSettings { - return client.ExecuteAsync(new SetArchiveChatListSettings - { - Settings = settings - }); - } + Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAuthenticationEmailAddress.cs b/TdLib.Api/Functions/SetAuthenticationEmailAddress.cs index dae58d1e..b8027456 100644 --- a/TdLib.Api/Functions/SetAuthenticationEmailAddress.cs +++ b/TdLib.Api/Functions/SetAuthenticationEmailAddress.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress /// - public static partial class TdApi + public class SetAuthenticationEmailAddress : Function { /// - /// Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress + /// Data type for serialization /// - public class SetAuthenticationEmailAddress : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAuthenticationEmailAddress"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAuthenticationEmailAddress"; - /// - /// The email address of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address")] - public string EmailAddress { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress + /// The email address of the user /// - public static Task SetAuthenticationEmailAddressAsync( - this IClient client, string emailAddress = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address")] + public string EmailAddress { get; set; } + } + + /// + /// Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress + /// + public static Task SetAuthenticationEmailAddressAsync( + this IClient client, string emailAddress = default) + { + return client.ExecuteAsync(new SetAuthenticationEmailAddress { - return client.ExecuteAsync(new SetAuthenticationEmailAddress - { - EmailAddress = emailAddress - }); - } + EmailAddress = emailAddress + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAuthenticationPhoneNumber.cs b/TdLib.Api/Functions/SetAuthenticationPhoneNumber.cs index e646e236..6dfe66bd 100644 --- a/TdLib.Api/Functions/SetAuthenticationPhoneNumber.cs +++ b/TdLib.Api/Functions/SetAuthenticationPhoneNumber.cs @@ -3,60 +3,62 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, + /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, + /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword /// - public static partial class TdApi + public class SetAuthenticationPhoneNumber : Function { /// - /// Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, - /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, - /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// Data type for serialization /// - public class SetAuthenticationPhoneNumber : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAuthenticationPhoneNumber"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAuthenticationPhoneNumber"; - /// - /// The phone number of the user, in international format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Settings for the authentication of the user's phone number; pass null to use default settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public PhoneNumberAuthenticationSettings Settings { get; set; } - } + /// + /// The phone number of the user, in international format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } /// - /// Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, - /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, - /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// Settings for the authentication of the user's phone number; pass null to use default settings /// - public static Task SetAuthenticationPhoneNumberAsync( - this IClient client, string phoneNumber = default, PhoneNumberAuthenticationSettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public PhoneNumberAuthenticationSettings Settings { get; set; } + } + + /// + /// Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, + /// or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, + /// authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword + /// + public static Task SetAuthenticationPhoneNumberAsync( + this IClient client, string phoneNumber = default, PhoneNumberAuthenticationSettings settings = default) + { + return client.ExecuteAsync(new SetAuthenticationPhoneNumber { - return client.ExecuteAsync(new SetAuthenticationPhoneNumber - { - PhoneNumber = phoneNumber, Settings = settings - }); - } + PhoneNumber = phoneNumber, Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAuthenticationPremiumPurchaseTransaction.cs b/TdLib.Api/Functions/SetAuthenticationPremiumPurchaseTransaction.cs index 5791cac8..18737132 100644 --- a/TdLib.Api/Functions/SetAuthenticationPremiumPurchaseTransaction.cs +++ b/TdLib.Api/Functions/SetAuthenticationPremiumPurchaseTransaction.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase /// - public static partial class TdApi + public class SetAuthenticationPremiumPurchaseTransaction : Function { /// - /// Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase + /// Data type for serialization /// - public class SetAuthenticationPremiumPurchaseTransaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAuthenticationPremiumPurchaseTransaction"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAuthenticationPremiumPurchaseTransaction"; - /// - /// Information about the transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transaction")] - public StoreTransaction Transaction { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if this is a restore of a Telegram Premium purchase; only for App Store - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_restore")] - public bool IsRestore { get; set; } + /// + /// Information about the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction")] + public StoreTransaction Transaction { get; set; } - /// - /// The number of days for which the Telegram Premium subscription will be granted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_day_count")] - public int PremiumDayCount { get; set; } + /// + /// Pass true if this is a restore of a Telegram Premium purchase; only for App Store + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_restore")] + public bool IsRestore { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// The number of days for which the Telegram Premium subscription will be granted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_day_count")] + public int PremiumDayCount { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } - } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } /// - /// Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase + /// Paid amount, in the smallest units of the currency /// - public static Task SetAuthenticationPremiumPurchaseTransactionAsync( - this IClient client, StoreTransaction transaction = default, bool isRestore = default, int premiumDayCount = default, string currency = default, long amount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } + } + + /// + /// Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase + /// + public static Task SetAuthenticationPremiumPurchaseTransactionAsync( + this IClient client, StoreTransaction transaction = default, bool isRestore = default, int premiumDayCount = default, string currency = default, long amount = default) + { + return client.ExecuteAsync(new SetAuthenticationPremiumPurchaseTransaction { - return client.ExecuteAsync(new SetAuthenticationPremiumPurchaseTransaction - { - Transaction = transaction, IsRestore = isRestore, PremiumDayCount = premiumDayCount, Currency = currency, Amount = amount - }); - } + Transaction = transaction, IsRestore = isRestore, PremiumDayCount = premiumDayCount, Currency = currency, Amount = amount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAutoDownloadSettings.cs b/TdLib.Api/Functions/SetAutoDownloadSettings.cs index 2ead15c1..6471b54b 100644 --- a/TdLib.Api/Functions/SetAutoDownloadSettings.cs +++ b/TdLib.Api/Functions/SetAutoDownloadSettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets auto-download settings /// - public static partial class TdApi + public class SetAutoDownloadSettings : Function { /// - /// Sets auto-download settings + /// Data type for serialization /// - public class SetAutoDownloadSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAutoDownloadSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAutoDownloadSettings"; - /// - /// New user auto-download settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public AutoDownloadSettings Settings { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the network for which the new settings are relevant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public NetworkType Type { get; set; } - } + /// + /// New user auto-download settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public AutoDownloadSettings Settings { get; set; } /// - /// Sets auto-download settings + /// Type of the network for which the new settings are relevant /// - public static Task SetAutoDownloadSettingsAsync( - this IClient client, AutoDownloadSettings settings = default, NetworkType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public NetworkType Type { get; set; } + } + + /// + /// Sets auto-download settings + /// + public static Task SetAutoDownloadSettingsAsync( + this IClient client, AutoDownloadSettings settings = default, NetworkType type = default) + { + return client.ExecuteAsync(new SetAutoDownloadSettings { - return client.ExecuteAsync(new SetAutoDownloadSettings - { - Settings = settings, Type = type - }); - } + Settings = settings, Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetAutosaveSettings.cs b/TdLib.Api/Functions/SetAutosaveSettings.cs index 64fa7700..662f3116 100644 --- a/TdLib.Api/Functions/SetAutosaveSettings.cs +++ b/TdLib.Api/Functions/SetAutosaveSettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings /// - public static partial class TdApi + public class SetAutosaveSettings : Function { /// - /// Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings + /// Data type for serialization /// - public class SetAutosaveSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setAutosaveSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setAutosaveSettings"; - /// - /// Autosave settings scope - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public AutosaveSettingsScope Scope { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New autosave settings for the scope; pass null to set autosave settings to default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public ScopeAutosaveSettings Settings { get; set; } - } + /// + /// Autosave settings scope + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public AutosaveSettingsScope Scope { get; set; } /// - /// Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings + /// New autosave settings for the scope; pass null to set autosave settings to default /// - public static Task SetAutosaveSettingsAsync( - this IClient client, AutosaveSettingsScope scope = default, ScopeAutosaveSettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public ScopeAutosaveSettings Settings { get; set; } + } + + /// + /// Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings + /// + public static Task SetAutosaveSettingsAsync( + this IClient client, AutosaveSettingsScope scope = default, ScopeAutosaveSettings settings = default) + { + return client.ExecuteAsync(new SetAutosaveSettings { - return client.ExecuteAsync(new SetAutosaveSettings - { - Scope = scope, Settings = settings - }); - } + Scope = scope, Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBio.cs b/TdLib.Api/Functions/SetBio.cs index 6ba4a7e1..0c5c9a49 100644 --- a/TdLib.Api/Functions/SetBio.cs +++ b/TdLib.Api/Functions/SetBio.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the bio of the current user /// - public static partial class TdApi + public class SetBio : Function { /// - /// Changes the bio of the current user + /// Data type for serialization /// - public class SetBio : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBio"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBio"; - /// - /// The new value of the user bio; 0-getOption("bio_length_max") characters without line feeds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bio")] - public string Bio { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the bio of the current user + /// The new value of the user bio; 0-getOption("bio_length_max") characters without line feeds /// - public static Task SetBioAsync( - this IClient client, string bio = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bio")] + public string Bio { get; set; } + } + + /// + /// Changes the bio of the current user + /// + public static Task SetBioAsync( + this IClient client, string bio = default) + { + return client.ExecuteAsync(new SetBio { - return client.ExecuteAsync(new SetBio - { - Bio = bio - }); - } + Bio = bio + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBirthdate.cs b/TdLib.Api/Functions/SetBirthdate.cs index f2aa39a1..f8f082e6 100644 --- a/TdLib.Api/Functions/SetBirthdate.cs +++ b/TdLib.Api/Functions/SetBirthdate.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the birthdate of the current user /// - public static partial class TdApi + public class SetBirthdate : Function { /// - /// Changes the birthdate of the current user + /// Data type for serialization /// - public class SetBirthdate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBirthdate"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBirthdate"; - /// - /// The new value of the current user's birthdate; pass null to remove the birthdate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("birthdate")] - public Birthdate Birthdate { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the birthdate of the current user + /// The new value of the current user's birthdate; pass null to remove the birthdate /// - public static Task SetBirthdateAsync( - this IClient client, Birthdate birthdate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("birthdate")] + public Birthdate Birthdate { get; set; } + } + + /// + /// Changes the birthdate of the current user + /// + public static Task SetBirthdateAsync( + this IClient client, Birthdate birthdate = default) + { + return client.ExecuteAsync(new SetBirthdate { - return client.ExecuteAsync(new SetBirthdate - { - Birthdate = birthdate - }); - } + Birthdate = birthdate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBotInfoDescription.cs b/TdLib.Api/Functions/SetBotInfoDescription.cs index b2644a6e..dc1ed02e 100644 --- a/TdLib.Api/Functions/SetBotInfoDescription.cs +++ b/TdLib.Api/Functions/SetBotInfoDescription.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class SetBotInfoDescription : Function { /// - /// Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class SetBotInfoDescription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBotInfoDescription"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBotInfoDescription"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code. If empty, the description will be shown to all users for whose languages there is no dedicated description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - } + /// + /// A two-letter ISO 639-1 language code. If empty, the description will be shown to all users for whose languages there is no dedicated description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true + /// /// - public static Task SetBotInfoDescriptionAsync( - this IClient client, long botUserId = default, string languageCode = default, string description = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } + } + + /// + /// Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task SetBotInfoDescriptionAsync( + this IClient client, long botUserId = default, string languageCode = default, string description = default) + { + return client.ExecuteAsync(new SetBotInfoDescription { - return client.ExecuteAsync(new SetBotInfoDescription - { - BotUserId = botUserId, LanguageCode = languageCode, Description = description - }); - } + BotUserId = botUserId, LanguageCode = languageCode, Description = description + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBotInfoShortDescription.cs b/TdLib.Api/Functions/SetBotInfoShortDescription.cs index 3ee605ca..13eb1b20 100644 --- a/TdLib.Api/Functions/SetBotInfoShortDescription.cs +++ b/TdLib.Api/Functions/SetBotInfoShortDescription.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class SetBotInfoShortDescription : Function { /// - /// Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class SetBotInfoShortDescription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBotInfoShortDescription"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBotInfoShortDescription"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code. If empty, the short description will be shown to all users for whose languages there is no dedicated description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// New bot's short description on the specified language - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("short_description")] - public string ShortDescription { get; set; } - } + /// + /// A two-letter ISO 639-1 language code. If empty, the short description will be shown to all users for whose languages there is no dedicated description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.can_be_edited == true + /// New bot's short description on the specified language /// - public static Task SetBotInfoShortDescriptionAsync( - this IClient client, long botUserId = default, string languageCode = default, string shortDescription = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("short_description")] + public string ShortDescription { get; set; } + } + + /// + /// Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task SetBotInfoShortDescriptionAsync( + this IClient client, long botUserId = default, string languageCode = default, string shortDescription = default) + { + return client.ExecuteAsync(new SetBotInfoShortDescription { - return client.ExecuteAsync(new SetBotInfoShortDescription - { - BotUserId = botUserId, LanguageCode = languageCode, ShortDescription = shortDescription - }); - } + BotUserId = botUserId, LanguageCode = languageCode, ShortDescription = shortDescription + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBotName.cs b/TdLib.Api/Functions/SetBotName.cs index 631f790a..50bea3ff 100644 --- a/TdLib.Api/Functions/SetBotName.cs +++ b/TdLib.Api/Functions/SetBotName.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class SetBotName : Function { /// - /// Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class SetBotName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBotName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBotName"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose languages there is no dedicated name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true + /// New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty /// - public static Task SetBotNameAsync( - this IClient client, long botUserId = default, string languageCode = default, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task SetBotNameAsync( + this IClient client, long botUserId = default, string languageCode = default, string name = default) + { + return client.ExecuteAsync(new SetBotName { - return client.ExecuteAsync(new SetBotName - { - BotUserId = botUserId, LanguageCode = languageCode, Name = name - }); - } + BotUserId = botUserId, LanguageCode = languageCode, Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBotProfilePhoto.cs b/TdLib.Api/Functions/SetBotProfilePhoto.cs index 52523a5b..60161d6b 100644 --- a/TdLib.Api/Functions/SetBotProfilePhoto.cs +++ b/TdLib.Api/Functions/SetBotProfilePhoto.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes a profile photo for a bot /// - public static partial class TdApi + public class SetBotProfilePhoto : Function { /// - /// Changes a profile photo for a bot + /// Data type for serialization /// - public class SetBotProfilePhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBotProfilePhoto"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBotProfilePhoto"; - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Profile photo to set; pass null to delete the chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputChatPhoto Photo { get; set; } - } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Changes a profile photo for a bot + /// Profile photo to set; pass null to delete the chat photo /// - public static Task SetBotProfilePhotoAsync( - this IClient client, long botUserId = default, InputChatPhoto photo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputChatPhoto Photo { get; set; } + } + + /// + /// Changes a profile photo for a bot + /// + public static Task SetBotProfilePhotoAsync( + this IClient client, long botUserId = default, InputChatPhoto photo = default) + { + return client.ExecuteAsync(new SetBotProfilePhoto { - return client.ExecuteAsync(new SetBotProfilePhoto - { - BotUserId = botUserId, Photo = photo - }); - } + BotUserId = botUserId, Photo = photo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBotUpdatesStatus.cs b/TdLib.Api/Functions/SetBotUpdatesStatus.cs index b4317be2..ff9739fd 100644 --- a/TdLib.Api/Functions/SetBotUpdatesStatus.cs +++ b/TdLib.Api/Functions/SetBotUpdatesStatus.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only /// - public static partial class TdApi + public class SetBotUpdatesStatus : Function { /// - /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only + /// Data type for serialization /// - public class SetBotUpdatesStatus : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBotUpdatesStatus"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBotUpdatesStatus"; - /// - /// The number of pending updates - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_update_count")] - public int PendingUpdateCount { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The last error message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error_message")] - public string ErrorMessage { get; set; } - } + /// + /// The number of pending updates + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_update_count")] + public int PendingUpdateCount { get; set; } /// - /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only + /// The last error message /// - public static Task SetBotUpdatesStatusAsync( - this IClient client, int pendingUpdateCount = default, string errorMessage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("error_message")] + public string ErrorMessage { get; set; } + } + + /// + /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only + /// + public static Task SetBotUpdatesStatusAsync( + this IClient client, int pendingUpdateCount = default, string errorMessage = default) + { + return client.ExecuteAsync(new SetBotUpdatesStatus { - return client.ExecuteAsync(new SetBotUpdatesStatus - { - PendingUpdateCount = pendingUpdateCount, ErrorMessage = errorMessage - }); - } + PendingUpdateCount = pendingUpdateCount, ErrorMessage = errorMessage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessAccountBio.cs b/TdLib.Api/Functions/SetBusinessAccountBio.cs index db632f66..fa5cc194 100644 --- a/TdLib.Api/Functions/SetBusinessAccountBio.cs +++ b/TdLib.Api/Functions/SetBusinessAccountBio.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the bio of a business account; for bots only /// - public static partial class TdApi + public class SetBusinessAccountBio : Function { /// - /// Changes the bio of a business account; for bots only + /// Data type for serialization /// - public class SetBusinessAccountBio : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessAccountBio"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessAccountBio"; - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of the bio; 0-getOption("bio_length_max") characters without line feeds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bio")] - public string Bio { get; set; } - } + /// + /// Unique identifier of business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Changes the bio of a business account; for bots only + /// The new value of the bio; 0-getOption("bio_length_max") characters without line feeds /// - public static Task SetBusinessAccountBioAsync( - this IClient client, string businessConnectionId = default, string bio = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bio")] + public string Bio { get; set; } + } + + /// + /// Changes the bio of a business account; for bots only + /// + public static Task SetBusinessAccountBioAsync( + this IClient client, string businessConnectionId = default, string bio = default) + { + return client.ExecuteAsync(new SetBusinessAccountBio { - return client.ExecuteAsync(new SetBusinessAccountBio - { - BusinessConnectionId = businessConnectionId, Bio = bio - }); - } + BusinessConnectionId = businessConnectionId, Bio = bio + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessAccountGiftSettings.cs b/TdLib.Api/Functions/SetBusinessAccountGiftSettings.cs index d8043edb..1ebc588c 100644 --- a/TdLib.Api/Functions/SetBusinessAccountGiftSettings.cs +++ b/TdLib.Api/Functions/SetBusinessAccountGiftSettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes settings for gift receiving of a business account; for bots only /// - public static partial class TdApi + public class SetBusinessAccountGiftSettings : Function { /// - /// Changes settings for gift receiving of a business account; for bots only + /// Data type for serialization /// - public class SetBusinessAccountGiftSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessAccountGiftSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessAccountGiftSettings"; - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public GiftSettings Settings { get; set; } - } + /// + /// Unique identifier of business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Changes settings for gift receiving of a business account; for bots only + /// The new settings /// - public static Task SetBusinessAccountGiftSettingsAsync( - this IClient client, string businessConnectionId = default, GiftSettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public GiftSettings Settings { get; set; } + } + + /// + /// Changes settings for gift receiving of a business account; for bots only + /// + public static Task SetBusinessAccountGiftSettingsAsync( + this IClient client, string businessConnectionId = default, GiftSettings settings = default) + { + return client.ExecuteAsync(new SetBusinessAccountGiftSettings { - return client.ExecuteAsync(new SetBusinessAccountGiftSettings - { - BusinessConnectionId = businessConnectionId, Settings = settings - }); - } + BusinessConnectionId = businessConnectionId, Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessAccountName.cs b/TdLib.Api/Functions/SetBusinessAccountName.cs index 9e8793a8..fa3eb3a3 100644 --- a/TdLib.Api/Functions/SetBusinessAccountName.cs +++ b/TdLib.Api/Functions/SetBusinessAccountName.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the first and last name of a business account; for bots only /// - public static partial class TdApi + public class SetBusinessAccountName : Function { /// - /// Changes the first and last name of a business account; for bots only + /// Data type for serialization /// - public class SetBusinessAccountName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessAccountName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessAccountName"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of the first name for the business account; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } + /// + /// Unique identifier of business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// The new value of the optional last name for the business account; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } - } + /// + /// The new value of the first name for the business account; 1-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } /// - /// Changes the first and last name of a business account; for bots only + /// The new value of the optional last name for the business account; 0-64 characters /// - public static Task SetBusinessAccountNameAsync( - this IClient client, string businessConnectionId = default, string firstName = default, string lastName = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } + } + + /// + /// Changes the first and last name of a business account; for bots only + /// + public static Task SetBusinessAccountNameAsync( + this IClient client, string businessConnectionId = default, string firstName = default, string lastName = default) + { + return client.ExecuteAsync(new SetBusinessAccountName { - return client.ExecuteAsync(new SetBusinessAccountName - { - BusinessConnectionId = businessConnectionId, FirstName = firstName, LastName = lastName - }); - } + BusinessConnectionId = businessConnectionId, FirstName = firstName, LastName = lastName + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessAccountProfilePhoto.cs b/TdLib.Api/Functions/SetBusinessAccountProfilePhoto.cs index 1f6681f3..fde6cc4a 100644 --- a/TdLib.Api/Functions/SetBusinessAccountProfilePhoto.cs +++ b/TdLib.Api/Functions/SetBusinessAccountProfilePhoto.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes a profile photo of a business account; for bots only /// - public static partial class TdApi + public class SetBusinessAccountProfilePhoto : Function { /// - /// Changes a profile photo of a business account; for bots only + /// Data type for serialization /// - public class SetBusinessAccountProfilePhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessAccountProfilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessAccountProfilePhoto"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Profile photo to set; pass null to remove the photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputChatPhoto Photo { get; set; } + /// + /// Unique identifier of business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_public")] - public bool IsPublic { get; set; } - } + /// + /// Profile photo to set; pass null to remove the photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputChatPhoto Photo { get; set; } /// - /// Changes a profile photo of a business account; for bots only + /// Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings /// - public static Task SetBusinessAccountProfilePhotoAsync( - this IClient client, string businessConnectionId = default, InputChatPhoto photo = default, bool isPublic = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_public")] + public bool IsPublic { get; set; } + } + + /// + /// Changes a profile photo of a business account; for bots only + /// + public static Task SetBusinessAccountProfilePhotoAsync( + this IClient client, string businessConnectionId = default, InputChatPhoto photo = default, bool isPublic = default) + { + return client.ExecuteAsync(new SetBusinessAccountProfilePhoto { - return client.ExecuteAsync(new SetBusinessAccountProfilePhoto - { - BusinessConnectionId = businessConnectionId, Photo = photo, IsPublic = isPublic - }); - } + BusinessConnectionId = businessConnectionId, Photo = photo, IsPublic = isPublic + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessAccountUsername.cs b/TdLib.Api/Functions/SetBusinessAccountUsername.cs index 7a92eeb9..a788ca57 100644 --- a/TdLib.Api/Functions/SetBusinessAccountUsername.cs +++ b/TdLib.Api/Functions/SetBusinessAccountUsername.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the editable username of a business account; for bots only /// - public static partial class TdApi + public class SetBusinessAccountUsername : Function { /// - /// Changes the editable username of a business account; for bots only + /// Data type for serialization /// - public class SetBusinessAccountUsername : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessAccountUsername"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessAccountUsername"; - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of the username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// Unique identifier of business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Changes the editable username of a business account; for bots only + /// The new value of the username /// - public static Task SetBusinessAccountUsernameAsync( - this IClient client, string businessConnectionId = default, string username = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } + } + + /// + /// Changes the editable username of a business account; for bots only + /// + public static Task SetBusinessAccountUsernameAsync( + this IClient client, string businessConnectionId = default, string username = default) + { + return client.ExecuteAsync(new SetBusinessAccountUsername { - return client.ExecuteAsync(new SetBusinessAccountUsername - { - BusinessConnectionId = businessConnectionId, Username = username - }); - } + BusinessConnectionId = businessConnectionId, Username = username + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessAwayMessageSettings.cs b/TdLib.Api/Functions/SetBusinessAwayMessageSettings.cs index 7e0fd139..31b9f53c 100644 --- a/TdLib.Api/Functions/SetBusinessAwayMessageSettings.cs +++ b/TdLib.Api/Functions/SetBusinessAwayMessageSettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the business away message settings of the current user. Requires Telegram Business subscription /// - public static partial class TdApi + public class SetBusinessAwayMessageSettings : Function { /// - /// Changes the business away message settings of the current user. Requires Telegram Business subscription + /// Data type for serialization /// - public class SetBusinessAwayMessageSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessAwayMessageSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessAwayMessageSettings"; - /// - /// The new settings for the away message of the business; pass null to disable the away message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("away_message_settings")] - public BusinessAwayMessageSettings AwayMessageSettings { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the business away message settings of the current user. Requires Telegram Business subscription + /// The new settings for the away message of the business; pass null to disable the away message /// - public static Task SetBusinessAwayMessageSettingsAsync( - this IClient client, BusinessAwayMessageSettings awayMessageSettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("away_message_settings")] + public BusinessAwayMessageSettings AwayMessageSettings { get; set; } + } + + /// + /// Changes the business away message settings of the current user. Requires Telegram Business subscription + /// + public static Task SetBusinessAwayMessageSettingsAsync( + this IClient client, BusinessAwayMessageSettings awayMessageSettings = default) + { + return client.ExecuteAsync(new SetBusinessAwayMessageSettings { - return client.ExecuteAsync(new SetBusinessAwayMessageSettings - { - AwayMessageSettings = awayMessageSettings - }); - } + AwayMessageSettings = awayMessageSettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessConnectedBot.cs b/TdLib.Api/Functions/SetBusinessConnectedBot.cs index 47ccaf37..e43e2e9d 100644 --- a/TdLib.Api/Functions/SetBusinessConnectedBot.cs +++ b/TdLib.Api/Functions/SetBusinessConnectedBot.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds or changes business bot that is connected to the current user account /// - public static partial class TdApi + public class SetBusinessConnectedBot : Function { /// - /// Adds or changes business bot that is connected to the current user account + /// Data type for serialization /// - public class SetBusinessConnectedBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessConnectedBot"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessConnectedBot"; - /// - /// Connection settings for the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot")] - public BusinessConnectedBot Bot { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Adds or changes business bot that is connected to the current user account + /// Connection settings for the bot /// - public static Task SetBusinessConnectedBotAsync( - this IClient client, BusinessConnectedBot bot = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("bot")] + public BusinessConnectedBot Bot { get; set; } + } + + /// + /// Adds or changes business bot that is connected to the current user account + /// + public static Task SetBusinessConnectedBotAsync( + this IClient client, BusinessConnectedBot bot = default) + { + return client.ExecuteAsync(new SetBusinessConnectedBot { - return client.ExecuteAsync(new SetBusinessConnectedBot - { - Bot = bot - }); - } + Bot = bot + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessGreetingMessageSettings.cs b/TdLib.Api/Functions/SetBusinessGreetingMessageSettings.cs index ec258618..f99249bc 100644 --- a/TdLib.Api/Functions/SetBusinessGreetingMessageSettings.cs +++ b/TdLib.Api/Functions/SetBusinessGreetingMessageSettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the business greeting message settings of the current user. Requires Telegram Business subscription /// - public static partial class TdApi + public class SetBusinessGreetingMessageSettings : Function { /// - /// Changes the business greeting message settings of the current user. Requires Telegram Business subscription + /// Data type for serialization /// - public class SetBusinessGreetingMessageSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessGreetingMessageSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessGreetingMessageSettings"; - /// - /// The new settings for the greeting message of the business; pass null to disable the greeting message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("greeting_message_settings")] - public BusinessGreetingMessageSettings GreetingMessageSettings { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the business greeting message settings of the current user. Requires Telegram Business subscription + /// The new settings for the greeting message of the business; pass null to disable the greeting message /// - public static Task SetBusinessGreetingMessageSettingsAsync( - this IClient client, BusinessGreetingMessageSettings greetingMessageSettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("greeting_message_settings")] + public BusinessGreetingMessageSettings GreetingMessageSettings { get; set; } + } + + /// + /// Changes the business greeting message settings of the current user. Requires Telegram Business subscription + /// + public static Task SetBusinessGreetingMessageSettingsAsync( + this IClient client, BusinessGreetingMessageSettings greetingMessageSettings = default) + { + return client.ExecuteAsync(new SetBusinessGreetingMessageSettings { - return client.ExecuteAsync(new SetBusinessGreetingMessageSettings - { - GreetingMessageSettings = greetingMessageSettings - }); - } + GreetingMessageSettings = greetingMessageSettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessLocation.cs b/TdLib.Api/Functions/SetBusinessLocation.cs index 150be512..e683adc7 100644 --- a/TdLib.Api/Functions/SetBusinessLocation.cs +++ b/TdLib.Api/Functions/SetBusinessLocation.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the business location of the current user. Requires Telegram Business subscription /// - public static partial class TdApi + public class SetBusinessLocation : Function { /// - /// Changes the business location of the current user. Requires Telegram Business subscription + /// Data type for serialization /// - public class SetBusinessLocation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessLocation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessLocation"; - /// - /// The new location of the business; pass null to remove the location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public BusinessLocation Location { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the business location of the current user. Requires Telegram Business subscription + /// The new location of the business; pass null to remove the location /// - public static Task SetBusinessLocationAsync( - this IClient client, BusinessLocation location = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public BusinessLocation Location { get; set; } + } + + /// + /// Changes the business location of the current user. Requires Telegram Business subscription + /// + public static Task SetBusinessLocationAsync( + this IClient client, BusinessLocation location = default) + { + return client.ExecuteAsync(new SetBusinessLocation { - return client.ExecuteAsync(new SetBusinessLocation - { - Location = location - }); - } + Location = location + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessMessageIsPinned.cs b/TdLib.Api/Functions/SetBusinessMessageIsPinned.cs index 60ac7fab..01a87d45 100644 --- a/TdLib.Api/Functions/SetBusinessMessageIsPinned.cs +++ b/TdLib.Api/Functions/SetBusinessMessageIsPinned.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Pins or unpins a message sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class SetBusinessMessageIsPinned : Function { /// - /// Pins or unpins a message sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class SetBusinessMessageIsPinned : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessMessageIsPinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessMessageIsPinned"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection on behalf of which the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to pin the message, pass false to unpin it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Pins or unpins a message sent on behalf of a business account; for bots only + /// Pass true to pin the message, pass false to unpin it /// - public static Task SetBusinessMessageIsPinnedAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, bool isPinned = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } + } + + /// + /// Pins or unpins a message sent on behalf of a business account; for bots only + /// + public static Task SetBusinessMessageIsPinnedAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, bool isPinned = default) + { + return client.ExecuteAsync(new SetBusinessMessageIsPinned { - return client.ExecuteAsync(new SetBusinessMessageIsPinned - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, IsPinned = isPinned - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, IsPinned = isPinned + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessOpeningHours.cs b/TdLib.Api/Functions/SetBusinessOpeningHours.cs index 79ee2e8b..b7a51d55 100644 --- a/TdLib.Api/Functions/SetBusinessOpeningHours.cs +++ b/TdLib.Api/Functions/SetBusinessOpeningHours.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the business opening hours of the current user. Requires Telegram Business subscription /// - public static partial class TdApi + public class SetBusinessOpeningHours : Function { /// - /// Changes the business opening hours of the current user. Requires Telegram Business subscription + /// Data type for serialization /// - public class SetBusinessOpeningHours : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessOpeningHours"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessOpeningHours"; - /// - /// The new opening hours of the business; pass null to remove the opening hours; up to 28 time intervals can be specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("opening_hours")] - public BusinessOpeningHours OpeningHours { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the business opening hours of the current user. Requires Telegram Business subscription + /// The new opening hours of the business; pass null to remove the opening hours; up to 28 time intervals can be specified /// - public static Task SetBusinessOpeningHoursAsync( - this IClient client, BusinessOpeningHours openingHours = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("opening_hours")] + public BusinessOpeningHours OpeningHours { get; set; } + } + + /// + /// Changes the business opening hours of the current user. Requires Telegram Business subscription + /// + public static Task SetBusinessOpeningHoursAsync( + this IClient client, BusinessOpeningHours openingHours = default) + { + return client.ExecuteAsync(new SetBusinessOpeningHours { - return client.ExecuteAsync(new SetBusinessOpeningHours - { - OpeningHours = openingHours - }); - } + OpeningHours = openingHours + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetBusinessStartPage.cs b/TdLib.Api/Functions/SetBusinessStartPage.cs index 57f4bee4..9ad5b80f 100644 --- a/TdLib.Api/Functions/SetBusinessStartPage.cs +++ b/TdLib.Api/Functions/SetBusinessStartPage.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the business start page of the current user. Requires Telegram Business subscription /// - public static partial class TdApi + public class SetBusinessStartPage : Function { /// - /// Changes the business start page of the current user. Requires Telegram Business subscription + /// Data type for serialization /// - public class SetBusinessStartPage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setBusinessStartPage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setBusinessStartPage"; - /// - /// The new start page of the business; pass null to remove custom start page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_page")] - public InputBusinessStartPage StartPage { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the business start page of the current user. Requires Telegram Business subscription + /// The new start page of the business; pass null to remove custom start page /// - public static Task SetBusinessStartPageAsync( - this IClient client, InputBusinessStartPage startPage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("start_page")] + public InputBusinessStartPage StartPage { get; set; } + } + + /// + /// Changes the business start page of the current user. Requires Telegram Business subscription + /// + public static Task SetBusinessStartPageAsync( + this IClient client, InputBusinessStartPage startPage = default) + { + return client.ExecuteAsync(new SetBusinessStartPage { - return client.ExecuteAsync(new SetBusinessStartPage - { - StartPage = startPage - }); - } + StartPage = startPage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatAccentColor.cs b/TdLib.Api/Functions/SetChatAccentColor.cs index 6c19d3c9..a429a1cb 100644 --- a/TdLib.Api/Functions/SetChatAccentColor.cs +++ b/TdLib.Api/Functions/SetChatAccentColor.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right /// - public static partial class TdApi + public class SetChatAccentColor : Function { /// - /// Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right + /// Data type for serialization /// - public class SetChatAccentColor : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatAccentColor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatAccentColor"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the accent color to use. The chat must have at least accentColor.min_channel_chat_boost_level boost level to pass the corresponding color - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. Use chatBoostLevelFeatures.can_set_background_custom_emoji to check whether a custom emoji can be set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_custom_emoji_id")] - public long BackgroundCustomEmojiId { get; set; } - } + /// + /// Identifier of the accent color to use. The chat must have at least accentColor.min_channel_chat_boost_level boost level to pass the corresponding color + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } /// - /// Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right + /// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. Use chatBoostLevelFeatures.can_set_background_custom_emoji to check whether a custom emoji can be set /// - public static Task SetChatAccentColorAsync( - this IClient client, long chatId = default, int accentColorId = default, long backgroundCustomEmojiId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_custom_emoji_id")] + public long BackgroundCustomEmojiId { get; set; } + } + + /// + /// Changes accent color and background custom emoji of a channel chat. Requires can_change_info administrator right + /// + public static Task SetChatAccentColorAsync( + this IClient client, long chatId = default, int accentColorId = default, long backgroundCustomEmojiId = default) + { + return client.ExecuteAsync(new SetChatAccentColor { - return client.ExecuteAsync(new SetChatAccentColor - { - ChatId = chatId, AccentColorId = accentColorId, BackgroundCustomEmojiId = backgroundCustomEmojiId - }); - } + ChatId = chatId, AccentColorId = accentColorId, BackgroundCustomEmojiId = backgroundCustomEmojiId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatActiveStoriesList.cs b/TdLib.Api/Functions/SetChatActiveStoriesList.cs index 843aecdd..aebe6f4c 100644 --- a/TdLib.Api/Functions/SetChatActiveStoriesList.cs +++ b/TdLib.Api/Functions/SetChatActiveStoriesList.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes story list in which stories from the chat are shown /// - public static partial class TdApi + public class SetChatActiveStoriesList : Function { /// - /// Changes story list in which stories from the chat are shown + /// Data type for serialization /// - public class SetChatActiveStoriesList : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatActiveStoriesList"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatActiveStoriesList"; - /// - /// Identifier of the chat that posted stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New list for active stories posted by the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_list")] - public StoryList StoryList { get; set; } - } + /// + /// Identifier of the chat that posted stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes story list in which stories from the chat are shown + /// New list for active stories posted by the chat /// - public static Task SetChatActiveStoriesListAsync( - this IClient client, long chatId = default, StoryList storyList = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("story_list")] + public StoryList StoryList { get; set; } + } + + /// + /// Changes story list in which stories from the chat are shown + /// + public static Task SetChatActiveStoriesListAsync( + this IClient client, long chatId = default, StoryList storyList = default) + { + return client.ExecuteAsync(new SetChatActiveStoriesList { - return client.ExecuteAsync(new SetChatActiveStoriesList - { - ChatId = chatId, StoryList = storyList - }); - } + ChatId = chatId, StoryList = storyList + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatAffiliateProgram.cs b/TdLib.Api/Functions/SetChatAffiliateProgram.cs index a0ac9d24..89a66f6c 100644 --- a/TdLib.Api/Functions/SetChatAffiliateProgram.cs +++ b/TdLib.Api/Functions/SetChatAffiliateProgram.cs @@ -3,57 +3,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes affiliate program for a bot /// - public static partial class TdApi + public class SetChatAffiliateProgram : Function { /// - /// Changes affiliate program for a bot + /// Data type for serialization /// - public class SetChatAffiliateProgram : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatAffiliateProgram"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatAffiliateProgram"; - /// - /// Identifier of the chat with an owned bot for which affiliate program is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. - /// If the active program is scheduled to be closed, then it can't be changed anymore - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public AffiliateProgramParameters Parameters { get; set; } - } + /// + /// Identifier of the chat with an owned bot for which affiliate program is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes affiliate program for a bot + /// Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. + /// If the active program is scheduled to be closed, then it can't be changed anymore /// - public static Task SetChatAffiliateProgramAsync( - this IClient client, long chatId = default, AffiliateProgramParameters parameters = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public AffiliateProgramParameters Parameters { get; set; } + } + + /// + /// Changes affiliate program for a bot + /// + public static Task SetChatAffiliateProgramAsync( + this IClient client, long chatId = default, AffiliateProgramParameters parameters = default) + { + return client.ExecuteAsync(new SetChatAffiliateProgram { - return client.ExecuteAsync(new SetChatAffiliateProgram - { - ChatId = chatId, Parameters = parameters - }); - } + ChatId = chatId, Parameters = parameters + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatAvailableReactions.cs b/TdLib.Api/Functions/SetChatAvailableReactions.cs index 26930aa3..ab56e8e4 100644 --- a/TdLib.Api/Functions/SetChatAvailableReactions.cs +++ b/TdLib.Api/Functions/SetChatAvailableReactions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right /// - public static partial class TdApi + public class SetChatAvailableReactions : Function { /// - /// Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right + /// Data type for serialization /// - public class SetChatAvailableReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatAvailableReactions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatAvailableReactions"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Reactions available in the chat. All explicitly specified emoji reactions must be active. In channel chats up to the chat's boost level custom emoji reactions can be explicitly specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("available_reactions")] - public ChatAvailableReactions AvailableReactions { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right + /// Reactions available in the chat. All explicitly specified emoji reactions must be active. In channel chats up to the chat's boost level custom emoji reactions can be explicitly specified /// - public static Task SetChatAvailableReactionsAsync( - this IClient client, long chatId = default, ChatAvailableReactions availableReactions = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("available_reactions")] + public ChatAvailableReactions AvailableReactions { get; set; } + } + + /// + /// Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right + /// + public static Task SetChatAvailableReactionsAsync( + this IClient client, long chatId = default, ChatAvailableReactions availableReactions = default) + { + return client.ExecuteAsync(new SetChatAvailableReactions { - return client.ExecuteAsync(new SetChatAvailableReactions - { - ChatId = chatId, AvailableReactions = availableReactions - }); - } + ChatId = chatId, AvailableReactions = availableReactions + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatBackground.cs b/TdLib.Api/Functions/SetChatBackground.cs index b7aa5acf..a015da81 100644 --- a/TdLib.Api/Functions/SetChatBackground.cs +++ b/TdLib.Api/Functions/SetChatBackground.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right /// - public static partial class TdApi + public class SetChatBackground : Function { /// - /// Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right + /// Data type for serialization /// - public class SetChatBackground : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatBackground"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatBackground"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The input background to use; pass null to create a new filled or chat theme background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public InputBackground Background { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn't supported for private and secret chats. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public BackgroundType Type { get; set; } + /// + /// The input background to use; pass null to create a new filled or chat theme background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public InputBackground Background { get; set; } - /// - /// Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dark_theme_dimming")] - public int DarkThemeDimming { get; set; } + /// + /// Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn't supported for private and secret chats. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public BackgroundType Type { get; set; } - /// - /// Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn't of the type inputBackgroundPrevious - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_for_self")] - public bool OnlyForSelf { get; set; } - } + /// + /// Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dark_theme_dimming")] + public int DarkThemeDimming { get; set; } /// - /// Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right + /// Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn't of the type inputBackgroundPrevious /// - public static Task SetChatBackgroundAsync( - this IClient client, long chatId = default, InputBackground background = default, BackgroundType type = default, int darkThemeDimming = default, bool onlyForSelf = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_for_self")] + public bool OnlyForSelf { get; set; } + } + + /// + /// Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right + /// + public static Task SetChatBackgroundAsync( + this IClient client, long chatId = default, InputBackground background = default, BackgroundType type = default, int darkThemeDimming = default, bool onlyForSelf = default) + { + return client.ExecuteAsync(new SetChatBackground { - return client.ExecuteAsync(new SetChatBackground - { - ChatId = chatId, Background = background, Type = type, DarkThemeDimming = darkThemeDimming, OnlyForSelf = onlyForSelf - }); - } + ChatId = chatId, Background = background, Type = type, DarkThemeDimming = darkThemeDimming, OnlyForSelf = onlyForSelf + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatClientData.cs b/TdLib.Api/Functions/SetChatClientData.cs index b49b8761..cabfba8f 100644 --- a/TdLib.Api/Functions/SetChatClientData.cs +++ b/TdLib.Api/Functions/SetChatClientData.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes application-specific data associated with a chat /// - public static partial class TdApi + public class SetChatClientData : Function { /// - /// Changes application-specific data associated with a chat + /// Data type for serialization /// - public class SetChatClientData : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatClientData"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatClientData"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of client_data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("client_data")] - public string ClientData { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes application-specific data associated with a chat + /// New value of client_data /// - public static Task SetChatClientDataAsync( - this IClient client, long chatId = default, string clientData = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("client_data")] + public string ClientData { get; set; } + } + + /// + /// Changes application-specific data associated with a chat + /// + public static Task SetChatClientDataAsync( + this IClient client, long chatId = default, string clientData = default) + { + return client.ExecuteAsync(new SetChatClientData { - return client.ExecuteAsync(new SetChatClientData - { - ChatId = chatId, ClientData = clientData - }); - } + ChatId = chatId, ClientData = clientData + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatDescription.cs b/TdLib.Api/Functions/SetChatDescription.cs index bb1c1197..d0cdb70e 100644 --- a/TdLib.Api/Functions/SetChatDescription.cs +++ b/TdLib.Api/Functions/SetChatDescription.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right /// - public static partial class TdApi + public class SetChatDescription : Function { /// - /// Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right + /// Data type for serialization /// - public class SetChatDescription : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatDescription"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatDescription"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right + /// /// - public static Task SetChatDescriptionAsync( - this IClient client, long chatId = default, string description = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } + } + + /// + /// Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info member right + /// + public static Task SetChatDescriptionAsync( + this IClient client, long chatId = default, string description = default) + { + return client.ExecuteAsync(new SetChatDescription { - return client.ExecuteAsync(new SetChatDescription - { - ChatId = chatId, Description = description - }); - } + ChatId = chatId, Description = description + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatDirectMessagesGroup.cs b/TdLib.Api/Functions/SetChatDirectMessagesGroup.cs index 795e45dd..eabcc80b 100644 --- a/TdLib.Api/Functions/SetChatDirectMessagesGroup.cs +++ b/TdLib.Api/Functions/SetChatDirectMessagesGroup.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes direct messages group settings for a channel chat; requires owner privileges in the chat /// - public static partial class TdApi + public class SetChatDirectMessagesGroup : Function { /// - /// Changes direct messages group settings for a channel chat; requires owner privileges in the chat + /// Data type for serialization /// - public class SetChatDirectMessagesGroup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatDirectMessagesGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatDirectMessagesGroup"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the direct messages group is enabled for the channel chat; pass false otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_enabled")] - public bool IsEnabled { get; set; } + /// + /// Identifier of the channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new number of Telegram Stars that must be paid for each message that is sent to the direct messages chat unless the sender is an administrator of the channel chat; 0-getOption("paid_message_star_count_max"). - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// Pass true if the direct messages group is enabled for the channel chat; pass false otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_enabled")] + public bool IsEnabled { get; set; } /// - /// Changes direct messages group settings for a channel chat; requires owner privileges in the chat + /// The new number of Telegram Stars that must be paid for each message that is sent to the direct messages chat unless the sender is an administrator of the channel chat; 0-getOption("paid_message_star_count_max"). /// - public static Task SetChatDirectMessagesGroupAsync( - this IClient client, long chatId = default, bool isEnabled = default, long paidMessageStarCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + } + + /// + /// Changes direct messages group settings for a channel chat; requires owner privileges in the chat + /// + public static Task SetChatDirectMessagesGroupAsync( + this IClient client, long chatId = default, bool isEnabled = default, long paidMessageStarCount = default) + { + return client.ExecuteAsync(new SetChatDirectMessagesGroup { - return client.ExecuteAsync(new SetChatDirectMessagesGroup - { - ChatId = chatId, IsEnabled = isEnabled, PaidMessageStarCount = paidMessageStarCount - }); - } + ChatId = chatId, IsEnabled = isEnabled, PaidMessageStarCount = paidMessageStarCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatDiscussionGroup.cs b/TdLib.Api/Functions/SetChatDiscussionGroup.cs index 6d4ddfe0..5984b336 100644 --- a/TdLib.Api/Functions/SetChatDiscussionGroup.cs +++ b/TdLib.Api/Functions/SetChatDiscussionGroup.cs @@ -3,57 +3,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified /// - public static partial class TdApi + public class SetChatDiscussionGroup : Function { /// - /// Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified + /// Data type for serialization /// - public class SetChatDiscussionGroup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatDiscussionGroup"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatDiscussionGroup"; - /// - /// Identifier of the channel chat. Pass 0 to remove a link from the supergroup passed in the second argument to a linked channel chat (requires can_pin_messages member right in the supergroup) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method getSuitableDiscussionChats to find all suitable groups. - /// Basic group chats must be first upgraded to supergroup chats. If new chat members don't have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable must be used first to change that - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("discussion_chat_id")] - public long DiscussionChatId { get; set; } - } + /// + /// Identifier of the channel chat. Pass 0 to remove a link from the supergroup passed in the second argument to a linked channel chat (requires can_pin_messages member right in the supergroup) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified + /// Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method getSuitableDiscussionChats to find all suitable groups. + /// Basic group chats must be first upgraded to supergroup chats. If new chat members don't have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable must be used first to change that /// - public static Task SetChatDiscussionGroupAsync( - this IClient client, long chatId = default, long discussionChatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("discussion_chat_id")] + public long DiscussionChatId { get; set; } + } + + /// + /// Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified + /// + public static Task SetChatDiscussionGroupAsync( + this IClient client, long chatId = default, long discussionChatId = default) + { + return client.ExecuteAsync(new SetChatDiscussionGroup { - return client.ExecuteAsync(new SetChatDiscussionGroup - { - ChatId = chatId, DiscussionChatId = discussionChatId - }); - } + ChatId = chatId, DiscussionChatId = discussionChatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatDraftMessage.cs b/TdLib.Api/Functions/SetChatDraftMessage.cs index e4fe2c21..8a7640f5 100644 --- a/TdLib.Api/Functions/SetChatDraftMessage.cs +++ b/TdLib.Api/Functions/SetChatDraftMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the draft message in a chat or a topic /// - public static partial class TdApi + public class SetChatDraftMessage : Function { /// - /// Changes the draft message in a chat or a topic + /// Data type for serialization /// - public class SetChatDraftMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatDraftMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatDraftMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic in which the draft will be changed; pass null to change the draft for the chat itself - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New draft message; pass null to remove the draft - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } - } + /// + /// Topic in which the draft will be changed; pass null to change the draft for the chat itself + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } /// - /// Changes the draft message in a chat or a topic + /// New draft message; pass null to remove the draft /// - public static Task SetChatDraftMessageAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, DraftMessage draftMessage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } + } + + /// + /// Changes the draft message in a chat or a topic + /// + public static Task SetChatDraftMessageAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, DraftMessage draftMessage = default) + { + return client.ExecuteAsync(new SetChatDraftMessage { - return client.ExecuteAsync(new SetChatDraftMessage - { - ChatId = chatId, TopicId = topicId, DraftMessage = draftMessage - }); - } + ChatId = chatId, TopicId = topicId, DraftMessage = draftMessage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatEmojiStatus.cs b/TdLib.Api/Functions/SetChatEmojiStatus.cs index f5f28ce4..8858d51f 100644 --- a/TdLib.Api/Functions/SetChatEmojiStatus.cs +++ b/TdLib.Api/Functions/SetChatEmojiStatus.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the emoji status of a chat. Use chatBoostLevelFeatures.can_set_emoji_status to check whether an emoji status can be set. Requires can_change_info administrator right /// - public static partial class TdApi + public class SetChatEmojiStatus : Function { /// - /// Changes the emoji status of a chat. Use chatBoostLevelFeatures.can_set_emoji_status to check whether an emoji status can be set. Requires can_change_info administrator right + /// Data type for serialization /// - public class SetChatEmojiStatus : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatEmojiStatus"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatEmojiStatus"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New emoji status; pass null to remove emoji status - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji_status")] - public EmojiStatus EmojiStatus { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the emoji status of a chat. Use chatBoostLevelFeatures.can_set_emoji_status to check whether an emoji status can be set. Requires can_change_info administrator right + /// New emoji status; pass null to remove emoji status /// - public static Task SetChatEmojiStatusAsync( - this IClient client, long chatId = default, EmojiStatus emojiStatus = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji_status")] + public EmojiStatus EmojiStatus { get; set; } + } + + /// + /// Changes the emoji status of a chat. Use chatBoostLevelFeatures.can_set_emoji_status to check whether an emoji status can be set. Requires can_change_info administrator right + /// + public static Task SetChatEmojiStatusAsync( + this IClient client, long chatId = default, EmojiStatus emojiStatus = default) + { + return client.ExecuteAsync(new SetChatEmojiStatus { - return client.ExecuteAsync(new SetChatEmojiStatus - { - ChatId = chatId, EmojiStatus = emojiStatus - }); - } + ChatId = chatId, EmojiStatus = emojiStatus + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatLocation.cs b/TdLib.Api/Functions/SetChatLocation.cs index 1b7518a0..c4dd7d25 100644 --- a/TdLib.Api/Functions/SetChatLocation.cs +++ b/TdLib.Api/Functions/SetChatLocation.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use /// - public static partial class TdApi + public class SetChatLocation : Function { /// - /// Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use + /// Data type for serialization /// - public class SetChatLocation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatLocation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatLocation"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New location for the chat; must be valid and not null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public ChatLocation Location { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use + /// New location for the chat; must be valid and not null /// - public static Task SetChatLocationAsync( - this IClient client, long chatId = default, ChatLocation location = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public ChatLocation Location { get; set; } + } + + /// + /// Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use + /// + public static Task SetChatLocationAsync( + this IClient client, long chatId = default, ChatLocation location = default) + { + return client.ExecuteAsync(new SetChatLocation { - return client.ExecuteAsync(new SetChatLocation - { - ChatId = chatId, Location = location - }); - } + ChatId = chatId, Location = location + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatMemberStatus.cs b/TdLib.Api/Functions/SetChatMemberStatus.cs index f23dccdc..d57d4871 100644 --- a/TdLib.Api/Functions/SetChatMemberStatus.cs +++ b/TdLib.Api/Functions/SetChatMemberStatus.cs @@ -3,67 +3,69 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, + /// and can_restrict_members administrator right to change restrictions of a user. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. + /// Use addChatMember or banChatMember if some additional parameters need to be passed /// - public static partial class TdApi + public class SetChatMemberStatus : Function { /// - /// Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, - /// and can_restrict_members administrator right to change restrictions of a user. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. - /// Use addChatMember or banChatMember if some additional parameters need to be passed + /// Data type for serialization /// - public class SetChatMemberStatus : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatMemberStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatMemberStatus"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Member identifier. Chats can be only banned and unbanned in supergroups and channels - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_id")] - public MessageSender MemberId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new status of the member in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public ChatMemberStatus Status { get; set; } - } + /// + /// Member identifier. Chats can be only banned and unbanned in supergroups and channels + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_id")] + public MessageSender MemberId { get; set; } /// - /// Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, - /// and can_restrict_members administrator right to change restrictions of a user. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. - /// Use addChatMember or banChatMember if some additional parameters need to be passed + /// The new status of the member in the chat /// - public static Task SetChatMemberStatusAsync( - this IClient client, long chatId = default, MessageSender memberId = default, ChatMemberStatus status = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public ChatMemberStatus Status { get; set; } + } + + /// + /// Changes the status of a chat member; requires can_invite_users member right to add a chat member, can_promote_members administrator right to change administrator rights of the member, + /// and can_restrict_members administrator right to change restrictions of a user. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. + /// Use addChatMember or banChatMember if some additional parameters need to be passed + /// + public static Task SetChatMemberStatusAsync( + this IClient client, long chatId = default, MessageSender memberId = default, ChatMemberStatus status = default) + { + return client.ExecuteAsync(new SetChatMemberStatus { - return client.ExecuteAsync(new SetChatMemberStatus - { - ChatId = chatId, MemberId = memberId, Status = status - }); - } + ChatId = chatId, MemberId = memberId, Status = status + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatMemberTag.cs b/TdLib.Api/Functions/SetChatMemberTag.cs index a62bf1ff..40a419e7 100644 --- a/TdLib.Api/Functions/SetChatMemberTag.cs +++ b/TdLib.Api/Functions/SetChatMemberTag.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only /// - public static partial class TdApi + public class SetChatMemberTag : Function { /// - /// Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only + /// Data type for serialization /// - public class SetChatMemberTag : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatMemberTag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatMemberTag"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user whose tag is changed. Chats can't have member tags - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new tag of the member in the chat; 0-16 characters without emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public string Tag { get; set; } - } + /// + /// Identifier of the user whose tag is changed. Chats can't have member tags + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only + /// The new tag of the member in the chat; 0-16 characters without emoji /// - public static Task SetChatMemberTagAsync( - this IClient client, long chatId = default, long userId = default, string tag = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public string Tag { get; set; } + } + + /// + /// Changes the tag or custom title of a chat member; requires can_manage_tags administrator right to change tag of other users; for basic groups and supergroups only + /// + public static Task SetChatMemberTagAsync( + this IClient client, long chatId = default, long userId = default, string tag = default) + { + return client.ExecuteAsync(new SetChatMemberTag { - return client.ExecuteAsync(new SetChatMemberTag - { - ChatId = chatId, UserId = userId, Tag = tag - }); - } + ChatId = chatId, UserId = userId, Tag = tag + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatMessageAutoDeleteTime.cs b/TdLib.Api/Functions/SetChatMessageAutoDeleteTime.cs index accb0d6b..3636f67e 100644 --- a/TdLib.Api/Functions/SetChatMessageAutoDeleteTime.cs +++ b/TdLib.Api/Functions/SetChatMessageAutoDeleteTime.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator right in basic groups, supergroups and channels. + /// Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram). /// - public static partial class TdApi + public class SetChatMessageAutoDeleteTime : Function { /// - /// Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator right in basic groups, supergroups and channels. - /// Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram). + /// Data type for serialization /// - public class SetChatMessageAutoDeleteTime : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatMessageAutoDeleteTime"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatMessageAutoDeleteTime"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_auto_delete_time")] - public int MessageAutoDeleteTime { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator right in basic groups, supergroups and channels. - /// Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram). + /// New time value, in seconds; unless the chat is secret, it must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically /// - public static Task SetChatMessageAutoDeleteTimeAsync( - this IClient client, long chatId = default, int messageAutoDeleteTime = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_auto_delete_time")] + public int MessageAutoDeleteTime { get; set; } + } + + /// + /// Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator right in basic groups, supergroups and channels. + /// Message auto-delete time can't be changed in a chat with the current user (Saved Messages) and the chat 777000 (Telegram). + /// + public static Task SetChatMessageAutoDeleteTimeAsync( + this IClient client, long chatId = default, int messageAutoDeleteTime = default) + { + return client.ExecuteAsync(new SetChatMessageAutoDeleteTime { - return client.ExecuteAsync(new SetChatMessageAutoDeleteTime - { - ChatId = chatId, MessageAutoDeleteTime = messageAutoDeleteTime - }); - } + ChatId = chatId, MessageAutoDeleteTime = messageAutoDeleteTime + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatMessageSender.cs b/TdLib.Api/Functions/SetChatMessageSender.cs index 8ea6d0f4..846742e0 100644 --- a/TdLib.Api/Functions/SetChatMessageSender.cs +++ b/TdLib.Api/Functions/SetChatMessageSender.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Selects a message sender to send messages in a chat /// - public static partial class TdApi + public class SetChatMessageSender : Function { /// - /// Selects a message sender to send messages in a chat + /// Data type for serialization /// - public class SetChatMessageSender : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatMessageSender"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatMessageSender"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New message sender for the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_sender_id")] - public MessageSender MessageSenderId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Selects a message sender to send messages in a chat + /// New message sender for the chat /// - public static Task SetChatMessageSenderAsync( - this IClient client, long chatId = default, MessageSender messageSenderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_sender_id")] + public MessageSender MessageSenderId { get; set; } + } + + /// + /// Selects a message sender to send messages in a chat + /// + public static Task SetChatMessageSenderAsync( + this IClient client, long chatId = default, MessageSender messageSenderId = default) + { + return client.ExecuteAsync(new SetChatMessageSender { - return client.ExecuteAsync(new SetChatMessageSender - { - ChatId = chatId, MessageSenderId = messageSenderId - }); - } + ChatId = chatId, MessageSenderId = messageSenderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatNotificationSettings.cs b/TdLib.Api/Functions/SetChatNotificationSettings.cs index ef05e0f0..0973b99e 100644 --- a/TdLib.Api/Functions/SetChatNotificationSettings.cs +++ b/TdLib.Api/Functions/SetChatNotificationSettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed /// - public static partial class TdApi + public class SetChatNotificationSettings : Function { /// - /// Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed + /// Data type for serialization /// - public class SetChatNotificationSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatNotificationSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatNotificationSettings"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New notification settings for the chat. If the chat is muted for more than 366 days, it is considered to be muted forever - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ChatNotificationSettings NotificationSettings { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed + /// New notification settings for the chat. If the chat is muted for more than 366 days, it is considered to be muted forever /// - public static Task SetChatNotificationSettingsAsync( - this IClient client, long chatId = default, ChatNotificationSettings notificationSettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ChatNotificationSettings NotificationSettings { get; set; } + } + + /// + /// Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed + /// + public static Task SetChatNotificationSettingsAsync( + this IClient client, long chatId = default, ChatNotificationSettings notificationSettings = default) + { + return client.ExecuteAsync(new SetChatNotificationSettings { - return client.ExecuteAsync(new SetChatNotificationSettings - { - ChatId = chatId, NotificationSettings = notificationSettings - }); - } + ChatId = chatId, NotificationSettings = notificationSettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatPaidMessageStarCount.cs b/TdLib.Api/Functions/SetChatPaidMessageStarCount.cs index 13ec99f4..c146b1cb 100644 --- a/TdLib.Api/Functions/SetChatPaidMessageStarCount.cs +++ b/TdLib.Api/Functions/SetChatPaidMessageStarCount.cs @@ -3,57 +3,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the Telegram Star amount that must be paid to send a message to a supergroup chat; requires can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages /// - public static partial class TdApi + public class SetChatPaidMessageStarCount : Function { /// - /// Changes the Telegram Star amount that must be paid to send a message to a supergroup chat; requires can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages + /// Data type for serialization /// - public class SetChatPaidMessageStarCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatPaidMessageStarCount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatPaidMessageStarCount"; - /// - /// Identifier of the supergroup chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new number of Telegram Stars that must be paid for each message that is sent to the supergroup chat unless the sender is an administrator of the chat; 0-getOption("paid_message_star_count_max"). - /// The supergroup will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// Identifier of the supergroup chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the Telegram Star amount that must be paid to send a message to a supergroup chat; requires can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages + /// The new number of Telegram Stars that must be paid for each message that is sent to the supergroup chat unless the sender is an administrator of the chat; 0-getOption("paid_message_star_count_max"). + /// The supergroup will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending /// - public static Task SetChatPaidMessageStarCountAsync( - this IClient client, long chatId = default, long paidMessageStarCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + } + + /// + /// Changes the Telegram Star amount that must be paid to send a message to a supergroup chat; requires can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages + /// + public static Task SetChatPaidMessageStarCountAsync( + this IClient client, long chatId = default, long paidMessageStarCount = default) + { + return client.ExecuteAsync(new SetChatPaidMessageStarCount { - return client.ExecuteAsync(new SetChatPaidMessageStarCount - { - ChatId = chatId, PaidMessageStarCount = paidMessageStarCount - }); - } + ChatId = chatId, PaidMessageStarCount = paidMessageStarCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatPermissions.cs b/TdLib.Api/Functions/SetChatPermissions.cs index 87d86047..1199c0c0 100644 --- a/TdLib.Api/Functions/SetChatPermissions.cs +++ b/TdLib.Api/Functions/SetChatPermissions.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right /// - public static partial class TdApi + public class SetChatPermissions : Function { /// - /// Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right + /// Data type for serialization /// - public class SetChatPermissions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatPermissions"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatPermissions"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New non-administrator members permissions in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("permissions")] - public ChatPermissions Permissions { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right + /// New non-administrator members permissions in the chat /// - public static Task SetChatPermissionsAsync( - this IClient client, long chatId = default, ChatPermissions permissions = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("permissions")] + public ChatPermissions Permissions { get; set; } + } + + /// + /// Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right + /// + public static Task SetChatPermissionsAsync( + this IClient client, long chatId = default, ChatPermissions permissions = default) + { + return client.ExecuteAsync(new SetChatPermissions { - return client.ExecuteAsync(new SetChatPermissions - { - ChatId = chatId, Permissions = permissions - }); - } + ChatId = chatId, Permissions = permissions + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatPhoto.cs b/TdLib.Api/Functions/SetChatPhoto.cs index db37282a..d25b0acf 100644 --- a/TdLib.Api/Functions/SetChatPhoto.cs +++ b/TdLib.Api/Functions/SetChatPhoto.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info member right /// - public static partial class TdApi + public class SetChatPhoto : Function { /// - /// Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info member right + /// Data type for serialization /// - public class SetChatPhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatPhoto"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatPhoto"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New chat photo; pass null to delete the chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputChatPhoto Photo { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info member right + /// New chat photo; pass null to delete the chat photo /// - public static Task SetChatPhotoAsync( - this IClient client, long chatId = default, InputChatPhoto photo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputChatPhoto Photo { get; set; } + } + + /// + /// Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info member right + /// + public static Task SetChatPhotoAsync( + this IClient client, long chatId = default, InputChatPhoto photo = default) + { + return client.ExecuteAsync(new SetChatPhoto { - return client.ExecuteAsync(new SetChatPhoto - { - ChatId = chatId, Photo = photo - }); - } + ChatId = chatId, Photo = photo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatPinnedStories.cs b/TdLib.Api/Functions/SetChatPinnedStories.cs index c3205838..ef76ca01 100644 --- a/TdLib.Api/Functions/SetChatPinnedStories.cs +++ b/TdLib.Api/Functions/SetChatPinnedStories.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the list of pinned stories on a chat page; requires can_edit_stories administrator right in the chat /// - public static partial class TdApi + public class SetChatPinnedStories : Function { /// - /// Changes the list of pinned stories on a chat page; requires can_edit_stories administrator right in the chat + /// Data type for serialization /// - public class SetChatPinnedStories : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatPinnedStories"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatPinnedStories"; - /// - /// Identifier of the chat that posted the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New list of pinned stories. All stories must be posted to the chat page first. There can be up to getOption("pinned_story_count_max") pinned stories on a chat page - /// - [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] - public int[] StoryIds { get; set; } - } + /// + /// Identifier of the chat that posted the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the list of pinned stories on a chat page; requires can_edit_stories administrator right in the chat + /// New list of pinned stories. All stories must be posted to the chat page first. There can be up to getOption("pinned_story_count_max") pinned stories on a chat page /// - public static Task SetChatPinnedStoriesAsync( - this IClient client, long chatId = default, int[] storyIds = default) + [JsonProperty("story_ids", ItemConverterType = typeof(Converter))] + public int[] StoryIds { get; set; } + } + + /// + /// Changes the list of pinned stories on a chat page; requires can_edit_stories administrator right in the chat + /// + public static Task SetChatPinnedStoriesAsync( + this IClient client, long chatId = default, int[] storyIds = default) + { + return client.ExecuteAsync(new SetChatPinnedStories { - return client.ExecuteAsync(new SetChatPinnedStories - { - ChatId = chatId, StoryIds = storyIds - }); - } + ChatId = chatId, StoryIds = storyIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatProfileAccentColor.cs b/TdLib.Api/Functions/SetChatProfileAccentColor.cs index bfdd2fbb..3a393dd7 100644 --- a/TdLib.Api/Functions/SetChatProfileAccentColor.cs +++ b/TdLib.Api/Functions/SetChatProfileAccentColor.cs @@ -3,64 +3,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes accent color and background custom emoji for profile of a supergroup or channel chat. Requires can_change_info administrator right /// - public static partial class TdApi + public class SetChatProfileAccentColor : Function { /// - /// Changes accent color and background custom emoji for profile of a supergroup or channel chat. Requires can_change_info administrator right + /// Data type for serialization /// - public class SetChatProfileAccentColor : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatProfileAccentColor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatProfileAccentColor"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the accent color to use for profile; pass -1 if none. The chat must have at least profileAccentColor.min_supergroup_chat_boost_level for supergroups - /// or profileAccentColor.min_channel_chat_boost_level for channels boost level to pass the corresponding color - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("profile_accent_color_id")] - public int ProfileAccentColorId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of a custom emoji to be shown on the chat's profile photo background; 0 if none. Use chatBoostLevelFeatures.can_set_profile_background_custom_emoji to check whether a custom emoji can be set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("profile_background_custom_emoji_id")] - public long ProfileBackgroundCustomEmojiId { get; set; } - } + /// + /// Identifier of the accent color to use for profile; pass -1 if none. The chat must have at least profileAccentColor.min_supergroup_chat_boost_level for supergroups + /// or profileAccentColor.min_channel_chat_boost_level for channels boost level to pass the corresponding color + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("profile_accent_color_id")] + public int ProfileAccentColorId { get; set; } /// - /// Changes accent color and background custom emoji for profile of a supergroup or channel chat. Requires can_change_info administrator right + /// Identifier of a custom emoji to be shown on the chat's profile photo background; 0 if none. Use chatBoostLevelFeatures.can_set_profile_background_custom_emoji to check whether a custom emoji can be set /// - public static Task SetChatProfileAccentColorAsync( - this IClient client, long chatId = default, int profileAccentColorId = default, long profileBackgroundCustomEmojiId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("profile_background_custom_emoji_id")] + public long ProfileBackgroundCustomEmojiId { get; set; } + } + + /// + /// Changes accent color and background custom emoji for profile of a supergroup or channel chat. Requires can_change_info administrator right + /// + public static Task SetChatProfileAccentColorAsync( + this IClient client, long chatId = default, int profileAccentColorId = default, long profileBackgroundCustomEmojiId = default) + { + return client.ExecuteAsync(new SetChatProfileAccentColor { - return client.ExecuteAsync(new SetChatProfileAccentColor - { - ChatId = chatId, ProfileAccentColorId = profileAccentColorId, ProfileBackgroundCustomEmojiId = profileBackgroundCustomEmojiId - }); - } + ChatId = chatId, ProfileAccentColorId = profileAccentColorId, ProfileBackgroundCustomEmojiId = profileBackgroundCustomEmojiId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatSlowModeDelay.cs b/TdLib.Api/Functions/SetChatSlowModeDelay.cs index 293d95cb..4deaca87 100644 --- a/TdLib.Api/Functions/SetChatSlowModeDelay.cs +++ b/TdLib.Api/Functions/SetChatSlowModeDelay.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members administrator right /// - public static partial class TdApi + public class SetChatSlowModeDelay : Function { /// - /// Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members administrator right + /// Data type for serialization /// - public class SetChatSlowModeDelay : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatSlowModeDelay"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatSlowModeDelay"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New slow mode delay for the chat, in seconds; must be one of 0, 5, 10, 30, 60, 300, 900, 3600 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("slow_mode_delay")] - public int SlowModeDelay { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members administrator right + /// New slow mode delay for the chat, in seconds; must be one of 0, 5, 10, 30, 60, 300, 900, 3600 /// - public static Task SetChatSlowModeDelayAsync( - this IClient client, long chatId = default, int slowModeDelay = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("slow_mode_delay")] + public int SlowModeDelay { get; set; } + } + + /// + /// Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members administrator right + /// + public static Task SetChatSlowModeDelayAsync( + this IClient client, long chatId = default, int slowModeDelay = default) + { + return client.ExecuteAsync(new SetChatSlowModeDelay { - return client.ExecuteAsync(new SetChatSlowModeDelay - { - ChatId = chatId, SlowModeDelay = slowModeDelay - }); - } + ChatId = chatId, SlowModeDelay = slowModeDelay + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatTheme.cs b/TdLib.Api/Functions/SetChatTheme.cs index a43fe8f2..eed07fdc 100644 --- a/TdLib.Api/Functions/SetChatTheme.cs +++ b/TdLib.Api/Functions/SetChatTheme.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the chat theme. Supported only in private and secret chats /// - public static partial class TdApi + public class SetChatTheme : Function { /// - /// Changes the chat theme. Supported only in private and secret chats + /// Data type for serialization /// - public class SetChatTheme : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatTheme"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatTheme"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New chat theme; pass null to return the default theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme")] - public InputChatTheme Theme { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the chat theme. Supported only in private and secret chats + /// New chat theme; pass null to return the default theme /// - public static Task SetChatThemeAsync( - this IClient client, long chatId = default, InputChatTheme theme = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public InputChatTheme Theme { get; set; } + } + + /// + /// Changes the chat theme. Supported only in private and secret chats + /// + public static Task SetChatThemeAsync( + this IClient client, long chatId = default, InputChatTheme theme = default) + { + return client.ExecuteAsync(new SetChatTheme { - return client.ExecuteAsync(new SetChatTheme - { - ChatId = chatId, Theme = theme - }); - } + ChatId = chatId, Theme = theme + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetChatTitle.cs b/TdLib.Api/Functions/SetChatTitle.cs index c3313e69..cb9e96ce 100644 --- a/TdLib.Api/Functions/SetChatTitle.cs +++ b/TdLib.Api/Functions/SetChatTitle.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info member right /// - public static partial class TdApi + public class SetChatTitle : Function { /// - /// Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info member right + /// Data type for serialization /// - public class SetChatTitle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setChatTitle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setChatTitle"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New title of the chat; 1-128 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info member right + /// New title of the chat; 1-128 characters /// - public static Task SetChatTitleAsync( - this IClient client, long chatId = default, string title = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + } + + /// + /// Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info member right + /// + public static Task SetChatTitleAsync( + this IClient client, long chatId = default, string title = default) + { + return client.ExecuteAsync(new SetChatTitle { - return client.ExecuteAsync(new SetChatTitle - { - ChatId = chatId, Title = title - }); - } + ChatId = chatId, Title = title + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCloseFriends.cs b/TdLib.Api/Functions/SetCloseFriends.cs index f67fcca9..e5588a95 100644 --- a/TdLib.Api/Functions/SetCloseFriends.cs +++ b/TdLib.Api/Functions/SetCloseFriends.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the list of close friends of the current user /// - public static partial class TdApi + public class SetCloseFriends : Function { /// - /// Changes the list of close friends of the current user + /// Data type for serialization /// - public class SetCloseFriends : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setCloseFriends"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCloseFriends"; - /// - /// User identifiers of close friends; the users must be contacts of the current user - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the list of close friends of the current user + /// User identifiers of close friends; the users must be contacts of the current user /// - public static Task SetCloseFriendsAsync( - this IClient client, long[] userIds = default) + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } + } + + /// + /// Changes the list of close friends of the current user + /// + public static Task SetCloseFriendsAsync( + this IClient client, long[] userIds = default) + { + return client.ExecuteAsync(new SetCloseFriends { - return client.ExecuteAsync(new SetCloseFriends - { - UserIds = userIds - }); - } + UserIds = userIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCommands.cs b/TdLib.Api/Functions/SetCommands.cs index 734aef2b..4ccc98cf 100644 --- a/TdLib.Api/Functions/SetCommands.cs +++ b/TdLib.Api/Functions/SetCommands.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the list of commands supported by the bot for the given user scope and language; for bots only /// - public static partial class TdApi + public class SetCommands : Function { /// - /// Sets the list of commands supported by the bot for the given user scope and language; for bots only + /// Data type for serialization /// - public class SetCommands : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setCommands"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCommands"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The scope to which the commands are relevant; pass null to change commands in the default bot command scope - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public BotCommandScope Scope { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 639-1 language code. If empty, the commands will be applied to all users from the given scope, for which language there are no dedicated commands - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } + /// + /// The scope to which the commands are relevant; pass null to change commands in the default bot command scope + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public BotCommandScope Scope { get; set; } - /// - /// List of the bot's commands - /// - [JsonProperty("commands", ItemConverterType = typeof(Converter))] - public BotCommand[] Commands { get; set; } - } + /// + /// A two-letter ISO 639-1 language code. If empty, the commands will be applied to all users from the given scope, for which language there are no dedicated commands + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } /// - /// Sets the list of commands supported by the bot for the given user scope and language; for bots only + /// List of the bot's commands /// - public static Task SetCommandsAsync( - this IClient client, BotCommandScope scope = default, string languageCode = default, BotCommand[] commands = default) + [JsonProperty("commands", ItemConverterType = typeof(Converter))] + public BotCommand[] Commands { get; set; } + } + + /// + /// Sets the list of commands supported by the bot for the given user scope and language; for bots only + /// + public static Task SetCommandsAsync( + this IClient client, BotCommandScope scope = default, string languageCode = default, BotCommand[] commands = default) + { + return client.ExecuteAsync(new SetCommands { - return client.ExecuteAsync(new SetCommands - { - Scope = scope, LanguageCode = languageCode, Commands = commands - }); - } + Scope = scope, LanguageCode = languageCode, Commands = commands + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCommunityName.cs b/TdLib.Api/Functions/SetCommunityName.cs index 2b82823c..8c0445ca 100644 --- a/TdLib.Api/Functions/SetCommunityName.cs +++ b/TdLib.Api/Functions/SetCommunityName.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes name of the given community; requires can_change_info administrator right in the community /// - public static partial class TdApi + public class SetCommunityName : Function { /// - /// Changes name of the given community; requires can_change_info administrator right in the community + /// Data type for serialization /// - public class SetCommunityName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setCommunityName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCommunityName"; - /// - /// Identifier of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New name of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Identifier of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } /// - /// Changes name of the given community; requires can_change_info administrator right in the community + /// New name of the community /// - public static Task SetCommunityNameAsync( - this IClient client, long communityId = default, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Changes name of the given community; requires can_change_info administrator right in the community + /// + public static Task SetCommunityNameAsync( + this IClient client, long communityId = default, string name = default) + { + return client.ExecuteAsync(new SetCommunityName { - return client.ExecuteAsync(new SetCommunityName - { - CommunityId = communityId, Name = name - }); - } + CommunityId = communityId, Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCommunityPermissions.cs b/TdLib.Api/Functions/SetCommunityPermissions.cs new file mode 100644 index 00000000..db019bde --- /dev/null +++ b/TdLib.Api/Functions/SetCommunityPermissions.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Changes permissions of regular members in the given community; requires can_ban_members administrator right in the community + /// + public class SetCommunityPermissions : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCommunityPermissions"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } + + /// + /// New permissions of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("permissions")] + public CommunityPermissions Permissions { get; set; } + } + + /// + /// Changes permissions of regular members in the given community; requires can_ban_members administrator right in the community + /// + public static Task SetCommunityPermissionsAsync( + this IClient client, long communityId = default, CommunityPermissions permissions = default) + { + return client.ExecuteAsync(new SetCommunityPermissions + { + CommunityId = communityId, Permissions = permissions + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCommunityPhoto.cs b/TdLib.Api/Functions/SetCommunityPhoto.cs new file mode 100644 index 00000000..375b5328 --- /dev/null +++ b/TdLib.Api/Functions/SetCommunityPhoto.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Changes the photo of a community; requires can_change_info administrator right in the community + /// + public class SetCommunityPhoto : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCommunityPhoto"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } + + /// + /// New chat photo; pass null to delete the chat photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputChatPhoto Photo { get; set; } + } + + /// + /// Changes the photo of a community; requires can_change_info administrator right in the community + /// + public static Task SetCommunityPhotoAsync( + this IClient client, long communityId = default, InputChatPhoto photo = default) + { + return client.ExecuteAsync(new SetCommunityPhoto + { + CommunityId = communityId, Photo = photo + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCustomEmojiStickerSetThumbnail.cs b/TdLib.Api/Functions/SetCustomEmojiStickerSetThumbnail.cs index 497a7b56..6800d389 100644 --- a/TdLib.Api/Functions/SetCustomEmojiStickerSetThumbnail.cs +++ b/TdLib.Api/Functions/SetCustomEmojiStickerSetThumbnail.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets a custom emoji sticker set thumbnail /// - public static partial class TdApi + public class SetCustomEmojiStickerSetThumbnail : Function { /// - /// Sets a custom emoji sticker set thumbnail + /// Data type for serialization /// - public class SetCustomEmojiStickerSetThumbnail : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setCustomEmojiStickerSetThumbnail"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCustomEmojiStickerSetThumbnail"; - /// - /// Sticker set name. The sticker set must be owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the custom emoji from the sticker set, which will be set as sticker set thumbnail; pass 0 to remove the sticker set thumbnail - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } - } + /// + /// Sticker set name. The sticker set must be owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Sets a custom emoji sticker set thumbnail + /// Identifier of the custom emoji from the sticker set, which will be set as sticker set thumbnail; pass 0 to remove the sticker set thumbnail /// - public static Task SetCustomEmojiStickerSetThumbnailAsync( - this IClient client, string name = default, long customEmojiId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } + } + + /// + /// Sets a custom emoji sticker set thumbnail + /// + public static Task SetCustomEmojiStickerSetThumbnailAsync( + this IClient client, string name = default, long customEmojiId = default) + { + return client.ExecuteAsync(new SetCustomEmojiStickerSetThumbnail { - return client.ExecuteAsync(new SetCustomEmojiStickerSetThumbnail - { - Name = name, CustomEmojiId = customEmojiId - }); - } + Name = name, CustomEmojiId = customEmojiId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCustomLanguagePack.cs b/TdLib.Api/Functions/SetCustomLanguagePack.cs index 43ea2e90..ae4e3f47 100644 --- a/TdLib.Api/Functions/SetCustomLanguagePack.cs +++ b/TdLib.Api/Functions/SetCustomLanguagePack.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds or changes a custom local language pack to the current localization target /// - public static partial class TdApi + public class SetCustomLanguagePack : Function { /// - /// Adds or changes a custom local language pack to the current localization target + /// Data type for serialization /// - public class SetCustomLanguagePack : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setCustomLanguagePack"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCustomLanguagePack"; - /// - /// Information about the language pack. Language pack identifier must start with 'X', consist only of English letters, digits and hyphens, and must not exceed 64 characters. Can be called before authorization - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info")] - public LanguagePackInfo Info { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Strings of the new language pack - /// - [JsonProperty("strings", ItemConverterType = typeof(Converter))] - public LanguagePackString[] Strings { get; set; } - } + /// + /// Information about the language pack. Language pack identifier must start with 'X', consist only of English letters, digits and hyphens, and must not exceed 64 characters. Can be called before authorization + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public LanguagePackInfo Info { get; set; } /// - /// Adds or changes a custom local language pack to the current localization target + /// Strings of the new language pack /// - public static Task SetCustomLanguagePackAsync( - this IClient client, LanguagePackInfo info = default, LanguagePackString[] strings = default) + [JsonProperty("strings", ItemConverterType = typeof(Converter))] + public LanguagePackString[] Strings { get; set; } + } + + /// + /// Adds or changes a custom local language pack to the current localization target + /// + public static Task SetCustomLanguagePackAsync( + this IClient client, LanguagePackInfo info = default, LanguagePackString[] strings = default) + { + return client.ExecuteAsync(new SetCustomLanguagePack { - return client.ExecuteAsync(new SetCustomLanguagePack - { - Info = info, Strings = strings - }); - } + Info = info, Strings = strings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetCustomLanguagePackString.cs b/TdLib.Api/Functions/SetCustomLanguagePackString.cs index 1b98a0c0..1ec117c0 100644 --- a/TdLib.Api/Functions/SetCustomLanguagePackString.cs +++ b/TdLib.Api/Functions/SetCustomLanguagePackString.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds, edits or deletes a string in a custom local language pack. Can be called before authorization /// - public static partial class TdApi + public class SetCustomLanguagePackString : Function { /// - /// Adds, edits or deletes a string in a custom local language pack. Can be called before authorization + /// Data type for serialization /// - public class SetCustomLanguagePackString : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setCustomLanguagePackString"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setCustomLanguagePackString"; - /// - /// Identifier of a previously added custom local language pack in the current localization target - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New language pack string - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_string")] - public LanguagePackString NewString { get; set; } - } + /// + /// Identifier of a previously added custom local language pack in the current localization target + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } /// - /// Adds, edits or deletes a string in a custom local language pack. Can be called before authorization + /// New language pack string /// - public static Task SetCustomLanguagePackStringAsync( - this IClient client, string languagePackId = default, LanguagePackString newString = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_string")] + public LanguagePackString NewString { get; set; } + } + + /// + /// Adds, edits or deletes a string in a custom local language pack. Can be called before authorization + /// + public static Task SetCustomLanguagePackStringAsync( + this IClient client, string languagePackId = default, LanguagePackString newString = default) + { + return client.ExecuteAsync(new SetCustomLanguagePackString { - return client.ExecuteAsync(new SetCustomLanguagePackString - { - LanguagePackId = languagePackId, NewString = newString - }); - } + LanguagePackId = languagePackId, NewString = newString + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetDatabaseEncryptionKey.cs b/TdLib.Api/Functions/SetDatabaseEncryptionKey.cs index 141fc91c..48757e7e 100644 --- a/TdLib.Api/Functions/SetDatabaseEncryptionKey.cs +++ b/TdLib.Api/Functions/SetDatabaseEncryptionKey.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain /// - public static partial class TdApi + public class SetDatabaseEncryptionKey : Function { /// - /// Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain + /// Data type for serialization /// - public class SetDatabaseEncryptionKey : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setDatabaseEncryptionKey"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setDatabaseEncryptionKey"; - /// - /// New encryption key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_encryption_key")] - public byte[] NewEncryptionKey { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain + /// New encryption key /// - public static Task SetDatabaseEncryptionKeyAsync( - this IClient client, byte[] newEncryptionKey = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_encryption_key")] + public byte[] NewEncryptionKey { get; set; } + } + + /// + /// Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain + /// + public static Task SetDatabaseEncryptionKeyAsync( + this IClient client, byte[] newEncryptionKey = default) + { + return client.ExecuteAsync(new SetDatabaseEncryptionKey { - return client.ExecuteAsync(new SetDatabaseEncryptionKey - { - NewEncryptionKey = newEncryptionKey - }); - } + NewEncryptionKey = newEncryptionKey + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetDefaultBackground.cs b/TdLib.Api/Functions/SetDefaultBackground.cs index dd6cf843..2dd87c7d 100644 --- a/TdLib.Api/Functions/SetDefaultBackground.cs +++ b/TdLib.Api/Functions/SetDefaultBackground.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets default background for chats; adds the background to the list of installed backgrounds /// - public static partial class TdApi + public class SetDefaultBackground : Function { /// - /// Sets default background for chats; adds the background to the list of installed backgrounds + /// Data type for serialization /// - public class SetDefaultBackground : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setDefaultBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setDefaultBackground"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The input background to use; pass null to create a new filled background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public InputBackground Background { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public BackgroundType Type { get; set; } + /// + /// The input background to use; pass null to create a new filled background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public InputBackground Background { get; set; } - /// - /// Pass true if the background is set for a dark theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_dark_theme")] - public bool ForDarkTheme { get; set; } - } + /// + /// Background type; pass null to use the default type of the remote background; backgroundTypeChatTheme isn't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public BackgroundType Type { get; set; } /// - /// Sets default background for chats; adds the background to the list of installed backgrounds + /// Pass true if the background is set for a dark theme /// - public static Task SetDefaultBackgroundAsync( - this IClient client, InputBackground background = default, BackgroundType type = default, bool forDarkTheme = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("for_dark_theme")] + public bool ForDarkTheme { get; set; } + } + + /// + /// Sets default background for chats; adds the background to the list of installed backgrounds + /// + public static Task SetDefaultBackgroundAsync( + this IClient client, InputBackground background = default, BackgroundType type = default, bool forDarkTheme = default) + { + return client.ExecuteAsync(new SetDefaultBackground { - return client.ExecuteAsync(new SetDefaultBackground - { - Background = background, Type = type, ForDarkTheme = forDarkTheme - }); - } + Background = background, Type = type, ForDarkTheme = forDarkTheme + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetDefaultChannelAdministratorRights.cs b/TdLib.Api/Functions/SetDefaultChannelAdministratorRights.cs index 941a0fb9..61f3f17b 100644 --- a/TdLib.Api/Functions/SetDefaultChannelAdministratorRights.cs +++ b/TdLib.Api/Functions/SetDefaultChannelAdministratorRights.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets default administrator rights for adding the bot to channel chats; for bots only /// - public static partial class TdApi + public class SetDefaultChannelAdministratorRights : Function { /// - /// Sets default administrator rights for adding the bot to channel chats; for bots only + /// Data type for serialization /// - public class SetDefaultChannelAdministratorRights : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setDefaultChannelAdministratorRights"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setDefaultChannelAdministratorRights"; - /// - /// Default administrator rights for adding the bot to channels; pass null to remove default rights - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_channel_administrator_rights")] - public ChatAdministratorRights DefaultChannelAdministratorRights { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sets default administrator rights for adding the bot to channel chats; for bots only + /// Default administrator rights for adding the bot to channels; pass null to remove default rights /// - public static Task SetDefaultChannelAdministratorRightsAsync( - this IClient client, ChatAdministratorRights defaultChannelAdministratorRights = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("default_channel_administrator_rights")] + public ChatAdministratorRights DefaultChannelAdministratorRights { get; set; } + } + + /// + /// Sets default administrator rights for adding the bot to channel chats; for bots only + /// + public static Task SetDefaultChannelAdministratorRightsAsync( + this IClient client, ChatAdministratorRights defaultChannelAdministratorRights = default) + { + return client.ExecuteAsync(new SetDefaultChannelAdministratorRights { - return client.ExecuteAsync(new SetDefaultChannelAdministratorRights - { - DefaultChannelAdministratorRights = defaultChannelAdministratorRights - }); - } + DefaultChannelAdministratorRights = defaultChannelAdministratorRights + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetDefaultGroupAdministratorRights.cs b/TdLib.Api/Functions/SetDefaultGroupAdministratorRights.cs index fcb492c2..3d6db185 100644 --- a/TdLib.Api/Functions/SetDefaultGroupAdministratorRights.cs +++ b/TdLib.Api/Functions/SetDefaultGroupAdministratorRights.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only /// - public static partial class TdApi + public class SetDefaultGroupAdministratorRights : Function { /// - /// Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only + /// Data type for serialization /// - public class SetDefaultGroupAdministratorRights : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setDefaultGroupAdministratorRights"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setDefaultGroupAdministratorRights"; - /// - /// Default administrator rights for adding the bot to basic group and supergroup chats; pass null to remove default rights - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_group_administrator_rights")] - public ChatAdministratorRights DefaultGroupAdministratorRights { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only + /// Default administrator rights for adding the bot to basic group and supergroup chats; pass null to remove default rights /// - public static Task SetDefaultGroupAdministratorRightsAsync( - this IClient client, ChatAdministratorRights defaultGroupAdministratorRights = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("default_group_administrator_rights")] + public ChatAdministratorRights DefaultGroupAdministratorRights { get; set; } + } + + /// + /// Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only + /// + public static Task SetDefaultGroupAdministratorRightsAsync( + this IClient client, ChatAdministratorRights defaultGroupAdministratorRights = default) + { + return client.ExecuteAsync(new SetDefaultGroupAdministratorRights { - return client.ExecuteAsync(new SetDefaultGroupAdministratorRights - { - DefaultGroupAdministratorRights = defaultGroupAdministratorRights - }); - } + DefaultGroupAdministratorRights = defaultGroupAdministratorRights + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetDefaultMessageAutoDeleteTime.cs b/TdLib.Api/Functions/SetDefaultMessageAutoDeleteTime.cs index afb871be..efb37694 100644 --- a/TdLib.Api/Functions/SetDefaultMessageAutoDeleteTime.cs +++ b/TdLib.Api/Functions/SetDefaultMessageAutoDeleteTime.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the default message auto-delete time for new chats /// - public static partial class TdApi + public class SetDefaultMessageAutoDeleteTime : Function { /// - /// Changes the default message auto-delete time for new chats + /// Data type for serialization /// - public class SetDefaultMessageAutoDeleteTime : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setDefaultMessageAutoDeleteTime"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setDefaultMessageAutoDeleteTime"; - /// - /// New default message auto-delete time; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_auto_delete_time")] - public MessageAutoDeleteTime MessageAutoDeleteTime { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the default message auto-delete time for new chats + /// New default message auto-delete time; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically /// - public static Task SetDefaultMessageAutoDeleteTimeAsync( - this IClient client, MessageAutoDeleteTime messageAutoDeleteTime = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_auto_delete_time")] + public MessageAutoDeleteTime MessageAutoDeleteTime { get; set; } + } + + /// + /// Changes the default message auto-delete time for new chats + /// + public static Task SetDefaultMessageAutoDeleteTimeAsync( + this IClient client, MessageAutoDeleteTime messageAutoDeleteTime = default) + { + return client.ExecuteAsync(new SetDefaultMessageAutoDeleteTime { - return client.ExecuteAsync(new SetDefaultMessageAutoDeleteTime - { - MessageAutoDeleteTime = messageAutoDeleteTime - }); - } + MessageAutoDeleteTime = messageAutoDeleteTime + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetDefaultReactionType.cs b/TdLib.Api/Functions/SetDefaultReactionType.cs index 00006521..404967d1 100644 --- a/TdLib.Api/Functions/SetDefaultReactionType.cs +++ b/TdLib.Api/Functions/SetDefaultReactionType.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes type of default reaction for the current user /// - public static partial class TdApi + public class SetDefaultReactionType : Function { /// - /// Changes type of default reaction for the current user + /// Data type for serialization /// - public class SetDefaultReactionType : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setDefaultReactionType"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setDefaultReactionType"; - /// - /// New type of the default reaction. The paid reaction can't be set as default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes type of default reaction for the current user + /// New type of the default reaction. The paid reaction can't be set as default /// - public static Task SetDefaultReactionTypeAsync( - this IClient client, ReactionType reactionType = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } + } + + /// + /// Changes type of default reaction for the current user + /// + public static Task SetDefaultReactionTypeAsync( + this IClient client, ReactionType reactionType = default) + { + return client.ExecuteAsync(new SetDefaultReactionType { - return client.ExecuteAsync(new SetDefaultReactionType - { - ReactionType = reactionType - }); - } + ReactionType = reactionType + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetDirectMessagesChatTopicIsMarkedAsUnread.cs b/TdLib.Api/Functions/SetDirectMessagesChatTopicIsMarkedAsUnread.cs index b27ef495..774bec87 100644 --- a/TdLib.Api/Functions/SetDirectMessagesChatTopicIsMarkedAsUnread.cs +++ b/TdLib.Api/Functions/SetDirectMessagesChatTopicIsMarkedAsUnread.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the marked as unread state of the topic in a channel direct messages chat administered by the current user /// - public static partial class TdApi + public class SetDirectMessagesChatTopicIsMarkedAsUnread : Function { /// - /// Changes the marked as unread state of the topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public class SetDirectMessagesChatTopicIsMarkedAsUnread : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setDirectMessagesChatTopicIsMarkedAsUnread"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setDirectMessagesChatTopicIsMarkedAsUnread"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } + /// + /// Chat identifier of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of is_marked_as_unread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_marked_as_unread")] - public bool IsMarkedAsUnread { get; set; } - } + /// + /// Topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } /// - /// Changes the marked as unread state of the topic in a channel direct messages chat administered by the current user + /// New value of is_marked_as_unread /// - public static Task SetDirectMessagesChatTopicIsMarkedAsUnreadAsync( - this IClient client, long chatId = default, long topicId = default, bool isMarkedAsUnread = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_marked_as_unread")] + public bool IsMarkedAsUnread { get; set; } + } + + /// + /// Changes the marked as unread state of the topic in a channel direct messages chat administered by the current user + /// + public static Task SetDirectMessagesChatTopicIsMarkedAsUnreadAsync( + this IClient client, long chatId = default, long topicId = default, bool isMarkedAsUnread = default) + { + return client.ExecuteAsync(new SetDirectMessagesChatTopicIsMarkedAsUnread { - return client.ExecuteAsync(new SetDirectMessagesChatTopicIsMarkedAsUnread - { - ChatId = chatId, TopicId = topicId, IsMarkedAsUnread = isMarkedAsUnread - }); - } + ChatId = chatId, TopicId = topicId, IsMarkedAsUnread = isMarkedAsUnread + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetEmojiStatus.cs b/TdLib.Api/Functions/SetEmojiStatus.cs index 5fc5522e..d5249e3d 100644 --- a/TdLib.Api/Functions/SetEmojiStatus.cs +++ b/TdLib.Api/Functions/SetEmojiStatus.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the emoji status of the current user; for Telegram Premium users only /// - public static partial class TdApi + public class SetEmojiStatus : Function { /// - /// Changes the emoji status of the current user; for Telegram Premium users only + /// Data type for serialization /// - public class SetEmojiStatus : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setEmojiStatus"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setEmojiStatus"; - /// - /// New emoji status; pass null to switch to the default badge - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji_status")] - public EmojiStatus EmojiStatus { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the emoji status of the current user; for Telegram Premium users only + /// New emoji status; pass null to switch to the default badge /// - public static Task SetEmojiStatusAsync( - this IClient client, EmojiStatus emojiStatus = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji_status")] + public EmojiStatus EmojiStatus { get; set; } + } + + /// + /// Changes the emoji status of the current user; for Telegram Premium users only + /// + public static Task SetEmojiStatusAsync( + this IClient client, EmojiStatus emojiStatus = default) + { + return client.ExecuteAsync(new SetEmojiStatus { - return client.ExecuteAsync(new SetEmojiStatus - { - EmojiStatus = emojiStatus - }); - } + EmojiStatus = emojiStatus + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetFileGenerationProgress.cs b/TdLib.Api/Functions/SetFileGenerationProgress.cs index 7516d771..ccf0de70 100644 --- a/TdLib.Api/Functions/SetFileGenerationProgress.cs +++ b/TdLib.Api/Functions/SetFileGenerationProgress.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib on a file generation progress /// - public static partial class TdApi + public class SetFileGenerationProgress : Function { /// - /// Informs TDLib on a file generation progress + /// Data type for serialization /// - public class SetFileGenerationProgress : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setFileGenerationProgress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setFileGenerationProgress"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The identifier of the generation process - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("generation_id")] - public long GenerationId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Expected size of the generated file, in bytes; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expected_size")] - public long ExpectedSize { get; set; } + /// + /// The identifier of the generation process + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("generation_id")] + public long GenerationId { get; set; } - /// - /// The number of bytes already generated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("local_prefix_size")] - public long LocalPrefixSize { get; set; } - } + /// + /// Expected size of the generated file, in bytes; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expected_size")] + public long ExpectedSize { get; set; } /// - /// Informs TDLib on a file generation progress + /// The number of bytes already generated /// - public static Task SetFileGenerationProgressAsync( - this IClient client, long generationId = default, long expectedSize = default, long localPrefixSize = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("local_prefix_size")] + public long LocalPrefixSize { get; set; } + } + + /// + /// Informs TDLib on a file generation progress + /// + public static Task SetFileGenerationProgressAsync( + this IClient client, long generationId = default, long expectedSize = default, long localPrefixSize = default) + { + return client.ExecuteAsync(new SetFileGenerationProgress { - return client.ExecuteAsync(new SetFileGenerationProgress - { - GenerationId = generationId, ExpectedSize = expectedSize, LocalPrefixSize = localPrefixSize - }); - } + GenerationId = generationId, ExpectedSize = expectedSize, LocalPrefixSize = localPrefixSize + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetForumTopicNotificationSettings.cs b/TdLib.Api/Functions/SetForumTopicNotificationSettings.cs index 6dca7fc9..a44afab2 100644 --- a/TdLib.Api/Functions/SetForumTopicNotificationSettings.cs +++ b/TdLib.Api/Functions/SetForumTopicNotificationSettings.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the notification settings of a forum topic in a forum supergroup chat or a chat with a bot with topics /// - public static partial class TdApi + public class SetForumTopicNotificationSettings : Function { /// - /// Changes the notification settings of a forum topic in a forum supergroup chat or a chat with a bot with topics + /// Data type for serialization /// - public class SetForumTopicNotificationSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setForumTopicNotificationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setForumTopicNotificationSettings"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New notification settings for the forum topic. If the topic is muted for more than 366 days, it is considered to be muted forever - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ChatNotificationSettings NotificationSettings { get; set; } - } + /// + /// Forum topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } /// - /// Changes the notification settings of a forum topic in a forum supergroup chat or a chat with a bot with topics + /// New notification settings for the forum topic. If the topic is muted for more than 366 days, it is considered to be muted forever /// - public static Task SetForumTopicNotificationSettingsAsync( - this IClient client, long chatId = default, int forumTopicId = default, ChatNotificationSettings notificationSettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ChatNotificationSettings NotificationSettings { get; set; } + } + + /// + /// Changes the notification settings of a forum topic in a forum supergroup chat or a chat with a bot with topics + /// + public static Task SetForumTopicNotificationSettingsAsync( + this IClient client, long chatId = default, int forumTopicId = default, ChatNotificationSettings notificationSettings = default) + { + return client.ExecuteAsync(new SetForumTopicNotificationSettings { - return client.ExecuteAsync(new SetForumTopicNotificationSettings - { - ChatId = chatId, ForumTopicId = forumTopicId, NotificationSettings = notificationSettings - }); - } + ChatId = chatId, ForumTopicId = forumTopicId, NotificationSettings = notificationSettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetGameScore.cs b/TdLib.Api/Functions/SetGameScore.cs index a5d090ab..9af5066f 100644 --- a/TdLib.Api/Functions/SetGameScore.cs +++ b/TdLib.Api/Functions/SetGameScore.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Updates the game score of the specified user in the game; for bots only /// - public static partial class TdApi + public class SetGameScore : Function { /// - /// Updates the game score of the specified user in the game; for bots only + /// Data type for serialization /// - public class SetGameScore : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setGameScore"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setGameScore"; - /// - /// The chat to which the message with the game belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat to which the message with the game belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to edit the game message to include the current scoreboard - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_message")] - public bool EditMessage { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Pass true to edit the game message to include the current scoreboard + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_message")] + public bool EditMessage { get; set; } - /// - /// The new score - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("score")] - public int Score { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force")] - public bool Force { get; set; } - } + /// + /// The new score + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("score")] + public int Score { get; set; } /// - /// Updates the game score of the specified user in the game; for bots only + /// Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table /// - public static Task SetGameScoreAsync( - this IClient client, long chatId = default, long messageId = default, bool editMessage = default, long userId = default, int score = default, bool force = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("force")] + public bool Force { get; set; } + } + + /// + /// Updates the game score of the specified user in the game; for bots only + /// + public static Task SetGameScoreAsync( + this IClient client, long chatId = default, long messageId = default, bool editMessage = default, long userId = default, int score = default, bool force = default) + { + return client.ExecuteAsync(new SetGameScore { - return client.ExecuteAsync(new SetGameScore - { - ChatId = chatId, MessageId = messageId, EditMessage = editMessage, UserId = userId, Score = score, Force = force - }); - } + ChatId = chatId, MessageId = messageId, EditMessage = editMessage, UserId = userId, Score = score, Force = force + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetGiftCollectionName.cs b/TdLib.Api/Functions/SetGiftCollectionName.cs index c78d3d4f..4c7a3008 100644 --- a/TdLib.Api/Functions/SetGiftCollectionName.cs +++ b/TdLib.Api/Functions/SetGiftCollectionName.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes name of a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection /// - public static partial class TdApi + public class SetGiftCollectionName : Function { /// - /// Changes name of a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// Data type for serialization /// - public class SetGiftCollectionName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setGiftCollectionName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setGiftCollectionName"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user or the channel chat that owns the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("collection_id")] - public int CollectionId { get; set; } + /// + /// Identifier of the user or the channel chat that owns the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// New name of the collection; 1-12 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Identifier of the gift collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_id")] + public int CollectionId { get; set; } /// - /// Changes name of a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// New name of the collection; 1-12 characters /// - public static Task SetGiftCollectionNameAsync( - this IClient client, MessageSender ownerId = default, int collectionId = default, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Changes name of a gift collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection + /// + public static Task SetGiftCollectionNameAsync( + this IClient client, MessageSender ownerId = default, int collectionId = default, string name = default) + { + return client.ExecuteAsync(new SetGiftCollectionName { - return client.ExecuteAsync(new SetGiftCollectionName - { - OwnerId = ownerId, CollectionId = collectionId, Name = name - }); - } + OwnerId = ownerId, CollectionId = collectionId, Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetGiftResalePrice.cs b/TdLib.Api/Functions/SetGiftResalePrice.cs index 59b2371d..b9f3f697 100644 --- a/TdLib.Api/Functions/SetGiftResalePrice.cs +++ b/TdLib.Api/Functions/SetGiftResalePrice.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes resale price of a unique gift owned by the current user /// - public static partial class TdApi + public class SetGiftResalePrice : Function { /// - /// Changes resale price of a unique gift owned by the current user + /// Data type for serialization /// - public class SetGiftResalePrice : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setGiftResalePrice"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setGiftResalePrice"; - /// - /// Identifier of the unique gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new price for the unique gift; pass null to disallow gift resale. The current user will receive - /// getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or - /// getOption("gift_resale_gram_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } - } + /// + /// Identifier of the unique gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } /// - /// Changes resale price of a unique gift owned by the current user + /// The new price for the unique gift; pass null to disallow gift resale. The current user will receive + /// getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or + /// getOption("gift_resale_gram_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams /// - public static Task SetGiftResalePriceAsync( - this IClient client, string receivedGiftId = default, GiftResalePrice price = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } + } + + /// + /// Changes resale price of a unique gift owned by the current user + /// + public static Task SetGiftResalePriceAsync( + this IClient client, string receivedGiftId = default, GiftResalePrice price = default) + { + return client.ExecuteAsync(new SetGiftResalePrice { - return client.ExecuteAsync(new SetGiftResalePrice - { - ReceivedGiftId = receivedGiftId, Price = price - }); - } + ReceivedGiftId = receivedGiftId, Price = price + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetGiftSettings.cs b/TdLib.Api/Functions/SetGiftSettings.cs index c4f49403..2beb568c 100644 --- a/TdLib.Api/Functions/SetGiftSettings.cs +++ b/TdLib.Api/Functions/SetGiftSettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes settings for gift receiving for the current user /// - public static partial class TdApi + public class SetGiftSettings : Function { /// - /// Changes settings for gift receiving for the current user + /// Data type for serialization /// - public class SetGiftSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setGiftSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setGiftSettings"; - /// - /// The new settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public GiftSettings Settings { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes settings for gift receiving for the current user + /// The new settings /// - public static Task SetGiftSettingsAsync( - this IClient client, GiftSettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public GiftSettings Settings { get; set; } + } + + /// + /// Changes settings for gift receiving for the current user + /// + public static Task SetGiftSettingsAsync( + this IClient client, GiftSettings settings = default) + { + return client.ExecuteAsync(new SetGiftSettings { - return client.ExecuteAsync(new SetGiftSettings - { - Settings = settings - }); - } + Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetGroupCallPaidMessageStarCount.cs b/TdLib.Api/Functions/SetGroupCallPaidMessageStarCount.cs index 9377feb2..c1a7898f 100644 --- a/TdLib.Api/Functions/SetGroupCallPaidMessageStarCount.cs +++ b/TdLib.Api/Functions/SetGroupCallPaidMessageStarCount.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the minimum number of Telegram Stars that must be paid by general participant for each sent message to a live story call. Requires groupCall.can_be_managed right /// - public static partial class TdApi + public class SetGroupCallPaidMessageStarCount : Function { /// - /// Changes the minimum number of Telegram Stars that must be paid by general participant for each sent message to a live story call. Requires groupCall.can_be_managed right + /// Data type for serialization /// - public class SetGroupCallPaidMessageStarCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setGroupCallPaidMessageStarCount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setGroupCallPaidMessageStarCount"; - /// - /// Group call identifier; must be an identifier of a live story call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new minimum number of Telegram Stars; 0-getOption("paid_group_call_message_star_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// Group call identifier; must be an identifier of a live story call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Changes the minimum number of Telegram Stars that must be paid by general participant for each sent message to a live story call. Requires groupCall.can_be_managed right + /// The new minimum number of Telegram Stars; 0-getOption("paid_group_call_message_star_count_max") /// - public static Task SetGroupCallPaidMessageStarCountAsync( - this IClient client, int groupCallId = default, long paidMessageStarCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + } + + /// + /// Changes the minimum number of Telegram Stars that must be paid by general participant for each sent message to a live story call. Requires groupCall.can_be_managed right + /// + public static Task SetGroupCallPaidMessageStarCountAsync( + this IClient client, int groupCallId = default, long paidMessageStarCount = default) + { + return client.ExecuteAsync(new SetGroupCallPaidMessageStarCount { - return client.ExecuteAsync(new SetGroupCallPaidMessageStarCount - { - GroupCallId = groupCallId, PaidMessageStarCount = paidMessageStarCount - }); - } + GroupCallId = groupCallId, PaidMessageStarCount = paidMessageStarCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetGroupCallParticipantIsSpeaking.cs b/TdLib.Api/Functions/SetGroupCallParticipantIsSpeaking.cs index be24118d..728b69f8 100644 --- a/TdLib.Api/Functions/SetGroupCallParticipantIsSpeaking.cs +++ b/TdLib.Api/Functions/SetGroupCallParticipantIsSpeaking.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that speaking state of a participant of an active group call has changed. Returns identifier of the participant if it is found /// - public static partial class TdApi + public class SetGroupCallParticipantIsSpeaking : Function { /// - /// Informs TDLib that speaking state of a participant of an active group call has changed. Returns identifier of the participant if it is found + /// Data type for serialization /// - public class SetGroupCallParticipantIsSpeaking : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setGroupCallParticipantIsSpeaking"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setGroupCallParticipantIsSpeaking"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Group call participant's synchronization audio source identifier, or 0 for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio_source")] - public int AudioSource { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Pass true if the user is speaking - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_speaking")] - public bool IsSpeaking { get; set; } - } + /// + /// Group call participant's synchronization audio source identifier, or 0 for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio_source")] + public int AudioSource { get; set; } /// - /// Informs TDLib that speaking state of a participant of an active group call has changed. Returns identifier of the participant if it is found + /// Pass true if the user is speaking /// - public static Task SetGroupCallParticipantIsSpeakingAsync( - this IClient client, int groupCallId = default, int audioSource = default, bool isSpeaking = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_speaking")] + public bool IsSpeaking { get; set; } + } + + /// + /// Informs TDLib that speaking state of a participant of an active group call has changed. Returns identifier of the participant if it is found + /// + public static Task SetGroupCallParticipantIsSpeakingAsync( + this IClient client, int groupCallId = default, int audioSource = default, bool isSpeaking = default) + { + return client.ExecuteAsync(new SetGroupCallParticipantIsSpeaking { - return client.ExecuteAsync(new SetGroupCallParticipantIsSpeaking - { - GroupCallId = groupCallId, AudioSource = audioSource, IsSpeaking = isSpeaking - }); - } + GroupCallId = groupCallId, AudioSource = audioSource, IsSpeaking = isSpeaking + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetGroupCallParticipantVolumeLevel.cs b/TdLib.Api/Functions/SetGroupCallParticipantVolumeLevel.cs index 7dda22c5..4743bcbd 100644 --- a/TdLib.Api/Functions/SetGroupCallParticipantVolumeLevel.cs +++ b/TdLib.Api/Functions/SetGroupCallParticipantVolumeLevel.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes volume level of a participant of an active group call; not supported for live stories. If the current user can manage the group call or is the owner of the group call, + /// then the participant's volume level will be changed for all users with the default volume level /// - public static partial class TdApi + public class SetGroupCallParticipantVolumeLevel : Function { /// - /// Changes volume level of a participant of an active group call; not supported for live stories. If the current user can manage the group call or is the owner of the group call, - /// then the participant's volume level will be changed for all users with the default volume level + /// Data type for serialization /// - public class SetGroupCallParticipantVolumeLevel : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setGroupCallParticipantVolumeLevel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setGroupCallParticipantVolumeLevel"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Participant identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// New participant's volume level; 1-20000 in hundreds of percents - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("volume_level")] - public int VolumeLevel { get; set; } - } + /// + /// Participant identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } /// - /// Changes volume level of a participant of an active group call; not supported for live stories. If the current user can manage the group call or is the owner of the group call, - /// then the participant's volume level will be changed for all users with the default volume level + /// New participant's volume level; 1-20000 in hundreds of percents /// - public static Task SetGroupCallParticipantVolumeLevelAsync( - this IClient client, int groupCallId = default, MessageSender participantId = default, int volumeLevel = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("volume_level")] + public int VolumeLevel { get; set; } + } + + /// + /// Changes volume level of a participant of an active group call; not supported for live stories. If the current user can manage the group call or is the owner of the group call, + /// then the participant's volume level will be changed for all users with the default volume level + /// + public static Task SetGroupCallParticipantVolumeLevelAsync( + this IClient client, int groupCallId = default, MessageSender participantId = default, int volumeLevel = default) + { + return client.ExecuteAsync(new SetGroupCallParticipantVolumeLevel { - return client.ExecuteAsync(new SetGroupCallParticipantVolumeLevel - { - GroupCallId = groupCallId, ParticipantId = participantId, VolumeLevel = volumeLevel - }); - } + GroupCallId = groupCallId, ParticipantId = participantId, VolumeLevel = volumeLevel + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetInactiveSessionTtl.cs b/TdLib.Api/Functions/SetInactiveSessionTtl.cs index b93cf0f6..aaa3e599 100644 --- a/TdLib.Api/Functions/SetInactiveSessionTtl.cs +++ b/TdLib.Api/Functions/SetInactiveSessionTtl.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the period of inactivity after which sessions will automatically be terminated /// - public static partial class TdApi + public class SetInactiveSessionTtl : Function { /// - /// Changes the period of inactivity after which sessions will automatically be terminated + /// Data type for serialization /// - public class SetInactiveSessionTtl : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setInactiveSessionTtl"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setInactiveSessionTtl"; - /// - /// New number of days of inactivity before sessions will be automatically terminated; 1-366 days - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inactive_session_ttl_days")] - public int InactiveSessionTtlDays { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the period of inactivity after which sessions will automatically be terminated + /// New number of days of inactivity before sessions will be automatically terminated; 1-366 days /// - public static Task SetInactiveSessionTtlAsync( - this IClient client, int inactiveSessionTtlDays = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("inactive_session_ttl_days")] + public int InactiveSessionTtlDays { get; set; } + } + + /// + /// Changes the period of inactivity after which sessions will automatically be terminated + /// + public static Task SetInactiveSessionTtlAsync( + this IClient client, int inactiveSessionTtlDays = default) + { + return client.ExecuteAsync(new SetInactiveSessionTtl { - return client.ExecuteAsync(new SetInactiveSessionTtl - { - InactiveSessionTtlDays = inactiveSessionTtlDays - }); - } + InactiveSessionTtlDays = inactiveSessionTtlDays + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetInlineGameScore.cs b/TdLib.Api/Functions/SetInlineGameScore.cs index 5579d577..60055713 100644 --- a/TdLib.Api/Functions/SetInlineGameScore.cs +++ b/TdLib.Api/Functions/SetInlineGameScore.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Updates the game score of the specified user in a game; for bots only /// - public static partial class TdApi + public class SetInlineGameScore : Function { /// - /// Updates the game score of the specified user in a game; for bots only + /// Data type for serialization /// - public class SetInlineGameScore : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setInlineGameScore"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setInlineGameScore"; - /// - /// Inline message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to edit the game message to include the current scoreboard - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_message")] - public bool EditMessage { get; set; } + /// + /// Inline message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Pass true to edit the game message to include the current scoreboard + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_message")] + public bool EditMessage { get; set; } - /// - /// The new score - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("score")] - public int Score { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force")] - public bool Force { get; set; } - } + /// + /// The new score + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("score")] + public int Score { get; set; } /// - /// Updates the game score of the specified user in a game; for bots only + /// Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table /// - public static Task SetInlineGameScoreAsync( - this IClient client, string inlineMessageId = default, bool editMessage = default, long userId = default, int score = default, bool force = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("force")] + public bool Force { get; set; } + } + + /// + /// Updates the game score of the specified user in a game; for bots only + /// + public static Task SetInlineGameScoreAsync( + this IClient client, string inlineMessageId = default, bool editMessage = default, long userId = default, int score = default, bool force = default) + { + return client.ExecuteAsync(new SetInlineGameScore { - return client.ExecuteAsync(new SetInlineGameScore - { - InlineMessageId = inlineMessageId, EditMessage = editMessage, UserId = userId, Score = score, Force = force - }); - } + InlineMessageId = inlineMessageId, EditMessage = editMessage, UserId = userId, Score = score, Force = force + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetLiveStoryMessageSender.cs b/TdLib.Api/Functions/SetLiveStoryMessageSender.cs index 33d1f859..9b905445 100644 --- a/TdLib.Api/Functions/SetLiveStoryMessageSender.cs +++ b/TdLib.Api/Functions/SetLiveStoryMessageSender.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Selects a message sender to send messages in a live story call /// - public static partial class TdApi + public class SetLiveStoryMessageSender : Function { /// - /// Selects a message sender to send messages in a live story call + /// Data type for serialization /// - public class SetLiveStoryMessageSender : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setLiveStoryMessageSender"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setLiveStoryMessageSender"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New message sender for the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_sender_id")] - public MessageSender MessageSenderId { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Selects a message sender to send messages in a live story call + /// New message sender for the group call /// - public static Task SetLiveStoryMessageSenderAsync( - this IClient client, int groupCallId = default, MessageSender messageSenderId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_sender_id")] + public MessageSender MessageSenderId { get; set; } + } + + /// + /// Selects a message sender to send messages in a live story call + /// + public static Task SetLiveStoryMessageSenderAsync( + this IClient client, int groupCallId = default, MessageSender messageSenderId = default) + { + return client.ExecuteAsync(new SetLiveStoryMessageSender { - return client.ExecuteAsync(new SetLiveStoryMessageSender - { - GroupCallId = groupCallId, MessageSenderId = messageSenderId - }); - } + GroupCallId = groupCallId, MessageSenderId = messageSenderId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetLogStream.cs b/TdLib.Api/Functions/SetLogStream.cs index 952e4d92..c942c43b 100644 --- a/TdLib.Api/Functions/SetLogStream.cs +++ b/TdLib.Api/Functions/SetLogStream.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets new log stream for internal logging of TDLib. Can be called synchronously /// - public static partial class TdApi + public class SetLogStream : Function { /// - /// Sets new log stream for internal logging of TDLib. Can be called synchronously + /// Data type for serialization /// - public class SetLogStream : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setLogStream"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setLogStream"; - /// - /// New log stream - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("log_stream")] - public LogStream LogStream { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sets new log stream for internal logging of TDLib. Can be called synchronously + /// New log stream /// - public static Task SetLogStreamAsync( - this IClient client, LogStream logStream = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("log_stream")] + public LogStream LogStream { get; set; } + } + + /// + /// Sets new log stream for internal logging of TDLib. Can be called synchronously + /// + public static Task SetLogStreamAsync( + this IClient client, LogStream logStream = default) + { + return client.ExecuteAsync(new SetLogStream { - return client.ExecuteAsync(new SetLogStream - { - LogStream = logStream - }); - } + LogStream = logStream + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetLogTagVerbosityLevel.cs b/TdLib.Api/Functions/SetLogTagVerbosityLevel.cs index 93b95a0a..1cf29b02 100644 --- a/TdLib.Api/Functions/SetLogTagVerbosityLevel.cs +++ b/TdLib.Api/Functions/SetLogTagVerbosityLevel.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously /// - public static partial class TdApi + public class SetLogTagVerbosityLevel : Function { /// - /// Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously + /// Data type for serialization /// - public class SetLogTagVerbosityLevel : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setLogTagVerbosityLevel"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setLogTagVerbosityLevel"; - /// - /// Logging tag to change verbosity level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public string Tag { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New verbosity level; 1-1024 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_verbosity_level")] - public int NewVerbosityLevel { get; set; } - } + /// + /// Logging tag to change verbosity level + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public string Tag { get; set; } /// - /// Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously + /// New verbosity level; 1-1024 /// - public static Task SetLogTagVerbosityLevelAsync( - this IClient client, string tag = default, int newVerbosityLevel = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_verbosity_level")] + public int NewVerbosityLevel { get; set; } + } + + /// + /// Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously + /// + public static Task SetLogTagVerbosityLevelAsync( + this IClient client, string tag = default, int newVerbosityLevel = default) + { + return client.ExecuteAsync(new SetLogTagVerbosityLevel { - return client.ExecuteAsync(new SetLogTagVerbosityLevel - { - Tag = tag, NewVerbosityLevel = newVerbosityLevel - }); - } + Tag = tag, NewVerbosityLevel = newVerbosityLevel + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetLogVerbosityLevel.cs b/TdLib.Api/Functions/SetLogVerbosityLevel.cs index e115a4a4..0d7ce0d1 100644 --- a/TdLib.Api/Functions/SetLogVerbosityLevel.cs +++ b/TdLib.Api/Functions/SetLogVerbosityLevel.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the verbosity level of the internal logging of TDLib. Can be called synchronously /// - public static partial class TdApi + public class SetLogVerbosityLevel : Function { /// - /// Sets the verbosity level of the internal logging of TDLib. Can be called synchronously + /// Data type for serialization /// - public class SetLogVerbosityLevel : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setLogVerbosityLevel"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setLogVerbosityLevel"; - /// - /// New value of the verbosity level for logging. Value 0 corresponds to fatal errors, value 1 corresponds to errors, value 2 corresponds to warnings and debug warnings, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_verbosity_level")] - public int NewVerbosityLevel { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sets the verbosity level of the internal logging of TDLib. Can be called synchronously + /// New value of the verbosity level for logging. Value 0 corresponds to fatal errors, value 1 corresponds to errors, value 2 corresponds to warnings and debug warnings, /// - public static Task SetLogVerbosityLevelAsync( - this IClient client, int newVerbosityLevel = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_verbosity_level")] + public int NewVerbosityLevel { get; set; } + } + + /// + /// Sets the verbosity level of the internal logging of TDLib. Can be called synchronously + /// + public static Task SetLogVerbosityLevelAsync( + this IClient client, int newVerbosityLevel = default) + { + return client.ExecuteAsync(new SetLogVerbosityLevel { - return client.ExecuteAsync(new SetLogVerbosityLevel - { - NewVerbosityLevel = newVerbosityLevel - }); - } + NewVerbosityLevel = newVerbosityLevel + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetLoginEmailAddress.cs b/TdLib.Api/Functions/SetLoginEmailAddress.cs index 4373c23b..6e43fa7b 100644 --- a/TdLib.Api/Functions/SetLoginEmailAddress.cs +++ b/TdLib.Api/Functions/SetLoginEmailAddress.cs @@ -3,53 +3,55 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty, + /// or the user received suggestedActionSetLoginEmailAddress and isLoginEmailAddressRequired succeeds. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. + /// To use Apple ID/Google ID instead of an email address, call checkLoginEmailAddressCode directly /// - public static partial class TdApi + public class SetLoginEmailAddress : Function { /// - /// Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty, - /// or the user received suggestedActionSetLoginEmailAddress and isLoginEmailAddressRequired succeeds. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. - /// To use Apple ID/Google ID instead of an email address, call checkLoginEmailAddressCode directly + /// Data type for serialization /// - public class SetLoginEmailAddress : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setLoginEmailAddress"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setLoginEmailAddress"; - /// - /// New login email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_login_email_address")] - public string NewLoginEmailAddress { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty, - /// or the user received suggestedActionSetLoginEmailAddress and isLoginEmailAddressRequired succeeds. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. - /// To use Apple ID/Google ID instead of an email address, call checkLoginEmailAddressCode directly + /// New login email address /// - public static Task SetLoginEmailAddressAsync( - this IClient client, string newLoginEmailAddress = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_login_email_address")] + public string NewLoginEmailAddress { get; set; } + } + + /// + /// Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty, + /// or the user received suggestedActionSetLoginEmailAddress and isLoginEmailAddressRequired succeeds. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. + /// To use Apple ID/Google ID instead of an email address, call checkLoginEmailAddressCode directly + /// + public static Task SetLoginEmailAddressAsync( + this IClient client, string newLoginEmailAddress = default) + { + return client.ExecuteAsync(new SetLoginEmailAddress { - return client.ExecuteAsync(new SetLoginEmailAddress - { - NewLoginEmailAddress = newLoginEmailAddress - }); - } + NewLoginEmailAddress = newLoginEmailAddress + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetMainProfileTab.cs b/TdLib.Api/Functions/SetMainProfileTab.cs index 5c1abc4c..88dbc749 100644 --- a/TdLib.Api/Functions/SetMainProfileTab.cs +++ b/TdLib.Api/Functions/SetMainProfileTab.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the main profile tab of the current user /// - public static partial class TdApi + public class SetMainProfileTab : Function { /// - /// Changes the main profile tab of the current user + /// Data type for serialization /// - public class SetMainProfileTab : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setMainProfileTab"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setMainProfileTab"; - /// - /// The new value of the main profile tab - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_profile_tab")] - public ProfileTab MainProfileTab { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the main profile tab of the current user + /// The new value of the main profile tab /// - public static Task SetMainProfileTabAsync( - this IClient client, ProfileTab mainProfileTab = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("main_profile_tab")] + public ProfileTab MainProfileTab { get; set; } + } + + /// + /// Changes the main profile tab of the current user + /// + public static Task SetMainProfileTabAsync( + this IClient client, ProfileTab mainProfileTab = default) + { + return client.ExecuteAsync(new SetMainProfileTab { - return client.ExecuteAsync(new SetMainProfileTab - { - MainProfileTab = mainProfileTab - }); - } + MainProfileTab = mainProfileTab + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetManagedBotAccessSettings.cs b/TdLib.Api/Functions/SetManagedBotAccessSettings.cs index ef987405..8ee1ecd9 100644 --- a/TdLib.Api/Functions/SetManagedBotAccessSettings.cs +++ b/TdLib.Api/Functions/SetManagedBotAccessSettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets access settings of a managed bot; for bots only /// - public static partial class TdApi + public class SetManagedBotAccessSettings : Function { /// - /// Sets access settings of a managed bot; for bots only + /// Data type for serialization /// - public class SetManagedBotAccessSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setManagedBotAccessSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setManagedBotAccessSettings"; - /// - /// Identifier of the managed bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New access settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public BotAccessSettings Settings { get; set; } - } + /// + /// Identifier of the managed bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Sets access settings of a managed bot; for bots only + /// New access settings /// - public static Task SetManagedBotAccessSettingsAsync( - this IClient client, long botUserId = default, BotAccessSettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public BotAccessSettings Settings { get; set; } + } + + /// + /// Sets access settings of a managed bot; for bots only + /// + public static Task SetManagedBotAccessSettingsAsync( + this IClient client, long botUserId = default, BotAccessSettings settings = default) + { + return client.ExecuteAsync(new SetManagedBotAccessSettings { - return client.ExecuteAsync(new SetManagedBotAccessSettings - { - BotUserId = botUserId, Settings = settings - }); - } + BotUserId = botUserId, Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetMenuButton.cs b/TdLib.Api/Functions/SetMenuButton.cs index 94339cf4..7da235c6 100644 --- a/TdLib.Api/Functions/SetMenuButton.cs +++ b/TdLib.Api/Functions/SetMenuButton.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets menu button for the given user or for all users; for bots only /// - public static partial class TdApi + public class SetMenuButton : Function { /// - /// Sets menu button for the given user or for all users; for bots only + /// Data type for serialization /// - public class SetMenuButton : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setMenuButton"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setMenuButton"; - /// - /// Identifier of the user or 0 to set menu button for all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New menu button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("menu_button")] - public BotMenuButton MenuButton { get; set; } - } + /// + /// Identifier of the user or 0 to set menu button for all users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Sets menu button for the given user or for all users; for bots only + /// New menu button /// - public static Task SetMenuButtonAsync( - this IClient client, long userId = default, BotMenuButton menuButton = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("menu_button")] + public BotMenuButton MenuButton { get; set; } + } + + /// + /// Sets menu button for the given user or for all users; for bots only + /// + public static Task SetMenuButtonAsync( + this IClient client, long userId = default, BotMenuButton menuButton = default) + { + return client.ExecuteAsync(new SetMenuButton { - return client.ExecuteAsync(new SetMenuButton - { - UserId = userId, MenuButton = menuButton - }); - } + UserId = userId, MenuButton = menuButton + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetMessageFactCheck.cs b/TdLib.Api/Functions/SetMessageFactCheck.cs index 4214af29..02a7d972 100644 --- a/TdLib.Api/Functions/SetMessageFactCheck.cs +++ b/TdLib.Api/Functions/SetMessageFactCheck.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true /// - public static partial class TdApi + public class SetMessageFactCheck : Function { /// - /// Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true + /// Data type for serialization /// - public class SetMessageFactCheck : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setMessageFactCheck"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setMessageFactCheck"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The channel chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The channel chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it. Only Bold, Italic, and TextUrl entities with https://t.me/ links are supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true + /// New text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it. Only Bold, Italic, and TextUrl entities with https://t.me/ links are supported /// - public static Task SetMessageFactCheckAsync( - this IClient client, long chatId = default, long messageId = default, FormattedText text = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + } + + /// + /// Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true + /// + public static Task SetMessageFactCheckAsync( + this IClient client, long chatId = default, long messageId = default, FormattedText text = default) + { + return client.ExecuteAsync(new SetMessageFactCheck { - return client.ExecuteAsync(new SetMessageFactCheck - { - ChatId = chatId, MessageId = messageId, Text = text - }); - } + ChatId = chatId, MessageId = messageId, Text = text + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetMessageReactions.cs b/TdLib.Api/Functions/SetMessageReactions.cs index c59f6a10..1ff98c1d 100644 --- a/TdLib.Api/Functions/SetMessageReactions.cs +++ b/TdLib.Api/Functions/SetMessageReactions.cs @@ -3,69 +3,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets reactions on a message; for bots only /// - public static partial class TdApi + public class SetMessageReactions : Function { /// - /// Sets reactions on a message; for bots only + /// Data type for serialization /// - public class SetMessageReactions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setMessageReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setMessageReactions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Types of the reaction to set; pass an empty list to remove the reactions - /// - [JsonProperty("reaction_types", ItemConverterType = typeof(Converter))] - public ReactionType[] ReactionTypes { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Pass true if the reactions are added with a big animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_big")] - public bool IsBig { get; set; } - } + /// + /// Types of the reaction to set; pass an empty list to remove the reactions + /// + [JsonProperty("reaction_types", ItemConverterType = typeof(Converter))] + public ReactionType[] ReactionTypes { get; set; } /// - /// Sets reactions on a message; for bots only + /// Pass true if the reactions are added with a big animation /// - public static Task SetMessageReactionsAsync( - this IClient client, long chatId = default, long messageId = default, ReactionType[] reactionTypes = default, bool isBig = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_big")] + public bool IsBig { get; set; } + } + + /// + /// Sets reactions on a message; for bots only + /// + public static Task SetMessageReactionsAsync( + this IClient client, long chatId = default, long messageId = default, ReactionType[] reactionTypes = default, bool isBig = default) + { + return client.ExecuteAsync(new SetMessageReactions { - return client.ExecuteAsync(new SetMessageReactions - { - ChatId = chatId, MessageId = messageId, ReactionTypes = reactionTypes, IsBig = isBig - }); - } + ChatId = chatId, MessageId = messageId, ReactionTypes = reactionTypes, IsBig = isBig + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetMessageSenderBlockList.cs b/TdLib.Api/Functions/SetMessageSenderBlockList.cs index d434167f..5da6efec 100644 --- a/TdLib.Api/Functions/SetMessageSenderBlockList.cs +++ b/TdLib.Api/Functions/SetMessageSenderBlockList.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked /// - public static partial class TdApi + public class SetMessageSenderBlockList : Function { /// - /// Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked + /// Data type for serialization /// - public class SetMessageSenderBlockList : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setMessageSenderBlockList"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setMessageSenderBlockList"; - /// - /// Identifier of a message sender to block/unblock - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New block list for the message sender; pass null to unblock the message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("block_list")] - public BlockList BlockList { get; set; } - } + /// + /// Identifier of a message sender to block/unblock + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } /// - /// Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked + /// New block list for the message sender; pass null to unblock the message sender /// - public static Task SetMessageSenderBlockListAsync( - this IClient client, MessageSender senderId = default, BlockList blockList = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("block_list")] + public BlockList BlockList { get; set; } + } + + /// + /// Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked + /// + public static Task SetMessageSenderBlockListAsync( + this IClient client, MessageSender senderId = default, BlockList blockList = default) + { + return client.ExecuteAsync(new SetMessageSenderBlockList { - return client.ExecuteAsync(new SetMessageSenderBlockList - { - SenderId = senderId, BlockList = blockList - }); - } + SenderId = senderId, BlockList = blockList + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetMessageSenderBotVerification.cs b/TdLib.Api/Functions/SetMessageSenderBotVerification.cs index 2f7b40ae..29aa217d 100644 --- a/TdLib.Api/Functions/SetMessageSenderBotVerification.cs +++ b/TdLib.Api/Functions/SetMessageSenderBotVerification.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the verification status of a user or a chat by an owned bot /// - public static partial class TdApi + public class SetMessageSenderBotVerification : Function { /// - /// Changes the verification status of a user or a chat by an owned bot + /// Data type for serialization /// - public class SetMessageSenderBotVerification : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setMessageSenderBotVerification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setMessageSenderBotVerification"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the owned bot, which will verify the user or the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the supergroup or channel chat, which will be verified by the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verified_id")] - public MessageSender VerifiedId { get; set; } + /// + /// Identifier of the owned bot, which will verify the user or the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max"). - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("custom_description")] - public string CustomDescription { get; set; } - } + /// + /// Identifier of the user or the supergroup or channel chat, which will be verified by the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verified_id")] + public MessageSender VerifiedId { get; set; } /// - /// Changes the verification status of a user or a chat by an owned bot + /// Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max") characters. Only TextUrl entities are supported. /// - public static Task SetMessageSenderBotVerificationAsync( - this IClient client, long botUserId = default, MessageSender verifiedId = default, string customDescription = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("custom_description")] + public FormattedText CustomDescription { get; set; } + } + + /// + /// Changes the verification status of a user or a chat by an owned bot + /// + public static Task SetMessageSenderBotVerificationAsync( + this IClient client, long botUserId = default, MessageSender verifiedId = default, FormattedText customDescription = default) + { + return client.ExecuteAsync(new SetMessageSenderBotVerification { - return client.ExecuteAsync(new SetMessageSenderBotVerification - { - BotUserId = botUserId, VerifiedId = verifiedId, CustomDescription = customDescription - }); - } + BotUserId = botUserId, VerifiedId = verifiedId, CustomDescription = customDescription + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetName.cs b/TdLib.Api/Functions/SetName.cs index da6fd20d..60235469 100644 --- a/TdLib.Api/Functions/SetName.cs +++ b/TdLib.Api/Functions/SetName.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the first and last name of the current user /// - public static partial class TdApi + public class SetName : Function { /// - /// Changes the first and last name of the current user + /// Data type for serialization /// - public class SetName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setName"; - /// - /// The new value of the first name for the current user; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of the optional last name for the current user; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } - } + /// + /// The new value of the first name for the current user; 1-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } /// - /// Changes the first and last name of the current user + /// The new value of the optional last name for the current user; 0-64 characters /// - public static Task SetNameAsync( - this IClient client, string firstName = default, string lastName = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } + } + + /// + /// Changes the first and last name of the current user + /// + public static Task SetNameAsync( + this IClient client, string firstName = default, string lastName = default) + { + return client.ExecuteAsync(new SetName { - return client.ExecuteAsync(new SetName - { - FirstName = firstName, LastName = lastName - }); - } + FirstName = firstName, LastName = lastName + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetNetworkType.cs b/TdLib.Api/Functions/SetNetworkType.cs index 90805371..32d89596 100644 --- a/TdLib.Api/Functions/SetNetworkType.cs +++ b/TdLib.Api/Functions/SetNetworkType.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, + /// so it must be called whenever the network is changed, even if the network type remains the same. Network type is used to check whether the library can use the network at all and also for collecting detailed network data usage statistics /// - public static partial class TdApi + public class SetNetworkType : Function { /// - /// Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, - /// so it must be called whenever the network is changed, even if the network type remains the same. Network type is used to check whether the library can use the network at all and also for collecting detailed network data usage statistics + /// Data type for serialization /// - public class SetNetworkType : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setNetworkType"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setNetworkType"; - /// - /// The new network type; pass null to set network type to networkTypeOther - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public NetworkType Type { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, - /// so it must be called whenever the network is changed, even if the network type remains the same. Network type is used to check whether the library can use the network at all and also for collecting detailed network data usage statistics + /// The new network type; pass null to set network type to networkTypeOther /// - public static Task SetNetworkTypeAsync( - this IClient client, NetworkType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public NetworkType Type { get; set; } + } + + /// + /// Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, + /// so it must be called whenever the network is changed, even if the network type remains the same. Network type is used to check whether the library can use the network at all and also for collecting detailed network data usage statistics + /// + public static Task SetNetworkTypeAsync( + this IClient client, NetworkType type = default) + { + return client.ExecuteAsync(new SetNetworkType { - return client.ExecuteAsync(new SetNetworkType - { - Type = type - }); - } + Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetNewChatPrivacySettings.cs b/TdLib.Api/Functions/SetNewChatPrivacySettings.cs index d6dc9619..009aca8d 100644 --- a/TdLib.Api/Functions/SetNewChatPrivacySettings.cs +++ b/TdLib.Api/Functions/SetNewChatPrivacySettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes privacy settings for new chat creation; can be used only if getOption("can_set_new_chat_privacy_settings") /// - public static partial class TdApi + public class SetNewChatPrivacySettings : Function { /// - /// Changes privacy settings for new chat creation; can be used only if getOption("can_set_new_chat_privacy_settings") + /// Data type for serialization /// - public class SetNewChatPrivacySettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setNewChatPrivacySettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setNewChatPrivacySettings"; - /// - /// New settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public NewChatPrivacySettings Settings { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes privacy settings for new chat creation; can be used only if getOption("can_set_new_chat_privacy_settings") + /// New settings /// - public static Task SetNewChatPrivacySettingsAsync( - this IClient client, NewChatPrivacySettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public NewChatPrivacySettings Settings { get; set; } + } + + /// + /// Changes privacy settings for new chat creation; can be used only if getOption("can_set_new_chat_privacy_settings") + /// + public static Task SetNewChatPrivacySettingsAsync( + this IClient client, NewChatPrivacySettings settings = default) + { + return client.ExecuteAsync(new SetNewChatPrivacySettings { - return client.ExecuteAsync(new SetNewChatPrivacySettings - { - Settings = settings - }); - } + Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetOption.cs b/TdLib.Api/Functions/SetOption.cs index 980dafd5..d2741f07 100644 --- a/TdLib.Api/Functions/SetOption.cs +++ b/TdLib.Api/Functions/SetOption.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization /// - public static partial class TdApi + public class SetOption : Function { /// - /// Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization + /// Data type for serialization /// - public class SetOption : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setOption"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setOption"; - /// - /// The name of the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of the option; pass null to reset option value to a default value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public OptionValue Value { get; set; } - } + /// + /// The name of the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization + /// The new value of the option; pass null to reset option value to a default value /// - public static Task SetOptionAsync( - this IClient client, string name = default, OptionValue value = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public OptionValue Value { get; set; } + } + + /// + /// Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization + /// + public static Task SetOptionAsync( + this IClient client, string name = default, OptionValue value = default) + { + return client.ExecuteAsync(new SetOption { - return client.ExecuteAsync(new SetOption - { - Name = name, Value = value - }); - } + Name = name, Value = value + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPaidMessageReactionType.cs b/TdLib.Api/Functions/SetPaidMessageReactionType.cs index 461019be..e7f1c31e 100644 --- a/TdLib.Api/Functions/SetPaidMessageReactionType.cs +++ b/TdLib.Api/Functions/SetPaidMessageReactionType.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes type of paid message reaction of the current user on a message. The message must have paid reaction added by the current user /// - public static partial class TdApi + public class SetPaidMessageReactionType : Function { /// - /// Changes type of paid message reaction of the current user on a message. The message must have paid reaction added by the current user + /// Data type for serialization /// - public class SetPaidMessageReactionType : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPaidMessageReactionType"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPaidMessageReactionType"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New type of the paid reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PaidReactionType Type { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Changes type of paid message reaction of the current user on a message. The message must have paid reaction added by the current user + /// New type of the paid reaction /// - public static Task SetPaidMessageReactionTypeAsync( - this IClient client, long chatId = default, long messageId = default, PaidReactionType type = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PaidReactionType Type { get; set; } + } + + /// + /// Changes type of paid message reaction of the current user on a message. The message must have paid reaction added by the current user + /// + public static Task SetPaidMessageReactionTypeAsync( + this IClient client, long chatId = default, long messageId = default, PaidReactionType type = default) + { + return client.ExecuteAsync(new SetPaidMessageReactionType { - return client.ExecuteAsync(new SetPaidMessageReactionType - { - ChatId = chatId, MessageId = messageId, Type = type - }); - } + ChatId = chatId, MessageId = messageId, Type = type + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPassportElement.cs b/TdLib.Api/Functions/SetPassportElement.cs index 719c934a..004a9156 100644 --- a/TdLib.Api/Functions/SetPassportElement.cs +++ b/TdLib.Api/Functions/SetPassportElement.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or "EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first /// - public static partial class TdApi + public class SetPassportElement : Function { /// - /// Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or "EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first + /// Data type for serialization /// - public class SetPassportElement : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPassportElement"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPassportElement"; - /// - /// Input Telegram Passport element - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("element")] - public InputPassportElement Element { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Input Telegram Passport element + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("element")] + public InputPassportElement Element { get; set; } /// - /// Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or "EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first + /// The 2-step verification password of the current user /// - public static Task SetPassportElementAsync( - this IClient client, InputPassportElement element = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or "EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first + /// + public static Task SetPassportElementAsync( + this IClient client, InputPassportElement element = default, string password = default) + { + return client.ExecuteAsync(new SetPassportElement { - return client.ExecuteAsync(new SetPassportElement - { - Element = element, Password = password - }); - } + Element = element, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPassportElementErrors.cs b/TdLib.Api/Functions/SetPassportElementErrors.cs index f02406d8..659c1e7a 100644 --- a/TdLib.Api/Functions/SetPassportElementErrors.cs +++ b/TdLib.Api/Functions/SetPassportElementErrors.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed /// - public static partial class TdApi + public class SetPassportElementErrors : Function { /// - /// Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed + /// Data type for serialization /// - public class SetPassportElementErrors : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPassportElementErrors"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPassportElementErrors"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The errors - /// - [JsonProperty("errors", ItemConverterType = typeof(Converter))] - public InputPassportElementError[] Errors { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed + /// The errors /// - public static Task SetPassportElementErrorsAsync( - this IClient client, long userId = default, InputPassportElementError[] errors = default) + [JsonProperty("errors", ItemConverterType = typeof(Converter))] + public InputPassportElementError[] Errors { get; set; } + } + + /// + /// Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed + /// + public static Task SetPassportElementErrorsAsync( + this IClient client, long userId = default, InputPassportElementError[] errors = default) + { + return client.ExecuteAsync(new SetPassportElementErrors { - return client.ExecuteAsync(new SetPassportElementErrors - { - UserId = userId, Errors = errors - }); - } + UserId = userId, Errors = errors + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPassword.cs b/TdLib.Api/Functions/SetPassword.cs index a0b32a70..d03ef9fc 100644 --- a/TdLib.Api/Functions/SetPassword.cs +++ b/TdLib.Api/Functions/SetPassword.cs @@ -3,77 +3,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed /// - public static partial class TdApi + public class SetPassword : Function { /// - /// Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed + /// Data type for serialization /// - public class SetPassword : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPassword"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPassword"; - /// - /// Previous 2-step verification password of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_password")] - public string OldPassword { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New 2-step verification password of the user; may be empty to remove the password - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_password")] - public string NewPassword { get; set; } + /// + /// Previous 2-step verification password of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_password")] + public string OldPassword { get; set; } - /// - /// New password hint; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_hint")] - public string NewHint { get; set; } + /// + /// New 2-step verification password of the user; may be empty to remove the password + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_password")] + public string NewPassword { get; set; } - /// - /// Pass true to change also the recovery email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("set_recovery_email_address")] - public bool SetRecoveryEmailAddress { get; set; } + /// + /// New password hint; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_hint")] + public string NewHint { get; set; } - /// - /// New recovery email address; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_recovery_email_address")] - public string NewRecoveryEmailAddress { get; set; } - } + /// + /// Pass true to change also the recovery email address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("set_recovery_email_address")] + public bool SetRecoveryEmailAddress { get; set; } /// - /// Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed + /// New recovery email address; may be empty /// - public static Task SetPasswordAsync( - this IClient client, string oldPassword = default, string newPassword = default, string newHint = default, bool setRecoveryEmailAddress = default, string newRecoveryEmailAddress = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_recovery_email_address")] + public string NewRecoveryEmailAddress { get; set; } + } + + /// + /// Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed + /// + public static Task SetPasswordAsync( + this IClient client, string oldPassword = default, string newPassword = default, string newHint = default, bool setRecoveryEmailAddress = default, string newRecoveryEmailAddress = default) + { + return client.ExecuteAsync(new SetPassword { - return client.ExecuteAsync(new SetPassword - { - OldPassword = oldPassword, NewPassword = newPassword, NewHint = newHint, SetRecoveryEmailAddress = setRecoveryEmailAddress, NewRecoveryEmailAddress = newRecoveryEmailAddress - }); - } + OldPassword = oldPassword, NewPassword = newPassword, NewHint = newHint, SetRecoveryEmailAddress = setRecoveryEmailAddress, NewRecoveryEmailAddress = newRecoveryEmailAddress + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPersonalChat.cs b/TdLib.Api/Functions/SetPersonalChat.cs index 2ec69e38..972a01d2 100644 --- a/TdLib.Api/Functions/SetPersonalChat.cs +++ b/TdLib.Api/Functions/SetPersonalChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the personal chat of the current user /// - public static partial class TdApi + public class SetPersonalChat : Function { /// - /// Changes the personal chat of the current user + /// Data type for serialization /// - public class SetPersonalChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPersonalChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPersonalChat"; - /// - /// Identifier of the new personal chat; pass 0 to remove the chat. Use getSuitablePersonalChats to get suitable chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the personal chat of the current user + /// Identifier of the new personal chat; pass 0 to remove the chat. Use getSuitablePersonalChats to get suitable chats /// - public static Task SetPersonalChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Changes the personal chat of the current user + /// + public static Task SetPersonalChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new SetPersonalChat { - return client.ExecuteAsync(new SetPersonalChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPinnedChats.cs b/TdLib.Api/Functions/SetPinnedChats.cs index bc30d651..2e7d98f8 100644 --- a/TdLib.Api/Functions/SetPinnedChats.cs +++ b/TdLib.Api/Functions/SetPinnedChats.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the order of pinned chats /// - public static partial class TdApi + public class SetPinnedChats : Function { /// - /// Changes the order of pinned chats + /// Data type for serialization /// - public class SetPinnedChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPinnedChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPinnedChats"; - /// - /// Chat list in which to change the order of pinned chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of pinned chats - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// Chat list in which to change the order of pinned chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } /// - /// Changes the order of pinned chats + /// The new list of pinned chats /// - public static Task SetPinnedChatsAsync( - this IClient client, ChatList chatList = default, long[] chatIds = default) + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } + } + + /// + /// Changes the order of pinned chats + /// + public static Task SetPinnedChatsAsync( + this IClient client, ChatList chatList = default, long[] chatIds = default) + { + return client.ExecuteAsync(new SetPinnedChats { - return client.ExecuteAsync(new SetPinnedChats - { - ChatList = chatList, ChatIds = chatIds - }); - } + ChatList = chatList, ChatIds = chatIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPinnedForumTopics.cs b/TdLib.Api/Functions/SetPinnedForumTopics.cs index ab20fc0f..543ca359 100644 --- a/TdLib.Api/Functions/SetPinnedForumTopics.cs +++ b/TdLib.Api/Functions/SetPinnedForumTopics.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the order of pinned topics in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup /// - public static partial class TdApi + public class SetPinnedForumTopics : Function { /// - /// Changes the order of pinned topics in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup + /// Data type for serialization /// - public class SetPinnedForumTopics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPinnedForumTopics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPinnedForumTopics"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of identifiers of the pinned forum topics - /// - [JsonProperty("forum_topic_ids", ItemConverterType = typeof(Converter))] - public int[] ForumTopicIds { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the order of pinned topics in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup + /// The new list of identifiers of the pinned forum topics /// - public static Task SetPinnedForumTopicsAsync( - this IClient client, long chatId = default, int[] forumTopicIds = default) + [JsonProperty("forum_topic_ids", ItemConverterType = typeof(Converter))] + public int[] ForumTopicIds { get; set; } + } + + /// + /// Changes the order of pinned topics in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup + /// + public static Task SetPinnedForumTopicsAsync( + this IClient client, long chatId = default, int[] forumTopicIds = default) + { + return client.ExecuteAsync(new SetPinnedForumTopics { - return client.ExecuteAsync(new SetPinnedForumTopics - { - ChatId = chatId, ForumTopicIds = forumTopicIds - }); - } + ChatId = chatId, ForumTopicIds = forumTopicIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPinnedGifts.cs b/TdLib.Api/Functions/SetPinnedGifts.cs index 9cc93f56..137ca728 100644 --- a/TdLib.Api/Functions/SetPinnedGifts.cs +++ b/TdLib.Api/Functions/SetPinnedGifts.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the list of pinned gifts on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat /// - public static partial class TdApi + public class SetPinnedGifts : Function { /// - /// Changes the list of pinned gifts on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat + /// Data type for serialization /// - public class SetPinnedGifts : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPinnedGifts"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPinnedGifts"; - /// - /// Identifier of the user or the channel chat that received the gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New list of pinned gifts. All gifts must be upgraded and saved on the profile page first. There can be up to getOption("pinned_gift_count_max") pinned gifts - /// - [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] - public string[] ReceivedGiftIds { get; set; } - } + /// + /// Identifier of the user or the channel chat that received the gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } /// - /// Changes the list of pinned gifts on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat + /// New list of pinned gifts. All gifts must be upgraded and saved on the profile page first. There can be up to getOption("pinned_gift_count_max") pinned gifts /// - public static Task SetPinnedGiftsAsync( - this IClient client, MessageSender ownerId = default, string[] receivedGiftIds = default) + [JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))] + public string[] ReceivedGiftIds { get; set; } + } + + /// + /// Changes the list of pinned gifts on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat + /// + public static Task SetPinnedGiftsAsync( + this IClient client, MessageSender ownerId = default, string[] receivedGiftIds = default) + { + return client.ExecuteAsync(new SetPinnedGifts { - return client.ExecuteAsync(new SetPinnedGifts - { - OwnerId = ownerId, ReceivedGiftIds = receivedGiftIds - }); - } + OwnerId = ownerId, ReceivedGiftIds = receivedGiftIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPinnedSavedMessagesTopics.cs b/TdLib.Api/Functions/SetPinnedSavedMessagesTopics.cs index 17e64cdc..d92869de 100644 --- a/TdLib.Api/Functions/SetPinnedSavedMessagesTopics.cs +++ b/TdLib.Api/Functions/SetPinnedSavedMessagesTopics.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the order of pinned Saved Messages topics /// - public static partial class TdApi + public class SetPinnedSavedMessagesTopics : Function { /// - /// Changes the order of pinned Saved Messages topics + /// Data type for serialization /// - public class SetPinnedSavedMessagesTopics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPinnedSavedMessagesTopics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPinnedSavedMessagesTopics"; - /// - /// Identifiers of the new pinned Saved Messages topics - /// - [JsonProperty("saved_messages_topic_ids", ItemConverterType = typeof(Converter))] - public long[] SavedMessagesTopicIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the order of pinned Saved Messages topics + /// Identifiers of the new pinned Saved Messages topics /// - public static Task SetPinnedSavedMessagesTopicsAsync( - this IClient client, long[] savedMessagesTopicIds = default) + [JsonProperty("saved_messages_topic_ids", ItemConverterType = typeof(Converter))] + public long[] SavedMessagesTopicIds { get; set; } + } + + /// + /// Changes the order of pinned Saved Messages topics + /// + public static Task SetPinnedSavedMessagesTopicsAsync( + this IClient client, long[] savedMessagesTopicIds = default) + { + return client.ExecuteAsync(new SetPinnedSavedMessagesTopics { - return client.ExecuteAsync(new SetPinnedSavedMessagesTopics - { - SavedMessagesTopicIds = savedMessagesTopicIds - }); - } + SavedMessagesTopicIds = savedMessagesTopicIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetPollAnswer.cs b/TdLib.Api/Functions/SetPollAnswer.cs index 2ebebc51..8c0e94e2 100644 --- a/TdLib.Api/Functions/SetPollAnswer.cs +++ b/TdLib.Api/Functions/SetPollAnswer.cs @@ -3,62 +3,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the user answer to a poll /// - public static partial class TdApi + public class SetPollAnswer : Function { /// - /// Changes the user answer to a poll + /// Data type for serialization /// - public class SetPollAnswer : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setPollAnswer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setPollAnswer"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the poll belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the poll belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// 0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers - /// - [JsonProperty("option_ids", ItemConverterType = typeof(Converter))] - public int[] OptionIds { get; set; } - } + /// + /// Identifier of the message containing the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Changes the user answer to a poll + /// 0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers /// - public static Task SetPollAnswerAsync( - this IClient client, long chatId = default, long messageId = default, int[] optionIds = default) + [JsonProperty("option_ids", ItemConverterType = typeof(Converter))] + public int[] OptionIds { get; set; } + } + + /// + /// Changes the user answer to a poll + /// + public static Task SetPollAnswerAsync( + this IClient client, long chatId = default, long messageId = default, int[] optionIds = default) + { + return client.ExecuteAsync(new SetPollAnswer { - return client.ExecuteAsync(new SetPollAnswer - { - ChatId = chatId, MessageId = messageId, OptionIds = optionIds - }); - } + ChatId = chatId, MessageId = messageId, OptionIds = optionIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetProfileAccentColor.cs b/TdLib.Api/Functions/SetProfileAccentColor.cs index 8d06ae06..032e7c55 100644 --- a/TdLib.Api/Functions/SetProfileAccentColor.cs +++ b/TdLib.Api/Functions/SetProfileAccentColor.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only /// - public static partial class TdApi + public class SetProfileAccentColor : Function { /// - /// Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only + /// Data type for serialization /// - public class SetProfileAccentColor : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setProfileAccentColor"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setProfileAccentColor"; - /// - /// Identifier of the accent color to use for profile; pass -1 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("profile_accent_color_id")] - public int ProfileAccentColorId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a custom emoji to be shown on the user's profile photo background; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("profile_background_custom_emoji_id")] - public long ProfileBackgroundCustomEmojiId { get; set; } - } + /// + /// Identifier of the accent color to use for profile; pass -1 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("profile_accent_color_id")] + public int ProfileAccentColorId { get; set; } /// - /// Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only + /// Identifier of a custom emoji to be shown on the user's profile photo background; 0 if none /// - public static Task SetProfileAccentColorAsync( - this IClient client, int profileAccentColorId = default, long profileBackgroundCustomEmojiId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("profile_background_custom_emoji_id")] + public long ProfileBackgroundCustomEmojiId { get; set; } + } + + /// + /// Changes accent color and background custom emoji for profile of the current user; for Telegram Premium users only + /// + public static Task SetProfileAccentColorAsync( + this IClient client, int profileAccentColorId = default, long profileBackgroundCustomEmojiId = default) + { + return client.ExecuteAsync(new SetProfileAccentColor { - return client.ExecuteAsync(new SetProfileAccentColor - { - ProfileAccentColorId = profileAccentColorId, ProfileBackgroundCustomEmojiId = profileBackgroundCustomEmojiId - }); - } + ProfileAccentColorId = profileAccentColorId, ProfileBackgroundCustomEmojiId = profileBackgroundCustomEmojiId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetProfileAudioPosition.cs b/TdLib.Api/Functions/SetProfileAudioPosition.cs index 39dcb133..6aee26a6 100644 --- a/TdLib.Api/Functions/SetProfileAudioPosition.cs +++ b/TdLib.Api/Functions/SetProfileAudioPosition.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes position of an audio file in the profile audio files of the current user /// - public static partial class TdApi + public class SetProfileAudioPosition : Function { /// - /// Changes position of an audio file in the profile audio files of the current user + /// Data type for serialization /// - public class SetProfileAudioPosition : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setProfileAudioPosition"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setProfileAudioPosition"; - /// - /// Identifier of the file from profile audio files, which position will be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the file from profile audio files after which the file will be positioned; pass 0 to move the file to the beginning of the list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("after_file_id")] - public int AfterFileId { get; set; } - } + /// + /// Identifier of the file from profile audio files, which position will be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } /// - /// Changes position of an audio file in the profile audio files of the current user + /// Identifier of the file from profile audio files after which the file will be positioned; pass 0 to move the file to the beginning of the list /// - public static Task SetProfileAudioPositionAsync( - this IClient client, int fileId = default, int afterFileId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("after_file_id")] + public int AfterFileId { get; set; } + } + + /// + /// Changes position of an audio file in the profile audio files of the current user + /// + public static Task SetProfileAudioPositionAsync( + this IClient client, int fileId = default, int afterFileId = default) + { + return client.ExecuteAsync(new SetProfileAudioPosition { - return client.ExecuteAsync(new SetProfileAudioPosition - { - FileId = fileId, AfterFileId = afterFileId - }); - } + FileId = fileId, AfterFileId = afterFileId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetProfilePhoto.cs b/TdLib.Api/Functions/SetProfilePhoto.cs index 2fce3e9b..8ccdb60e 100644 --- a/TdLib.Api/Functions/SetProfilePhoto.cs +++ b/TdLib.Api/Functions/SetProfilePhoto.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes a profile photo for the current user /// - public static partial class TdApi + public class SetProfilePhoto : Function { /// - /// Changes a profile photo for the current user + /// Data type for serialization /// - public class SetProfilePhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setProfilePhoto"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setProfilePhoto"; - /// - /// Profile photo to set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputChatPhoto Photo { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_public")] - public bool IsPublic { get; set; } - } + /// + /// Profile photo to set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputChatPhoto Photo { get; set; } /// - /// Changes a profile photo for the current user + /// Pass true to set the public photo, which will be visible even if the main photo is hidden by privacy settings /// - public static Task SetProfilePhotoAsync( - this IClient client, InputChatPhoto photo = default, bool isPublic = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_public")] + public bool IsPublic { get; set; } + } + + /// + /// Changes a profile photo for the current user + /// + public static Task SetProfilePhotoAsync( + this IClient client, InputChatPhoto photo = default, bool isPublic = default) + { + return client.ExecuteAsync(new SetProfilePhoto { - return client.ExecuteAsync(new SetProfilePhoto - { - Photo = photo, IsPublic = isPublic - }); - } + Photo = photo, IsPublic = isPublic + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetQuickReplyShortcutName.cs b/TdLib.Api/Functions/SetQuickReplyShortcutName.cs index 3c1fab13..02e0fd8f 100644 --- a/TdLib.Api/Functions/SetQuickReplyShortcutName.cs +++ b/TdLib.Api/Functions/SetQuickReplyShortcutName.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes name of a quick reply shortcut /// - public static partial class TdApi + public class SetQuickReplyShortcutName : Function { /// - /// Changes name of a quick reply shortcut + /// Data type for serialization /// - public class SetQuickReplyShortcutName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setQuickReplyShortcutName"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setQuickReplyShortcutName"; - /// - /// Unique identifier of the quick reply shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New name for the shortcut. Use checkQuickReplyShortcutName to check its validness - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Unique identifier of the quick reply shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } /// - /// Changes name of a quick reply shortcut + /// New name for the shortcut. Use checkQuickReplyShortcutName to check its validness /// - public static Task SetQuickReplyShortcutNameAsync( - this IClient client, int shortcutId = default, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Changes name of a quick reply shortcut + /// + public static Task SetQuickReplyShortcutNameAsync( + this IClient client, int shortcutId = default, string name = default) + { + return client.ExecuteAsync(new SetQuickReplyShortcutName { - return client.ExecuteAsync(new SetQuickReplyShortcutName - { - ShortcutId = shortcutId, Name = name - }); - } + ShortcutId = shortcutId, Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetReactionNotificationSettings.cs b/TdLib.Api/Functions/SetReactionNotificationSettings.cs index 912b138d..22765d0c 100644 --- a/TdLib.Api/Functions/SetReactionNotificationSettings.cs +++ b/TdLib.Api/Functions/SetReactionNotificationSettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes notification settings for reactions /// - public static partial class TdApi + public class SetReactionNotificationSettings : Function { /// - /// Changes notification settings for reactions + /// Data type for serialization /// - public class SetReactionNotificationSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setReactionNotificationSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setReactionNotificationSettings"; - /// - /// The new notification settings for reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ReactionNotificationSettings NotificationSettings { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes notification settings for reactions + /// The new notification settings for reactions /// - public static Task SetReactionNotificationSettingsAsync( - this IClient client, ReactionNotificationSettings notificationSettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ReactionNotificationSettings NotificationSettings { get; set; } + } + + /// + /// Changes notification settings for reactions + /// + public static Task SetReactionNotificationSettingsAsync( + this IClient client, ReactionNotificationSettings notificationSettings = default) + { + return client.ExecuteAsync(new SetReactionNotificationSettings { - return client.ExecuteAsync(new SetReactionNotificationSettings - { - NotificationSettings = notificationSettings - }); - } + NotificationSettings = notificationSettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetReadDatePrivacySettings.cs b/TdLib.Api/Functions/SetReadDatePrivacySettings.cs index f5ae5f85..f84562ed 100644 --- a/TdLib.Api/Functions/SetReadDatePrivacySettings.cs +++ b/TdLib.Api/Functions/SetReadDatePrivacySettings.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes privacy settings for message read date /// - public static partial class TdApi + public class SetReadDatePrivacySettings : Function { /// - /// Changes privacy settings for message read date + /// Data type for serialization /// - public class SetReadDatePrivacySettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setReadDatePrivacySettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setReadDatePrivacySettings"; - /// - /// New settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public ReadDatePrivacySettings Settings { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes privacy settings for message read date + /// New settings /// - public static Task SetReadDatePrivacySettingsAsync( - this IClient client, ReadDatePrivacySettings settings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public ReadDatePrivacySettings Settings { get; set; } + } + + /// + /// Changes privacy settings for message read date + /// + public static Task SetReadDatePrivacySettingsAsync( + this IClient client, ReadDatePrivacySettings settings = default) + { + return client.ExecuteAsync(new SetReadDatePrivacySettings { - return client.ExecuteAsync(new SetReadDatePrivacySettings - { - Settings = settings - }); - } + Settings = settings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetRecoveryEmailAddress.cs b/TdLib.Api/Functions/SetRecoveryEmailAddress.cs index c7a4d66c..0e14b8a2 100644 --- a/TdLib.Api/Functions/SetRecoveryEmailAddress.cs +++ b/TdLib.Api/Functions/SetRecoveryEmailAddress.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. + /// If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation /// - public static partial class TdApi + public class SetRecoveryEmailAddress : Function { /// - /// Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. - /// If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation + /// Data type for serialization /// - public class SetRecoveryEmailAddress : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setRecoveryEmailAddress"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setRecoveryEmailAddress"; - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New recovery email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_recovery_email_address")] - public string NewRecoveryEmailAddress { get; set; } - } + /// + /// The 2-step verification password of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } /// - /// Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. - /// If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation + /// New recovery email address /// - public static Task SetRecoveryEmailAddressAsync( - this IClient client, string password = default, string newRecoveryEmailAddress = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("new_recovery_email_address")] + public string NewRecoveryEmailAddress { get; set; } + } + + /// + /// Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. + /// If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation + /// + public static Task SetRecoveryEmailAddressAsync( + this IClient client, string password = default, string newRecoveryEmailAddress = default) + { + return client.ExecuteAsync(new SetRecoveryEmailAddress { - return client.ExecuteAsync(new SetRecoveryEmailAddress - { - Password = password, NewRecoveryEmailAddress = newRecoveryEmailAddress - }); - } + Password = password, NewRecoveryEmailAddress = newRecoveryEmailAddress + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetSavedMessagesTagLabel.cs b/TdLib.Api/Functions/SetSavedMessagesTagLabel.cs index f556a44a..9b267525 100644 --- a/TdLib.Api/Functions/SetSavedMessagesTagLabel.cs +++ b/TdLib.Api/Functions/SetSavedMessagesTagLabel.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes label of a Saved Messages tag; for Telegram Premium users only /// - public static partial class TdApi + public class SetSavedMessagesTagLabel : Function { /// - /// Changes label of a Saved Messages tag; for Telegram Premium users only + /// Data type for serialization /// - public class SetSavedMessagesTagLabel : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setSavedMessagesTagLabel"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setSavedMessagesTagLabel"; - /// - /// The tag which label will be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public ReactionType Tag { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New label for the tag; 0-12 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("label")] - public string Label { get; set; } - } + /// + /// The tag which label will be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public ReactionType Tag { get; set; } /// - /// Changes label of a Saved Messages tag; for Telegram Premium users only + /// New label for the tag; 0-12 characters /// - public static Task SetSavedMessagesTagLabelAsync( - this IClient client, ReactionType tag = default, string label = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("label")] + public string Label { get; set; } + } + + /// + /// Changes label of a Saved Messages tag; for Telegram Premium users only + /// + public static Task SetSavedMessagesTagLabelAsync( + this IClient client, ReactionType tag = default, string label = default) + { + return client.ExecuteAsync(new SetSavedMessagesTagLabel { - return client.ExecuteAsync(new SetSavedMessagesTagLabel - { - Tag = tag, Label = label - }); - } + Tag = tag, Label = label + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetScopeNotificationSettings.cs b/TdLib.Api/Functions/SetScopeNotificationSettings.cs index 4e0ed615..724b5571 100644 --- a/TdLib.Api/Functions/SetScopeNotificationSettings.cs +++ b/TdLib.Api/Functions/SetScopeNotificationSettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes notification settings for chats of a given type /// - public static partial class TdApi + public class SetScopeNotificationSettings : Function { /// - /// Changes notification settings for chats of a given type + /// Data type for serialization /// - public class SetScopeNotificationSettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setScopeNotificationSettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setScopeNotificationSettings"; - /// - /// Types of chats for which to change the notification settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public NotificationSettingsScope Scope { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new notification settings for the given scope - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ScopeNotificationSettings NotificationSettings { get; set; } - } + /// + /// Types of chats for which to change the notification settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public NotificationSettingsScope Scope { get; set; } /// - /// Changes notification settings for chats of a given type + /// The new notification settings for the given scope /// - public static Task SetScopeNotificationSettingsAsync( - this IClient client, NotificationSettingsScope scope = default, ScopeNotificationSettings notificationSettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ScopeNotificationSettings NotificationSettings { get; set; } + } + + /// + /// Changes notification settings for chats of a given type + /// + public static Task SetScopeNotificationSettingsAsync( + this IClient client, NotificationSettingsScope scope = default, ScopeNotificationSettings notificationSettings = default) + { + return client.ExecuteAsync(new SetScopeNotificationSettings { - return client.ExecuteAsync(new SetScopeNotificationSettings - { - Scope = scope, NotificationSettings = notificationSettings - }); - } + Scope = scope, NotificationSettings = notificationSettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStickerEmojis.cs b/TdLib.Api/Functions/SetStickerEmojis.cs index 11177b26..f1317836 100644 --- a/TdLib.Api/Functions/SetStickerEmojis.cs +++ b/TdLib.Api/Functions/SetStickerEmojis.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the list of emojis corresponding to a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user /// - public static partial class TdApi + public class SetStickerEmojis : Function { /// - /// Changes the list of emojis corresponding to a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user + /// Data type for serialization /// - public class SetStickerEmojis : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStickerEmojis"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStickerEmojis"; - /// - /// Sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New string with 1-20 emoji corresponding to the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emojis")] - public string Emojis { get; set; } - } + /// + /// Sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } /// - /// Changes the list of emojis corresponding to a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user + /// New string with 1-20 emoji corresponding to the sticker /// - public static Task SetStickerEmojisAsync( - this IClient client, InputFile sticker = default, string emojis = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("emojis")] + public string Emojis { get; set; } + } + + /// + /// Changes the list of emojis corresponding to a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user + /// + public static Task SetStickerEmojisAsync( + this IClient client, InputFile sticker = default, string emojis = default) + { + return client.ExecuteAsync(new SetStickerEmojis { - return client.ExecuteAsync(new SetStickerEmojis - { - Sticker = sticker, Emojis = emojis - }); - } + Sticker = sticker, Emojis = emojis + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStickerKeywords.cs b/TdLib.Api/Functions/SetStickerKeywords.cs index 2aa111cd..b2f04904 100644 --- a/TdLib.Api/Functions/SetStickerKeywords.cs +++ b/TdLib.Api/Functions/SetStickerKeywords.cs @@ -3,55 +3,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the list of keywords of a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user /// - public static partial class TdApi + public class SetStickerKeywords : Function { /// - /// Changes the list of keywords of a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user + /// Data type for serialization /// - public class SetStickerKeywords : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStickerKeywords"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStickerKeywords"; - /// - /// Sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker - /// - [JsonProperty("keywords", ItemConverterType = typeof(Converter))] - public string[] Keywords { get; set; } - } + /// + /// Sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } /// - /// Changes the list of keywords of a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user + /// List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker /// - public static Task SetStickerKeywordsAsync( - this IClient client, InputFile sticker = default, string[] keywords = default) + [JsonProperty("keywords", ItemConverterType = typeof(Converter))] + public string[] Keywords { get; set; } + } + + /// + /// Changes the list of keywords of a sticker. The sticker must belong to a regular or custom emoji sticker set that is owned by the current user + /// + public static Task SetStickerKeywordsAsync( + this IClient client, InputFile sticker = default, string[] keywords = default) + { + return client.ExecuteAsync(new SetStickerKeywords { - return client.ExecuteAsync(new SetStickerKeywords - { - Sticker = sticker, Keywords = keywords - }); - } + Sticker = sticker, Keywords = keywords + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStickerMaskPosition.cs b/TdLib.Api/Functions/SetStickerMaskPosition.cs index df55e468..1a79d661 100644 --- a/TdLib.Api/Functions/SetStickerMaskPosition.cs +++ b/TdLib.Api/Functions/SetStickerMaskPosition.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the mask position of a mask sticker. The sticker must belong to a mask sticker set that is owned by the current user /// - public static partial class TdApi + public class SetStickerMaskPosition : Function { /// - /// Changes the mask position of a mask sticker. The sticker must belong to a mask sticker set that is owned by the current user + /// Data type for serialization /// - public class SetStickerMaskPosition : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStickerMaskPosition"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStickerMaskPosition"; - /// - /// Sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Position where the mask is placed; pass null to remove mask position - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mask_position")] - public MaskPosition MaskPosition { get; set; } - } + /// + /// Sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } /// - /// Changes the mask position of a mask sticker. The sticker must belong to a mask sticker set that is owned by the current user + /// Position where the mask is placed; pass null to remove mask position /// - public static Task SetStickerMaskPositionAsync( - this IClient client, InputFile sticker = default, MaskPosition maskPosition = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("mask_position")] + public MaskPosition MaskPosition { get; set; } + } + + /// + /// Changes the mask position of a mask sticker. The sticker must belong to a mask sticker set that is owned by the current user + /// + public static Task SetStickerMaskPositionAsync( + this IClient client, InputFile sticker = default, MaskPosition maskPosition = default) + { + return client.ExecuteAsync(new SetStickerMaskPosition { - return client.ExecuteAsync(new SetStickerMaskPosition - { - Sticker = sticker, MaskPosition = maskPosition - }); - } + Sticker = sticker, MaskPosition = maskPosition + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStickerPositionInSet.cs b/TdLib.Api/Functions/SetStickerPositionInSet.cs index 74f3cffe..8766b315 100644 --- a/TdLib.Api/Functions/SetStickerPositionInSet.cs +++ b/TdLib.Api/Functions/SetStickerPositionInSet.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the position of a sticker in the set to which it belongs. The sticker set must be owned by the current user /// - public static partial class TdApi + public class SetStickerPositionInSet : Function { /// - /// Changes the position of a sticker in the set to which it belongs. The sticker set must be owned by the current user + /// Data type for serialization /// - public class SetStickerPositionInSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStickerPositionInSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStickerPositionInSet"; - /// - /// Sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New position of the sticker in the set, 0-based - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public int Position { get; set; } - } + /// + /// Sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } /// - /// Changes the position of a sticker in the set to which it belongs. The sticker set must be owned by the current user + /// New position of the sticker in the set, 0-based /// - public static Task SetStickerPositionInSetAsync( - this IClient client, InputFile sticker = default, int position = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public int Position { get; set; } + } + + /// + /// Changes the position of a sticker in the set to which it belongs. The sticker set must be owned by the current user + /// + public static Task SetStickerPositionInSetAsync( + this IClient client, InputFile sticker = default, int position = default) + { + return client.ExecuteAsync(new SetStickerPositionInSet { - return client.ExecuteAsync(new SetStickerPositionInSet - { - Sticker = sticker, Position = position - }); - } + Sticker = sticker, Position = position + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStickerSetThumbnail.cs b/TdLib.Api/Functions/SetStickerSetThumbnail.cs index c32d023b..205e11eb 100644 --- a/TdLib.Api/Functions/SetStickerSetThumbnail.cs +++ b/TdLib.Api/Functions/SetStickerSetThumbnail.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets a sticker set thumbnail /// - public static partial class TdApi + public class SetStickerSetThumbnail : Function { /// - /// Sets a sticker set thumbnail + /// Data type for serialization /// - public class SetStickerSetThumbnail : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStickerSetThumbnail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStickerSetThumbnail"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Sticker set owner; ignored for regular users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker set name. The sticker set must be owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Sticker set owner; ignored for regular users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Thumbnail to set; pass null to remove the sticker set thumbnail - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputFile Thumbnail { get; set; } + /// + /// Sticker set name. The sticker set must be owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Format of the thumbnail; pass null if thumbnail is removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("format")] - public StickerFormat Format { get; set; } - } + /// + /// Thumbnail to set; pass null to remove the sticker set thumbnail + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputFile Thumbnail { get; set; } /// - /// Sets a sticker set thumbnail + /// Format of the thumbnail; pass null if thumbnail is removed /// - public static Task SetStickerSetThumbnailAsync( - this IClient client, long userId = default, string name = default, InputFile thumbnail = default, StickerFormat format = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("format")] + public StickerFormat Format { get; set; } + } + + /// + /// Sets a sticker set thumbnail + /// + public static Task SetStickerSetThumbnailAsync( + this IClient client, long userId = default, string name = default, InputFile thumbnail = default, StickerFormat format = default) + { + return client.ExecuteAsync(new SetStickerSetThumbnail { - return client.ExecuteAsync(new SetStickerSetThumbnail - { - UserId = userId, Name = name, Thumbnail = thumbnail, Format = format - }); - } + UserId = userId, Name = name, Thumbnail = thumbnail, Format = format + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStickerSetTitle.cs b/TdLib.Api/Functions/SetStickerSetTitle.cs index 8952a780..645aeb37 100644 --- a/TdLib.Api/Functions/SetStickerSetTitle.cs +++ b/TdLib.Api/Functions/SetStickerSetTitle.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets a sticker set title /// - public static partial class TdApi + public class SetStickerSetTitle : Function { /// - /// Sets a sticker set title + /// Data type for serialization /// - public class SetStickerSetTitle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStickerSetTitle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStickerSetTitle"; - /// - /// Sticker set name. The sticker set must be owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New sticker set title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Sticker set name. The sticker set must be owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } /// - /// Sets a sticker set title + /// New sticker set title /// - public static Task SetStickerSetTitleAsync( - this IClient client, string name = default, string title = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + } + + /// + /// Sets a sticker set title + /// + public static Task SetStickerSetTitleAsync( + this IClient client, string name = default, string title = default) + { + return client.ExecuteAsync(new SetStickerSetTitle { - return client.ExecuteAsync(new SetStickerSetTitle - { - Name = name, Title = title - }); - } + Name = name, Title = title + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStoryAlbumName.cs b/TdLib.Api/Functions/SetStoryAlbumName.cs index 04c6453d..9c3ac781 100644 --- a/TdLib.Api/Functions/SetStoryAlbumName.cs +++ b/TdLib.Api/Functions/SetStoryAlbumName.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes name of an album of stories. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat. Returns the changed album /// - public static partial class TdApi + public class SetStoryAlbumName : Function { /// - /// Changes name of an album of stories. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat. Returns the changed album + /// Data type for serialization /// - public class SetStoryAlbumName : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStoryAlbumName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStoryAlbumName"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that owns the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_id")] - public int StoryAlbumId { get; set; } + /// + /// Identifier of the chat that owns the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New name of the album; 1-12 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Identifier of the story album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_id")] + public int StoryAlbumId { get; set; } /// - /// Changes name of an album of stories. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat. Returns the changed album + /// New name of the album; 1-12 characters /// - public static Task SetStoryAlbumNameAsync( - this IClient client, long chatId = default, int storyAlbumId = default, string name = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + } + + /// + /// Changes name of an album of stories. If the album is owned by a supergroup or a channel chat, then requires can_edit_stories administrator right in the chat. Returns the changed album + /// + public static Task SetStoryAlbumNameAsync( + this IClient client, long chatId = default, int storyAlbumId = default, string name = default) + { + return client.ExecuteAsync(new SetStoryAlbumName { - return client.ExecuteAsync(new SetStoryAlbumName - { - ChatId = chatId, StoryAlbumId = storyAlbumId, Name = name - }); - } + ChatId = chatId, StoryAlbumId = storyAlbumId, Name = name + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStoryPrivacySettings.cs b/TdLib.Api/Functions/SetStoryPrivacySettings.cs index 71c75002..5e472bf8 100644 --- a/TdLib.Api/Functions/SetStoryPrivacySettings.cs +++ b/TdLib.Api/Functions/SetStoryPrivacySettings.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.can_set_privacy_settings == true /// - public static partial class TdApi + public class SetStoryPrivacySettings : Function { /// - /// Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.can_set_privacy_settings == true + /// Data type for serialization /// - public class SetStoryPrivacySettings : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStoryPrivacySettings"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStoryPrivacySettings"; - /// - /// Identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new privacy settings for the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("privacy_settings")] - public StoryPrivacySettings PrivacySettings { get; set; } - } + /// + /// Identifier of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } /// - /// Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.can_set_privacy_settings == true + /// The new privacy settings for the story /// - public static Task SetStoryPrivacySettingsAsync( - this IClient client, int storyId = default, StoryPrivacySettings privacySettings = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("privacy_settings")] + public StoryPrivacySettings PrivacySettings { get; set; } + } + + /// + /// Changes privacy settings of a story. The method can be called only for stories posted on behalf of the current user and if story.can_set_privacy_settings == true + /// + public static Task SetStoryPrivacySettingsAsync( + this IClient client, int storyId = default, StoryPrivacySettings privacySettings = default) + { + return client.ExecuteAsync(new SetStoryPrivacySettings { - return client.ExecuteAsync(new SetStoryPrivacySettings - { - StoryId = storyId, PrivacySettings = privacySettings - }); - } + StoryId = storyId, PrivacySettings = privacySettings + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetStoryReaction.cs b/TdLib.Api/Functions/SetStoryReaction.cs index 5bbae2dc..376c68eb 100644 --- a/TdLib.Api/Functions/SetStoryReaction.cs +++ b/TdLib.Api/Functions/SetStoryReaction.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes chosen reaction on a story that has already been sent; not supported for live stories /// - public static partial class TdApi + public class SetStoryReaction : Function { /// - /// Changes chosen reaction on a story that has already been sent; not supported for live stories + /// Data type for serialization /// - public class SetStoryReaction : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setStoryReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "setStoryReaction"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The identifier of the poster of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// The identifier of the poster of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Type of the reaction to set; pass null to remove the reaction. Custom emoji reactions can be used only by Telegram Premium users. Paid reactions can't be set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } + /// + /// The identifier of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// Pass true if the reaction needs to be added to recent reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("update_recent_reactions")] - public bool UpdateRecentReactions { get; set; } - } + /// + /// Type of the reaction to set; pass null to remove the reaction. Custom emoji reactions can be used only by Telegram Premium users. Paid reactions can't be set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } /// - /// Changes chosen reaction on a story that has already been sent; not supported for live stories + /// Pass true if the reaction needs to be added to recent reactions /// - public static Task SetStoryReactionAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, ReactionType reactionType = default, bool updateRecentReactions = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("update_recent_reactions")] + public bool UpdateRecentReactions { get; set; } + } + + /// + /// Changes chosen reaction on a story that has already been sent; not supported for live stories + /// + public static Task SetStoryReactionAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, ReactionType reactionType = default, bool updateRecentReactions = default) + { + return client.ExecuteAsync(new SetStoryReaction { - return client.ExecuteAsync(new SetStoryReaction - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, ReactionType = reactionType, UpdateRecentReactions = updateRecentReactions - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, ReactionType = reactionType, UpdateRecentReactions = updateRecentReactions + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetSupergroupCustomEmojiStickerSet.cs b/TdLib.Api/Functions/SetSupergroupCustomEmojiStickerSet.cs index 94acb10b..f5ac5fba 100644 --- a/TdLib.Api/Functions/SetSupergroupCustomEmojiStickerSet.cs +++ b/TdLib.Api/Functions/SetSupergroupCustomEmojiStickerSet.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the custom emoji sticker set of a supergroup; requires can_change_info administrator right. The chat must have at least chatBoostFeatures.min_custom_emoji_sticker_set_boost_level boost level to pass the corresponding color /// - public static partial class TdApi + public class SetSupergroupCustomEmojiStickerSet : Function { /// - /// Changes the custom emoji sticker set of a supergroup; requires can_change_info administrator right. The chat must have at least chatBoostFeatures.min_custom_emoji_sticker_set_boost_level boost level to pass the corresponding color + /// Data type for serialization /// - public class SetSupergroupCustomEmojiStickerSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setSupergroupCustomEmojiStickerSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setSupergroupCustomEmojiStickerSet"; - /// - /// Identifier of the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the custom emoji sticker set identifier for the supergroup. Use 0 to remove the custom emoji sticker set in the supergroup - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_sticker_set_id")] - public long CustomEmojiStickerSetId { get; set; } - } + /// + /// Identifier of the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Changes the custom emoji sticker set of a supergroup; requires can_change_info administrator right. The chat must have at least chatBoostFeatures.min_custom_emoji_sticker_set_boost_level boost level to pass the corresponding color + /// New value of the custom emoji sticker set identifier for the supergroup. Use 0 to remove the custom emoji sticker set in the supergroup /// - public static Task SetSupergroupCustomEmojiStickerSetAsync( - this IClient client, long supergroupId = default, long customEmojiStickerSetId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_sticker_set_id")] + public long CustomEmojiStickerSetId { get; set; } + } + + /// + /// Changes the custom emoji sticker set of a supergroup; requires can_change_info administrator right. The chat must have at least chatBoostFeatures.min_custom_emoji_sticker_set_boost_level boost level to pass the corresponding color + /// + public static Task SetSupergroupCustomEmojiStickerSetAsync( + this IClient client, long supergroupId = default, long customEmojiStickerSetId = default) + { + return client.ExecuteAsync(new SetSupergroupCustomEmojiStickerSet { - return client.ExecuteAsync(new SetSupergroupCustomEmojiStickerSet - { - SupergroupId = supergroupId, CustomEmojiStickerSetId = customEmojiStickerSetId - }); - } + SupergroupId = supergroupId, CustomEmojiStickerSetId = customEmojiStickerSetId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetSupergroupMainProfileTab.cs b/TdLib.Api/Functions/SetSupergroupMainProfileTab.cs index f2c12403..05249fe4 100644 --- a/TdLib.Api/Functions/SetSupergroupMainProfileTab.cs +++ b/TdLib.Api/Functions/SetSupergroupMainProfileTab.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the main profile tab of the channel; requires can_change_info administrator right /// - public static partial class TdApi + public class SetSupergroupMainProfileTab : Function { /// - /// Changes the main profile tab of the channel; requires can_change_info administrator right + /// Data type for serialization /// - public class SetSupergroupMainProfileTab : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setSupergroupMainProfileTab"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setSupergroupMainProfileTab"; - /// - /// Identifier of the channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of the main profile tab - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_profile_tab")] - public ProfileTab MainProfileTab { get; set; } - } + /// + /// Identifier of the channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Changes the main profile tab of the channel; requires can_change_info administrator right + /// The new value of the main profile tab /// - public static Task SetSupergroupMainProfileTabAsync( - this IClient client, long supergroupId = default, ProfileTab mainProfileTab = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("main_profile_tab")] + public ProfileTab MainProfileTab { get; set; } + } + + /// + /// Changes the main profile tab of the channel; requires can_change_info administrator right + /// + public static Task SetSupergroupMainProfileTabAsync( + this IClient client, long supergroupId = default, ProfileTab mainProfileTab = default) + { + return client.ExecuteAsync(new SetSupergroupMainProfileTab { - return client.ExecuteAsync(new SetSupergroupMainProfileTab - { - SupergroupId = supergroupId, MainProfileTab = mainProfileTab - }); - } + SupergroupId = supergroupId, MainProfileTab = mainProfileTab + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetSupergroupStickerSet.cs b/TdLib.Api/Functions/SetSupergroupStickerSet.cs index 6724ba59..0684bd31 100644 --- a/TdLib.Api/Functions/SetSupergroupStickerSet.cs +++ b/TdLib.Api/Functions/SetSupergroupStickerSet.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the sticker set of a supergroup; requires can_change_info administrator right /// - public static partial class TdApi + public class SetSupergroupStickerSet : Function { /// - /// Changes the sticker set of a supergroup; requires can_change_info administrator right + /// Data type for serialization /// - public class SetSupergroupStickerSet : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setSupergroupStickerSet"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setSupergroupStickerSet"; - /// - /// Identifier of the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the supergroup sticker set identifier. Use 0 to remove the supergroup sticker set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sticker_set_id")] - public long StickerSetId { get; set; } - } + /// + /// Identifier of the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Changes the sticker set of a supergroup; requires can_change_info administrator right + /// New value of the supergroup sticker set identifier. Use 0 to remove the supergroup sticker set /// - public static Task SetSupergroupStickerSetAsync( - this IClient client, long supergroupId = default, long stickerSetId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sticker_set_id")] + public long StickerSetId { get; set; } + } + + /// + /// Changes the sticker set of a supergroup; requires can_change_info administrator right + /// + public static Task SetSupergroupStickerSetAsync( + this IClient client, long supergroupId = default, long stickerSetId = default) + { + return client.ExecuteAsync(new SetSupergroupStickerSet { - return client.ExecuteAsync(new SetSupergroupStickerSet - { - SupergroupId = supergroupId, StickerSetId = stickerSetId - }); - } + SupergroupId = supergroupId, StickerSetId = stickerSetId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetSupergroupUnrestrictBoostCount.cs b/TdLib.Api/Functions/SetSupergroupUnrestrictBoostCount.cs index 8e196b92..90408484 100644 --- a/TdLib.Api/Functions/SetSupergroupUnrestrictBoostCount.cs +++ b/TdLib.Api/Functions/SetSupergroupUnrestrictBoostCount.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; requires can_restrict_members administrator right /// - public static partial class TdApi + public class SetSupergroupUnrestrictBoostCount : Function { /// - /// Changes the number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; requires can_restrict_members administrator right + /// Data type for serialization /// - public class SetSupergroupUnrestrictBoostCount : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setSupergroupUnrestrictBoostCount"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setSupergroupUnrestrictBoostCount"; - /// - /// Identifier of the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the unrestrict_boost_count supergroup setting; 0-8. Use 0 to remove the setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unrestrict_boost_count")] - public int UnrestrictBoostCount { get; set; } - } + /// + /// Identifier of the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Changes the number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; requires can_restrict_members administrator right + /// New value of the unrestrict_boost_count supergroup setting; 0-8. Use 0 to remove the setting /// - public static Task SetSupergroupUnrestrictBoostCountAsync( - this IClient client, long supergroupId = default, int unrestrictBoostCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("unrestrict_boost_count")] + public int UnrestrictBoostCount { get; set; } + } + + /// + /// Changes the number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; requires can_restrict_members administrator right + /// + public static Task SetSupergroupUnrestrictBoostCountAsync( + this IClient client, long supergroupId = default, int unrestrictBoostCount = default) + { + return client.ExecuteAsync(new SetSupergroupUnrestrictBoostCount { - return client.ExecuteAsync(new SetSupergroupUnrestrictBoostCount - { - SupergroupId = supergroupId, UnrestrictBoostCount = unrestrictBoostCount - }); - } + SupergroupId = supergroupId, UnrestrictBoostCount = unrestrictBoostCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetSupergroupUsername.cs b/TdLib.Api/Functions/SetSupergroupUsername.cs index 59b367f4..e06823c8 100644 --- a/TdLib.Api/Functions/SetSupergroupUsername.cs +++ b/TdLib.Api/Functions/SetSupergroupUsername.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel /// - public static partial class TdApi + public class SetSupergroupUsername : Function { /// - /// Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel + /// Data type for serialization /// - public class SetSupergroupUsername : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setSupergroupUsername"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setSupergroupUsername"; - /// - /// Identifier of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// Identifier of the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel + /// New value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username /// - public static Task SetSupergroupUsernameAsync( - this IClient client, long supergroupId = default, string username = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } + } + + /// + /// Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel + /// + public static Task SetSupergroupUsernameAsync( + this IClient client, long supergroupId = default, string username = default) + { + return client.ExecuteAsync(new SetSupergroupUsername { - return client.ExecuteAsync(new SetSupergroupUsername - { - SupergroupId = supergroupId, Username = username - }); - } + SupergroupId = supergroupId, Username = username + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetTdlibParameters.cs b/TdLib.Api/Functions/SetTdlibParameters.cs index 9b86212b..52e05419 100644 --- a/TdLib.Api/Functions/SetTdlibParameters.cs +++ b/TdLib.Api/Functions/SetTdlibParameters.cs @@ -3,140 +3,142 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters /// - public static partial class TdApi + public class SetTdlibParameters : Function { /// - /// Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters + /// Data type for serialization /// - public class SetTdlibParameters : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setTdlibParameters"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Pass true to use Telegram test environment instead of the production environment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_test_dc")] - public bool UseTestDc { get; set; } - - /// - /// The path to the directory for the persistent database; if empty, the current working directory will be used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("database_directory")] - public string DatabaseDirectory { get; set; } - - /// - /// The path to the directory for storing files; if empty, database_directory will be used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("files_directory")] - public string FilesDirectory { get; set; } - - /// - /// Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("database_encryption_key")] - public byte[] DatabaseEncryptionKey { get; set; } - - /// - /// Pass true to keep information about downloaded and uploaded files between application restarts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_file_database")] - public bool UseFileDatabase { get; set; } - - /// - /// Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_chat_info_database")] - public bool UseChatInfoDatabase { get; set; } - - /// - /// Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_message_database")] - public bool UseMessageDatabase { get; set; } - - /// - /// Pass true to enable support for secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_secret_chats")] - public bool UseSecretChats { get; set; } - - /// - /// Application identifier for Telegram API access, which can be obtained at https://my.telegram.org - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("api_id")] - public int ApiId { get; set; } - - /// - /// Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("api_hash")] - public string ApiHash { get; set; } - - /// - /// IETF language tag of the user's operating system language; must be non-empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("system_language_code")] - public string SystemLanguageCode { get; set; } - - /// - /// Model of the device the application is being run on; must be non-empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_model")] - public string DeviceModel { get; set; } - - /// - /// Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("system_version")] - public string SystemVersion { get; set; } - - /// - /// Application version; must be non-empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("application_version")] - public string ApplicationVersion { get; set; } - } - - /// - /// Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters - /// - public static Task SetTdlibParametersAsync( - this IClient client, bool useTestDc = default, string databaseDirectory = default, string filesDirectory = default, byte[] databaseEncryptionKey = default, bool useFileDatabase = default, bool useChatInfoDatabase = default, bool useMessageDatabase = default, bool useSecretChats = default, int apiId = default, string apiHash = default, string systemLanguageCode = default, string deviceModel = default, string systemVersion = default, string applicationVersion = default) + [JsonProperty("@type")] + public override string DataType { get; set; } = "setTdlibParameters"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Pass true to use Telegram test environment instead of the production environment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_test_dc")] + public bool UseTestDc { get; set; } + + /// + /// The path to the directory for the persistent database; if empty, the current working directory will be used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("database_directory")] + public string DatabaseDirectory { get; set; } + + /// + /// The path to the directory for storing files; if empty, database_directory will be used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("files_directory")] + public string FilesDirectory { get; set; } + + /// + /// Encryption key for the database. If the encryption key is invalid, then an error with code 401 will be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("database_encryption_key")] + public byte[] DatabaseEncryptionKey { get; set; } + + /// + /// Pass true to keep information about downloaded and uploaded files between application restarts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_file_database")] + public bool UseFileDatabase { get; set; } + + /// + /// Pass true to keep cache of users, basic groups, supergroups, channels and secret chats between restarts. Implies use_file_database + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_chat_info_database")] + public bool UseChatInfoDatabase { get; set; } + + /// + /// Pass true to keep cache of chats and messages between restarts. Implies use_chat_info_database + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_message_database")] + public bool UseMessageDatabase { get; set; } + + /// + /// Pass true to enable support for secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_secret_chats")] + public bool UseSecretChats { get; set; } + + /// + /// Application identifier for Telegram API access, which can be obtained at https://my.telegram.org + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("api_id")] + public int ApiId { get; set; } + + /// + /// Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("api_hash")] + public string ApiHash { get; set; } + + /// + /// IETF language tag of the user's operating system language; must be non-empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("system_language_code")] + public string SystemLanguageCode { get; set; } + + /// + /// Model of the device the application is being run on; must be non-empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_model")] + public string DeviceModel { get; set; } + + /// + /// Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("system_version")] + public string SystemVersion { get; set; } + + /// + /// Application version; must be non-empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("application_version")] + public string ApplicationVersion { get; set; } + } + + /// + /// Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters + /// + public static Task SetTdlibParametersAsync( + this IClient client, bool useTestDc = default, string databaseDirectory = default, string filesDirectory = default, byte[] databaseEncryptionKey = default, bool useFileDatabase = default, bool useChatInfoDatabase = default, bool useMessageDatabase = default, bool useSecretChats = default, int apiId = default, string apiHash = default, string systemLanguageCode = default, string deviceModel = default, string systemVersion = default, string applicationVersion = default) + { + return client.ExecuteAsync(new SetTdlibParameters { - return client.ExecuteAsync(new SetTdlibParameters - { - UseTestDc = useTestDc, DatabaseDirectory = databaseDirectory, FilesDirectory = filesDirectory, DatabaseEncryptionKey = databaseEncryptionKey, UseFileDatabase = useFileDatabase, UseChatInfoDatabase = useChatInfoDatabase, UseMessageDatabase = useMessageDatabase, UseSecretChats = useSecretChats, ApiId = apiId, ApiHash = apiHash, SystemLanguageCode = systemLanguageCode, DeviceModel = deviceModel, SystemVersion = systemVersion, ApplicationVersion = applicationVersion - }); - } + UseTestDc = useTestDc, DatabaseDirectory = databaseDirectory, FilesDirectory = filesDirectory, DatabaseEncryptionKey = databaseEncryptionKey, UseFileDatabase = useFileDatabase, UseChatInfoDatabase = useChatInfoDatabase, UseMessageDatabase = useMessageDatabase, UseSecretChats = useSecretChats, ApiId = apiId, ApiHash = apiHash, SystemLanguageCode = systemLanguageCode, DeviceModel = deviceModel, SystemVersion = systemVersion, ApplicationVersion = applicationVersion + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetTonConnectSessionWalletClientId.cs b/TdLib.Api/Functions/SetTonConnectSessionWalletClientId.cs new file mode 100644 index 00000000..865ade65 --- /dev/null +++ b/TdLib.Api/Functions/SetTonConnectSessionWalletClientId.cs @@ -0,0 +1,60 @@ +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Sets wallet_client_id for a pending TON Connect session. Then, sendTonConnectSessionConnectResult must be used to accept or reject the session + /// + public class SetTonConnectSessionWalletClientId : Function + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "setTonConnectSessionWalletClientId"; + + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + + /// + /// Hex-encoded public X25519 key of the current user's application calculated from the TON wallet private key and session parameters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("wallet_client_id")] + public string WalletClientId { get; set; } + } + + /// + /// Sets wallet_client_id for a pending TON Connect session. Then, sendTonConnectSessionConnectResult must be used to accept or reject the session + /// + public static Task SetTonConnectSessionWalletClientIdAsync( + this IClient client, long sessionId = default, string walletClientId = default) + { + return client.ExecuteAsync(new SetTonConnectSessionWalletClientId + { + SessionId = sessionId, WalletClientId = walletClientId + }); + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetUpgradedGiftColors.cs b/TdLib.Api/Functions/SetUpgradedGiftColors.cs index 38742a2b..3cd71b63 100644 --- a/TdLib.Api/Functions/SetUpgradedGiftColors.cs +++ b/TdLib.Api/Functions/SetUpgradedGiftColors.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes color scheme for the current user based on an owned or a hosted upgraded gift; for Telegram Premium users only /// - public static partial class TdApi + public class SetUpgradedGiftColors : Function { /// - /// Changes color scheme for the current user based on an owned or a hosted upgraded gift; for Telegram Premium users only + /// Data type for serialization /// - public class SetUpgradedGiftColors : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setUpgradedGiftColors"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setUpgradedGiftColors"; - /// - /// Identifier of the upgradedGiftColors scheme to use - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("upgraded_gift_colors_id")] - public long UpgradedGiftColorsId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes color scheme for the current user based on an owned or a hosted upgraded gift; for Telegram Premium users only + /// Identifier of the upgradedGiftColors scheme to use /// - public static Task SetUpgradedGiftColorsAsync( - this IClient client, long upgradedGiftColorsId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("upgraded_gift_colors_id")] + public long UpgradedGiftColorsId { get; set; } + } + + /// + /// Changes color scheme for the current user based on an owned or a hosted upgraded gift; for Telegram Premium users only + /// + public static Task SetUpgradedGiftColorsAsync( + this IClient client, long upgradedGiftColorsId = default) + { + return client.ExecuteAsync(new SetUpgradedGiftColors { - return client.ExecuteAsync(new SetUpgradedGiftColors - { - UpgradedGiftColorsId = upgradedGiftColorsId - }); - } + UpgradedGiftColorsId = upgradedGiftColorsId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetUserEmojiStatus.cs b/TdLib.Api/Functions/SetUserEmojiStatus.cs index 101819b5..336e073b 100644 --- a/TdLib.Api/Functions/SetUserEmojiStatus.cs +++ b/TdLib.Api/Functions/SetUserEmojiStatus.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the emoji status of a user; for bots only /// - public static partial class TdApi + public class SetUserEmojiStatus : Function { /// - /// Changes the emoji status of a user; for bots only + /// Data type for serialization /// - public class SetUserEmojiStatus : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setUserEmojiStatus"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setUserEmojiStatus"; - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New emoji status; pass null to switch to the default badge - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji_status")] - public EmojiStatus EmojiStatus { get; set; } - } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Changes the emoji status of a user; for bots only + /// New emoji status; pass null to switch to the default badge /// - public static Task SetUserEmojiStatusAsync( - this IClient client, long userId = default, EmojiStatus emojiStatus = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji_status")] + public EmojiStatus EmojiStatus { get; set; } + } + + /// + /// Changes the emoji status of a user; for bots only + /// + public static Task SetUserEmojiStatusAsync( + this IClient client, long userId = default, EmojiStatus emojiStatus = default) + { + return client.ExecuteAsync(new SetUserEmojiStatus { - return client.ExecuteAsync(new SetUserEmojiStatus - { - UserId = userId, EmojiStatus = emojiStatus - }); - } + UserId = userId, EmojiStatus = emojiStatus + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetUserNote.cs b/TdLib.Api/Functions/SetUserNote.cs index db92b7a0..4caddc48 100644 --- a/TdLib.Api/Functions/SetUserNote.cs +++ b/TdLib.Api/Functions/SetUserNote.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes a note of a contact user /// - public static partial class TdApi + public class SetUserNote : Function { /// - /// Changes a note of a contact user + /// Data type for serialization /// - public class SetUserNote : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setUserNote"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setUserNote"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Note to set for the user; 0-getOption("user_note_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("note")] - public FormattedText Note { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Changes a note of a contact user + /// Note to set for the user; 0-getOption("user_note_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed /// - public static Task SetUserNoteAsync( - this IClient client, long userId = default, FormattedText note = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("note")] + public FormattedText Note { get; set; } + } + + /// + /// Changes a note of a contact user + /// + public static Task SetUserNoteAsync( + this IClient client, long userId = default, FormattedText note = default) + { + return client.ExecuteAsync(new SetUserNote { - return client.ExecuteAsync(new SetUserNote - { - UserId = userId, Note = note - }); - } + UserId = userId, Note = note + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetUserPersonalProfilePhoto.cs b/TdLib.Api/Functions/SetUserPersonalProfilePhoto.cs index 94cccb08..b7f381c1 100644 --- a/TdLib.Api/Functions/SetUserPersonalProfilePhoto.cs +++ b/TdLib.Api/Functions/SetUserPersonalProfilePhoto.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes a personal profile photo of a contact user /// - public static partial class TdApi + public class SetUserPersonalProfilePhoto : Function { /// - /// Changes a personal profile photo of a contact user + /// Data type for serialization /// - public class SetUserPersonalProfilePhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setUserPersonalProfilePhoto"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setUserPersonalProfilePhoto"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Profile photo to set; pass null to delete the photo; inputChatPhotoPrevious isn't supported in this function - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputChatPhoto Photo { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Changes a personal profile photo of a contact user + /// Profile photo to set; pass null to delete the photo; inputChatPhotoPrevious isn't supported in this function /// - public static Task SetUserPersonalProfilePhotoAsync( - this IClient client, long userId = default, InputChatPhoto photo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputChatPhoto Photo { get; set; } + } + + /// + /// Changes a personal profile photo of a contact user + /// + public static Task SetUserPersonalProfilePhotoAsync( + this IClient client, long userId = default, InputChatPhoto photo = default) + { + return client.ExecuteAsync(new SetUserPersonalProfilePhoto { - return client.ExecuteAsync(new SetUserPersonalProfilePhoto - { - UserId = userId, Photo = photo - }); - } + UserId = userId, Photo = photo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetUserPrivacySettingRules.cs b/TdLib.Api/Functions/SetUserPrivacySettingRules.cs index a5b5f807..400b870a 100644 --- a/TdLib.Api/Functions/SetUserPrivacySettingRules.cs +++ b/TdLib.Api/Functions/SetUserPrivacySettingRules.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes user privacy settings /// - public static partial class TdApi + public class SetUserPrivacySettingRules : Function { /// - /// Changes user privacy settings + /// Data type for serialization /// - public class SetUserPrivacySettingRules : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setUserPrivacySettingRules"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setUserPrivacySettingRules"; - /// - /// The privacy setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("setting")] - public UserPrivacySetting Setting { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new privacy rules - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rules")] - public UserPrivacySettingRules Rules { get; set; } - } + /// + /// The privacy setting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("setting")] + public UserPrivacySetting Setting { get; set; } /// - /// Changes user privacy settings + /// The new privacy rules /// - public static Task SetUserPrivacySettingRulesAsync( - this IClient client, UserPrivacySetting setting = default, UserPrivacySettingRules rules = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("rules")] + public UserPrivacySettingRules Rules { get; set; } + } + + /// + /// Changes user privacy settings + /// + public static Task SetUserPrivacySettingRulesAsync( + this IClient client, UserPrivacySetting setting = default, UserPrivacySettingRules rules = default) + { + return client.ExecuteAsync(new SetUserPrivacySettingRules { - return client.ExecuteAsync(new SetUserPrivacySettingRules - { - Setting = setting, Rules = rules - }); - } + Setting = setting, Rules = rules + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetUserSupportInfo.cs b/TdLib.Api/Functions/SetUserSupportInfo.cs index d1ddd50e..5d948651 100644 --- a/TdLib.Api/Functions/SetUserSupportInfo.cs +++ b/TdLib.Api/Functions/SetUserSupportInfo.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets support information for the given user; for Telegram support only /// - public static partial class TdApi + public class SetUserSupportInfo : Function { /// - /// Sets support information for the given user; for Telegram support only + /// Data type for serialization /// - public class SetUserSupportInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setUserSupportInfo"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setUserSupportInfo"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New information message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public FormattedText Message { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Sets support information for the given user; for Telegram support only + /// New information message /// - public static Task SetUserSupportInfoAsync( - this IClient client, long userId = default, FormattedText message = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public FormattedText Message { get; set; } + } + + /// + /// Sets support information for the given user; for Telegram support only + /// + public static Task SetUserSupportInfoAsync( + this IClient client, long userId = default, FormattedText message = default) + { + return client.ExecuteAsync(new SetUserSupportInfo { - return client.ExecuteAsync(new SetUserSupportInfo - { - UserId = userId, Message = message - }); - } + UserId = userId, Message = message + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetUsername.cs b/TdLib.Api/Functions/SetUsername.cs index 25a6c94d..20bbebc1 100644 --- a/TdLib.Api/Functions/SetUsername.cs +++ b/TdLib.Api/Functions/SetUsername.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the editable username of the current user /// - public static partial class TdApi + public class SetUsername : Function { /// - /// Changes the editable username of the current user + /// Data type for serialization /// - public class SetUsername : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setUsername"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setUsername"; - /// - /// The new value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes the editable username of the current user + /// The new value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username /// - public static Task SetUsernameAsync( - this IClient client, string username = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } + } + + /// + /// Changes the editable username of the current user + /// + public static Task SetUsernameAsync( + this IClient client, string username = default) + { + return client.ExecuteAsync(new SetUsername { - return client.ExecuteAsync(new SetUsername - { - Username = username - }); - } + Username = username + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetVideoChatDefaultParticipant.cs b/TdLib.Api/Functions/SetVideoChatDefaultParticipant.cs index 0d130bdb..109da26d 100644 --- a/TdLib.Api/Functions/SetVideoChatDefaultParticipant.cs +++ b/TdLib.Api/Functions/SetVideoChatDefaultParticipant.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes default participant identifier, on whose behalf a video chat in the chat will be joined /// - public static partial class TdApi + public class SetVideoChatDefaultParticipant : Function { /// - /// Changes default participant identifier, on whose behalf a video chat in the chat will be joined + /// Data type for serialization /// - public class SetVideoChatDefaultParticipant : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setVideoChatDefaultParticipant"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setVideoChatDefaultParticipant"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Default group call participant identifier to join the video chats in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_participant_id")] - public MessageSender DefaultParticipantId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes default participant identifier, on whose behalf a video chat in the chat will be joined + /// Default group call participant identifier to join the video chats in the chat /// - public static Task SetVideoChatDefaultParticipantAsync( - this IClient client, long chatId = default, MessageSender defaultParticipantId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("default_participant_id")] + public MessageSender DefaultParticipantId { get; set; } + } + + /// + /// Changes default participant identifier, on whose behalf a video chat in the chat will be joined + /// + public static Task SetVideoChatDefaultParticipantAsync( + this IClient client, long chatId = default, MessageSender defaultParticipantId = default) + { + return client.ExecuteAsync(new SetVideoChatDefaultParticipant { - return client.ExecuteAsync(new SetVideoChatDefaultParticipant - { - ChatId = chatId, DefaultParticipantId = defaultParticipantId - }); - } + ChatId = chatId, DefaultParticipantId = defaultParticipantId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SetVideoChatTitle.cs b/TdLib.Api/Functions/SetVideoChatTitle.cs index 79575d90..16078118 100644 --- a/TdLib.Api/Functions/SetVideoChatTitle.cs +++ b/TdLib.Api/Functions/SetVideoChatTitle.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sets title of a video chat; requires groupCall.can_be_managed right /// - public static partial class TdApi + public class SetVideoChatTitle : Function { /// - /// Sets title of a video chat; requires groupCall.can_be_managed right + /// Data type for serialization /// - public class SetVideoChatTitle : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "setVideoChatTitle"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "setVideoChatTitle"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New group call title; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Sets title of a video chat; requires groupCall.can_be_managed right + /// New group call title; 1-64 characters /// - public static Task SetVideoChatTitleAsync( - this IClient client, int groupCallId = default, string title = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + } + + /// + /// Sets title of a video chat; requires groupCall.can_be_managed right + /// + public static Task SetVideoChatTitleAsync( + this IClient client, int groupCallId = default, string title = default) + { + return client.ExecuteAsync(new SetVideoChatTitle { - return client.ExecuteAsync(new SetVideoChatTitle - { - GroupCallId = groupCallId, Title = title - }); - } + GroupCallId = groupCallId, Title = title + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ShareChatWithBot.cs b/TdLib.Api/Functions/ShareChatWithBot.cs index 5b65d5f0..8c0d1ce6 100644 --- a/TdLib.Api/Functions/ShareChatWithBot.cs +++ b/TdLib.Api/Functions/ShareChatWithBot.cs @@ -3,72 +3,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot /// - public static partial class TdApi + public class ShareChatWithBot : Function { /// - /// Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot + /// Data type for serialization /// - public class ShareChatWithBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "shareChatWithBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "shareChatWithBot"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Source of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public KeyboardButtonSource Source { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_id")] - public int ButtonId { get; set; } + /// + /// Source of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public KeyboardButtonSource Source { get; set; } - /// - /// Identifier of the shared chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shared_chat_id")] - public long SharedChatId { get; set; } + /// + /// Identifier of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_id")] + public int ButtonId { get; set; } - /// - /// Pass true to check that the chat can be shared by the button instead of actually sharing it. Doesn't check bot_is_member and bot_administrator_rights restrictions. - /// If the bot must be a member, then all chats from getGroupsInCommon and all chats, where the user can add the bot, are suitable. In the latter case the bot will be automatically added to the chat. - /// If the bot must be an administrator, then all chats, where the bot already has requested rights or can be added to administrators by the user, are suitable. In the latter case the bot will be automatically granted requested rights - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_check")] - public bool OnlyCheck { get; set; } - } + /// + /// Identifier of the shared chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shared_chat_id")] + public long SharedChatId { get; set; } /// - /// Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot + /// Pass true to check that the chat can be shared by the button instead of actually sharing it. Doesn't check bot_is_member and bot_administrator_rights restrictions. + /// If the bot must be a member, then all chats from getGroupsInCommon and all chats, where the user can add the bot, are suitable. In the latter case the bot will be automatically added to the chat. + /// If the bot must be an administrator, then all chats, where the bot already has requested rights or can be added to administrators by the user, are suitable. In the latter case the bot will be automatically granted requested rights /// - public static Task ShareChatWithBotAsync( - this IClient client, KeyboardButtonSource source = default, int buttonId = default, long sharedChatId = default, bool onlyCheck = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_check")] + public bool OnlyCheck { get; set; } + } + + /// + /// Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot + /// + public static Task ShareChatWithBotAsync( + this IClient client, KeyboardButtonSource source = default, int buttonId = default, long sharedChatId = default, bool onlyCheck = default) + { + return client.ExecuteAsync(new ShareChatWithBot { - return client.ExecuteAsync(new ShareChatWithBot - { - Source = source, ButtonId = buttonId, SharedChatId = sharedChatId, OnlyCheck = onlyCheck - }); - } + Source = source, ButtonId = buttonId, SharedChatId = sharedChatId, OnlyCheck = onlyCheck + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SharePhoneNumber.cs b/TdLib.Api/Functions/SharePhoneNumber.cs index d116924c..8441db04 100644 --- a/TdLib.Api/Functions/SharePhoneNumber.cs +++ b/TdLib.Api/Functions/SharePhoneNumber.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber /// - public static partial class TdApi + public class SharePhoneNumber : Function { /// - /// Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber + /// Data type for serialization /// - public class SharePhoneNumber : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sharePhoneNumber"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "sharePhoneNumber"; - /// - /// Identifier of the user with whom to share the phone number. The user must be a mutual contact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber + /// Identifier of the user with whom to share the phone number. The user must be a mutual contact /// - public static Task SharePhoneNumberAsync( - this IClient client, long userId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + } + + /// + /// Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber + /// + public static Task SharePhoneNumberAsync( + this IClient client, long userId = default) + { + return client.ExecuteAsync(new SharePhoneNumber { - return client.ExecuteAsync(new SharePhoneNumber - { - UserId = userId - }); - } + UserId = userId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ShareUsersWithBot.cs b/TdLib.Api/Functions/ShareUsersWithBot.cs index 5d90c8db..6332c7d7 100644 --- a/TdLib.Api/Functions/ShareUsersWithBot.cs +++ b/TdLib.Api/Functions/ShareUsersWithBot.cs @@ -3,69 +3,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot /// - public static partial class TdApi + public class ShareUsersWithBot : Function { /// - /// Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot + /// Data type for serialization /// - public class ShareUsersWithBot : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "shareUsersWithBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "shareUsersWithBot"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Source of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public KeyboardButtonSource Source { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_id")] - public int ButtonId { get; set; } + /// + /// Source of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public KeyboardButtonSource Source { get; set; } - /// - /// Identifiers of the shared users - /// - [JsonProperty("shared_user_ids", ItemConverterType = typeof(Converter))] - public long[] SharedUserIds { get; set; } + /// + /// Identifier of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_id")] + public int ButtonId { get; set; } - /// - /// Pass true to check that the users can be shared by the button instead of actually sharing them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_check")] - public bool OnlyCheck { get; set; } - } + /// + /// Identifiers of the shared users + /// + [JsonProperty("shared_user_ids", ItemConverterType = typeof(Converter))] + public long[] SharedUserIds { get; set; } /// - /// Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot + /// Pass true to check that the users can be shared by the button instead of actually sharing them /// - public static Task ShareUsersWithBotAsync( - this IClient client, KeyboardButtonSource source = default, int buttonId = default, long[] sharedUserIds = default, bool onlyCheck = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("only_check")] + public bool OnlyCheck { get; set; } + } + + /// + /// Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot + /// + public static Task ShareUsersWithBotAsync( + this IClient client, KeyboardButtonSource source = default, int buttonId = default, long[] sharedUserIds = default, bool onlyCheck = default) + { + return client.ExecuteAsync(new ShareUsersWithBot { - return client.ExecuteAsync(new ShareUsersWithBot - { - Source = source, ButtonId = buttonId, SharedUserIds = sharedUserIds, OnlyCheck = onlyCheck - }); - } + Source = source, ButtonId = buttonId, SharedUserIds = sharedUserIds, OnlyCheck = onlyCheck + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/StartGroupCallRecording.cs b/TdLib.Api/Functions/StartGroupCallRecording.cs index dd6eb2c7..92e0c73e 100644 --- a/TdLib.Api/Functions/StartGroupCallRecording.cs +++ b/TdLib.Api/Functions/StartGroupCallRecording.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Starts recording of an active group call; for video chats only. Requires groupCall.can_be_managed right /// - public static partial class TdApi + public class StartGroupCallRecording : Function { /// - /// Starts recording of an active group call; for video chats only. Requires groupCall.can_be_managed right + /// Data type for serialization /// - public class StartGroupCallRecording : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "startGroupCallRecording"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "startGroupCallRecording"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Group call recording title; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Pass true to record a video file instead of an audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("record_video")] - public bool RecordVideo { get; set; } + /// + /// Group call recording title; 0-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Pass true to use portrait orientation for video instead of landscape one - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_portrait_orientation")] - public bool UsePortraitOrientation { get; set; } - } + /// + /// Pass true to record a video file instead of an audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("record_video")] + public bool RecordVideo { get; set; } /// - /// Starts recording of an active group call; for video chats only. Requires groupCall.can_be_managed right + /// Pass true to use portrait orientation for video instead of landscape one /// - public static Task StartGroupCallRecordingAsync( - this IClient client, int groupCallId = default, string title = default, bool recordVideo = default, bool usePortraitOrientation = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("use_portrait_orientation")] + public bool UsePortraitOrientation { get; set; } + } + + /// + /// Starts recording of an active group call; for video chats only. Requires groupCall.can_be_managed right + /// + public static Task StartGroupCallRecordingAsync( + this IClient client, int groupCallId = default, string title = default, bool recordVideo = default, bool usePortraitOrientation = default) + { + return client.ExecuteAsync(new StartGroupCallRecording { - return client.ExecuteAsync(new StartGroupCallRecording - { - GroupCallId = groupCallId, Title = title, RecordVideo = recordVideo, UsePortraitOrientation = usePortraitOrientation - }); - } + GroupCallId = groupCallId, Title = title, RecordVideo = recordVideo, UsePortraitOrientation = usePortraitOrientation + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/StartGroupCallScreenSharing.cs b/TdLib.Api/Functions/StartGroupCallScreenSharing.cs index 10265492..1cbad82b 100644 --- a/TdLib.Api/Functions/StartGroupCallScreenSharing.cs +++ b/TdLib.Api/Functions/StartGroupCallScreenSharing.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Starts screen sharing in a joined group call; not supported in live stories. Returns join response payload for tgcalls /// - public static partial class TdApi + public class StartGroupCallScreenSharing : Function { /// - /// Starts screen sharing in a joined group call; not supported in live stories. Returns join response payload for tgcalls + /// Data type for serialization /// - public class StartGroupCallScreenSharing : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "startGroupCallScreenSharing"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "startGroupCallScreenSharing"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Screen sharing audio channel synchronization source identifier; received from tgcalls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio_source_id")] - public int AudioSourceId { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Group call join payload; received from tgcalls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } - } + /// + /// Screen sharing audio channel synchronization source identifier; received from tgcalls + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio_source_id")] + public int AudioSourceId { get; set; } /// - /// Starts screen sharing in a joined group call; not supported in live stories. Returns join response payload for tgcalls + /// Group call join payload; received from tgcalls /// - public static Task StartGroupCallScreenSharingAsync( - this IClient client, int groupCallId = default, int audioSourceId = default, string payload = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } + } + + /// + /// Starts screen sharing in a joined group call; not supported in live stories. Returns join response payload for tgcalls + /// + public static Task StartGroupCallScreenSharingAsync( + this IClient client, int groupCallId = default, int audioSourceId = default, string payload = default) + { + return client.ExecuteAsync(new StartGroupCallScreenSharing { - return client.ExecuteAsync(new StartGroupCallScreenSharing - { - GroupCallId = groupCallId, AudioSourceId = audioSourceId, Payload = payload - }); - } + GroupCallId = groupCallId, AudioSourceId = audioSourceId, Payload = payload + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/StartLiveStory.cs b/TdLib.Api/Functions/StartLiveStory.cs index 60e37e1f..de29018b 100644 --- a/TdLib.Api/Functions/StartLiveStory.cs +++ b/TdLib.Api/Functions/StartLiveStory.cs @@ -3,84 +3,86 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Starts a new live story on behalf of a chat; requires can_post_stories administrator right for channel chats /// - public static partial class TdApi + public class StartLiveStory : Function { /// - /// Starts a new live story on behalf of a chat; requires can_post_stories administrator right for channel chats + /// Data type for serialization /// - public class StartLiveStory : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "startLiveStory"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "startLiveStory"; - /// - /// Identifier of the chat that will start the live story. Pass Saved Messages chat identifier when starting a live story on behalf of the current user, or a channel chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The privacy settings for the story; ignored for stories posted on behalf of channel chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("privacy_settings")] - public StoryPrivacySettings PrivacySettings { get; set; } + /// + /// Identifier of the chat that will start the live story. Pass Saved Messages chat identifier when starting a live story on behalf of the current user, or a channel chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true if the content of the story must be protected from screenshotting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protect_content")] - public bool ProtectContent { get; set; } + /// + /// The privacy settings for the story; ignored for stories posted on behalf of channel chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("privacy_settings")] + public StoryPrivacySettings PrivacySettings { get; set; } - /// - /// Pass true to create an RTMP stream instead of an ordinary group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtmp_stream")] - public bool IsRtmpStream { get; set; } + /// + /// Pass true if the content of the story must be protected from screenshotting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protect_content")] + public bool ProtectContent { get; set; } - /// - /// Pass true to allow viewers of the story to send messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("enable_messages")] - public bool EnableMessages { get; set; } + /// + /// Pass true to create an RTMP stream instead of an ordinary group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtmp_stream")] + public bool IsRtmpStream { get; set; } - /// - /// The minimum number of Telegram Stars that must be paid by viewers for each sent message to the call; 0-getOption("paid_group_call_message_star_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// Pass true to allow viewers of the story to send messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("enable_messages")] + public bool EnableMessages { get; set; } /// - /// Starts a new live story on behalf of a chat; requires can_post_stories administrator right for channel chats + /// The minimum number of Telegram Stars that must be paid by viewers for each sent message to the call; 0-getOption("paid_group_call_message_star_count_max") /// - public static Task StartLiveStoryAsync( - this IClient client, long chatId = default, StoryPrivacySettings privacySettings = default, bool protectContent = default, bool isRtmpStream = default, bool enableMessages = default, long paidMessageStarCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + } + + /// + /// Starts a new live story on behalf of a chat; requires can_post_stories administrator right for channel chats + /// + public static Task StartLiveStoryAsync( + this IClient client, long chatId = default, StoryPrivacySettings privacySettings = default, bool protectContent = default, bool isRtmpStream = default, bool enableMessages = default, long paidMessageStarCount = default) + { + return client.ExecuteAsync(new StartLiveStory { - return client.ExecuteAsync(new StartLiveStory - { - ChatId = chatId, PrivacySettings = privacySettings, ProtectContent = protectContent, IsRtmpStream = isRtmpStream, EnableMessages = enableMessages, PaidMessageStarCount = paidMessageStarCount - }); - } + ChatId = chatId, PrivacySettings = privacySettings, ProtectContent = protectContent, IsRtmpStream = isRtmpStream, EnableMessages = enableMessages, PaidMessageStarCount = paidMessageStarCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/StartScheduledVideoChat.cs b/TdLib.Api/Functions/StartScheduledVideoChat.cs index 6a750c8f..32e64458 100644 --- a/TdLib.Api/Functions/StartScheduledVideoChat.cs +++ b/TdLib.Api/Functions/StartScheduledVideoChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Starts a scheduled video chat /// - public static partial class TdApi + public class StartScheduledVideoChat : Function { /// - /// Starts a scheduled video chat + /// Data type for serialization /// - public class StartScheduledVideoChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "startScheduledVideoChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "startScheduledVideoChat"; - /// - /// Group call identifier of the video chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Starts a scheduled video chat + /// Group call identifier of the video chat /// - public static Task StartScheduledVideoChatAsync( - this IClient client, int groupCallId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } + } + + /// + /// Starts a scheduled video chat + /// + public static Task StartScheduledVideoChatAsync( + this IClient client, int groupCallId = default) + { + return client.ExecuteAsync(new StartScheduledVideoChat { - return client.ExecuteAsync(new StartScheduledVideoChat - { - GroupCallId = groupCallId - }); - } + GroupCallId = groupCallId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/StopBusinessPoll.cs b/TdLib.Api/Functions/StopBusinessPoll.cs index 5f3c5ced..381ff234 100644 --- a/TdLib.Api/Functions/StopBusinessPoll.cs +++ b/TdLib.Api/Functions/StopBusinessPoll.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Stops a poll sent on behalf of a business account; for bots only /// - public static partial class TdApi + public class StopBusinessPoll : Function { /// - /// Stops a poll sent on behalf of a business account; for bots only + /// Data type for serialization /// - public class StopBusinessPoll : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stopBusinessPoll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stopBusinessPoll"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection on behalf of which the message with the poll was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat the message belongs to - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Unique identifier of business connection on behalf of which the message with the poll was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the message containing the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The chat the message belongs to + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// Identifier of the message containing the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Stops a poll sent on behalf of a business account; for bots only + /// The new message reply markup; pass null if none /// - public static Task StopBusinessPollAsync( - this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } + } + + /// + /// Stops a poll sent on behalf of a business account; for bots only + /// + public static Task StopBusinessPollAsync( + this IClient client, string businessConnectionId = default, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + { + return client.ExecuteAsync(new StopBusinessPoll { - return client.ExecuteAsync(new StopBusinessPoll - { - BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup - }); - } + BusinessConnectionId = businessConnectionId, ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/StopPendingMessage.cs b/TdLib.Api/Functions/StopPendingMessage.cs index c00bb1a6..142ca7db 100644 --- a/TdLib.Api/Functions/StopPendingMessage.cs +++ b/TdLib.Api/Functions/StopPendingMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Stops a pending message generation by a bot /// - public static partial class TdApi + public class StopPendingMessage : Function { /// - /// Stops a pending message generation by a bot + /// Data type for serialization /// - public class StopPendingMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stopPendingMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stopPendingMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat with the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic in which the action is performed; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the chat with the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique identifier of the message draft within the message thread - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("draft_id")] - public long DraftId { get; set; } - } + /// + /// Identifier of the topic in which the action is performed; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } /// - /// Stops a pending message generation by a bot + /// Unique identifier of the message draft within the message thread /// - public static Task StopPendingMessageAsync( - this IClient client, long chatId = default, MessageTopic topicId = default, long draftId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("draft_id")] + public long DraftId { get; set; } + } + + /// + /// Stops a pending message generation by a bot + /// + public static Task StopPendingMessageAsync( + this IClient client, long chatId = default, MessageTopic topicId = default, long draftId = default) + { + return client.ExecuteAsync(new StopPendingMessage { - return client.ExecuteAsync(new StopPendingMessage - { - ChatId = chatId, TopicId = topicId, DraftId = draftId - }); - } + ChatId = chatId, TopicId = topicId, DraftId = draftId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/StopPoll.cs b/TdLib.Api/Functions/StopPoll.cs index 1dcbd6ac..c07ccf76 100644 --- a/TdLib.Api/Functions/StopPoll.cs +++ b/TdLib.Api/Functions/StopPoll.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Stops a poll /// - public static partial class TdApi + public class StopPoll : Function { /// - /// Stops a poll + /// Data type for serialization /// - public class StopPoll : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stopPoll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stopPoll"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the poll belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message containing the poll. Use messageProperties.can_be_edited to check whether the poll can be stopped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the poll belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new message reply markup; pass null if none; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// Identifier of the message containing the poll. Use messageProperties.can_be_edited to check whether the poll can be stopped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } /// - /// Stops a poll + /// The new message reply markup; pass null if none; for bots only /// - public static Task StopPollAsync( - this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } + } + + /// + /// Stops a poll + /// + public static Task StopPollAsync( + this IClient client, long chatId = default, long messageId = default, ReplyMarkup replyMarkup = default) + { + return client.ExecuteAsync(new StopPoll { - return client.ExecuteAsync(new StopPoll - { - ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup - }); - } + ChatId = chatId, MessageId = messageId, ReplyMarkup = replyMarkup + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SuggestUserBirthdate.cs b/TdLib.Api/Functions/SuggestUserBirthdate.cs index 17e6dbdf..4a3b114c 100644 --- a/TdLib.Api/Functions/SuggestUserBirthdate.cs +++ b/TdLib.Api/Functions/SuggestUserBirthdate.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Suggests a birthdate to another regular user with common messages and allowing non-paid messages /// - public static partial class TdApi + public class SuggestUserBirthdate : Function { /// - /// Suggests a birthdate to another regular user with common messages and allowing non-paid messages + /// Data type for serialization /// - public class SuggestUserBirthdate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestUserBirthdate"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestUserBirthdate"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Birthdate to suggest - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("birthdate")] - public Birthdate Birthdate { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Suggests a birthdate to another regular user with common messages and allowing non-paid messages + /// Birthdate to suggest /// - public static Task SuggestUserBirthdateAsync( - this IClient client, long userId = default, Birthdate birthdate = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("birthdate")] + public Birthdate Birthdate { get; set; } + } + + /// + /// Suggests a birthdate to another regular user with common messages and allowing non-paid messages + /// + public static Task SuggestUserBirthdateAsync( + this IClient client, long userId = default, Birthdate birthdate = default) + { + return client.ExecuteAsync(new SuggestUserBirthdate { - return client.ExecuteAsync(new SuggestUserBirthdate - { - UserId = userId, Birthdate = birthdate - }); - } + UserId = userId, Birthdate = birthdate + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SuggestUserProfilePhoto.cs b/TdLib.Api/Functions/SuggestUserProfilePhoto.cs index 18fd9714..f5126bd3 100644 --- a/TdLib.Api/Functions/SuggestUserProfilePhoto.cs +++ b/TdLib.Api/Functions/SuggestUserProfilePhoto.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Suggests a profile photo to another regular user with common messages and allowing non-paid messages /// - public static partial class TdApi + public class SuggestUserProfilePhoto : Function { /// - /// Suggests a profile photo to another regular user with common messages and allowing non-paid messages + /// Data type for serialization /// - public class SuggestUserProfilePhoto : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestUserProfilePhoto"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestUserProfilePhoto"; - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Profile photo to suggest; inputChatPhotoPrevious isn't supported in this function - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputChatPhoto Photo { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Suggests a profile photo to another regular user with common messages and allowing non-paid messages + /// Profile photo to suggest; inputChatPhotoPrevious isn't supported in this function /// - public static Task SuggestUserProfilePhotoAsync( - this IClient client, long userId = default, InputChatPhoto photo = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputChatPhoto Photo { get; set; } + } + + /// + /// Suggests a profile photo to another regular user with common messages and allowing non-paid messages + /// + public static Task SuggestUserProfilePhotoAsync( + this IClient client, long userId = default, InputChatPhoto photo = default) + { + return client.ExecuteAsync(new SuggestUserProfilePhoto { - return client.ExecuteAsync(new SuggestUserProfilePhoto - { - UserId = userId, Photo = photo - }); - } + UserId = userId, Photo = photo + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SummarizeMessage.cs b/TdLib.Api/Functions/SummarizeMessage.cs index 8133cf30..940a54f9 100644 --- a/TdLib.Api/Functions/SummarizeMessage.cs +++ b/TdLib.Api/Functions/SummarizeMessage.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Summarizes content of the message with non-empty summary_language_code /// - public static partial class TdApi + public class SummarizeMessage : Function { /// - /// Summarizes content of the message with non-empty summary_language_code + /// Data type for serialization /// - public class SummarizeMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "summarizeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "summarizeMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass a language code to which the summary will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("translate_to_language_code")] - public string TranslateToLanguageCode { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Tone of the summarization; see translateText.tone for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tone")] - public string Tone { get; set; } - } + /// + /// Pass a language code to which the summary will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("translate_to_language_code")] + public string TranslateToLanguageCode { get; set; } /// - /// Summarizes content of the message with non-empty summary_language_code + /// Tone of the summarization; see translateText.tone for the list of supported values /// - public static Task SummarizeMessageAsync( - this IClient client, long chatId = default, long messageId = default, string translateToLanguageCode = default, string tone = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tone")] + public string Tone { get; set; } + } + + /// + /// Summarizes content of the message with non-empty summary_language_code + /// + public static Task SummarizeMessageAsync( + this IClient client, long chatId = default, long messageId = default, string translateToLanguageCode = default, string tone = default) + { + return client.ExecuteAsync(new SummarizeMessage { - return client.ExecuteAsync(new SummarizeMessage - { - ChatId = chatId, MessageId = messageId, TranslateToLanguageCode = translateToLanguageCode, Tone = tone - }); - } + ChatId = chatId, MessageId = messageId, TranslateToLanguageCode = translateToLanguageCode, Tone = tone + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/SynchronizeLanguagePack.cs b/TdLib.Api/Functions/SynchronizeLanguagePack.cs index 262a1f07..12e3dc95 100644 --- a/TdLib.Api/Functions/SynchronizeLanguagePack.cs +++ b/TdLib.Api/Functions/SynchronizeLanguagePack.cs @@ -3,51 +3,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Fetches the latest versions of all strings from a language pack in the current localization target from the server. + /// This method doesn't need to be called explicitly for the current used/base language packs. Can be called before authorization /// - public static partial class TdApi + public class SynchronizeLanguagePack : Function { /// - /// Fetches the latest versions of all strings from a language pack in the current localization target from the server. - /// This method doesn't need to be called explicitly for the current used/base language packs. Can be called before authorization + /// Data type for serialization /// - public class SynchronizeLanguagePack : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "synchronizeLanguagePack"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "synchronizeLanguagePack"; - /// - /// Language pack identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Fetches the latest versions of all strings from a language pack in the current localization target from the server. - /// This method doesn't need to be called explicitly for the current used/base language packs. Can be called before authorization + /// Language pack identifier /// - public static Task SynchronizeLanguagePackAsync( - this IClient client, string languagePackId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } + } + + /// + /// Fetches the latest versions of all strings from a language pack in the current localization target from the server. + /// This method doesn't need to be called explicitly for the current used/base language packs. Can be called before authorization + /// + public static Task SynchronizeLanguagePackAsync( + this IClient client, string languagePackId = default) + { + return client.ExecuteAsync(new SynchronizeLanguagePack { - return client.ExecuteAsync(new SynchronizeLanguagePack - { - LanguagePackId = languagePackId - }); - } + LanguagePackId = languagePackId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TerminateAllOtherSessions.cs b/TdLib.Api/Functions/TerminateAllOtherSessions.cs index 479be79b..34f91066 100644 --- a/TdLib.Api/Functions/TerminateAllOtherSessions.cs +++ b/TdLib.Api/Functions/TerminateAllOtherSessions.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Terminates all other sessions of the current user. Additionally, the user must be suggested to delete the connected business bot using deleteBusinessConnectedBot if there is any /// - public static partial class TdApi + public class TerminateAllOtherSessions : Function { /// - /// Terminates all other sessions of the current user. Additionally, the user must be suggested to delete the connected business bot using deleteBusinessConnectedBot if there is any + /// Data type for serialization /// - public class TerminateAllOtherSessions : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "terminateAllOtherSessions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "terminateAllOtherSessions"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Terminates all other sessions of the current user. Additionally, the user must be suggested to delete the connected business bot using deleteBusinessConnectedBot if there is any - /// - public static Task TerminateAllOtherSessionsAsync( - this IClient client) + /// + /// Terminates all other sessions of the current user. Additionally, the user must be suggested to delete the connected business bot using deleteBusinessConnectedBot if there is any + /// + public static Task TerminateAllOtherSessionsAsync( + this IClient client) + { + return client.ExecuteAsync(new TerminateAllOtherSessions { - return client.ExecuteAsync(new TerminateAllOtherSessions - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TerminateSession.cs b/TdLib.Api/Functions/TerminateSession.cs index 5615fbab..28f67478 100644 --- a/TdLib.Api/Functions/TerminateSession.cs +++ b/TdLib.Api/Functions/TerminateSession.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Terminates a session of the current user /// - public static partial class TdApi + public class TerminateSession : Function { /// - /// Terminates a session of the current user + /// Data type for serialization /// - public class TerminateSession : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "terminateSession"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "terminateSession"; - /// - /// Session identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("session_id")] - public long SessionId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Terminates a session of the current user + /// Session identifier /// - public static Task TerminateSessionAsync( - this IClient client, long sessionId = default) + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + } + + /// + /// Terminates a session of the current user + /// + public static Task TerminateSessionAsync( + this IClient client, long sessionId = default) + { + return client.ExecuteAsync(new TerminateSession { - return client.ExecuteAsync(new TerminateSession - { - SessionId = sessionId - }); - } + SessionId = sessionId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestCallBytes.cs b/TdLib.Api/Functions/TestCallBytes.cs index f7d77a52..972fb7ba 100644 --- a/TdLib.Api/Functions/TestCallBytes.cs +++ b/TdLib.Api/Functions/TestCallBytes.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the received bytes; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestCallBytes : Function { /// - /// Returns the received bytes; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestCallBytes : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testCallBytes"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testCallBytes"; - /// - /// Bytes to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("x")] - public byte[] X { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the received bytes; for testing only. This is an offline method. Can be called before authorization + /// Bytes to return /// - public static Task TestCallBytesAsync( - this IClient client, byte[] x = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("x")] + public byte[] X { get; set; } + } + + /// + /// Returns the received bytes; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestCallBytesAsync( + this IClient client, byte[] x = default) + { + return client.ExecuteAsync(new TestCallBytes { - return client.ExecuteAsync(new TestCallBytes - { - X = x - }); - } + X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestCallEmpty.cs b/TdLib.Api/Functions/TestCallEmpty.cs index e911b825..877aa3da 100644 --- a/TdLib.Api/Functions/TestCallEmpty.cs +++ b/TdLib.Api/Functions/TestCallEmpty.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Does nothing; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestCallEmpty : Function { /// - /// Does nothing; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestCallEmpty : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testCallEmpty"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testCallEmpty"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Does nothing; for testing only. This is an offline method. Can be called before authorization - /// - public static Task TestCallEmptyAsync( - this IClient client) + /// + /// Does nothing; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestCallEmptyAsync( + this IClient client) + { + return client.ExecuteAsync(new TestCallEmpty { - return client.ExecuteAsync(new TestCallEmpty - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestCallString.cs b/TdLib.Api/Functions/TestCallString.cs index 53b7b5f5..8cbab9f4 100644 --- a/TdLib.Api/Functions/TestCallString.cs +++ b/TdLib.Api/Functions/TestCallString.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the received string; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestCallString : Function { /// - /// Returns the received string; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestCallString : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testCallString"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testCallString"; - /// - /// String to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("x")] - public string X { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the received string; for testing only. This is an offline method. Can be called before authorization + /// String to return /// - public static Task TestCallStringAsync( - this IClient client, string x = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("x")] + public string X { get; set; } + } + + /// + /// Returns the received string; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestCallStringAsync( + this IClient client, string x = default) + { + return client.ExecuteAsync(new TestCallString { - return client.ExecuteAsync(new TestCallString - { - X = x - }); - } + X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestCallVectorInt.cs b/TdLib.Api/Functions/TestCallVectorInt.cs index e13bcd8e..e51c1ee0 100644 --- a/TdLib.Api/Functions/TestCallVectorInt.cs +++ b/TdLib.Api/Functions/TestCallVectorInt.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestCallVectorInt : Function { /// - /// Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestCallVectorInt : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testCallVectorInt"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testCallVectorInt"; - /// - /// Vector of numbers to return - /// - [JsonProperty("x", ItemConverterType = typeof(Converter))] - public int[] X { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization + /// Vector of numbers to return /// - public static Task TestCallVectorIntAsync( - this IClient client, int[] x = default) + [JsonProperty("x", ItemConverterType = typeof(Converter))] + public int[] X { get; set; } + } + + /// + /// Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestCallVectorIntAsync( + this IClient client, int[] x = default) + { + return client.ExecuteAsync(new TestCallVectorInt { - return client.ExecuteAsync(new TestCallVectorInt - { - X = x - }); - } + X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestCallVectorIntObject.cs b/TdLib.Api/Functions/TestCallVectorIntObject.cs index 3066a30e..bc282d6e 100644 --- a/TdLib.Api/Functions/TestCallVectorIntObject.cs +++ b/TdLib.Api/Functions/TestCallVectorIntObject.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestCallVectorIntObject : Function { /// - /// Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestCallVectorIntObject : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testCallVectorIntObject"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testCallVectorIntObject"; - /// - /// Vector of objects to return - /// - [JsonProperty("x", ItemConverterType = typeof(Converter))] - public TestInt[] X { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization + /// Vector of objects to return /// - public static Task TestCallVectorIntObjectAsync( - this IClient client, TestInt[] x = default) + [JsonProperty("x", ItemConverterType = typeof(Converter))] + public TestInt[] X { get; set; } + } + + /// + /// Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestCallVectorIntObjectAsync( + this IClient client, TestInt[] x = default) + { + return client.ExecuteAsync(new TestCallVectorIntObject { - return client.ExecuteAsync(new TestCallVectorIntObject - { - X = x - }); - } + X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestCallVectorString.cs b/TdLib.Api/Functions/TestCallVectorString.cs index 6a8fb0f8..8fb44212 100644 --- a/TdLib.Api/Functions/TestCallVectorString.cs +++ b/TdLib.Api/Functions/TestCallVectorString.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestCallVectorString : Function { /// - /// Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestCallVectorString : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testCallVectorString"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testCallVectorString"; - /// - /// Vector of strings to return - /// - [JsonProperty("x", ItemConverterType = typeof(Converter))] - public string[] X { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization + /// Vector of strings to return /// - public static Task TestCallVectorStringAsync( - this IClient client, string[] x = default) + [JsonProperty("x", ItemConverterType = typeof(Converter))] + public string[] X { get; set; } + } + + /// + /// Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestCallVectorStringAsync( + this IClient client, string[] x = default) + { + return client.ExecuteAsync(new TestCallVectorString { - return client.ExecuteAsync(new TestCallVectorString - { - X = x - }); - } + X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestCallVectorStringObject.cs b/TdLib.Api/Functions/TestCallVectorStringObject.cs index 824f8266..efeea7c1 100644 --- a/TdLib.Api/Functions/TestCallVectorStringObject.cs +++ b/TdLib.Api/Functions/TestCallVectorStringObject.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestCallVectorStringObject : Function { /// - /// Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestCallVectorStringObject : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testCallVectorStringObject"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testCallVectorStringObject"; - /// - /// Vector of objects to return - /// - [JsonProperty("x", ItemConverterType = typeof(Converter))] - public TestString[] X { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization + /// Vector of objects to return /// - public static Task TestCallVectorStringObjectAsync( - this IClient client, TestString[] x = default) + [JsonProperty("x", ItemConverterType = typeof(Converter))] + public TestString[] X { get; set; } + } + + /// + /// Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestCallVectorStringObjectAsync( + this IClient client, TestString[] x = default) + { + return client.ExecuteAsync(new TestCallVectorStringObject { - return client.ExecuteAsync(new TestCallVectorStringObject - { - X = x - }); - } + X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestGetDifference.cs b/TdLib.Api/Functions/TestGetDifference.cs index bace12c1..97bb8064 100644 --- a/TdLib.Api/Functions/TestGetDifference.cs +++ b/TdLib.Api/Functions/TestGetDifference.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Forces an updates.getDifference call to the Telegram servers; for testing only /// - public static partial class TdApi + public class TestGetDifference : Function { /// - /// Forces an updates.getDifference call to the Telegram servers; for testing only + /// Data type for serialization /// - public class TestGetDifference : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testGetDifference"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testGetDifference"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Forces an updates.getDifference call to the Telegram servers; for testing only - /// - public static Task TestGetDifferenceAsync( - this IClient client) + /// + /// Forces an updates.getDifference call to the Telegram servers; for testing only + /// + public static Task TestGetDifferenceAsync( + this IClient client) + { + return client.ExecuteAsync(new TestGetDifference { - return client.ExecuteAsync(new TestGetDifference - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestNetwork.cs b/TdLib.Api/Functions/TestNetwork.cs index 60c5803c..6a957257 100644 --- a/TdLib.Api/Functions/TestNetwork.cs +++ b/TdLib.Api/Functions/TestNetwork.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization /// - public static partial class TdApi + public class TestNetwork : Function { /// - /// Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization + /// Data type for serialization /// - public class TestNetwork : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testNetwork"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testNetwork"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization - /// - public static Task TestNetworkAsync( - this IClient client) + /// + /// Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization + /// + public static Task TestNetworkAsync( + this IClient client) + { + return client.ExecuteAsync(new TestNetwork { - return client.ExecuteAsync(new TestNetwork - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestProxy.cs b/TdLib.Api/Functions/TestProxy.cs index 6499a67a..d15e5234 100644 --- a/TdLib.Api/Functions/TestProxy.cs +++ b/TdLib.Api/Functions/TestProxy.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization /// - public static partial class TdApi + public class TestProxy : Function { /// - /// Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization + /// Data type for serialization /// - public class TestProxy : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testProxy"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The proxy to test - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy")] - public Proxy Proxy { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a datacenter with which to test connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dc_id")] - public int DcId { get; set; } + /// + /// The proxy to test + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy")] + public Proxy Proxy { get; set; } - /// - /// The maximum overall timeout for the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("timeout")] - public double? Timeout { get; set; } - } + /// + /// Identifier of a datacenter with which to test connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dc_id")] + public int DcId { get; set; } /// - /// Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization + /// The maximum overall timeout for the request /// - public static Task TestProxyAsync( - this IClient client, Proxy proxy = default, int dcId = default, double? timeout = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("timeout")] + public double? Timeout { get; set; } + } + + /// + /// Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization + /// + public static Task TestProxyAsync( + this IClient client, Proxy proxy = default, int dcId = default, double? timeout = default) + { + return client.ExecuteAsync(new TestProxy { - return client.ExecuteAsync(new TestProxy - { - Proxy = proxy, DcId = dcId, Timeout = timeout - }); - } + Proxy = proxy, DcId = dcId, Timeout = timeout + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestReturnError.cs b/TdLib.Api/Functions/TestReturnError.cs index da474900..5e09fd43 100644 --- a/TdLib.Api/Functions/TestReturnError.cs +++ b/TdLib.Api/Functions/TestReturnError.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously /// - public static partial class TdApi + public class TestReturnError : Function { /// - /// Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously + /// Data type for serialization /// - public class TestReturnError : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testReturnError"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testReturnError"; - /// - /// The error to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously + /// The error to be returned /// - public static Task TestReturnErrorAsync( - this IClient client, Error error = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } + } + + /// + /// Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously + /// + public static Task TestReturnErrorAsync( + this IClient client, Error error = default) + { + return client.ExecuteAsync(new TestReturnError { - return client.ExecuteAsync(new TestReturnError - { - Error = error - }); - } + Error = error + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestSquareInt.cs b/TdLib.Api/Functions/TestSquareInt.cs index 25e6bd3e..5dffdc9b 100644 --- a/TdLib.Api/Functions/TestSquareInt.cs +++ b/TdLib.Api/Functions/TestSquareInt.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns the squared received number; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestSquareInt : Function { /// - /// Returns the squared received number; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestSquareInt : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testSquareInt"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "testSquareInt"; - /// - /// Number to square - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("x")] - public int X { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Returns the squared received number; for testing only. This is an offline method. Can be called before authorization + /// Number to square /// - public static Task TestSquareIntAsync( - this IClient client, int x = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("x")] + public int X { get; set; } + } + + /// + /// Returns the squared received number; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestSquareIntAsync( + this IClient client, int x = default) + { + return client.ExecuteAsync(new TestSquareInt { - return client.ExecuteAsync(new TestSquareInt - { - X = x - }); - } + X = x + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TestUseUpdate.cs b/TdLib.Api/Functions/TestUseUpdate.cs index 1481f710..470ba99c 100644 --- a/TdLib.Api/Functions/TestUseUpdate.cs +++ b/TdLib.Api/Functions/TestUseUpdate.cs @@ -3,44 +3,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization /// - public static partial class TdApi + public class TestUseUpdate : Function { /// - /// Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization + /// Data type for serialization /// - public class TestUseUpdate : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testUseUpdate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testUseUpdate"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } + } - /// - /// Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization - /// - public static Task TestUseUpdateAsync( - this IClient client) + /// + /// Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization + /// + public static Task TestUseUpdateAsync( + this IClient client) + { + return client.ExecuteAsync(new TestUseUpdate { - return client.ExecuteAsync(new TestUseUpdate - { - - }); - } + + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleAllDownloadsArePaused.cs b/TdLib.Api/Functions/ToggleAllDownloadsArePaused.cs index 05ff6e14..f472b0f5 100644 --- a/TdLib.Api/Functions/ToggleAllDownloadsArePaused.cs +++ b/TdLib.Api/Functions/ToggleAllDownloadsArePaused.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes pause state of all files in the file download list /// - public static partial class TdApi + public class ToggleAllDownloadsArePaused : Function { /// - /// Changes pause state of all files in the file download list + /// Data type for serialization /// - public class ToggleAllDownloadsArePaused : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleAllDownloadsArePaused"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleAllDownloadsArePaused"; - /// - /// Pass true to pause all downloads; pass false to unpause them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_paused")] - public bool ArePaused { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Changes pause state of all files in the file download list + /// Pass true to pause all downloads; pass false to unpause them /// - public static Task ToggleAllDownloadsArePausedAsync( - this IClient client, bool arePaused = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("are_paused")] + public bool ArePaused { get; set; } + } + + /// + /// Changes pause state of all files in the file download list + /// + public static Task ToggleAllDownloadsArePausedAsync( + this IClient client, bool arePaused = default) + { + return client.ExecuteAsync(new ToggleAllDownloadsArePaused { - return client.ExecuteAsync(new ToggleAllDownloadsArePaused - { - ArePaused = arePaused - }); - } + ArePaused = arePaused + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleBotCanManageEmojiStatus.cs b/TdLib.Api/Functions/ToggleBotCanManageEmojiStatus.cs index 35402238..de706abb 100644 --- a/TdLib.Api/Functions/ToggleBotCanManageEmojiStatus.cs +++ b/TdLib.Api/Functions/ToggleBotCanManageEmojiStatus.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether the bot can manage emoji status of the current user /// - public static partial class TdApi + public class ToggleBotCanManageEmojiStatus : Function { /// - /// Toggles whether the bot can manage emoji status of the current user + /// Data type for serialization /// - public class ToggleBotCanManageEmojiStatus : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleBotCanManageEmojiStatus"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleBotCanManageEmojiStatus"; - /// - /// User identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the bot is allowed to change emoji status of the user; pass false otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_emoji_status")] - public bool CanManageEmojiStatus { get; set; } - } + /// + /// User identifier of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } /// - /// Toggles whether the bot can manage emoji status of the current user + /// Pass true if the bot is allowed to change emoji status of the user; pass false otherwise /// - public static Task ToggleBotCanManageEmojiStatusAsync( - this IClient client, long botUserId = default, bool canManageEmojiStatus = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_emoji_status")] + public bool CanManageEmojiStatus { get; set; } + } + + /// + /// Toggles whether the bot can manage emoji status of the current user + /// + public static Task ToggleBotCanManageEmojiStatusAsync( + this IClient client, long botUserId = default, bool canManageEmojiStatus = default) + { + return client.ExecuteAsync(new ToggleBotCanManageEmojiStatus { - return client.ExecuteAsync(new ToggleBotCanManageEmojiStatus - { - BotUserId = botUserId, CanManageEmojiStatus = canManageEmojiStatus - }); - } + BotUserId = botUserId, CanManageEmojiStatus = canManageEmojiStatus + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleBotIsAddedToAttachmentMenu.cs b/TdLib.Api/Functions/ToggleBotIsAddedToAttachmentMenu.cs index 6eebe6ad..b5da8481 100644 --- a/TdLib.Api/Functions/ToggleBotIsAddedToAttachmentMenu.cs +++ b/TdLib.Api/Functions/ToggleBotIsAddedToAttachmentMenu.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true /// - public static partial class TdApi + public class ToggleBotIsAddedToAttachmentMenu : Function { /// - /// Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true + /// Data type for serialization /// - public class ToggleBotIsAddedToAttachmentMenu : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleBotIsAddedToAttachmentMenu"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleBotIsAddedToAttachmentMenu"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Bot's user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_added")] - public bool IsAdded { get; set; } + /// + /// Bot's user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_write_access")] - public bool AllowWriteAccess { get; set; } - } + /// + /// Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_added")] + public bool IsAdded { get; set; } /// - /// Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true + /// Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false /// - public static Task ToggleBotIsAddedToAttachmentMenuAsync( - this IClient client, long botUserId = default, bool isAdded = default, bool allowWriteAccess = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_write_access")] + public bool AllowWriteAccess { get; set; } + } + + /// + /// Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true + /// + public static Task ToggleBotIsAddedToAttachmentMenuAsync( + this IClient client, long botUserId = default, bool isAdded = default, bool allowWriteAccess = default) + { + return client.ExecuteAsync(new ToggleBotIsAddedToAttachmentMenu { - return client.ExecuteAsync(new ToggleBotIsAddedToAttachmentMenu - { - BotUserId = botUserId, IsAdded = isAdded, AllowWriteAccess = allowWriteAccess - }); - } + BotUserId = botUserId, IsAdded = isAdded, AllowWriteAccess = allowWriteAccess + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleBotUsernameIsActive.cs b/TdLib.Api/Functions/ToggleBotUsernameIsActive.cs index 6570957f..1ccf7acf 100644 --- a/TdLib.Api/Functions/ToggleBotUsernameIsActive.cs +++ b/TdLib.Api/Functions/ToggleBotUsernameIsActive.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes active state for a username of a bot. The editable username can be disabled only if there are other active usernames. + /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true /// - public static partial class TdApi + public class ToggleBotUsernameIsActive : Function { /// - /// Changes active state for a username of a bot. The editable username can be disabled only if there are other active usernames. - /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true + /// Data type for serialization /// - public class ToggleBotUsernameIsActive : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleBotUsernameIsActive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleBotUsernameIsActive"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the target bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The username to change - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Identifier of the target bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Pass true to activate the username; pass false to disable it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_active")] - public bool IsActive { get; set; } - } + /// + /// The username to change + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } /// - /// Changes active state for a username of a bot. The editable username can be disabled only if there are other active usernames. - /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true + /// Pass true to activate the username; pass false to disable it /// - public static Task ToggleBotUsernameIsActiveAsync( - this IClient client, long botUserId = default, string username = default, bool isActive = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_active")] + public bool IsActive { get; set; } + } + + /// + /// Changes active state for a username of a bot. The editable username can be disabled only if there are other active usernames. + /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true + /// + public static Task ToggleBotUsernameIsActiveAsync( + this IClient client, long botUserId = default, string username = default, bool isActive = default) + { + return client.ExecuteAsync(new ToggleBotUsernameIsActive { - return client.ExecuteAsync(new ToggleBotUsernameIsActive - { - BotUserId = botUserId, Username = username, IsActive = isActive - }); - } + BotUserId = botUserId, Username = username, IsActive = isActive + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleBusinessConnectedBotChatIsPaused.cs b/TdLib.Api/Functions/ToggleBusinessConnectedBotChatIsPaused.cs index f9d2a080..b921bbfa 100644 --- a/TdLib.Api/Functions/ToggleBusinessConnectedBotChatIsPaused.cs +++ b/TdLib.Api/Functions/ToggleBusinessConnectedBotChatIsPaused.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Pauses or resumes the connected business bot in a specific chat /// - public static partial class TdApi + public class ToggleBusinessConnectedBotChatIsPaused : Function { /// - /// Pauses or resumes the connected business bot in a specific chat + /// Data type for serialization /// - public class ToggleBusinessConnectedBotChatIsPaused : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleBusinessConnectedBotChatIsPaused"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleBusinessConnectedBotChatIsPaused"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to pause the connected bot in the chat; pass false to resume the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paused")] - public bool IsPaused { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Pauses or resumes the connected business bot in a specific chat + /// Pass true to pause the connected bot in the chat; pass false to resume the bot /// - public static Task ToggleBusinessConnectedBotChatIsPausedAsync( - this IClient client, long chatId = default, bool isPaused = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paused")] + public bool IsPaused { get; set; } + } + + /// + /// Pauses or resumes the connected business bot in a specific chat + /// + public static Task ToggleBusinessConnectedBotChatIsPausedAsync( + this IClient client, long chatId = default, bool isPaused = default) + { + return client.ExecuteAsync(new ToggleBusinessConnectedBotChatIsPaused { - return client.ExecuteAsync(new ToggleBusinessConnectedBotChatIsPaused - { - ChatId = chatId, IsPaused = isPaused - }); - } + ChatId = chatId, IsPaused = isPaused + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatDefaultDisableNotification.cs b/TdLib.Api/Functions/ToggleChatDefaultDisableNotification.cs index b271bcd1..ab7d9d9a 100644 --- a/TdLib.Api/Functions/ToggleChatDefaultDisableNotification.cs +++ b/TdLib.Api/Functions/ToggleChatDefaultDisableNotification.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the value of the default disable_notification parameter, used when a message is sent to a chat /// - public static partial class TdApi + public class ToggleChatDefaultDisableNotification : Function { /// - /// Changes the value of the default disable_notification parameter, used when a message is sent to a chat + /// Data type for serialization /// - public class ToggleChatDefaultDisableNotification : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatDefaultDisableNotification"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatDefaultDisableNotification"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of default_disable_notification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_disable_notification")] - public bool DefaultDisableNotification { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the value of the default disable_notification parameter, used when a message is sent to a chat + /// New value of default_disable_notification /// - public static Task ToggleChatDefaultDisableNotificationAsync( - this IClient client, long chatId = default, bool defaultDisableNotification = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("default_disable_notification")] + public bool DefaultDisableNotification { get; set; } + } + + /// + /// Changes the value of the default disable_notification parameter, used when a message is sent to a chat + /// + public static Task ToggleChatDefaultDisableNotificationAsync( + this IClient client, long chatId = default, bool defaultDisableNotification = default) + { + return client.ExecuteAsync(new ToggleChatDefaultDisableNotification { - return client.ExecuteAsync(new ToggleChatDefaultDisableNotification - { - ChatId = chatId, DefaultDisableNotification = defaultDisableNotification - }); - } + ChatId = chatId, DefaultDisableNotification = defaultDisableNotification + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatFolderTags.cs b/TdLib.Api/Functions/ToggleChatFolderTags.cs index 2489319f..dbef878c 100644 --- a/TdLib.Api/Functions/ToggleChatFolderTags.cs +++ b/TdLib.Api/Functions/ToggleChatFolderTags.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether chat folder tags are enabled /// - public static partial class TdApi + public class ToggleChatFolderTags : Function { /// - /// Toggles whether chat folder tags are enabled + /// Data type for serialization /// - public class ToggleChatFolderTags : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatFolderTags"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatFolderTags"; - /// - /// Pass true to enable folder tags; pass false to disable them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_tags_enabled")] - public bool AreTagsEnabled { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Toggles whether chat folder tags are enabled + /// Pass true to enable folder tags; pass false to disable them /// - public static Task ToggleChatFolderTagsAsync( - this IClient client, bool areTagsEnabled = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("are_tags_enabled")] + public bool AreTagsEnabled { get; set; } + } + + /// + /// Toggles whether chat folder tags are enabled + /// + public static Task ToggleChatFolderTagsAsync( + this IClient client, bool areTagsEnabled = default) + { + return client.ExecuteAsync(new ToggleChatFolderTags { - return client.ExecuteAsync(new ToggleChatFolderTags - { - AreTagsEnabled = areTagsEnabled - }); - } + AreTagsEnabled = areTagsEnabled + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatGiftNotifications.cs b/TdLib.Api/Functions/ToggleChatGiftNotifications.cs index e5530eb9..0adf74b2 100644 --- a/TdLib.Api/Functions/ToggleChatGiftNotifications.cs +++ b/TdLib.Api/Functions/ToggleChatGiftNotifications.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires can_post_messages administrator right in the chat /// - public static partial class TdApi + public class ToggleChatGiftNotifications : Function { /// - /// Toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires can_post_messages administrator right in the chat + /// Data type for serialization /// - public class ToggleChatGiftNotifications : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatGiftNotifications"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatGiftNotifications"; - /// - /// Identifier of the channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to enable notifications about new gifts owned by the channel chat; pass false to disable the notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_enabled")] - public bool AreEnabled { get; set; } - } + /// + /// Identifier of the channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires can_post_messages administrator right in the chat + /// Pass true to enable notifications about new gifts owned by the channel chat; pass false to disable the notifications /// - public static Task ToggleChatGiftNotificationsAsync( - this IClient client, long chatId = default, bool areEnabled = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("are_enabled")] + public bool AreEnabled { get; set; } + } + + /// + /// Toggles whether notifications for new gifts received by a channel chat are sent to the current user; requires can_post_messages administrator right in the chat + /// + public static Task ToggleChatGiftNotificationsAsync( + this IClient client, long chatId = default, bool areEnabled = default) + { + return client.ExecuteAsync(new ToggleChatGiftNotifications { - return client.ExecuteAsync(new ToggleChatGiftNotifications - { - ChatId = chatId, AreEnabled = areEnabled - }); - } + ChatId = chatId, AreEnabled = areEnabled + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatHasProtectedContent.cs b/TdLib.Api/Functions/ToggleChatHasProtectedContent.cs index b8d526ef..62ef6300 100644 --- a/TdLib.Api/Functions/ToggleChatHasProtectedContent.cs +++ b/TdLib.Api/Functions/ToggleChatHasProtectedContent.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the ability of users to save, forward, or copy chat content. Requires owner privileges in basic groups, supergroups and channels. + /// Requires Telegram Premium to enable protected content in private chats. Not available in Saved Messages and private chats with bots or support accounts /// - public static partial class TdApi + public class ToggleChatHasProtectedContent : Function { /// - /// Changes the ability of users to save, forward, or copy chat content. Requires owner privileges in basic groups, supergroups and channels. - /// Requires Telegram Premium to enable protected content in private chats. Not available in Saved Messages and private chats with bots or support accounts + /// Data type for serialization /// - public class ToggleChatHasProtectedContent : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatHasProtectedContent"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatHasProtectedContent"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of has_protected_content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_protected_content")] - public bool HasProtectedContent { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the ability of users to save, forward, or copy chat content. Requires owner privileges in basic groups, supergroups and channels. - /// Requires Telegram Premium to enable protected content in private chats. Not available in Saved Messages and private chats with bots or support accounts + /// New value of has_protected_content /// - public static Task ToggleChatHasProtectedContentAsync( - this IClient client, long chatId = default, bool hasProtectedContent = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("has_protected_content")] + public bool HasProtectedContent { get; set; } + } + + /// + /// Changes the ability of users to save, forward, or copy chat content. Requires owner privileges in basic groups, supergroups and channels. + /// Requires Telegram Premium to enable protected content in private chats. Not available in Saved Messages and private chats with bots or support accounts + /// + public static Task ToggleChatHasProtectedContentAsync( + this IClient client, long chatId = default, bool hasProtectedContent = default) + { + return client.ExecuteAsync(new ToggleChatHasProtectedContent { - return client.ExecuteAsync(new ToggleChatHasProtectedContent - { - ChatId = chatId, HasProtectedContent = hasProtectedContent - }); - } + ChatId = chatId, HasProtectedContent = hasProtectedContent + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatIsMarkedAsUnread.cs b/TdLib.Api/Functions/ToggleChatIsMarkedAsUnread.cs index 7bc3defd..915a38a7 100644 --- a/TdLib.Api/Functions/ToggleChatIsMarkedAsUnread.cs +++ b/TdLib.Api/Functions/ToggleChatIsMarkedAsUnread.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the marked as unread state of a chat /// - public static partial class TdApi + public class ToggleChatIsMarkedAsUnread : Function { /// - /// Changes the marked as unread state of a chat + /// Data type for serialization /// - public class ToggleChatIsMarkedAsUnread : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatIsMarkedAsUnread"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatIsMarkedAsUnread"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of is_marked_as_unread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_marked_as_unread")] - public bool IsMarkedAsUnread { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the marked as unread state of a chat + /// New value of is_marked_as_unread /// - public static Task ToggleChatIsMarkedAsUnreadAsync( - this IClient client, long chatId = default, bool isMarkedAsUnread = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_marked_as_unread")] + public bool IsMarkedAsUnread { get; set; } + } + + /// + /// Changes the marked as unread state of a chat + /// + public static Task ToggleChatIsMarkedAsUnreadAsync( + this IClient client, long chatId = default, bool isMarkedAsUnread = default) + { + return client.ExecuteAsync(new ToggleChatIsMarkedAsUnread { - return client.ExecuteAsync(new ToggleChatIsMarkedAsUnread - { - ChatId = chatId, IsMarkedAsUnread = isMarkedAsUnread - }); - } + ChatId = chatId, IsMarkedAsUnread = isMarkedAsUnread + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatIsPinned.cs b/TdLib.Api/Functions/ToggleChatIsPinned.cs index 86cbb61c..d032547f 100644 --- a/TdLib.Api/Functions/ToggleChatIsPinned.cs +++ b/TdLib.Api/Functions/ToggleChatIsPinned.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium /// - public static partial class TdApi + public class ToggleChatIsPinned : Function { /// - /// Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium + /// Data type for serialization /// - public class ToggleChatIsPinned : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatIsPinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatIsPinned"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat list in which to change the pinned state of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat list in which to change the pinned state of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } - /// - /// Pass true to pin the chat; pass false to unpin it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium + /// Pass true to pin the chat; pass false to unpin it /// - public static Task ToggleChatIsPinnedAsync( - this IClient client, ChatList chatList = default, long chatId = default, bool isPinned = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } + } + + /// + /// Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium + /// + public static Task ToggleChatIsPinnedAsync( + this IClient client, ChatList chatList = default, long chatId = default, bool isPinned = default) + { + return client.ExecuteAsync(new ToggleChatIsPinned { - return client.ExecuteAsync(new ToggleChatIsPinned - { - ChatList = chatList, ChatId = chatId, IsPinned = isPinned - }); - } + ChatList = chatList, ChatId = chatId, IsPinned = isPinned + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatIsTranslatable.cs b/TdLib.Api/Functions/ToggleChatIsTranslatable.cs index 082e46ea..33072de9 100644 --- a/TdLib.Api/Functions/ToggleChatIsTranslatable.cs +++ b/TdLib.Api/Functions/ToggleChatIsTranslatable.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the translatable state of a chat /// - public static partial class TdApi + public class ToggleChatIsTranslatable : Function { /// - /// Changes the translatable state of a chat + /// Data type for serialization /// - public class ToggleChatIsTranslatable : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatIsTranslatable"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatIsTranslatable"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of is_translatable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_translatable")] - public bool IsTranslatable { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the translatable state of a chat + /// New value of is_translatable /// - public static Task ToggleChatIsTranslatableAsync( - this IClient client, long chatId = default, bool isTranslatable = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_translatable")] + public bool IsTranslatable { get; set; } + } + + /// + /// Changes the translatable state of a chat + /// + public static Task ToggleChatIsTranslatableAsync( + this IClient client, long chatId = default, bool isTranslatable = default) + { + return client.ExecuteAsync(new ToggleChatIsTranslatable { - return client.ExecuteAsync(new ToggleChatIsTranslatable - { - ChatId = chatId, IsTranslatable = isTranslatable - }); - } + ChatId = chatId, IsTranslatable = isTranslatable + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleChatViewAsTopics.cs b/TdLib.Api/Functions/ToggleChatViewAsTopics.cs index f77ab2cb..f9c1e78f 100644 --- a/TdLib.Api/Functions/ToggleChatViewAsTopics.cs +++ b/TdLib.Api/Functions/ToggleChatViewAsTopics.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the view_as_topics setting of a forum chat or Saved Messages /// - public static partial class TdApi + public class ToggleChatViewAsTopics : Function { /// - /// Changes the view_as_topics setting of a forum chat or Saved Messages + /// Data type for serialization /// - public class ToggleChatViewAsTopics : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleChatViewAsTopics"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleChatViewAsTopics"; - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of view_as_topics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_as_topics")] - public bool ViewAsTopics { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Changes the view_as_topics setting of a forum chat or Saved Messages + /// New value of view_as_topics /// - public static Task ToggleChatViewAsTopicsAsync( - this IClient client, long chatId = default, bool viewAsTopics = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("view_as_topics")] + public bool ViewAsTopics { get; set; } + } + + /// + /// Changes the view_as_topics setting of a forum chat or Saved Messages + /// + public static Task ToggleChatViewAsTopicsAsync( + this IClient client, long chatId = default, bool viewAsTopics = default) + { + return client.ExecuteAsync(new ToggleChatViewAsTopics { - return client.ExecuteAsync(new ToggleChatViewAsTopics - { - ChatId = chatId, ViewAsTopics = viewAsTopics - }); - } + ChatId = chatId, ViewAsTopics = viewAsTopics + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleDirectMessagesChatTopicCanSendUnpaidMessages.cs b/TdLib.Api/Functions/ToggleDirectMessagesChatTopicCanSendUnpaidMessages.cs index 813f33be..bb670cc2 100644 --- a/TdLib.Api/Functions/ToggleDirectMessagesChatTopicCanSendUnpaidMessages.cs +++ b/TdLib.Api/Functions/ToggleDirectMessagesChatTopicCanSendUnpaidMessages.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user /// - public static partial class TdApi + public class ToggleDirectMessagesChatTopicCanSendUnpaidMessages : Function { /// - /// Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user + /// Data type for serialization /// - public class ToggleDirectMessagesChatTopicCanSendUnpaidMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleDirectMessagesChatTopicCanSendUnpaidMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleDirectMessagesChatTopicCanSendUnpaidMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to allow unpaid messages; pass false to disallow unpaid messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_unpaid_messages")] - public bool CanSendUnpaidMessages { get; set; } + /// + /// Identifier of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } - /// - /// Pass true to refund the user previously paid messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("refund_payments")] - public bool RefundPayments { get; set; } - } + /// + /// Pass true to allow unpaid messages; pass false to disallow unpaid messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_unpaid_messages")] + public bool CanSendUnpaidMessages { get; set; } /// - /// Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user + /// Pass true to refund the user previously paid messages /// - public static Task ToggleDirectMessagesChatTopicCanSendUnpaidMessagesAsync( - this IClient client, long chatId = default, long topicId = default, bool canSendUnpaidMessages = default, bool refundPayments = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("refund_payments")] + public bool RefundPayments { get; set; } + } + + /// + /// Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user + /// + public static Task ToggleDirectMessagesChatTopicCanSendUnpaidMessagesAsync( + this IClient client, long chatId = default, long topicId = default, bool canSendUnpaidMessages = default, bool refundPayments = default) + { + return client.ExecuteAsync(new ToggleDirectMessagesChatTopicCanSendUnpaidMessages { - return client.ExecuteAsync(new ToggleDirectMessagesChatTopicCanSendUnpaidMessages - { - ChatId = chatId, TopicId = topicId, CanSendUnpaidMessages = canSendUnpaidMessages, RefundPayments = refundPayments - }); - } + ChatId = chatId, TopicId = topicId, CanSendUnpaidMessages = canSendUnpaidMessages, RefundPayments = refundPayments + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleDownloadIsPaused.cs b/TdLib.Api/Functions/ToggleDownloadIsPaused.cs index 032e328e..e4532093 100644 --- a/TdLib.Api/Functions/ToggleDownloadIsPaused.cs +++ b/TdLib.Api/Functions/ToggleDownloadIsPaused.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes pause state of a file in the file download list /// - public static partial class TdApi + public class ToggleDownloadIsPaused : Function { /// - /// Changes pause state of a file in the file download list + /// Data type for serialization /// - public class ToggleDownloadIsPaused : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleDownloadIsPaused"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleDownloadIsPaused"; - /// - /// Identifier of the downloaded file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the download is paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paused")] - public bool IsPaused { get; set; } - } + /// + /// Identifier of the downloaded file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } /// - /// Changes pause state of a file in the file download list + /// Pass true if the download is paused /// - public static Task ToggleDownloadIsPausedAsync( - this IClient client, int fileId = default, bool isPaused = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paused")] + public bool IsPaused { get; set; } + } + + /// + /// Changes pause state of a file in the file download list + /// + public static Task ToggleDownloadIsPausedAsync( + this IClient client, int fileId = default, bool isPaused = default) + { + return client.ExecuteAsync(new ToggleDownloadIsPaused { - return client.ExecuteAsync(new ToggleDownloadIsPaused - { - FileId = fileId, IsPaused = isPaused - }); - } + FileId = fileId, IsPaused = isPaused + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleForumTopicIsClosed.cs b/TdLib.Api/Functions/ToggleForumTopicIsClosed.cs index 3ff10060..32fc4cd5 100644 --- a/TdLib.Api/Functions/ToggleForumTopicIsClosed.cs +++ b/TdLib.Api/Functions/ToggleForumTopicIsClosed.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic /// - public static partial class TdApi + public class ToggleForumTopicIsClosed : Function { /// - /// Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic + /// Data type for serialization /// - public class ToggleForumTopicIsClosed : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleForumTopicIsClosed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleForumTopicIsClosed"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to close the topic; pass false to reopen it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_closed")] - public bool IsClosed { get; set; } - } + /// + /// Forum topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } /// - /// Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic + /// Pass true to close the topic; pass false to reopen it /// - public static Task ToggleForumTopicIsClosedAsync( - this IClient client, long chatId = default, int forumTopicId = default, bool isClosed = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_closed")] + public bool IsClosed { get; set; } + } + + /// + /// Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic + /// + public static Task ToggleForumTopicIsClosedAsync( + this IClient client, long chatId = default, int forumTopicId = default, bool isClosed = default) + { + return client.ExecuteAsync(new ToggleForumTopicIsClosed { - return client.ExecuteAsync(new ToggleForumTopicIsClosed - { - ChatId = chatId, ForumTopicId = forumTopicId, IsClosed = isClosed - }); - } + ChatId = chatId, ForumTopicId = forumTopicId, IsClosed = isClosed + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleForumTopicIsPinned.cs b/TdLib.Api/Functions/ToggleForumTopicIsPinned.cs index b269ee3d..9b9e077e 100644 --- a/TdLib.Api/Functions/ToggleForumTopicIsPinned.cs +++ b/TdLib.Api/Functions/ToggleForumTopicIsPinned.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the pinned state of a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup. + /// There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics /// - public static partial class TdApi + public class ToggleForumTopicIsPinned : Function { /// - /// Changes the pinned state of a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup. - /// There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics + /// Data type for serialization /// - public class ToggleForumTopicIsPinned : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleForumTopicIsPinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleForumTopicIsPinned"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Pass true to pin the topic; pass false to unpin it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// Forum topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } /// - /// Changes the pinned state of a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup. - /// There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics + /// Pass true to pin the topic; pass false to unpin it /// - public static Task ToggleForumTopicIsPinnedAsync( - this IClient client, long chatId = default, int forumTopicId = default, bool isPinned = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } + } + + /// + /// Changes the pinned state of a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup. + /// There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics + /// + public static Task ToggleForumTopicIsPinnedAsync( + this IClient client, long chatId = default, int forumTopicId = default, bool isPinned = default) + { + return client.ExecuteAsync(new ToggleForumTopicIsPinned { - return client.ExecuteAsync(new ToggleForumTopicIsPinned - { - ChatId = chatId, ForumTopicId = forumTopicId, IsPinned = isPinned - }); - } + ChatId = chatId, ForumTopicId = forumTopicId, IsPinned = isPinned + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGeneralForumTopicIsHidden.cs b/TdLib.Api/Functions/ToggleGeneralForumTopicIsHidden.cs index 80a61aed..fe38ea97 100644 --- a/TdLib.Api/Functions/ToggleGeneralForumTopicIsHidden.cs +++ b/TdLib.Api/Functions/ToggleGeneralForumTopicIsHidden.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup /// - public static partial class TdApi + public class ToggleGeneralForumTopicIsHidden : Function { /// - /// Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup + /// Data type for serialization /// - public class ToggleGeneralForumTopicIsHidden : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGeneralForumTopicIsHidden"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGeneralForumTopicIsHidden"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to hide and close the General topic; pass false to unhide it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_hidden")] - public bool IsHidden { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup + /// Pass true to hide and close the General topic; pass false to unhide it /// - public static Task ToggleGeneralForumTopicIsHiddenAsync( - this IClient client, long chatId = default, bool isHidden = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_hidden")] + public bool IsHidden { get; set; } + } + + /// + /// Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup + /// + public static Task ToggleGeneralForumTopicIsHiddenAsync( + this IClient client, long chatId = default, bool isHidden = default) + { + return client.ExecuteAsync(new ToggleGeneralForumTopicIsHidden { - return client.ExecuteAsync(new ToggleGeneralForumTopicIsHidden - { - ChatId = chatId, IsHidden = isHidden - }); - } + ChatId = chatId, IsHidden = isHidden + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGiftIsSaved.cs b/TdLib.Api/Functions/ToggleGiftIsSaved.cs index eaaf0d01..ebf509f8 100644 --- a/TdLib.Api/Functions/ToggleGiftIsSaved.cs +++ b/TdLib.Api/Functions/ToggleGiftIsSaved.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a gift is shown on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat /// - public static partial class TdApi + public class ToggleGiftIsSaved : Function { /// - /// Toggles whether a gift is shown on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat + /// Data type for serialization /// - public class ToggleGiftIsSaved : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGiftIsSaved"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGiftIsSaved"; - /// - /// Identifier of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to display the gift on the user's or the channel's profile page; pass false to remove it from the profile page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_saved")] - public bool IsSaved { get; set; } - } + /// + /// Identifier of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } /// - /// Toggles whether a gift is shown on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat + /// Pass true to display the gift on the user's or the channel's profile page; pass false to remove it from the profile page /// - public static Task ToggleGiftIsSavedAsync( - this IClient client, string receivedGiftId = default, bool isSaved = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_saved")] + public bool IsSaved { get; set; } + } + + /// + /// Toggles whether a gift is shown on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat + /// + public static Task ToggleGiftIsSavedAsync( + this IClient client, string receivedGiftId = default, bool isSaved = default) + { + return client.ExecuteAsync(new ToggleGiftIsSaved { - return client.ExecuteAsync(new ToggleGiftIsSaved - { - ReceivedGiftId = receivedGiftId, IsSaved = isSaved - }); - } + ReceivedGiftId = receivedGiftId, IsSaved = isSaved + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGroupCallAreMessagesAllowed.cs b/TdLib.Api/Functions/ToggleGroupCallAreMessagesAllowed.cs index 6db20052..5186e87b 100644 --- a/TdLib.Api/Functions/ToggleGroupCallAreMessagesAllowed.cs +++ b/TdLib.Api/Functions/ToggleGroupCallAreMessagesAllowed.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether participants of a group call can send messages there. Requires groupCall.can_toggle_are_messages_allowed right /// - public static partial class TdApi + public class ToggleGroupCallAreMessagesAllowed : Function { /// - /// Toggles whether participants of a group call can send messages there. Requires groupCall.can_toggle_are_messages_allowed right + /// Data type for serialization /// - public class ToggleGroupCallAreMessagesAllowed : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGroupCallAreMessagesAllowed"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGroupCallAreMessagesAllowed"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the are_messages_allowed setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_messages_allowed")] - public bool AreMessagesAllowed { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Toggles whether participants of a group call can send messages there. Requires groupCall.can_toggle_are_messages_allowed right + /// New value of the are_messages_allowed setting /// - public static Task ToggleGroupCallAreMessagesAllowedAsync( - this IClient client, int groupCallId = default, bool areMessagesAllowed = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("are_messages_allowed")] + public bool AreMessagesAllowed { get; set; } + } + + /// + /// Toggles whether participants of a group call can send messages there. Requires groupCall.can_toggle_are_messages_allowed right + /// + public static Task ToggleGroupCallAreMessagesAllowedAsync( + this IClient client, int groupCallId = default, bool areMessagesAllowed = default) + { + return client.ExecuteAsync(new ToggleGroupCallAreMessagesAllowed { - return client.ExecuteAsync(new ToggleGroupCallAreMessagesAllowed - { - GroupCallId = groupCallId, AreMessagesAllowed = areMessagesAllowed - }); - } + GroupCallId = groupCallId, AreMessagesAllowed = areMessagesAllowed + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGroupCallIsMyVideoEnabled.cs b/TdLib.Api/Functions/ToggleGroupCallIsMyVideoEnabled.cs index 2e6b8fa3..366f6ae5 100644 --- a/TdLib.Api/Functions/ToggleGroupCallIsMyVideoEnabled.cs +++ b/TdLib.Api/Functions/ToggleGroupCallIsMyVideoEnabled.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether current user's video is enabled /// - public static partial class TdApi + public class ToggleGroupCallIsMyVideoEnabled : Function { /// - /// Toggles whether current user's video is enabled + /// Data type for serialization /// - public class ToggleGroupCallIsMyVideoEnabled : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGroupCallIsMyVideoEnabled"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGroupCallIsMyVideoEnabled"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the current user's video is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_my_video_enabled")] - public bool IsMyVideoEnabled { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Toggles whether current user's video is enabled + /// Pass true if the current user's video is enabled /// - public static Task ToggleGroupCallIsMyVideoEnabledAsync( - this IClient client, int groupCallId = default, bool isMyVideoEnabled = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_my_video_enabled")] + public bool IsMyVideoEnabled { get; set; } + } + + /// + /// Toggles whether current user's video is enabled + /// + public static Task ToggleGroupCallIsMyVideoEnabledAsync( + this IClient client, int groupCallId = default, bool isMyVideoEnabled = default) + { + return client.ExecuteAsync(new ToggleGroupCallIsMyVideoEnabled { - return client.ExecuteAsync(new ToggleGroupCallIsMyVideoEnabled - { - GroupCallId = groupCallId, IsMyVideoEnabled = isMyVideoEnabled - }); - } + GroupCallId = groupCallId, IsMyVideoEnabled = isMyVideoEnabled + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGroupCallIsMyVideoPaused.cs b/TdLib.Api/Functions/ToggleGroupCallIsMyVideoPaused.cs index 587d1ef3..1750e2bd 100644 --- a/TdLib.Api/Functions/ToggleGroupCallIsMyVideoPaused.cs +++ b/TdLib.Api/Functions/ToggleGroupCallIsMyVideoPaused.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether current user's video is paused /// - public static partial class TdApi + public class ToggleGroupCallIsMyVideoPaused : Function { /// - /// Toggles whether current user's video is paused + /// Data type for serialization /// - public class ToggleGroupCallIsMyVideoPaused : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGroupCallIsMyVideoPaused"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGroupCallIsMyVideoPaused"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the current user's video is paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_my_video_paused")] - public bool IsMyVideoPaused { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Toggles whether current user's video is paused + /// Pass true if the current user's video is paused /// - public static Task ToggleGroupCallIsMyVideoPausedAsync( - this IClient client, int groupCallId = default, bool isMyVideoPaused = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_my_video_paused")] + public bool IsMyVideoPaused { get; set; } + } + + /// + /// Toggles whether current user's video is paused + /// + public static Task ToggleGroupCallIsMyVideoPausedAsync( + this IClient client, int groupCallId = default, bool isMyVideoPaused = default) + { + return client.ExecuteAsync(new ToggleGroupCallIsMyVideoPaused { - return client.ExecuteAsync(new ToggleGroupCallIsMyVideoPaused - { - GroupCallId = groupCallId, IsMyVideoPaused = isMyVideoPaused - }); - } + GroupCallId = groupCallId, IsMyVideoPaused = isMyVideoPaused + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGroupCallParticipantIsHandRaised.cs b/TdLib.Api/Functions/ToggleGroupCallParticipantIsHandRaised.cs index 297843cf..f64bede1 100644 --- a/TdLib.Api/Functions/ToggleGroupCallParticipantIsHandRaised.cs +++ b/TdLib.Api/Functions/ToggleGroupCallParticipantIsHandRaised.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a group call participant hand is rased; for video chats only /// - public static partial class TdApi + public class ToggleGroupCallParticipantIsHandRaised : Function { /// - /// Toggles whether a group call participant hand is rased; for video chats only + /// Data type for serialization /// - public class ToggleGroupCallParticipantIsHandRaised : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGroupCallParticipantIsHandRaised"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGroupCallParticipantIsHandRaised"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Participant identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Pass true if the user's hand needs to be raised. Only self hand can be raised. Requires groupCall.can_be_managed right to lower other's hand - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_hand_raised")] - public bool IsHandRaised { get; set; } - } + /// + /// Participant identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } /// - /// Toggles whether a group call participant hand is rased; for video chats only + /// Pass true if the user's hand needs to be raised. Only self hand can be raised. Requires groupCall.can_be_managed right to lower other's hand /// - public static Task ToggleGroupCallParticipantIsHandRaisedAsync( - this IClient client, int groupCallId = default, MessageSender participantId = default, bool isHandRaised = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_hand_raised")] + public bool IsHandRaised { get; set; } + } + + /// + /// Toggles whether a group call participant hand is rased; for video chats only + /// + public static Task ToggleGroupCallParticipantIsHandRaisedAsync( + this IClient client, int groupCallId = default, MessageSender participantId = default, bool isHandRaised = default) + { + return client.ExecuteAsync(new ToggleGroupCallParticipantIsHandRaised { - return client.ExecuteAsync(new ToggleGroupCallParticipantIsHandRaised - { - GroupCallId = groupCallId, ParticipantId = participantId, IsHandRaised = isHandRaised - }); - } + GroupCallId = groupCallId, ParticipantId = participantId, IsHandRaised = isHandRaised + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGroupCallParticipantIsMuted.cs b/TdLib.Api/Functions/ToggleGroupCallParticipantIsMuted.cs index a05d9bd1..b3137c0d 100644 --- a/TdLib.Api/Functions/ToggleGroupCallParticipantIsMuted.cs +++ b/TdLib.Api/Functions/ToggleGroupCallParticipantIsMuted.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves; not supported for live stories /// - public static partial class TdApi + public class ToggleGroupCallParticipantIsMuted : Function { /// - /// Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves; not supported for live stories + /// Data type for serialization /// - public class ToggleGroupCallParticipantIsMuted : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGroupCallParticipantIsMuted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGroupCallParticipantIsMuted"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Participant identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Pass true to mute the user; pass false to unmute them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_muted")] - public bool IsMuted { get; set; } - } + /// + /// Participant identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } /// - /// Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves; not supported for live stories + /// Pass true to mute the user; pass false to unmute them /// - public static Task ToggleGroupCallParticipantIsMutedAsync( - this IClient client, int groupCallId = default, MessageSender participantId = default, bool isMuted = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_muted")] + public bool IsMuted { get; set; } + } + + /// + /// Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves; not supported for live stories + /// + public static Task ToggleGroupCallParticipantIsMutedAsync( + this IClient client, int groupCallId = default, MessageSender participantId = default, bool isMuted = default) + { + return client.ExecuteAsync(new ToggleGroupCallParticipantIsMuted { - return client.ExecuteAsync(new ToggleGroupCallParticipantIsMuted - { - GroupCallId = groupCallId, ParticipantId = participantId, IsMuted = isMuted - }); - } + GroupCallId = groupCallId, ParticipantId = participantId, IsMuted = isMuted + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleGroupCallScreenSharingIsPaused.cs b/TdLib.Api/Functions/ToggleGroupCallScreenSharingIsPaused.cs index 08f5d0cd..812f445e 100644 --- a/TdLib.Api/Functions/ToggleGroupCallScreenSharingIsPaused.cs +++ b/TdLib.Api/Functions/ToggleGroupCallScreenSharingIsPaused.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Pauses or unpauses screen sharing in a joined group call; not supported in live stories /// - public static partial class TdApi + public class ToggleGroupCallScreenSharingIsPaused : Function { /// - /// Pauses or unpauses screen sharing in a joined group call; not supported in live stories + /// Data type for serialization /// - public class ToggleGroupCallScreenSharingIsPaused : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleGroupCallScreenSharingIsPaused"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleGroupCallScreenSharingIsPaused"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to pause screen sharing; pass false to unpause it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paused")] - public bool IsPaused { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Pauses or unpauses screen sharing in a joined group call; not supported in live stories + /// Pass true to pause screen sharing; pass false to unpause it /// - public static Task ToggleGroupCallScreenSharingIsPausedAsync( - this IClient client, int groupCallId = default, bool isPaused = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paused")] + public bool IsPaused { get; set; } + } + + /// + /// Pauses or unpauses screen sharing in a joined group call; not supported in live stories + /// + public static Task ToggleGroupCallScreenSharingIsPausedAsync( + this IClient client, int groupCallId = default, bool isPaused = default) + { + return client.ExecuteAsync(new ToggleGroupCallScreenSharingIsPaused { - return client.ExecuteAsync(new ToggleGroupCallScreenSharingIsPaused - { - GroupCallId = groupCallId, IsPaused = isPaused - }); - } + GroupCallId = groupCallId, IsPaused = isPaused + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleHasSponsoredMessagesEnabled.cs b/TdLib.Api/Functions/ToggleHasSponsoredMessagesEnabled.cs index 5a3bb0f3..92e38493 100644 --- a/TdLib.Api/Functions/ToggleHasSponsoredMessagesEnabled.cs +++ b/TdLib.Api/Functions/ToggleHasSponsoredMessagesEnabled.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram Premium for which sponsored messages are always enabled /// - public static partial class TdApi + public class ToggleHasSponsoredMessagesEnabled : Function { /// - /// Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram Premium for which sponsored messages are always enabled + /// Data type for serialization /// - public class ToggleHasSponsoredMessagesEnabled : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleHasSponsoredMessagesEnabled"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleHasSponsoredMessagesEnabled"; - /// - /// Pass true to enable sponsored messages for the current user; false to disable them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_sponsored_messages_enabled")] - public bool HasSponsoredMessagesEnabled { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram Premium for which sponsored messages are always enabled + /// Pass true to enable sponsored messages for the current user; false to disable them /// - public static Task ToggleHasSponsoredMessagesEnabledAsync( - this IClient client, bool hasSponsoredMessagesEnabled = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("has_sponsored_messages_enabled")] + public bool HasSponsoredMessagesEnabled { get; set; } + } + + /// + /// Toggles whether the current user has sponsored messages enabled. The setting has no effect for users without Telegram Premium for which sponsored messages are always enabled + /// + public static Task ToggleHasSponsoredMessagesEnabledAsync( + this IClient client, bool hasSponsoredMessagesEnabled = default) + { + return client.ExecuteAsync(new ToggleHasSponsoredMessagesEnabled { - return client.ExecuteAsync(new ToggleHasSponsoredMessagesEnabled - { - HasSponsoredMessagesEnabled = hasSponsoredMessagesEnabled - }); - } + HasSponsoredMessagesEnabled = hasSponsoredMessagesEnabled + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSavedMessagesTopicIsPinned.cs b/TdLib.Api/Functions/ToggleSavedMessagesTopicIsPinned.cs index a2be9417..9727ec92 100644 --- a/TdLib.Api/Functions/ToggleSavedMessagesTopicIsPinned.cs +++ b/TdLib.Api/Functions/ToggleSavedMessagesTopicIsPinned.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium /// - public static partial class TdApi + public class ToggleSavedMessagesTopicIsPinned : Function { /// - /// Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium + /// Data type for serialization /// - public class ToggleSavedMessagesTopicIsPinned : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSavedMessagesTopicIsPinned"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSavedMessagesTopicIsPinned"; - /// - /// Identifier of Saved Messages topic to pin or unpin - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to pin the topic; pass false to unpin it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// Identifier of Saved Messages topic to pin or unpin + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } /// - /// Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium + /// Pass true to pin the topic; pass false to unpin it /// - public static Task ToggleSavedMessagesTopicIsPinnedAsync( - this IClient client, long savedMessagesTopicId = default, bool isPinned = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } + } + + /// + /// Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium + /// + public static Task ToggleSavedMessagesTopicIsPinnedAsync( + this IClient client, long savedMessagesTopicId = default, bool isPinned = default) + { + return client.ExecuteAsync(new ToggleSavedMessagesTopicIsPinned { - return client.ExecuteAsync(new ToggleSavedMessagesTopicIsPinned - { - SavedMessagesTopicId = savedMessagesTopicId, IsPinned = isPinned - }); - } + SavedMessagesTopicId = savedMessagesTopicId, IsPinned = isPinned + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSessionCanAcceptCalls.cs b/TdLib.Api/Functions/ToggleSessionCanAcceptCalls.cs index c747f1f8..b866e992 100644 --- a/TdLib.Api/Functions/ToggleSessionCanAcceptCalls.cs +++ b/TdLib.Api/Functions/ToggleSessionCanAcceptCalls.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a session can accept incoming calls /// - public static partial class TdApi + public class ToggleSessionCanAcceptCalls : Function { /// - /// Toggles whether a session can accept incoming calls + /// Data type for serialization /// - public class ToggleSessionCanAcceptCalls : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSessionCanAcceptCalls"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSessionCanAcceptCalls"; - /// - /// Session identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("session_id")] - public long SessionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to allow accepting incoming calls by the session; pass false otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_accept_calls")] - public bool CanAcceptCalls { get; set; } - } + /// + /// Session identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } /// - /// Toggles whether a session can accept incoming calls + /// Pass true to allow accepting incoming calls by the session; pass false otherwise /// - public static Task ToggleSessionCanAcceptCallsAsync( - this IClient client, long sessionId = default, bool canAcceptCalls = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("can_accept_calls")] + public bool CanAcceptCalls { get; set; } + } + + /// + /// Toggles whether a session can accept incoming calls + /// + public static Task ToggleSessionCanAcceptCallsAsync( + this IClient client, long sessionId = default, bool canAcceptCalls = default) + { + return client.ExecuteAsync(new ToggleSessionCanAcceptCalls { - return client.ExecuteAsync(new ToggleSessionCanAcceptCalls - { - SessionId = sessionId, CanAcceptCalls = canAcceptCalls - }); - } + SessionId = sessionId, CanAcceptCalls = canAcceptCalls + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSessionCanAcceptSecretChats.cs b/TdLib.Api/Functions/ToggleSessionCanAcceptSecretChats.cs index 4e51efea..570f255d 100644 --- a/TdLib.Api/Functions/ToggleSessionCanAcceptSecretChats.cs +++ b/TdLib.Api/Functions/ToggleSessionCanAcceptSecretChats.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a session can accept incoming secret chats /// - public static partial class TdApi + public class ToggleSessionCanAcceptSecretChats : Function { /// - /// Toggles whether a session can accept incoming secret chats + /// Data type for serialization /// - public class ToggleSessionCanAcceptSecretChats : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSessionCanAcceptSecretChats"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSessionCanAcceptSecretChats"; - /// - /// Session identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("session_id")] - public long SessionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to allow accepting secret chats by the session; pass false otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_accept_secret_chats")] - public bool CanAcceptSecretChats { get; set; } - } + /// + /// Session identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } /// - /// Toggles whether a session can accept incoming secret chats + /// Pass true to allow accepting secret chats by the session; pass false otherwise /// - public static Task ToggleSessionCanAcceptSecretChatsAsync( - this IClient client, long sessionId = default, bool canAcceptSecretChats = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("can_accept_secret_chats")] + public bool CanAcceptSecretChats { get; set; } + } + + /// + /// Toggles whether a session can accept incoming secret chats + /// + public static Task ToggleSessionCanAcceptSecretChatsAsync( + this IClient client, long sessionId = default, bool canAcceptSecretChats = default) + { + return client.ExecuteAsync(new ToggleSessionCanAcceptSecretChats { - return client.ExecuteAsync(new ToggleSessionCanAcceptSecretChats - { - SessionId = sessionId, CanAcceptSecretChats = canAcceptSecretChats - }); - } + SessionId = sessionId, CanAcceptSecretChats = canAcceptSecretChats + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleStoryIsPostedToChatPage.cs b/TdLib.Api/Functions/ToggleStoryIsPostedToChatPage.cs index 463aa473..68e1500b 100644 --- a/TdLib.Api/Functions/ToggleStoryIsPostedToChatPage.cs +++ b/TdLib.Api/Functions/ToggleStoryIsPostedToChatPage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_posted_to_chat_page == true /// - public static partial class TdApi + public class ToggleStoryIsPostedToChatPage : Function { /// - /// Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_posted_to_chat_page == true + /// Data type for serialization /// - public class ToggleStoryIsPostedToChatPage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleStoryIsPostedToChatPage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleStoryIsPostedToChatPage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Pass true to make the story accessible after expiration; pass false to make it private - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_posted_to_chat_page")] - public bool IsPostedToChatPage { get; set; } - } + /// + /// Identifier of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } /// - /// Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_posted_to_chat_page == true + /// Pass true to make the story accessible after expiration; pass false to make it private /// - public static Task ToggleStoryIsPostedToChatPageAsync( - this IClient client, long storyPosterChatId = default, int storyId = default, bool isPostedToChatPage = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_posted_to_chat_page")] + public bool IsPostedToChatPage { get; set; } + } + + /// + /// Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_posted_to_chat_page == true + /// + public static Task ToggleStoryIsPostedToChatPageAsync( + this IClient client, long storyPosterChatId = default, int storyId = default, bool isPostedToChatPage = default) + { + return client.ExecuteAsync(new ToggleStoryIsPostedToChatPage { - return client.ExecuteAsync(new ToggleStoryIsPostedToChatPage - { - StoryPosterChatId = storyPosterChatId, StoryId = storyId, IsPostedToChatPage = isPostedToChatPage - }); - } + StoryPosterChatId = storyPosterChatId, StoryId = storyId, IsPostedToChatPage = isPostedToChatPage + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupCanHaveSponsoredMessages.cs b/TdLib.Api/Functions/ToggleSupergroupCanHaveSponsoredMessages.cs index 48f506eb..cccff2e8 100644 --- a/TdLib.Api/Functions/ToggleSupergroupCanHaveSponsoredMessages.cs +++ b/TdLib.Api/Functions/ToggleSupergroupCanHaveSponsoredMessages.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored messages /// - public static partial class TdApi + public class ToggleSupergroupCanHaveSponsoredMessages : Function { /// - /// Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored messages + /// Data type for serialization /// - public class ToggleSupergroupCanHaveSponsoredMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupCanHaveSponsoredMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupCanHaveSponsoredMessages"; - /// - /// The identifier of the channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of can_have_sponsored_messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_have_sponsored_messages")] - public bool CanHaveSponsoredMessages { get; set; } - } + /// + /// The identifier of the channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored messages + /// The new value of can_have_sponsored_messages /// - public static Task ToggleSupergroupCanHaveSponsoredMessagesAsync( - this IClient client, long supergroupId = default, bool canHaveSponsoredMessages = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("can_have_sponsored_messages")] + public bool CanHaveSponsoredMessages { get; set; } + } + + /// + /// Toggles whether sponsored messages are shown in the channel chat; requires owner privileges in the channel. The chat must have at least chatBoostFeatures.min_sponsored_message_disable_boost_level boost level to disable sponsored messages + /// + public static Task ToggleSupergroupCanHaveSponsoredMessagesAsync( + this IClient client, long supergroupId = default, bool canHaveSponsoredMessages = default) + { + return client.ExecuteAsync(new ToggleSupergroupCanHaveSponsoredMessages { - return client.ExecuteAsync(new ToggleSupergroupCanHaveSponsoredMessages - { - SupergroupId = supergroupId, CanHaveSponsoredMessages = canHaveSponsoredMessages - }); - } + SupergroupId = supergroupId, CanHaveSponsoredMessages = canHaveSponsoredMessages + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupHasAggressiveAntiSpamEnabled.cs b/TdLib.Api/Functions/ToggleSupergroupHasAggressiveAntiSpamEnabled.cs index 977ee5f1..d88cb752 100644 --- a/TdLib.Api/Functions/ToggleSupergroupHasAggressiveAntiSpamEnabled.cs +++ b/TdLib.Api/Functions/ToggleSupergroupHasAggressiveAntiSpamEnabled.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.can_toggle_aggressive_anti_spam == true /// - public static partial class TdApi + public class ToggleSupergroupHasAggressiveAntiSpamEnabled : Function { /// - /// Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.can_toggle_aggressive_anti_spam == true + /// Data type for serialization /// - public class ToggleSupergroupHasAggressiveAntiSpamEnabled : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupHasAggressiveAntiSpamEnabled"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupHasAggressiveAntiSpamEnabled"; - /// - /// The identifier of the supergroup, which isn't a broadcast group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of has_aggressive_anti_spam_enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_aggressive_anti_spam_enabled")] - public bool HasAggressiveAntiSpamEnabled { get; set; } - } + /// + /// The identifier of the supergroup, which isn't a broadcast group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.can_toggle_aggressive_anti_spam == true + /// The new value of has_aggressive_anti_spam_enabled /// - public static Task ToggleSupergroupHasAggressiveAntiSpamEnabledAsync( - this IClient client, long supergroupId = default, bool hasAggressiveAntiSpamEnabled = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("has_aggressive_anti_spam_enabled")] + public bool HasAggressiveAntiSpamEnabled { get; set; } + } + + /// + /// Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.can_toggle_aggressive_anti_spam == true + /// + public static Task ToggleSupergroupHasAggressiveAntiSpamEnabledAsync( + this IClient client, long supergroupId = default, bool hasAggressiveAntiSpamEnabled = default) + { + return client.ExecuteAsync(new ToggleSupergroupHasAggressiveAntiSpamEnabled { - return client.ExecuteAsync(new ToggleSupergroupHasAggressiveAntiSpamEnabled - { - SupergroupId = supergroupId, HasAggressiveAntiSpamEnabled = hasAggressiveAntiSpamEnabled - }); - } + SupergroupId = supergroupId, HasAggressiveAntiSpamEnabled = hasAggressiveAntiSpamEnabled + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupHasAutomaticTranslation.cs b/TdLib.Api/Functions/ToggleSupergroupHasAutomaticTranslation.cs index 32cb19dc..affd5305 100644 --- a/TdLib.Api/Functions/ToggleSupergroupHasAutomaticTranslation.cs +++ b/TdLib.Api/Functions/ToggleSupergroupHasAutomaticTranslation.cs @@ -3,58 +3,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether messages are automatically translated in the channel chat; requires can_change_info administrator right in the channel. + /// The chat must have at least chatBoostFeatures.min_automatic_translation_boost_level boost level to enable automatic translation /// - public static partial class TdApi + public class ToggleSupergroupHasAutomaticTranslation : Function { /// - /// Toggles whether messages are automatically translated in the channel chat; requires can_change_info administrator right in the channel. - /// The chat must have at least chatBoostFeatures.min_automatic_translation_boost_level boost level to enable automatic translation + /// Data type for serialization /// - public class ToggleSupergroupHasAutomaticTranslation : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupHasAutomaticTranslation"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupHasAutomaticTranslation"; - /// - /// The identifier of the channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of has_automatic_translation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_automatic_translation")] - public bool HasAutomaticTranslation { get; set; } - } + /// + /// The identifier of the channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Toggles whether messages are automatically translated in the channel chat; requires can_change_info administrator right in the channel. - /// The chat must have at least chatBoostFeatures.min_automatic_translation_boost_level boost level to enable automatic translation + /// The new value of has_automatic_translation /// - public static Task ToggleSupergroupHasAutomaticTranslationAsync( - this IClient client, long supergroupId = default, bool hasAutomaticTranslation = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("has_automatic_translation")] + public bool HasAutomaticTranslation { get; set; } + } + + /// + /// Toggles whether messages are automatically translated in the channel chat; requires can_change_info administrator right in the channel. + /// The chat must have at least chatBoostFeatures.min_automatic_translation_boost_level boost level to enable automatic translation + /// + public static Task ToggleSupergroupHasAutomaticTranslationAsync( + this IClient client, long supergroupId = default, bool hasAutomaticTranslation = default) + { + return client.ExecuteAsync(new ToggleSupergroupHasAutomaticTranslation { - return client.ExecuteAsync(new ToggleSupergroupHasAutomaticTranslation - { - SupergroupId = supergroupId, HasAutomaticTranslation = hasAutomaticTranslation - }); - } + SupergroupId = supergroupId, HasAutomaticTranslation = hasAutomaticTranslation + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupHasHiddenMembers.cs b/TdLib.Api/Functions/ToggleSupergroupHasHiddenMembers.cs index d1195e35..c6af31fc 100644 --- a/TdLib.Api/Functions/ToggleSupergroupHasHiddenMembers.cs +++ b/TdLib.Api/Functions/ToggleSupergroupHasHiddenMembers.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true /// - public static partial class TdApi + public class ToggleSupergroupHasHiddenMembers : Function { /// - /// Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true + /// Data type for serialization /// - public class ToggleSupergroupHasHiddenMembers : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupHasHiddenMembers"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupHasHiddenMembers"; - /// - /// Identifier of the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of has_hidden_members - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_hidden_members")] - public bool HasHiddenMembers { get; set; } - } + /// + /// Identifier of the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true + /// New value of has_hidden_members /// - public static Task ToggleSupergroupHasHiddenMembersAsync( - this IClient client, long supergroupId = default, bool hasHiddenMembers = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("has_hidden_members")] + public bool HasHiddenMembers { get; set; } + } + + /// + /// Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true + /// + public static Task ToggleSupergroupHasHiddenMembersAsync( + this IClient client, long supergroupId = default, bool hasHiddenMembers = default) + { + return client.ExecuteAsync(new ToggleSupergroupHasHiddenMembers { - return client.ExecuteAsync(new ToggleSupergroupHasHiddenMembers - { - SupergroupId = supergroupId, HasHiddenMembers = hasHiddenMembers - }); - } + SupergroupId = supergroupId, HasHiddenMembers = hasHiddenMembers + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupIsAllHistoryAvailable.cs b/TdLib.Api/Functions/ToggleSupergroupIsAllHistoryAvailable.cs index 96a24d47..3bf4efab 100644 --- a/TdLib.Api/Functions/ToggleSupergroupIsAllHistoryAvailable.cs +++ b/TdLib.Api/Functions/ToggleSupergroupIsAllHistoryAvailable.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether the message history of a supergroup is available to new members; requires can_change_info member right /// - public static partial class TdApi + public class ToggleSupergroupIsAllHistoryAvailable : Function { /// - /// Toggles whether the message history of a supergroup is available to new members; requires can_change_info member right + /// Data type for serialization /// - public class ToggleSupergroupIsAllHistoryAvailable : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupIsAllHistoryAvailable"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupIsAllHistoryAvailable"; - /// - /// The identifier of the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new value of is_all_history_available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_all_history_available")] - public bool IsAllHistoryAvailable { get; set; } - } + /// + /// The identifier of the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Toggles whether the message history of a supergroup is available to new members; requires can_change_info member right + /// The new value of is_all_history_available /// - public static Task ToggleSupergroupIsAllHistoryAvailableAsync( - this IClient client, long supergroupId = default, bool isAllHistoryAvailable = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_all_history_available")] + public bool IsAllHistoryAvailable { get; set; } + } + + /// + /// Toggles whether the message history of a supergroup is available to new members; requires can_change_info member right + /// + public static Task ToggleSupergroupIsAllHistoryAvailableAsync( + this IClient client, long supergroupId = default, bool isAllHistoryAvailable = default) + { + return client.ExecuteAsync(new ToggleSupergroupIsAllHistoryAvailable { - return client.ExecuteAsync(new ToggleSupergroupIsAllHistoryAvailable - { - SupergroupId = supergroupId, IsAllHistoryAvailable = isAllHistoryAvailable - }); - } + SupergroupId = supergroupId, IsAllHistoryAvailable = isAllHistoryAvailable + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupIsBroadcastGroup.cs b/TdLib.Api/Functions/ToggleSupergroupIsBroadcastGroup.cs index df2b0146..8f13d646 100644 --- a/TdLib.Api/Functions/ToggleSupergroupIsBroadcastGroup.cs +++ b/TdLib.Api/Functions/ToggleSupergroupIsBroadcastGroup.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup /// - public static partial class TdApi + public class ToggleSupergroupIsBroadcastGroup : Function { /// - /// Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup + /// Data type for serialization /// - public class ToggleSupergroupIsBroadcastGroup : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupIsBroadcastGroup"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupIsBroadcastGroup"; - /// - /// Identifier of the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup + /// Identifier of the supergroup /// - public static Task ToggleSupergroupIsBroadcastGroupAsync( - this IClient client, long supergroupId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } + } + + /// + /// Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup + /// + public static Task ToggleSupergroupIsBroadcastGroupAsync( + this IClient client, long supergroupId = default) + { + return client.ExecuteAsync(new ToggleSupergroupIsBroadcastGroup { - return client.ExecuteAsync(new ToggleSupergroupIsBroadcastGroup - { - SupergroupId = supergroupId - }); - } + SupergroupId = supergroupId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupIsForum.cs b/TdLib.Api/Functions/ToggleSupergroupIsForum.cs index 122d46df..d99ddf68 100644 --- a/TdLib.Api/Functions/ToggleSupergroupIsForum.cs +++ b/TdLib.Api/Functions/ToggleSupergroupIsForum.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums /// - public static partial class TdApi + public class ToggleSupergroupIsForum : Function { /// - /// Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums + /// Data type for serialization /// - public class ToggleSupergroupIsForum : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupIsForum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupIsForum"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of is_forum - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_forum")] - public bool IsForum { get; set; } + /// + /// Identifier of the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } - /// - /// New value of has_forum_tabs; ignored if is_forum is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_forum_tabs")] - public bool HasForumTabs { get; set; } - } + /// + /// New value of is_forum + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_forum")] + public bool IsForum { get; set; } /// - /// Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums + /// New value of has_forum_tabs; ignored if is_forum is false /// - public static Task ToggleSupergroupIsForumAsync( - this IClient client, long supergroupId = default, bool isForum = default, bool hasForumTabs = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("has_forum_tabs")] + public bool HasForumTabs { get; set; } + } + + /// + /// Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums + /// + public static Task ToggleSupergroupIsForumAsync( + this IClient client, long supergroupId = default, bool isForum = default, bool hasForumTabs = default) + { + return client.ExecuteAsync(new ToggleSupergroupIsForum { - return client.ExecuteAsync(new ToggleSupergroupIsForum - { - SupergroupId = supergroupId, IsForum = isForum, HasForumTabs = hasForumTabs - }); - } + SupergroupId = supergroupId, IsForum = isForum, HasForumTabs = hasForumTabs + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupJoinByRequest.cs b/TdLib.Api/Functions/ToggleSupergroupJoinByRequest.cs index 855c3180..a05c1c81 100644 --- a/TdLib.Api/Functions/ToggleSupergroupJoinByRequest.cs +++ b/TdLib.Api/Functions/ToggleSupergroupJoinByRequest.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right /// - public static partial class TdApi + public class ToggleSupergroupJoinByRequest : Function { /// - /// Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right + /// Data type for serialization /// - public class ToggleSupergroupJoinByRequest : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupJoinByRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupJoinByRequest"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the supergroup that isn't a broadcast group and isn't a channel direct message group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of join_by_request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_by_request")] - public bool JoinByRequest { get; set; } + /// + /// Identifier of the supergroup that isn't a broadcast group and isn't a channel direct message group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } - /// - /// Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if join_by_request == false. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("guard_bot_user_id")] - public long GuardBotUserId { get; set; } + /// + /// New value of join_by_request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_by_request")] + public bool JoinByRequest { get; set; } - /// - /// Pass true to apply the change to the existing invite links, including primary links - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("apply_to_invite_links")] - public bool ApplyToInviteLinks { get; set; } - } + /// + /// Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if join_by_request == false. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("guard_bot_user_id")] + public long GuardBotUserId { get; set; } /// - /// Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right + /// Pass true to apply the change to the existing invite links, including primary links /// - public static Task ToggleSupergroupJoinByRequestAsync( - this IClient client, long supergroupId = default, bool joinByRequest = default, long guardBotUserId = default, bool applyToInviteLinks = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("apply_to_invite_links")] + public bool ApplyToInviteLinks { get; set; } + } + + /// + /// Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right + /// + public static Task ToggleSupergroupJoinByRequestAsync( + this IClient client, long supergroupId = default, bool joinByRequest = default, long guardBotUserId = default, bool applyToInviteLinks = default) + { + return client.ExecuteAsync(new ToggleSupergroupJoinByRequest { - return client.ExecuteAsync(new ToggleSupergroupJoinByRequest - { - SupergroupId = supergroupId, JoinByRequest = joinByRequest, GuardBotUserId = guardBotUserId, ApplyToInviteLinks = applyToInviteLinks - }); - } + SupergroupId = supergroupId, JoinByRequest = joinByRequest, GuardBotUserId = guardBotUserId, ApplyToInviteLinks = applyToInviteLinks + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupJoinToSendMessages.cs b/TdLib.Api/Functions/ToggleSupergroupJoinToSendMessages.cs index ab880b63..fc6c2157 100644 --- a/TdLib.Api/Functions/ToggleSupergroupJoinToSendMessages.cs +++ b/TdLib.Api/Functions/ToggleSupergroupJoinToSendMessages.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members administrator right /// - public static partial class TdApi + public class ToggleSupergroupJoinToSendMessages : Function { /// - /// Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members administrator right + /// Data type for serialization /// - public class ToggleSupergroupJoinToSendMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupJoinToSendMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupJoinToSendMessages"; - /// - /// Identifier of the supergroup that isn't a broadcast group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of join_to_send_messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_to_send_messages")] - public bool JoinToSendMessages { get; set; } - } + /// + /// Identifier of the supergroup that isn't a broadcast group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } /// - /// Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members administrator right + /// New value of join_to_send_messages /// - public static Task ToggleSupergroupJoinToSendMessagesAsync( - this IClient client, long supergroupId = default, bool joinToSendMessages = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("join_to_send_messages")] + public bool JoinToSendMessages { get; set; } + } + + /// + /// Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members administrator right + /// + public static Task ToggleSupergroupJoinToSendMessagesAsync( + this IClient client, long supergroupId = default, bool joinToSendMessages = default) + { + return client.ExecuteAsync(new ToggleSupergroupJoinToSendMessages { - return client.ExecuteAsync(new ToggleSupergroupJoinToSendMessages - { - SupergroupId = supergroupId, JoinToSendMessages = joinToSendMessages - }); - } + SupergroupId = supergroupId, JoinToSendMessages = joinToSendMessages + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupSignMessages.cs b/TdLib.Api/Functions/ToggleSupergroupSignMessages.cs index fd4dc336..2e63b953 100644 --- a/TdLib.Api/Functions/ToggleSupergroupSignMessages.cs +++ b/TdLib.Api/Functions/ToggleSupergroupSignMessages.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether sender signature or link to the account is added to sent messages in a channel; requires can_change_info member right /// - public static partial class TdApi + public class ToggleSupergroupSignMessages : Function { /// - /// Toggles whether sender signature or link to the account is added to sent messages in a channel; requires can_change_info member right + /// Data type for serialization /// - public class ToggleSupergroupSignMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupSignMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupSignMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of sign_messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sign_messages")] - public bool SignMessages { get; set; } + /// + /// Identifier of the channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } - /// - /// New value of show_message_sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_message_sender")] - public bool ShowMessageSender { get; set; } - } + /// + /// New value of sign_messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sign_messages")] + public bool SignMessages { get; set; } /// - /// Toggles whether sender signature or link to the account is added to sent messages in a channel; requires can_change_info member right + /// New value of show_message_sender /// - public static Task ToggleSupergroupSignMessagesAsync( - this IClient client, long supergroupId = default, bool signMessages = default, bool showMessageSender = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("show_message_sender")] + public bool ShowMessageSender { get; set; } + } + + /// + /// Toggles whether sender signature or link to the account is added to sent messages in a channel; requires can_change_info member right + /// + public static Task ToggleSupergroupSignMessagesAsync( + this IClient client, long supergroupId = default, bool signMessages = default, bool showMessageSender = default) + { + return client.ExecuteAsync(new ToggleSupergroupSignMessages { - return client.ExecuteAsync(new ToggleSupergroupSignMessages - { - SupergroupId = supergroupId, SignMessages = signMessages, ShowMessageSender = showMessageSender - }); - } + SupergroupId = supergroupId, SignMessages = signMessages, ShowMessageSender = showMessageSender + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleSupergroupUsernameIsActive.cs b/TdLib.Api/Functions/ToggleSupergroupUsernameIsActive.cs index cc032311..beaefa73 100644 --- a/TdLib.Api/Functions/ToggleSupergroupUsernameIsActive.cs +++ b/TdLib.Api/Functions/ToggleSupergroupUsernameIsActive.cs @@ -3,65 +3,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. The editable username can't be disabled. + /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached /// - public static partial class TdApi + public class ToggleSupergroupUsernameIsActive : Function { /// - /// Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. The editable username can't be disabled. - /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached + /// Data type for serialization /// - public class ToggleSupergroupUsernameIsActive : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleSupergroupUsernameIsActive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleSupergroupUsernameIsActive"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The username to change - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Identifier of the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } - /// - /// Pass true to activate the username; pass false to disable it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_active")] - public bool IsActive { get; set; } - } + /// + /// The username to change + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } /// - /// Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. The editable username can't be disabled. - /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached + /// Pass true to activate the username; pass false to disable it /// - public static Task ToggleSupergroupUsernameIsActiveAsync( - this IClient client, long supergroupId = default, string username = default, bool isActive = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_active")] + public bool IsActive { get; set; } + } + + /// + /// Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. The editable username can't be disabled. + /// May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached + /// + public static Task ToggleSupergroupUsernameIsActiveAsync( + this IClient client, long supergroupId = default, string username = default, bool isActive = default) + { + return client.ExecuteAsync(new ToggleSupergroupUsernameIsActive { - return client.ExecuteAsync(new ToggleSupergroupUsernameIsActive - { - SupergroupId = supergroupId, Username = username, IsActive = isActive - }); - } + SupergroupId = supergroupId, Username = username, IsActive = isActive + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleUsernameIsActive.cs b/TdLib.Api/Functions/ToggleUsernameIsActive.cs index 33086237..71335241 100644 --- a/TdLib.Api/Functions/ToggleUsernameIsActive.cs +++ b/TdLib.Api/Functions/ToggleUsernameIsActive.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes active state for a username of the current user. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached /// - public static partial class TdApi + public class ToggleUsernameIsActive : Function { /// - /// Changes active state for a username of the current user. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached + /// Data type for serialization /// - public class ToggleUsernameIsActive : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleUsernameIsActive"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleUsernameIsActive"; - /// - /// The username to change - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true to activate the username; pass false to disable it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_active")] - public bool IsActive { get; set; } - } + /// + /// The username to change + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } /// - /// Changes active state for a username of the current user. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached + /// Pass true to activate the username; pass false to disable it /// - public static Task ToggleUsernameIsActiveAsync( - this IClient client, string username = default, bool isActive = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("is_active")] + public bool IsActive { get; set; } + } + + /// + /// Changes active state for a username of the current user. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached + /// + public static Task ToggleUsernameIsActiveAsync( + this IClient client, string username = default, bool isActive = default) + { + return client.ExecuteAsync(new ToggleUsernameIsActive { - return client.ExecuteAsync(new ToggleUsernameIsActive - { - Username = username, IsActive = isActive - }); - } + Username = username, IsActive = isActive + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleVideoChatEnabledStartNotification.cs b/TdLib.Api/Functions/ToggleVideoChatEnabledStartNotification.cs index f89fa573..3ff1edca 100644 --- a/TdLib.Api/Functions/ToggleVideoChatEnabledStartNotification.cs +++ b/TdLib.Api/Functions/ToggleVideoChatEnabledStartNotification.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether the current user will receive a notification when the video chat starts; for scheduled video chats only /// - public static partial class TdApi + public class ToggleVideoChatEnabledStartNotification : Function { /// - /// Toggles whether the current user will receive a notification when the video chat starts; for scheduled video chats only + /// Data type for serialization /// - public class ToggleVideoChatEnabledStartNotification : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleVideoChatEnabledStartNotification"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleVideoChatEnabledStartNotification"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the enabled_start_notification setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("enabled_start_notification")] - public bool EnabledStartNotification { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Toggles whether the current user will receive a notification when the video chat starts; for scheduled video chats only + /// New value of the enabled_start_notification setting /// - public static Task ToggleVideoChatEnabledStartNotificationAsync( - this IClient client, int groupCallId = default, bool enabledStartNotification = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("enabled_start_notification")] + public bool EnabledStartNotification { get; set; } + } + + /// + /// Toggles whether the current user will receive a notification when the video chat starts; for scheduled video chats only + /// + public static Task ToggleVideoChatEnabledStartNotificationAsync( + this IClient client, int groupCallId = default, bool enabledStartNotification = default) + { + return client.ExecuteAsync(new ToggleVideoChatEnabledStartNotification { - return client.ExecuteAsync(new ToggleVideoChatEnabledStartNotification - { - GroupCallId = groupCallId, EnabledStartNotification = enabledStartNotification - }); - } + GroupCallId = groupCallId, EnabledStartNotification = enabledStartNotification + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ToggleVideoChatMuteNewParticipants.cs b/TdLib.Api/Functions/ToggleVideoChatMuteNewParticipants.cs index cda45928..2d23b983 100644 --- a/TdLib.Api/Functions/ToggleVideoChatMuteNewParticipants.cs +++ b/TdLib.Api/Functions/ToggleVideoChatMuteNewParticipants.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Toggles whether new participants of a video chat can be unmuted only by administrators of the video chat. Requires groupCall.can_toggle_mute_new_participants right /// - public static partial class TdApi + public class ToggleVideoChatMuteNewParticipants : Function { /// - /// Toggles whether new participants of a video chat can be unmuted only by administrators of the video chat. Requires groupCall.can_toggle_mute_new_participants right + /// Data type for serialization /// - public class ToggleVideoChatMuteNewParticipants : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "toggleVideoChatMuteNewParticipants"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "toggleVideoChatMuteNewParticipants"; - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the mute_new_participants setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_new_participants")] - public bool MuteNewParticipants { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } /// - /// Toggles whether new participants of a video chat can be unmuted only by administrators of the video chat. Requires groupCall.can_toggle_mute_new_participants right + /// New value of the mute_new_participants setting /// - public static Task ToggleVideoChatMuteNewParticipantsAsync( - this IClient client, int groupCallId = default, bool muteNewParticipants = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_new_participants")] + public bool MuteNewParticipants { get; set; } + } + + /// + /// Toggles whether new participants of a video chat can be unmuted only by administrators of the video chat. Requires groupCall.can_toggle_mute_new_participants right + /// + public static Task ToggleVideoChatMuteNewParticipantsAsync( + this IClient client, int groupCallId = default, bool muteNewParticipants = default) + { + return client.ExecuteAsync(new ToggleVideoChatMuteNewParticipants { - return client.ExecuteAsync(new ToggleVideoChatMuteNewParticipants - { - GroupCallId = groupCallId, MuteNewParticipants = muteNewParticipants - }); - } + GroupCallId = groupCallId, MuteNewParticipants = muteNewParticipants + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TransferBusinessAccountStars.cs b/TdLib.Api/Functions/TransferBusinessAccountStars.cs index 3ddfddbf..0c3e1a5a 100644 --- a/TdLib.Api/Functions/TransferBusinessAccountStars.cs +++ b/TdLib.Api/Functions/TransferBusinessAccountStars.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Transfers Telegram Stars from the business account to the business bot; for bots only /// - public static partial class TdApi + public class TransferBusinessAccountStars : Function { /// - /// Transfers Telegram Stars from the business account to the business bot; for bots only + /// Data type for serialization /// - public class TransferBusinessAccountStars : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "transferBusinessAccountStars"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "transferBusinessAccountStars"; - /// - /// Unique identifier of business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars to transfer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Unique identifier of business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } /// - /// Transfers Telegram Stars from the business account to the business bot; for bots only + /// Number of Telegram Stars to transfer /// - public static Task TransferBusinessAccountStarsAsync( - this IClient client, string businessConnectionId = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Transfers Telegram Stars from the business account to the business bot; for bots only + /// + public static Task TransferBusinessAccountStarsAsync( + this IClient client, string businessConnectionId = default, long starCount = default) + { + return client.ExecuteAsync(new TransferBusinessAccountStars { - return client.ExecuteAsync(new TransferBusinessAccountStars - { - BusinessConnectionId = businessConnectionId, StarCount = starCount - }); - } + BusinessConnectionId = businessConnectionId, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TransferChatOwnership.cs b/TdLib.Api/Functions/TransferChatOwnership.cs index 184d95c0..5d528d91 100644 --- a/TdLib.Api/Functions/TransferChatOwnership.cs +++ b/TdLib.Api/Functions/TransferChatOwnership.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session /// - public static partial class TdApi + public class TransferChatOwnership : Function { /// - /// Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session + /// Data type for serialization /// - public class TransferChatOwnership : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "transferChatOwnership"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "transferChatOwnership"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The 2-step verification password of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } /// - /// Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session + /// The 2-step verification password of the current user /// - public static Task TransferChatOwnershipAsync( - this IClient client, long chatId = default, long userId = default, string password = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } + } + + /// + /// Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session + /// + public static Task TransferChatOwnershipAsync( + this IClient client, long chatId = default, long userId = default, string password = default) + { + return client.ExecuteAsync(new TransferChatOwnership { - return client.ExecuteAsync(new TransferChatOwnership - { - ChatId = chatId, UserId = userId, Password = password - }); - } + ChatId = chatId, UserId = userId, Password = password + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TransferGift.cs b/TdLib.Api/Functions/TransferGift.cs index 856adbd1..0172394f 100644 --- a/TdLib.Api/Functions/TransferGift.cs +++ b/TdLib.Api/Functions/TransferGift.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Sends an upgraded gift to another user or channel chat /// - public static partial class TdApi + public class TransferGift : Function { /// - /// Sends an upgraded gift to another user or channel chat + /// Data type for serialization /// - public class TransferGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "transferGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "transferGift"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection on behalf of which to send the request; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } + /// + /// Unique identifier of business connection on behalf of which to send the request; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Identifier of the user or the channel chat that will receive the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_owner_id")] - public MessageSender NewOwnerId { get; set; } + /// + /// Identifier of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } - /// - /// The Telegram Star amount required to pay for the transfer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Identifier of the user or the channel chat that will receive the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_owner_id")] + public MessageSender NewOwnerId { get; set; } /// - /// Sends an upgraded gift to another user or channel chat + /// The Telegram Star amount required to pay for the transfer /// - public static Task TransferGiftAsync( - this IClient client, string businessConnectionId = default, string receivedGiftId = default, MessageSender newOwnerId = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Sends an upgraded gift to another user or channel chat + /// + public static Task TransferGiftAsync( + this IClient client, string businessConnectionId = default, string receivedGiftId = default, MessageSender newOwnerId = default, long starCount = default) + { + return client.ExecuteAsync(new TransferGift { - return client.ExecuteAsync(new TransferGift - { - BusinessConnectionId = businessConnectionId, ReceivedGiftId = receivedGiftId, NewOwnerId = newOwnerId, StarCount = starCount - }); - } + BusinessConnectionId = businessConnectionId, ReceivedGiftId = receivedGiftId, NewOwnerId = newOwnerId, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TranslateMessageRichMessage.cs b/TdLib.Api/Functions/TranslateMessageRichMessage.cs index f101d33e..266eae74 100644 --- a/TdLib.Api/Functions/TranslateMessageRichMessage.cs +++ b/TdLib.Api/Functions/TranslateMessageRichMessage.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Extracts rich message of the given message and translates it to the given language /// - public static partial class TdApi + public class TranslateMessageRichMessage : Function { /// - /// Extracts rich message of the given message and translates it to the given language + /// Data type for serialization /// - public class TranslateMessageRichMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "translateMessageRichMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "translateMessageRichMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("to_language_code")] - public string ToLanguageCode { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Tone of the translation; see translateText.tone for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tone")] - public string Tone { get; set; } - } + /// + /// Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("to_language_code")] + public string ToLanguageCode { get; set; } /// - /// Extracts rich message of the given message and translates it to the given language + /// Tone of the translation; see translateText.tone for the list of supported values /// - public static Task TranslateMessageRichMessageAsync( - this IClient client, long chatId = default, long messageId = default, string toLanguageCode = default, string tone = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tone")] + public string Tone { get; set; } + } + + /// + /// Extracts rich message of the given message and translates it to the given language + /// + public static Task TranslateMessageRichMessageAsync( + this IClient client, long chatId = default, long messageId = default, string toLanguageCode = default, string tone = default) + { + return client.ExecuteAsync(new TranslateMessageRichMessage { - return client.ExecuteAsync(new TranslateMessageRichMessage - { - ChatId = chatId, MessageId = messageId, ToLanguageCode = toLanguageCode, Tone = tone - }); - } + ChatId = chatId, MessageId = messageId, ToLanguageCode = toLanguageCode, Tone = tone + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TranslateMessageText.cs b/TdLib.Api/Functions/TranslateMessageText.cs index 2953ca7c..689e62b3 100644 --- a/TdLib.Api/Functions/TranslateMessageText.cs +++ b/TdLib.Api/Functions/TranslateMessageText.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Extracts text or caption of the given message and translates it to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved /// - public static partial class TdApi + public class TranslateMessageText : Function { /// - /// Extracts text or caption of the given message and translates it to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved + /// Data type for serialization /// - public class TranslateMessageText : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "translateMessageText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "translateMessageText"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("to_language_code")] - public string ToLanguageCode { get; set; } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Tone of the translation; see translateText.tone for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tone")] - public string Tone { get; set; } - } + /// + /// Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("to_language_code")] + public string ToLanguageCode { get; set; } /// - /// Extracts text or caption of the given message and translates it to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved + /// Tone of the translation; see translateText.tone for the list of supported values /// - public static Task TranslateMessageTextAsync( - this IClient client, long chatId = default, long messageId = default, string toLanguageCode = default, string tone = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tone")] + public string Tone { get; set; } + } + + /// + /// Extracts text or caption of the given message and translates it to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved + /// + public static Task TranslateMessageTextAsync( + this IClient client, long chatId = default, long messageId = default, string toLanguageCode = default, string tone = default) + { + return client.ExecuteAsync(new TranslateMessageText { - return client.ExecuteAsync(new TranslateMessageText - { - ChatId = chatId, MessageId = messageId, ToLanguageCode = toLanguageCode, Tone = tone - }); - } + ChatId = chatId, MessageId = messageId, ToLanguageCode = toLanguageCode, Tone = tone + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TranslateRichMessage.cs b/TdLib.Api/Functions/TranslateRichMessage.cs index c4170bc4..3e16e672 100644 --- a/TdLib.Api/Functions/TranslateRichMessage.cs +++ b/TdLib.Api/Functions/TranslateRichMessage.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Translates a rich message to the given language /// - public static partial class TdApi + public class TranslateRichMessage : Function { /// - /// Translates a rich message to the given language + /// Data type for serialization /// - public class TranslateRichMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "translateRichMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "translateRichMessage"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Rich message to translate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public InputRichMessage Message { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("to_language_code")] - public string ToLanguageCode { get; set; } + /// + /// Rich message to translate + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public InputRichMessage Message { get; set; } - /// - /// Tone of the translation; see translateText.tone for the list of supported values - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tone")] - public string Tone { get; set; } - } + /// + /// Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("to_language_code")] + public string ToLanguageCode { get; set; } /// - /// Translates a rich message to the given language + /// Tone of the translation; see translateText.tone for the list of supported values /// - public static Task TranslateRichMessageAsync( - this IClient client, InputRichMessage message = default, string toLanguageCode = default, string tone = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tone")] + public string Tone { get; set; } + } + + /// + /// Translates a rich message to the given language + /// + public static Task TranslateRichMessageAsync( + this IClient client, InputRichMessage message = default, string toLanguageCode = default, string tone = default) + { + return client.ExecuteAsync(new TranslateRichMessage { - return client.ExecuteAsync(new TranslateRichMessage - { - Message = message, ToLanguageCode = toLanguageCode, Tone = tone - }); - } + Message = message, ToLanguageCode = toLanguageCode, Tone = tone + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/TranslateText.cs b/TdLib.Api/Functions/TranslateText.cs index fc2f1c51..52325a88 100644 --- a/TdLib.Api/Functions/TranslateText.cs +++ b/TdLib.Api/Functions/TranslateText.cs @@ -3,67 +3,69 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Translates a text to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved /// - public static partial class TdApi + public class TranslateText : Function { /// - /// Translates a text to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved + /// Data type for serialization /// - public class TranslateText : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "translateText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "translateText"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Text to translate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Language code of the language to which the message is translated. Must be one of - /// "af", "sq", "am", "ar", "hy", "az", "eu", "be", "bn", "bs", "bg", "ca", "ceb", "zh-CN", "zh", "zh-Hans", "zh-TW", "zh-Hant", "co", "hr", "cs", "da", "nl", "en", "eo", "et", - /// "fi", "fr", "fy", "gl", "ka", "de", "el", "gu", "ht", "ha", "haw", "he", "iw", "hi", "hmn", "hu", "is", "ig", "id", "in", "ga", "it", "ja", "jv", "kn", "kk", "km", "rw", "ko", - /// "ku", "ky", "lo", "la", "lv", "lt", "lb", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my", "ne", "no", "ny", "or", "ps", "fa", "pl", "pt", "pt-BR", "pa", "ro", "ru", "sm", "gd", "sr", - /// "st", "sn", "sd", "si", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th", "tr", "tk", "uk", "ur", "ug", "uz", "vi", "cy", "xh", "yi", "ji", "yo", "zu" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("to_language_code")] - public string ToLanguageCode { get; set; } + /// + /// Text to translate + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Tone of the translation; must be one of "", "formal", "neutral", "casual"; defaults to "neutral" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tone")] - public string Tone { get; set; } - } + /// + /// Language code of the language to which the message is translated. Must be one of + /// "af", "sq", "am", "ar", "hy", "az", "eu", "be", "bn", "bs", "bg", "ca", "ceb", "zh-CN", "zh", "zh-Hans", "zh-TW", "zh-Hant", "co", "hr", "cs", "da", "nl", "en", "eo", "et", + /// "fi", "fr", "fy", "gl", "ka", "de", "el", "gu", "ht", "ha", "haw", "he", "iw", "hi", "hmn", "hu", "is", "ig", "id", "in", "ga", "it", "ja", "jv", "kn", "kk", "km", "rw", "ko", + /// "ku", "ky", "lo", "la", "lv", "lt", "lb", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my", "ne", "no", "ny", "or", "ps", "fa", "pl", "pt", "pt-BR", "pa", "ro", "ru", "sm", "gd", "sr", + /// "st", "sn", "sd", "si", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "th", "tr", "tk", "uk", "ur", "ug", "uz", "vi", "cy", "xh", "yi", "ji", "yo", "zu" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("to_language_code")] + public string ToLanguageCode { get; set; } /// - /// Translates a text to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved + /// Tone of the translation; must be one of "", "formal", "neutral", "casual"; defaults to "neutral" /// - public static Task TranslateTextAsync( - this IClient client, FormattedText text = default, string toLanguageCode = default, string tone = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("tone")] + public string Tone { get; set; } + } + + /// + /// Translates a text to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved + /// + public static Task TranslateTextAsync( + this IClient client, FormattedText text = default, string toLanguageCode = default, string tone = default) + { + return client.ExecuteAsync(new TranslateText { - return client.ExecuteAsync(new TranslateText - { - Text = text, ToLanguageCode = toLanguageCode, Tone = tone - }); - } + Text = text, ToLanguageCode = toLanguageCode, Tone = tone + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/UnpinAllChatMessages.cs b/TdLib.Api/Functions/UnpinAllChatMessages.cs index 3ff4398c..bcf2cc2e 100644 --- a/TdLib.Api/Functions/UnpinAllChatMessages.cs +++ b/TdLib.Api/Functions/UnpinAllChatMessages.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes all pinned messages from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel /// - public static partial class TdApi + public class UnpinAllChatMessages : Function { /// - /// Removes all pinned messages from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel + /// Data type for serialization /// - public class UnpinAllChatMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "unpinAllChatMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "unpinAllChatMessages"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Removes all pinned messages from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel + /// Identifier of the chat /// - public static Task UnpinAllChatMessagesAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Removes all pinned messages from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel + /// + public static Task UnpinAllChatMessagesAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new UnpinAllChatMessages { - return client.ExecuteAsync(new UnpinAllChatMessages - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/UnpinAllDirectMessagesChatTopicMessages.cs b/TdLib.Api/Functions/UnpinAllDirectMessagesChatTopicMessages.cs index 549374a9..b2157d7d 100644 --- a/TdLib.Api/Functions/UnpinAllDirectMessagesChatTopicMessages.cs +++ b/TdLib.Api/Functions/UnpinAllDirectMessagesChatTopicMessages.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes all pinned messages from the topic in a channel direct messages chat administered by the current user /// - public static partial class TdApi + public class UnpinAllDirectMessagesChatTopicMessages : Function { /// - /// Removes all pinned messages from the topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public class UnpinAllDirectMessagesChatTopicMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "unpinAllDirectMessagesChatTopicMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "unpinAllDirectMessagesChatTopicMessages"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public long TopicId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Removes all pinned messages from the topic in a channel direct messages chat administered by the current user + /// Topic identifier /// - public static Task UnpinAllDirectMessagesChatTopicMessagesAsync( - this IClient client, long chatId = default, long topicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public long TopicId { get; set; } + } + + /// + /// Removes all pinned messages from the topic in a channel direct messages chat administered by the current user + /// + public static Task UnpinAllDirectMessagesChatTopicMessagesAsync( + this IClient client, long chatId = default, long topicId = default) + { + return client.ExecuteAsync(new UnpinAllDirectMessagesChatTopicMessages { - return client.ExecuteAsync(new UnpinAllDirectMessagesChatTopicMessages - { - ChatId = chatId, TopicId = topicId - }); - } + ChatId = chatId, TopicId = topicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/UnpinAllForumTopicMessages.cs b/TdLib.Api/Functions/UnpinAllForumTopicMessages.cs index 85282b6a..025b19f4 100644 --- a/TdLib.Api/Functions/UnpinAllForumTopicMessages.cs +++ b/TdLib.Api/Functions/UnpinAllForumTopicMessages.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes all pinned messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_pin_messages member right in the supergroup /// - public static partial class TdApi + public class UnpinAllForumTopicMessages : Function { /// - /// Removes all pinned messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_pin_messages member right in the supergroup + /// Data type for serialization /// - public class UnpinAllForumTopicMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "unpinAllForumTopicMessages"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "unpinAllForumTopicMessages"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Forum topic identifier in which messages will be unpinned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Removes all pinned messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_pin_messages member right in the supergroup + /// Forum topic identifier in which messages will be unpinned /// - public static Task UnpinAllForumTopicMessagesAsync( - this IClient client, long chatId = default, int forumTopicId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } + } + + /// + /// Removes all pinned messages from a topic in a forum supergroup chat or a chat with a bot with topics; requires can_pin_messages member right in the supergroup + /// + public static Task UnpinAllForumTopicMessagesAsync( + this IClient client, long chatId = default, int forumTopicId = default) + { + return client.ExecuteAsync(new UnpinAllForumTopicMessages { - return client.ExecuteAsync(new UnpinAllForumTopicMessages - { - ChatId = chatId, ForumTopicId = forumTopicId - }); - } + ChatId = chatId, ForumTopicId = forumTopicId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/UnpinChatMessage.cs b/TdLib.Api/Functions/UnpinChatMessage.cs index 69d71b71..0466e307 100644 --- a/TdLib.Api/Functions/UnpinChatMessage.cs +++ b/TdLib.Api/Functions/UnpinChatMessage.cs @@ -3,56 +3,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Removes a pinned message from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel /// - public static partial class TdApi + public class UnpinChatMessage : Function { /// - /// Removes a pinned message from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel + /// Data type for serialization /// - public class UnpinChatMessage : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "unpinChatMessage"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "unpinChatMessage"; - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the removed pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } /// - /// Removes a pinned message from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel + /// Identifier of the removed pinned message /// - public static Task UnpinChatMessageAsync( - this IClient client, long chatId = default, long messageId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + } + + /// + /// Removes a pinned message from a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel + /// + public static Task UnpinChatMessageAsync( + this IClient client, long chatId = default, long messageId = default) + { + return client.ExecuteAsync(new UnpinChatMessage { - return client.ExecuteAsync(new UnpinChatMessage - { - ChatId = chatId, MessageId = messageId - }); - } + ChatId = chatId, MessageId = messageId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/UpgradeBasicGroupChatToSupergroupChat.cs b/TdLib.Api/Functions/UpgradeBasicGroupChatToSupergroupChat.cs index 742c51ef..22a45f5a 100644 --- a/TdLib.Api/Functions/UpgradeBasicGroupChatToSupergroupChat.cs +++ b/TdLib.Api/Functions/UpgradeBasicGroupChatToSupergroupChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group /// - public static partial class TdApi + public class UpgradeBasicGroupChatToSupergroupChat : Function { /// - /// Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group + /// Data type for serialization /// - public class UpgradeBasicGroupChatToSupergroupChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradeBasicGroupChatToSupergroupChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradeBasicGroupChatToSupergroupChat"; - /// - /// Identifier of the chat to upgrade - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group + /// Identifier of the chat to upgrade /// - public static Task UpgradeBasicGroupChatToSupergroupChatAsync( - this IClient client, long chatId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + } + + /// + /// Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires owner privileges. Deactivates the original basic group + /// + public static Task UpgradeBasicGroupChatToSupergroupChatAsync( + this IClient client, long chatId = default) + { + return client.ExecuteAsync(new UpgradeBasicGroupChatToSupergroupChat { - return client.ExecuteAsync(new UpgradeBasicGroupChatToSupergroupChat - { - ChatId = chatId - }); - } + ChatId = chatId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/UpgradeGift.cs b/TdLib.Api/Functions/UpgradeGift.cs index 948af7f8..7c46985c 100644 --- a/TdLib.Api/Functions/UpgradeGift.cs +++ b/TdLib.Api/Functions/UpgradeGift.cs @@ -3,70 +3,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Upgrades a regular gift /// - public static partial class TdApi + public class UpgradeGift : Function { /// - /// Upgrades a regular gift + /// Data type for serialization /// - public class UpgradeGift : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradeGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradeGift"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of business connection on behalf of which to send the request; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_connection_id")] - public string BusinessConnectionId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } + /// + /// Unique identifier of business connection on behalf of which to send the request; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_connection_id")] + public string BusinessConnectionId { get; set; } - /// - /// Pass true to keep the original gift text, sender and receiver in the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("keep_original_details")] - public bool KeepOriginalDetails { get; set; } + /// + /// Identifier of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } - /// - /// The Telegram Star amount required to pay for the upgrade. If the gift has prepaid_upgrade_star_count > 0, then pass 0, otherwise, pass gift.upgrade_star_count - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Pass true to keep the original gift text, sender and receiver in the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("keep_original_details")] + public bool KeepOriginalDetails { get; set; } /// - /// Upgrades a regular gift + /// The Telegram Star amount required to pay for the upgrade. If the gift has prepaid_upgrade_star_count > 0, then pass 0, otherwise, pass gift.upgrade_star_count /// - public static Task UpgradeGiftAsync( - this IClient client, string businessConnectionId = default, string receivedGiftId = default, bool keepOriginalDetails = default, long starCount = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + } + + /// + /// Upgrades a regular gift + /// + public static Task UpgradeGiftAsync( + this IClient client, string businessConnectionId = default, string receivedGiftId = default, bool keepOriginalDetails = default, long starCount = default) + { + return client.ExecuteAsync(new UpgradeGift { - return client.ExecuteAsync(new UpgradeGift - { - BusinessConnectionId = businessConnectionId, ReceivedGiftId = receivedGiftId, KeepOriginalDetails = keepOriginalDetails, StarCount = starCount - }); - } + BusinessConnectionId = businessConnectionId, ReceivedGiftId = receivedGiftId, KeepOriginalDetails = keepOriginalDetails, StarCount = starCount + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/UploadStickerFile.cs b/TdLib.Api/Functions/UploadStickerFile.cs index d93da822..333ec1bf 100644 --- a/TdLib.Api/Functions/UploadStickerFile.cs +++ b/TdLib.Api/Functions/UploadStickerFile.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Uploads a file with a sticker; returns the uploaded file /// - public static partial class TdApi + public class UploadStickerFile : Function { /// - /// Uploads a file with a sticker; returns the uploaded file + /// Data type for serialization /// - public class UploadStickerFile : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "uploadStickerFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "uploadStickerFile"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Sticker file owner; ignored for regular users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_format")] - public StickerFormat StickerFormat { get; set; } + /// + /// Sticker file owner; ignored for regular users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// File to upload; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Sticker format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_format")] + public StickerFormat StickerFormat { get; set; } /// - /// Uploads a file with a sticker; returns the uploaded file + /// File to upload; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. /// - public static Task UploadStickerFileAsync( - this IClient client, long userId = default, StickerFormat stickerFormat = default, InputFile sticker = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } + } + + /// + /// Uploads a file with a sticker; returns the uploaded file + /// + public static Task UploadStickerFileAsync( + this IClient client, long userId = default, StickerFormat stickerFormat = default, InputFile sticker = default) + { + return client.ExecuteAsync(new UploadStickerFile { - return client.ExecuteAsync(new UploadStickerFile - { - UserId = userId, StickerFormat = stickerFormat, Sticker = sticker - }); - } + UserId = userId, StickerFormat = stickerFormat, Sticker = sticker + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ValidateOrderInfo.cs b/TdLib.Api/Functions/ValidateOrderInfo.cs index a14c7926..daa74f15 100644 --- a/TdLib.Api/Functions/ValidateOrderInfo.cs +++ b/TdLib.Api/Functions/ValidateOrderInfo.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Validates the order information provided by a user and returns the available shipping options for a flexible invoice /// - public static partial class TdApi + public class ValidateOrderInfo : Function { /// - /// Validates the order information provided by a user and returns the available shipping options for a flexible invoice + /// Data type for serialization /// - public class ValidateOrderInfo : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "validateOrderInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "validateOrderInfo"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_invoice")] - public InputInvoice InputInvoice { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The order information, provided by the user; pass null if empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order_info")] - public OrderInfo OrderInfo { get; set; } + /// + /// The invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_invoice")] + public InputInvoice InputInvoice { get; set; } - /// - /// Pass true to save the order information - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_save")] - public bool AllowSave { get; set; } - } + /// + /// The order information, provided by the user; pass null if empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order_info")] + public OrderInfo OrderInfo { get; set; } /// - /// Validates the order information provided by a user and returns the available shipping options for a flexible invoice + /// Pass true to save the order information /// - public static Task ValidateOrderInfoAsync( - this IClient client, InputInvoice inputInvoice = default, OrderInfo orderInfo = default, bool allowSave = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_save")] + public bool AllowSave { get; set; } + } + + /// + /// Validates the order information provided by a user and returns the available shipping options for a flexible invoice + /// + public static Task ValidateOrderInfoAsync( + this IClient client, InputInvoice inputInvoice = default, OrderInfo orderInfo = default, bool allowSave = default) + { + return client.ExecuteAsync(new ValidateOrderInfo { - return client.ExecuteAsync(new ValidateOrderInfo - { - InputInvoice = inputInvoice, OrderInfo = orderInfo, AllowSave = allowSave - }); - } + InputInvoice = inputInvoice, OrderInfo = orderInfo, AllowSave = allowSave + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ViewMessages.cs b/TdLib.Api/Functions/ViewMessages.cs index 8d2a8c32..950f9c0c 100644 --- a/TdLib.Api/Functions/ViewMessages.cs +++ b/TdLib.Api/Functions/ViewMessages.cs @@ -3,71 +3,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). + /// Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels) /// - public static partial class TdApi + public class ViewMessages : Function { /// - /// Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). - /// Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels) + /// Data type for serialization /// - public class ViewMessages : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "viewMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "viewMessages"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifiers of the messages being viewed - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Source of the message view; pass null to guess the source based on chat open state - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public MessageSource Source { get; set; } + /// + /// The identifiers of the messages being viewed + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } - /// - /// Pass true to mark as read the specified messages even if the chat is closed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force_read")] - public bool ForceRead { get; set; } - } + /// + /// Source of the message view; pass null to guess the source based on chat open state + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public MessageSource Source { get; set; } /// - /// Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). - /// Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels) + /// Pass true to mark as read the specified messages even if the chat is closed /// - public static Task ViewMessagesAsync( - this IClient client, long chatId = default, long[] messageIds = default, MessageSource source = default, bool forceRead = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("force_read")] + public bool ForceRead { get; set; } + } + + /// + /// Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). + /// Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels) + /// + public static Task ViewMessagesAsync( + this IClient client, long chatId = default, long[] messageIds = default, MessageSource source = default, bool forceRead = default) + { + return client.ExecuteAsync(new ViewMessages { - return client.ExecuteAsync(new ViewMessages - { - ChatId = chatId, MessageIds = messageIds, Source = source, ForceRead = forceRead - }); - } + ChatId = chatId, MessageIds = messageIds, Source = source, ForceRead = forceRead + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ViewPremiumFeature.cs b/TdLib.Api/Functions/ViewPremiumFeature.cs index f636a094..d14fb708 100644 --- a/TdLib.Api/Functions/ViewPremiumFeature.cs +++ b/TdLib.Api/Functions/ViewPremiumFeature.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen /// - public static partial class TdApi + public class ViewPremiumFeature : Function { /// - /// Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen + /// Data type for serialization /// - public class ViewPremiumFeature : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "viewPremiumFeature"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "viewPremiumFeature"; - /// - /// The viewed premium feature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("feature")] - public PremiumFeature Feature { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen + /// The viewed premium feature /// - public static Task ViewPremiumFeatureAsync( - this IClient client, PremiumFeature feature = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("feature")] + public PremiumFeature Feature { get; set; } + } + + /// + /// Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen + /// + public static Task ViewPremiumFeatureAsync( + this IClient client, PremiumFeature feature = default) + { + return client.ExecuteAsync(new ViewPremiumFeature { - return client.ExecuteAsync(new ViewPremiumFeature - { - Feature = feature - }); - } + Feature = feature + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ViewSponsoredChat.cs b/TdLib.Api/Functions/ViewSponsoredChat.cs index ec40eff9..71db5d63 100644 --- a/TdLib.Api/Functions/ViewSponsoredChat.cs +++ b/TdLib.Api/Functions/ViewSponsoredChat.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the user fully viewed a sponsored chat /// - public static partial class TdApi + public class ViewSponsoredChat : Function { /// - /// Informs TDLib that the user fully viewed a sponsored chat + /// Data type for serialization /// - public class ViewSponsoredChat : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "viewSponsoredChat"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "viewSponsoredChat"; - /// - /// Unique identifier of the sponsored chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sponsored_chat_unique_id")] - public long SponsoredChatUniqueId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that the user fully viewed a sponsored chat + /// Unique identifier of the sponsored chat /// - public static Task ViewSponsoredChatAsync( - this IClient client, long sponsoredChatUniqueId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("sponsored_chat_unique_id")] + public long SponsoredChatUniqueId { get; set; } + } + + /// + /// Informs TDLib that the user fully viewed a sponsored chat + /// + public static Task ViewSponsoredChatAsync( + this IClient client, long sponsoredChatUniqueId = default) + { + return client.ExecuteAsync(new ViewSponsoredChat { - return client.ExecuteAsync(new ViewSponsoredChat - { - SponsoredChatUniqueId = sponsoredChatUniqueId - }); - } + SponsoredChatUniqueId = sponsoredChatUniqueId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ViewTrendingStickerSets.cs b/TdLib.Api/Functions/ViewTrendingStickerSets.cs index 23cd6261..42664f08 100644 --- a/TdLib.Api/Functions/ViewTrendingStickerSets.cs +++ b/TdLib.Api/Functions/ViewTrendingStickerSets.cs @@ -3,48 +3,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs the server that some trending sticker sets have been viewed by the user /// - public static partial class TdApi + public class ViewTrendingStickerSets : Function { /// - /// Informs the server that some trending sticker sets have been viewed by the user + /// Data type for serialization /// - public class ViewTrendingStickerSets : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "viewTrendingStickerSets"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "viewTrendingStickerSets"; - /// - /// Identifiers of viewed trending sticker sets - /// - [JsonProperty("sticker_set_ids", ItemConverterType = typeof(Converter))] - public long[] StickerSetIds { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs the server that some trending sticker sets have been viewed by the user + /// Identifiers of viewed trending sticker sets /// - public static Task ViewTrendingStickerSetsAsync( - this IClient client, long[] stickerSetIds = default) + [JsonProperty("sticker_set_ids", ItemConverterType = typeof(Converter))] + public long[] StickerSetIds { get; set; } + } + + /// + /// Informs the server that some trending sticker sets have been viewed by the user + /// + public static Task ViewTrendingStickerSetsAsync( + this IClient client, long[] stickerSetIds = default) + { + return client.ExecuteAsync(new ViewTrendingStickerSets { - return client.ExecuteAsync(new ViewTrendingStickerSets - { - StickerSetIds = stickerSetIds - }); - } + StickerSetIds = stickerSetIds + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/ViewVideoMessageAdvertisement.cs b/TdLib.Api/Functions/ViewVideoMessageAdvertisement.cs index 82e8d3d0..af8a698d 100644 --- a/TdLib.Api/Functions/ViewVideoMessageAdvertisement.cs +++ b/TdLib.Api/Functions/ViewVideoMessageAdvertisement.cs @@ -3,49 +3,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Informs TDLib that the user viewed a video message advertisement /// - public static partial class TdApi + public class ViewVideoMessageAdvertisement : Function { /// - /// Informs TDLib that the user viewed a video message advertisement + /// Data type for serialization /// - public class ViewVideoMessageAdvertisement : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "viewVideoMessageAdvertisement"; - - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + [JsonProperty("@type")] + public override string DataType { get; set; } = "viewVideoMessageAdvertisement"; - /// - /// Unique identifier of the advertisement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("advertisement_unique_id")] - public long AdvertisementUniqueId { get; set; } - } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } /// - /// Informs TDLib that the user viewed a video message advertisement + /// Unique identifier of the advertisement /// - public static Task ViewVideoMessageAdvertisementAsync( - this IClient client, long advertisementUniqueId = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("advertisement_unique_id")] + public long AdvertisementUniqueId { get; set; } + } + + /// + /// Informs TDLib that the user viewed a video message advertisement + /// + public static Task ViewVideoMessageAdvertisementAsync( + this IClient client, long advertisementUniqueId = default) + { + return client.ExecuteAsync(new ViewVideoMessageAdvertisement { - return client.ExecuteAsync(new ViewVideoMessageAdvertisement - { - AdvertisementUniqueId = advertisementUniqueId - }); - } + AdvertisementUniqueId = advertisementUniqueId + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Functions/WriteGeneratedFilePart.cs b/TdLib.Api/Functions/WriteGeneratedFilePart.cs index bc33d2d1..7ba54fea 100644 --- a/TdLib.Api/Functions/WriteGeneratedFilePart.cs +++ b/TdLib.Api/Functions/WriteGeneratedFilePart.cs @@ -3,63 +3,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file /// - public static partial class TdApi + public class WriteGeneratedFilePart : Function { /// - /// Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file + /// Data type for serialization /// - public class WriteGeneratedFilePart : Function - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "writeGeneratedFilePart"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "writeGeneratedFilePart"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The identifier of the generation process - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("generation_id")] - public long GenerationId { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The offset from which to write the data to the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public long Offset { get; set; } + /// + /// The identifier of the generation process + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("generation_id")] + public long GenerationId { get; set; } - /// - /// The data to write - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// The offset from which to write the data to the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public long Offset { get; set; } /// - /// Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file + /// The data to write /// - public static Task WriteGeneratedFilePartAsync( - this IClient client, long generationId = default, long offset = default, byte[] data = default) + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } + } + + /// + /// Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file + /// + public static Task WriteGeneratedFilePartAsync( + this IClient client, long generationId = default, long offset = default, byte[] data = default) + { + return client.ExecuteAsync(new WriteGeneratedFilePart { - return client.ExecuteAsync(new WriteGeneratedFilePart - { - GenerationId = generationId, Offset = offset, Data = data - }); - } + GenerationId = generationId, Offset = offset, Data = data + }); } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Object.cs b/TdLib.Api/Object.cs index 3a677e20..592afd57 100644 --- a/TdLib.Api/Object.cs +++ b/TdLib.Api/Object.cs @@ -1,21 +1,20 @@ -// SPDX-FileCopyrightText: 2024 tdsharp contributors +// SPDX-FileCopyrightText: 2024-2026 tdsharp contributors // // SPDX-License-Identifier: MIT using Newtonsoft.Json; -namespace TdLib +namespace TdLib; + +public static partial class TdApi { - public static partial class TdApi + /// + /// Base class for all objects + /// + public abstract class Object { - /// - /// Base class for all objects - /// - public abstract class Object - { - [JsonProperty("@type")] public virtual string DataType { get; set; } + [JsonProperty("@type")] public virtual string DataType { get; set; } - [JsonProperty("@extra")] public virtual string Extra { get; set; } - } + [JsonProperty("@extra")] public virtual string ExtraData { get; set; } } } diff --git a/TdLib.Api/Objects/AccentColor.cs b/TdLib.Api/Objects/AccentColor.cs index f63b4925..f316acb3 100644 --- a/TdLib.Api/Objects/AccentColor.cs +++ b/TdLib.Api/Objects/AccentColor.cs @@ -2,63 +2,62 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews /// - public static partial class TdApi + public partial class AccentColor : Object { /// - /// Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews + /// Data type for serialization /// - public partial class AccentColor : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "accentColor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "accentColor"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Accent color identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Accent color identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Identifier of a built-in color to use in places, where only one color is needed; 0-6 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("built_in_accent_color_id")] - public int BuiltInAccentColorId { get; set; } + /// + /// Identifier of a built-in color to use in places, where only one color is needed; 0-6 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("built_in_accent_color_id")] + public int BuiltInAccentColorId { get; set; } - /// - /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes - /// - [JsonProperty("light_theme_colors", ItemConverterType = typeof(Converter))] - public int[] LightThemeColors { get; set; } + /// + /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes + /// + [JsonProperty("light_theme_colors", ItemConverterType = typeof(Converter))] + public int[] LightThemeColors { get; set; } - /// - /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes - /// - [JsonProperty("dark_theme_colors", ItemConverterType = typeof(Converter))] - public int[] DarkThemeColors { get; set; } + /// + /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes + /// + [JsonProperty("dark_theme_colors", ItemConverterType = typeof(Converter))] + public int[] DarkThemeColors { get; set; } - /// - /// The minimum chat boost level required to use the color in a channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_channel_chat_boost_level")] - public int MinChannelChatBoostLevel { get; set; } - } + /// + /// The minimum chat boost level required to use the color in a channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_channel_chat_boost_level")] + public int MinChannelChatBoostLevel { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AcceptedGiftTypes.cs b/TdLib.Api/Objects/AcceptedGiftTypes.cs index ec92e411..5469a918 100644 --- a/TdLib.Api/Objects/AcceptedGiftTypes.cs +++ b/TdLib.Api/Objects/AcceptedGiftTypes.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes gift types that are accepted by a user /// - public static partial class TdApi + public partial class AcceptedGiftTypes : Object { /// - /// Describes gift types that are accepted by a user + /// Data type for serialization /// - public partial class AcceptedGiftTypes : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "acceptedGiftTypes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "acceptedGiftTypes"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if unlimited regular gifts are accepted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unlimited_gifts")] - public bool UnlimitedGifts { get; set; } + /// + /// True, if unlimited regular gifts are accepted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unlimited_gifts")] + public bool UnlimitedGifts { get; set; } - /// - /// True, if limited regular gifts are accepted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limited_gifts")] - public bool LimitedGifts { get; set; } + /// + /// True, if limited regular gifts are accepted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limited_gifts")] + public bool LimitedGifts { get; set; } - /// - /// True, if upgraded gifts and regular gifts that can be upgraded for free are accepted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_gifts")] - public bool UpgradedGifts { get; set; } + /// + /// True, if upgraded gifts and regular gifts that can be upgraded for free are accepted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_gifts")] + public bool UpgradedGifts { get; set; } - /// - /// True, if gifts from channels are accepted subject to other restrictions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gifts_from_channels")] - public bool GiftsFromChannels { get; set; } + /// + /// True, if gifts from channels are accepted subject to other restrictions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gifts_from_channels")] + public bool GiftsFromChannels { get; set; } - /// - /// True, if Telegram Premium subscription is accepted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_subscription")] - public bool PremiumSubscription { get; set; } - } + /// + /// True, if Telegram Premium subscription is accepted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_subscription")] + public bool PremiumSubscription { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AccountInfo.cs b/TdLib.Api/Objects/AccountInfo.cs index 79ac7dee..f874dbcd 100644 --- a/TdLib.Api/Objects/AccountInfo.cs +++ b/TdLib.Api/Objects/AccountInfo.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains basic information about another user who started a chat with the current user /// - public static partial class TdApi + public partial class AccountInfo : Object { /// - /// Contains basic information about another user who started a chat with the current user + /// Data type for serialization /// - public partial class AccountInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "accountInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "accountInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Month when the user was registered in Telegram; 0-12; may be 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("registration_month")] - public int RegistrationMonth { get; set; } + /// + /// Month when the user was registered in Telegram; 0-12; may be 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("registration_month")] + public int RegistrationMonth { get; set; } - /// - /// Year when the user was registered in Telegram; 0-9999; may be 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("registration_year")] - public int RegistrationYear { get; set; } + /// + /// Year when the user was registered in Telegram; 0-9999; may be 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("registration_year")] + public int RegistrationYear { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code based on the phone number of the user; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number_country_code")] - public string PhoneNumberCountryCode { get; set; } + /// + /// A two-letter ISO 3166-1 alpha-2 country code based on the phone number of the user; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number_country_code")] + public string PhoneNumberCountryCode { get; set; } - /// - /// Point in time (Unix timestamp) when the user changed name last time; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name_change_date")] - public int LastNameChangeDate { get; set; } + /// + /// Point in time (Unix timestamp) when the user changed name last time; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name_change_date")] + public int LastNameChangeDate { get; set; } - /// - /// Point in time (Unix timestamp) when the user changed photo last time; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_photo_change_date")] - public int LastPhotoChangeDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the user changed photo last time; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_photo_change_date")] + public int LastPhotoChangeDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AccountTtl.cs b/TdLib.Api/Objects/AccountTtl.cs index a5858470..82497c10 100644 --- a/TdLib.Api/Objects/AccountTtl.cs +++ b/TdLib.Api/Objects/AccountTtl.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about the period of inactivity after which the current user's account will automatically be deleted /// - public static partial class TdApi + public partial class AccountTtl : Object { /// - /// Contains information about the period of inactivity after which the current user's account will automatically be deleted + /// Data type for serialization /// - public partial class AccountTtl : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "accountTtl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "accountTtl"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of days of inactivity before the account will be flagged for deletion; 30-730 days - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("days")] - public int Days { get; set; } - } + /// + /// Number of days of inactivity before the account will be flagged for deletion; 30-730 days + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("days")] + public int Days { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ActiveStoryStateLive.cs b/TdLib.Api/Objects/ActiveStoryStateLive.cs index 8946b43c..b03458be 100644 --- a/TdLib.Api/Objects/ActiveStoryStateLive.cs +++ b/TdLib.Api/Objects/ActiveStoryStateLive.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ActiveStoryState : Object { - public partial class ActiveStoryState : Object + /// + /// Describes state of active stories posted by a chat + /// + public class ActiveStoryStateLive : ActiveStoryState { /// - /// Describes state of active stories posted by a chat + /// Data type for serialization /// - public class ActiveStoryStateLive : ActiveStoryState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "activeStoryStateLive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "activeStoryStateLive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the active live story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Identifier of the active live story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/ActiveStoryStateRead.cs b/TdLib.Api/Objects/ActiveStoryStateRead.cs index 399243e5..a37f49af 100644 --- a/TdLib.Api/Objects/ActiveStoryStateRead.cs +++ b/TdLib.Api/Objects/ActiveStoryStateRead.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ActiveStoryState : Object { - public partial class ActiveStoryState : Object + /// + /// The chat has active stories, all of which were read + /// + public class ActiveStoryStateRead : ActiveStoryState { /// - /// The chat has active stories, all of which were read + /// Data type for serialization /// - public class ActiveStoryStateRead : ActiveStoryState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "activeStoryStateRead"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "activeStoryStateRead"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ActiveStoryStateUnread.cs b/TdLib.Api/Objects/ActiveStoryStateUnread.cs index c4509d7a..97ffa346 100644 --- a/TdLib.Api/Objects/ActiveStoryStateUnread.cs +++ b/TdLib.Api/Objects/ActiveStoryStateUnread.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ActiveStoryState : Object { - public partial class ActiveStoryState : Object + /// + /// The chat has some unread active stories + /// + public class ActiveStoryStateUnread : ActiveStoryState { /// - /// The chat has some unread active stories + /// Data type for serialization /// - public class ActiveStoryStateUnread : ActiveStoryState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "activeStoryStateUnread"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "activeStoryStateUnread"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AddedProxies.cs b/TdLib.Api/Objects/AddedProxies.cs index 804a576f..32ab5b91 100644 --- a/TdLib.Api/Objects/AddedProxies.cs +++ b/TdLib.Api/Objects/AddedProxies.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of added proxy servers /// - public static partial class TdApi + public partial class AddedProxies : Object { /// - /// Represents a list of added proxy servers + /// Data type for serialization /// - public partial class AddedProxies : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addedProxies"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addedProxies"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of proxy servers - /// - [JsonProperty("proxies", ItemConverterType = typeof(Converter))] - public AddedProxy[] Proxies { get; set; } - } + /// + /// List of proxy servers + /// + [JsonProperty("proxies", ItemConverterType = typeof(Converter))] + public AddedProxy[] Proxies { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AddedProxy.cs b/TdLib.Api/Objects/AddedProxy.cs index 55edfa95..ef1551a0 100644 --- a/TdLib.Api/Objects/AddedProxy.cs +++ b/TdLib.Api/Objects/AddedProxy.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a proxy server added to the list of proxies /// - public static partial class TdApi + public partial class AddedProxy : Object { /// - /// Contains information about a proxy server added to the list of proxies + /// Data type for serialization /// - public partial class AddedProxy : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addedProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addedProxy"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique identifier of the proxy + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Point in time (Unix timestamp) when the proxy was last used; 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_used_date")] - public int LastUsedDate { get; set; } + /// + /// Point in time (Unix timestamp) when the proxy was last used; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_used_date")] + public int LastUsedDate { get; set; } - /// - /// True, if the proxy is enabled now - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_enabled")] - public bool IsEnabled { get; set; } + /// + /// True, if the proxy is enabled now + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_enabled")] + public bool IsEnabled { get; set; } - /// - /// Comment for the proxy added by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("comment")] - public string Comment { get; set; } + /// + /// Comment for the proxy added by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } - /// - /// The proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy")] - public Proxy Proxy { get; set; } - } + /// + /// The proxy + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy")] + public Proxy Proxy { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AddedReaction.cs b/TdLib.Api/Objects/AddedReaction.cs index d59eaa2f..8fd13c89 100644 --- a/TdLib.Api/Objects/AddedReaction.cs +++ b/TdLib.Api/Objects/AddedReaction.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a reaction applied to a message /// - public static partial class TdApi + public partial class AddedReaction : Object { /// - /// Represents a reaction applied to a message + /// Data type for serialization /// - public partial class AddedReaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addedReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addedReaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ReactionType Type { get; set; } + /// + /// Type of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ReactionType Type { get; set; } - /// - /// Identifier of the chat member, applied the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the chat member, applied the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// True, if the reaction was added by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_outgoing")] - public bool IsOutgoing { get; set; } + /// + /// True, if the reaction was added by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outgoing")] + public bool IsOutgoing { get; set; } - /// - /// Point in time (Unix timestamp) when the reaction was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Point in time (Unix timestamp) when the reaction was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AddedReactions.cs b/TdLib.Api/Objects/AddedReactions.cs index cac7bc01..df25ab0c 100644 --- a/TdLib.Api/Objects/AddedReactions.cs +++ b/TdLib.Api/Objects/AddedReactions.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of reactions added to a message /// - public static partial class TdApi + public partial class AddedReactions : Object { /// - /// Represents a list of reactions added to a message + /// Data type for serialization /// - public partial class AddedReactions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "addedReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "addedReactions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The total number of found reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// The total number of found reactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The list of added reactions - /// - [JsonProperty("reactions", ItemConverterType = typeof(Converter))] - public AddedReaction[] Reactions { get; set; } + /// + /// The list of added reactions + /// + [JsonProperty("reactions", ItemConverterType = typeof(Converter))] + public AddedReaction[] Reactions { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Address.cs b/TdLib.Api/Objects/Address.cs index 1896276d..1660d827 100644 --- a/TdLib.Api/Objects/Address.cs +++ b/TdLib.Api/Objects/Address.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an address /// - public static partial class TdApi + public partial class Address : Object { /// - /// Describes an address + /// Data type for serialization /// - public partial class Address : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "address"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "address"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } + /// + /// A two-letter ISO 3166-1 alpha-2 country code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } - /// - /// State, if applicable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public string State { get; set; } + /// + /// State, if applicable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public string State { get; set; } - /// - /// City - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("city")] - public string City { get; set; } + /// + /// City + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("city")] + public string City { get; set; } - /// - /// First line of the address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("street_line1")] - public string StreetLine1 { get; set; } + /// + /// First line of the address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("street_line1")] + public string StreetLine1 { get; set; } - /// - /// Second line of the address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("street_line2")] - public string StreetLine2 { get; set; } + /// + /// Second line of the address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("street_line2")] + public string StreetLine2 { get; set; } - /// - /// Address postal code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("postal_code")] - public string PostalCode { get; set; } - } + /// + /// Address postal code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("postal_code")] + public string PostalCode { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AdvertisementSponsor.cs b/TdLib.Api/Objects/AdvertisementSponsor.cs index 3fa67d68..61ff7f51 100644 --- a/TdLib.Api/Objects/AdvertisementSponsor.cs +++ b/TdLib.Api/Objects/AdvertisementSponsor.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Information about the sponsor of an advertisement /// - public static partial class TdApi + public partial class AdvertisementSponsor : Object { /// - /// Information about the sponsor of an advertisement + /// Data type for serialization /// - public partial class AdvertisementSponsor : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "advertisementSponsor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "advertisementSponsor"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the sponsor to be opened when the advertisement is clicked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the sponsor to be opened when the advertisement is clicked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Photo of the sponsor; may be null if must not be shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Photo of the sponsor; may be null if must not be shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// Additional optional information about the sponsor to be shown along with the advertisement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info")] - public string Info { get; set; } - } + /// + /// Additional optional information about the sponsor to be shown along with the advertisement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public string Info { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AffiliateInfo.cs b/TdLib.Api/Objects/AffiliateInfo.cs index 89dbcdae..6ee47edb 100644 --- a/TdLib.Api/Objects/AffiliateInfo.cs +++ b/TdLib.Api/Objects/AffiliateInfo.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an affiliate that received commission from a Telegram Star transaction /// - public static partial class TdApi + public partial class AffiliateInfo : Object { /// - /// Contains information about an affiliate that received commission from a Telegram Star transaction + /// Data type for serialization /// - public partial class AffiliateInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } + /// + /// The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } - /// - /// Identifier of the chat which received the commission - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate_chat_id")] - public long AffiliateChatId { get; set; } + /// + /// Identifier of the chat which received the commission + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate_chat_id")] + public long AffiliateChatId { get; set; } - /// - /// The Telegram Star amount that was received by the affiliate; can be negative for refunds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_amount")] - public StarAmount StarAmount { get; set; } - } + /// + /// The Telegram Star amount that was received by the affiliate; can be negative for refunds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_amount")] + public StarAmount StarAmount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AffiliateProgramInfo.cs b/TdLib.Api/Objects/AffiliateProgramInfo.cs index 5ba0a9c4..7a0452a9 100644 --- a/TdLib.Api/Objects/AffiliateProgramInfo.cs +++ b/TdLib.Api/Objects/AffiliateProgramInfo.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an active affiliate program /// - public static partial class TdApi + public partial class AffiliateProgramInfo : Object { /// - /// Contains information about an active affiliate program + /// Data type for serialization /// - public partial class AffiliateProgramInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateProgramInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateProgramInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Parameters of the affiliate program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public AffiliateProgramParameters Parameters { get; set; } + /// + /// Parameters of the affiliate program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public AffiliateProgramParameters Parameters { get; set; } - /// - /// Point in time (Unix timestamp) when the affiliate program will be closed; 0 if the affiliate program isn't scheduled to be closed. - /// If positive, then the program can't be connected using connectAffiliateProgram, but active connections will work until the date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_date")] - public int EndDate { get; set; } + /// + /// Point in time (Unix timestamp) when the affiliate program will be closed; 0 if the affiliate program isn't scheduled to be closed. + /// If positive, then the program can't be connected using connectAffiliateProgram, but active connections will work until the date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_date")] + public int EndDate { get; set; } - /// - /// The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("daily_revenue_per_user_amount")] - public StarAmount DailyRevenuePerUserAmount { get; set; } - } + /// + /// The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("daily_revenue_per_user_amount")] + public StarAmount DailyRevenuePerUserAmount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AffiliateProgramParameters.cs b/TdLib.Api/Objects/AffiliateProgramParameters.cs index bc5c56a0..32d0c62e 100644 --- a/TdLib.Api/Objects/AffiliateProgramParameters.cs +++ b/TdLib.Api/Objects/AffiliateProgramParameters.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes parameters of an affiliate program /// - public static partial class TdApi + public partial class AffiliateProgramParameters : Object { /// - /// Describes parameters of an affiliate program + /// Data type for serialization /// - public partial class AffiliateProgramParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateProgramParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateProgramParameters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner; - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } + /// + /// The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner; + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } - /// - /// Number of months the program will be active; 0-36. If 0, then the program is eternal - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } - } + /// + /// Number of months the program will be active; 0-36. If 0, then the program is eternal + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AffiliateProgramSortOrderCreationDate.cs b/TdLib.Api/Objects/AffiliateProgramSortOrderCreationDate.cs index 0a9ce1bb..4d9b902f 100644 --- a/TdLib.Api/Objects/AffiliateProgramSortOrderCreationDate.cs +++ b/TdLib.Api/Objects/AffiliateProgramSortOrderCreationDate.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AffiliateProgramSortOrder : Object { - public partial class AffiliateProgramSortOrder : Object + /// + /// The affiliate programs must be sorted by creation date + /// + public class AffiliateProgramSortOrderCreationDate : AffiliateProgramSortOrder { /// - /// The affiliate programs must be sorted by creation date + /// Data type for serialization /// - public class AffiliateProgramSortOrderCreationDate : AffiliateProgramSortOrder - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateProgramSortOrderCreationDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateProgramSortOrderCreationDate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AffiliateProgramSortOrderProfitability.cs b/TdLib.Api/Objects/AffiliateProgramSortOrderProfitability.cs index 0b7d8df1..708daef2 100644 --- a/TdLib.Api/Objects/AffiliateProgramSortOrderProfitability.cs +++ b/TdLib.Api/Objects/AffiliateProgramSortOrderProfitability.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AffiliateProgramSortOrder : Object { - public partial class AffiliateProgramSortOrder : Object + /// + /// Describes the order of the found affiliate programs + /// + public class AffiliateProgramSortOrderProfitability : AffiliateProgramSortOrder { /// - /// Describes the order of the found affiliate programs + /// Data type for serialization /// - public class AffiliateProgramSortOrderProfitability : AffiliateProgramSortOrder - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateProgramSortOrderProfitability"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateProgramSortOrderProfitability"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AffiliateProgramSortOrderRevenue.cs b/TdLib.Api/Objects/AffiliateProgramSortOrderRevenue.cs index 5892d860..88deb076 100644 --- a/TdLib.Api/Objects/AffiliateProgramSortOrderRevenue.cs +++ b/TdLib.Api/Objects/AffiliateProgramSortOrderRevenue.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AffiliateProgramSortOrder : Object { - public partial class AffiliateProgramSortOrder : Object + /// + /// The affiliate programs must be sorted by the expected revenue + /// + public class AffiliateProgramSortOrderRevenue : AffiliateProgramSortOrder { /// - /// The affiliate programs must be sorted by the expected revenue + /// Data type for serialization /// - public class AffiliateProgramSortOrderRevenue : AffiliateProgramSortOrder - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateProgramSortOrderRevenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateProgramSortOrderRevenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AffiliateTypeBot.cs b/TdLib.Api/Objects/AffiliateTypeBot.cs index af6097cc..ec656219 100644 --- a/TdLib.Api/Objects/AffiliateTypeBot.cs +++ b/TdLib.Api/Objects/AffiliateTypeBot.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AffiliateType : Object { - public partial class AffiliateType : Object + /// + /// The affiliate is a bot owned by the current user + /// + public class AffiliateTypeBot : AffiliateType { /// - /// The affiliate is a bot owned by the current user + /// Data type for serialization /// - public class AffiliateTypeBot : AffiliateType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateTypeBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateTypeBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// User identifier of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/AffiliateTypeChannel.cs b/TdLib.Api/Objects/AffiliateTypeChannel.cs index adadade9..f2baf1a4 100644 --- a/TdLib.Api/Objects/AffiliateTypeChannel.cs +++ b/TdLib.Api/Objects/AffiliateTypeChannel.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AffiliateType : Object { - public partial class AffiliateType : Object + /// + /// The affiliate is a channel chat where the current user has can_post_messages administrator right + /// + public class AffiliateTypeChannel : AffiliateType { /// - /// The affiliate is a channel chat where the current user has can_post_messages administrator right + /// Data type for serialization /// - public class AffiliateTypeChannel : AffiliateType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateTypeChannel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateTypeChannel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/AffiliateTypeCurrentUser.cs b/TdLib.Api/Objects/AffiliateTypeCurrentUser.cs index 879bdb11..181752e0 100644 --- a/TdLib.Api/Objects/AffiliateTypeCurrentUser.cs +++ b/TdLib.Api/Objects/AffiliateTypeCurrentUser.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AffiliateType : Object { - public partial class AffiliateType : Object + /// + /// Describes type of affiliate for an affiliate program + /// + public class AffiliateTypeCurrentUser : AffiliateType { /// - /// Describes type of affiliate for an affiliate program + /// Data type for serialization /// - public class AffiliateTypeCurrentUser : AffiliateType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "affiliateTypeCurrentUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "affiliateTypeCurrentUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AgeVerificationParameters.cs b/TdLib.Api/Objects/AgeVerificationParameters.cs index 8b5f41e2..fef50186 100644 --- a/TdLib.Api/Objects/AgeVerificationParameters.cs +++ b/TdLib.Api/Objects/AgeVerificationParameters.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes parameters for age verification of the current user /// - public static partial class TdApi + public partial class AgeVerificationParameters : Object { /// - /// Describes parameters for age verification of the current user + /// Data type for serialization /// - public partial class AgeVerificationParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "ageVerificationParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "ageVerificationParameters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The minimum age required to view restricted content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_age")] - public int MinAge { get; set; } + /// + /// The minimum age required to view restricted content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_age")] + public int MinAge { get; set; } - /// - /// Username of the bot which main Web App may be used to verify age of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_bot_username")] - public string VerificationBotUsername { get; set; } + /// + /// Username of the bot which main Web App may be used to verify age of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_bot_username")] + public string VerificationBotUsername { get; set; } - /// - /// Unique name for the country or region, which legislation required age verification. May be used to get the corresponding localization key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country")] - public string Country { get; set; } - } + /// + /// Unique name for the country or region, which legislation required age verification. May be used to get the corresponding localization key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country")] + public string Country { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AlternativeVideo.cs b/TdLib.Api/Objects/AlternativeVideo.cs index 391ecd92..2ed355e5 100644 --- a/TdLib.Api/Objects/AlternativeVideo.cs +++ b/TdLib.Api/Objects/AlternativeVideo.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an alternative re-encoded quality of a video file /// - public static partial class TdApi + public partial class AlternativeVideo : Object { /// - /// Describes an alternative re-encoded quality of a video file + /// Data type for serialization /// - public partial class AlternativeVideo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "alternativeVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "alternativeVideo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the alternative video, which is used in the HLS file - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique identifier of the alternative video, which is used in the HLS file + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Video width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Video width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Video height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Video height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Codec used for video file encoding, for example, "h264", "h265", "av1", or "av01" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("codec")] - public string Codec { get; set; } + /// + /// Codec used for video file encoding, for example, "h264", "h265", "av1", or "av01" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("codec")] + public string Codec { get; set; } - /// - /// HLS file describing the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hls_file")] - public File HlsFile { get; set; } + /// + /// HLS file describing the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hls_file")] + public File HlsFile { get; set; } - /// - /// File containing the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public File Video { get; set; } - } + /// + /// File containing the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public File Video { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AnimatedChatPhoto.cs b/TdLib.Api/Objects/AnimatedChatPhoto.cs index c3d02845..0bea435b 100644 --- a/TdLib.Api/Objects/AnimatedChatPhoto.cs +++ b/TdLib.Api/Objects/AnimatedChatPhoto.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Animated variant of a chat photo in MPEG4 format /// - public static partial class TdApi + public partial class AnimatedChatPhoto : Object { /// - /// Animated variant of a chat photo in MPEG4 format + /// Data type for serialization /// - public partial class AnimatedChatPhoto : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "animatedChatPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "animatedChatPhoto"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Animation width and height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } + /// + /// Animation width and height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } - /// - /// Information about the animation file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file")] - public File File { get; set; } + /// + /// Information about the animation file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file")] + public File File { get; set; } - /// - /// Timestamp of the frame, used as a static chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_frame_timestamp")] - public double? MainFrameTimestamp { get; set; } - } + /// + /// Timestamp of the frame, used as a static chat photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("main_frame_timestamp")] + public double? MainFrameTimestamp { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AnimatedEmoji.cs b/TdLib.Api/Objects/AnimatedEmoji.cs index dc9d1b4f..2d45f36b 100644 --- a/TdLib.Api/Objects/AnimatedEmoji.cs +++ b/TdLib.Api/Objects/AnimatedEmoji.cs @@ -2,65 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an animated or custom representation of an emoji /// - public static partial class TdApi + public partial class AnimatedEmoji : Object { /// - /// Describes an animated or custom representation of an emoji + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "animatedEmoji"; + + /// + /// Extra data attached to the object. /// - public partial class AnimatedEmoji : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "animatedEmoji"; + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, then it can have arbitrary format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } - /// - /// Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, then it can have arbitrary format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } + /// + /// Expected width of the sticker, which can be used if the sticker is null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_width")] + public int StickerWidth { get; set; } - /// - /// Expected width of the sticker, which can be used if the sticker is null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_width")] - public int StickerWidth { get; set; } + /// + /// Expected height of the sticker, which can be used if the sticker is null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_height")] + public int StickerHeight { get; set; } - /// - /// Expected height of the sticker, which can be used if the sticker is null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_height")] - public int StickerHeight { get; set; } + /// + /// Emoji modifier fitzpatrick type; 0-6; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fitzpatrick_type")] + public int FitzpatrickType { get; set; } - /// - /// Emoji modifier fitzpatrick type; 0-6; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fitzpatrick_type")] - public int FitzpatrickType { get; set; } + /// + /// File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sound")] + public File Sound { get; set; } - /// - /// File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sound")] - public File Sound { get; set; } - } + /// + /// True, if the emoji is a regular emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_regular_emoji")] + public bool IsRegularEmoji { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Animation.cs b/TdLib.Api/Objects/Animation.cs index feb6efec..79115067 100644 --- a/TdLib.Api/Objects/Animation.cs +++ b/TdLib.Api/Objects/Animation.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an animation file. The animation must be encoded in GIF or MPEG4 format /// - public static partial class TdApi + public partial class Animation : Object { /// - /// Describes an animation file. The animation must be encoded in GIF or MPEG4 format + /// Data type for serialization /// - public partial class Animation : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "animation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "animation"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Duration of the animation, in seconds; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the animation, in seconds; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Width of the animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Width of the animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Height of the animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Height of the animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Original name of the file; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_name")] - public string FileName { get; set; } + /// + /// Original name of the file; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_name")] + public string FileName { get; set; } - /// - /// MIME type of the file, usually "image/gif" or "video/mp4" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the file, usually "image/gif" or "video/mp4" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// True, if stickers were added to the animation. The list of corresponding sticker sets can be received using getAttachedStickerSets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_stickers")] - public bool HasStickers { get; set; } + /// + /// True, if stickers were added to the animation. The list of corresponding sticker sets can be received using getAttachedStickerSets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_stickers")] + public bool HasStickers { get; set; } - /// - /// Animation minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Animation minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// Animation thumbnail in JPEG or MPEG4 format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } + /// + /// Animation thumbnail in JPEG or MPEG4 format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } - /// - /// File containing the animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public File Animation_ { get; set; } - } + /// + /// File containing the animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public File Animation_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Animations.cs b/TdLib.Api/Objects/Animations.cs index 9d77eb89..0a1aba41 100644 --- a/TdLib.Api/Objects/Animations.cs +++ b/TdLib.Api/Objects/Animations.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of animations /// - public static partial class TdApi + public partial class Animations : Object { /// - /// Represents a list of animations + /// Data type for serialization /// - public partial class Animations : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "animations"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "animations"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of animations - /// - [JsonProperty("animations", ItemConverterType = typeof(Converter))] - public Animation[] Animations_ { get; set; } - } + /// + /// List of animations + /// + [JsonProperty("animations", ItemConverterType = typeof(Converter))] + public Animation[] Animations_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ArchiveChatListSettings.cs b/TdLib.Api/Objects/ArchiveChatListSettings.cs index 2c047137..d367e2d9 100644 --- a/TdLib.Api/Objects/ArchiveChatListSettings.cs +++ b/TdLib.Api/Objects/ArchiveChatListSettings.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains settings for automatic moving of chats to and from the Archive chat lists /// - public static partial class TdApi + public partial class ArchiveChatListSettings : Object { /// - /// Contains settings for automatic moving of chats to and from the Archive chat lists + /// Data type for serialization /// - public partial class ArchiveChatListSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "archiveChatListSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "archiveChatListSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if new chats from non-contacts will be automatically archived and muted. Can be set to true only if the option "can_archive_and_mute_new_chats_from_unknown_users" is true - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("archive_and_mute_new_chats_from_unknown_users")] - public bool ArchiveAndMuteNewChatsFromUnknownUsers { get; set; } + /// + /// True, if new chats from non-contacts will be automatically archived and muted. Can be set to true only if the option "can_archive_and_mute_new_chats_from_unknown_users" is true + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("archive_and_mute_new_chats_from_unknown_users")] + public bool ArchiveAndMuteNewChatsFromUnknownUsers { get; set; } - /// - /// True, if unmuted chats will be kept in the Archive chat list when they get a new message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("keep_unmuted_chats_archived")] - public bool KeepUnmutedChatsArchived { get; set; } + /// + /// True, if unmuted chats will be kept in the Archive chat list when they get a new message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("keep_unmuted_chats_archived")] + public bool KeepUnmutedChatsArchived { get; set; } - /// - /// True, if unmuted chats, that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_unmuted_chats_archived == true - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("keep_chats_from_folders_archived")] - public bool KeepChatsFromFoldersArchived { get; set; } - } + /// + /// True, if unmuted chats, that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_unmuted_chats_archived == true + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("keep_chats_from_folders_archived")] + public bool KeepChatsFromFoldersArchived { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AttachmentMenuBot.cs b/TdLib.Api/Objects/AttachmentMenuBot.cs index d5b81b4d..74eb50c2 100644 --- a/TdLib.Api/Objects/AttachmentMenuBot.cs +++ b/TdLib.Api/Objects/AttachmentMenuBot.cs @@ -2,191 +2,190 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a bot, which can be added to attachment or side menu /// - public static partial class TdApi + public partial class AttachmentMenuBot : Object { /// - /// Represents a bot, which can be added to attachment or side menu - /// - public partial class AttachmentMenuBot : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "attachmentMenuBot"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - - /// - /// True, if the bot supports opening from attachment menu in the chat with the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_self_chat")] - public bool SupportsSelfChat { get; set; } - - /// - /// True, if the bot supports opening from attachment menu in private chats with ordinary users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_user_chats")] - public bool SupportsUserChats { get; set; } - - /// - /// True, if the bot supports opening from attachment menu in private chats with other bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_bot_chats")] - public bool SupportsBotChats { get; set; } - - /// - /// True, if the bot supports opening from attachment menu in basic group and supergroup chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_group_chats")] - public bool SupportsGroupChats { get; set; } - - /// - /// True, if the bot supports opening from attachment menu in channel chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_channel_chats")] - public bool SupportsChannelChats { get; set; } - - /// - /// True, if the user must be asked for the permission to send messages to the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_write_access")] - public bool RequestWriteAccess { get; set; } - - /// - /// True, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_added")] - public bool IsAdded { get; set; } - - /// - /// True, if the bot must be shown in the attachment menu - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_in_attachment_menu")] - public bool ShowInAttachmentMenu { get; set; } - - /// - /// True, if the bot must be shown in the side menu - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_in_side_menu")] - public bool ShowInSideMenu { get; set; } - - /// - /// True, if a disclaimer, why the bot is shown in the side menu, is needed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_disclaimer_in_side_menu")] - public bool ShowDisclaimerInSideMenu { get; set; } - - /// - /// Name for the bot in attachment menu - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - - /// - /// Color to highlight selected name of the bot if appropriate; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name_color")] - public AttachmentMenuBotColor NameColor { get; set; } - - /// - /// Default icon for the bot in SVG format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_icon")] - public File DefaultIcon { get; set; } - - /// - /// Icon for the bot in SVG format for the official iOS app; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ios_static_icon")] - public File IosStaticIcon { get; set; } - - /// - /// Icon for the bot in TGS format for the official iOS app; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ios_animated_icon")] - public File IosAnimatedIcon { get; set; } - - /// - /// Icon for the bot in PNG format for the official iOS app side menu; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ios_side_menu_icon")] - public File IosSideMenuIcon { get; set; } - - /// - /// Icon for the bot in TGS format for the official Android app; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("android_icon")] - public File AndroidIcon { get; set; } - - /// - /// Icon for the bot in SVG format for the official Android app side menu; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("android_side_menu_icon")] - public File AndroidSideMenuIcon { get; set; } - - /// - /// Icon for the bot in TGS format for the official native macOS app; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("macos_icon")] - public File MacosIcon { get; set; } - - /// - /// Icon for the bot in PNG format for the official macOS app side menu; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("macos_side_menu_icon")] - public File MacosSideMenuIcon { get; set; } - - /// - /// Color to highlight selected icon of the bot if appropriate; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon_color")] - public AttachmentMenuBotColor IconColor { get; set; } - - /// - /// Default placeholder for opened Web Apps in SVG format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_placeholder")] - public File WebAppPlaceholder { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "attachmentMenuBot"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// User identifier of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + + /// + /// True, if the bot supports opening from attachment menu in the chat with the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_self_chat")] + public bool SupportsSelfChat { get; set; } + + /// + /// True, if the bot supports opening from attachment menu in private chats with ordinary users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_user_chats")] + public bool SupportsUserChats { get; set; } + + /// + /// True, if the bot supports opening from attachment menu in private chats with other bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_bot_chats")] + public bool SupportsBotChats { get; set; } + + /// + /// True, if the bot supports opening from attachment menu in basic group and supergroup chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_group_chats")] + public bool SupportsGroupChats { get; set; } + + /// + /// True, if the bot supports opening from attachment menu in channel chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_channel_chats")] + public bool SupportsChannelChats { get; set; } + + /// + /// True, if the user must be asked for the permission to send messages to the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_write_access")] + public bool RequestWriteAccess { get; set; } + + /// + /// True, if the bot was explicitly added by the user. If the bot isn't added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_added")] + public bool IsAdded { get; set; } + + /// + /// True, if the bot must be shown in the attachment menu + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_in_attachment_menu")] + public bool ShowInAttachmentMenu { get; set; } + + /// + /// True, if the bot must be shown in the side menu + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_in_side_menu")] + public bool ShowInSideMenu { get; set; } + + /// + /// True, if a disclaimer, why the bot is shown in the side menu, is needed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_disclaimer_in_side_menu")] + public bool ShowDisclaimerInSideMenu { get; set; } + + /// + /// Name for the bot in attachment menu + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// Color to highlight selected name of the bot if appropriate; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name_color")] + public AttachmentMenuBotColor NameColor { get; set; } + + /// + /// Default icon for the bot in SVG format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_icon")] + public File DefaultIcon { get; set; } + + /// + /// Icon for the bot in SVG format for the official iOS app; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ios_static_icon")] + public File IosStaticIcon { get; set; } + + /// + /// Icon for the bot in TGS format for the official iOS app; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ios_animated_icon")] + public File IosAnimatedIcon { get; set; } + + /// + /// Icon for the bot in PNG format for the official iOS app side menu; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ios_side_menu_icon")] + public File IosSideMenuIcon { get; set; } + + /// + /// Icon for the bot in TGS format for the official Android app; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("android_icon")] + public File AndroidIcon { get; set; } + + /// + /// Icon for the bot in SVG format for the official Android app side menu; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("android_side_menu_icon")] + public File AndroidSideMenuIcon { get; set; } + + /// + /// Icon for the bot in TGS format for the official native macOS app; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("macos_icon")] + public File MacosIcon { get; set; } + + /// + /// Icon for the bot in PNG format for the official macOS app side menu; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("macos_side_menu_icon")] + public File MacosSideMenuIcon { get; set; } + + /// + /// Color to highlight selected icon of the bot if appropriate; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon_color")] + public AttachmentMenuBotColor IconColor { get; set; } + + /// + /// Default placeholder for opened Web Apps in SVG format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_placeholder")] + public File WebAppPlaceholder { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AttachmentMenuBotColor.cs b/TdLib.Api/Objects/AttachmentMenuBotColor.cs index 76067265..f2b6a19e 100644 --- a/TdLib.Api/Objects/AttachmentMenuBotColor.cs +++ b/TdLib.Api/Objects/AttachmentMenuBotColor.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a color to highlight a bot added to attachment menu /// - public static partial class TdApi + public partial class AttachmentMenuBotColor : Object { /// - /// Describes a color to highlight a bot added to attachment menu + /// Data type for serialization /// - public partial class AttachmentMenuBotColor : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "attachmentMenuBotColor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "attachmentMenuBotColor"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Color in the RGB format for light themes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("light_color")] - public int LightColor { get; set; } + /// + /// Color in the RGB format for light themes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("light_color")] + public int LightColor { get; set; } - /// - /// Color in the RGB format for dark themes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dark_color")] - public int DarkColor { get; set; } - } + /// + /// Color in the RGB format for dark themes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dark_color")] + public int DarkColor { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AttributeCraftPersistenceProbability.cs b/TdLib.Api/Objects/AttributeCraftPersistenceProbability.cs index 4c15bbd4..ae3e32e6 100644 --- a/TdLib.Api/Objects/AttributeCraftPersistenceProbability.cs +++ b/TdLib.Api/Objects/AttributeCraftPersistenceProbability.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes chance of the crafted gift to have the backdrop or symbol of one of the original gifts /// - public static partial class TdApi + public partial class AttributeCraftPersistenceProbability : Object { /// - /// Describes chance of the crafted gift to have the backdrop or symbol of one of the original gifts + /// Data type for serialization /// - public partial class AttributeCraftPersistenceProbability : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "attributeCraftPersistenceProbability"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "attributeCraftPersistenceProbability"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 4 numbers that describe probability of the craft result to have the same attribute as one of the original gifts - /// - [JsonProperty("persistence_chance_per_mille", ItemConverterType = typeof(Converter))] - public int[] PersistenceChancePerMille { get; set; } - } + /// + /// The 4 numbers that describe probability of the craft result to have the same attribute as one of the original gifts + /// + [JsonProperty("persistence_chance_per_mille", ItemConverterType = typeof(Converter))] + public int[] PersistenceChancePerMille { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AuctionBid.cs b/TdLib.Api/Objects/AuctionBid.cs index 4e086981..890d736c 100644 --- a/TdLib.Api/Objects/AuctionBid.cs +++ b/TdLib.Api/Objects/AuctionBid.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a bid in an auction /// - public static partial class TdApi + public partial class AuctionBid : Object { /// - /// Describes a bid in an auction + /// Data type for serialization /// - public partial class AuctionBid : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "auctionBid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "auctionBid"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars that were put in the bid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// The number of Telegram Stars that were put in the bid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Point in time (Unix timestamp) when the bid was made - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bid_date")] - public int BidDate { get; set; } + /// + /// Point in time (Unix timestamp) when the bid was made + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bid_date")] + public int BidDate { get; set; } - /// - /// Position of the bid in the list of all bids - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public int Position { get; set; } - } + /// + /// Position of the bid in the list of all bids + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public int Position { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AuctionRound.cs b/TdLib.Api/Objects/AuctionRound.cs index 7e93d76a..cdb4074b 100644 --- a/TdLib.Api/Objects/AuctionRound.cs +++ b/TdLib.Api/Objects/AuctionRound.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a round of an auction /// - public static partial class TdApi + public partial class AuctionRound : Object { /// - /// Describes a round of an auction + /// Data type for serialization /// - public partial class AuctionRound : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "auctionRound"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "auctionRound"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// 1-based number of the round - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("number")] - public int Number { get; set; } + /// + /// 1-based number of the round + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("number")] + public int Number { get; set; } - /// - /// Duration of the round, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the round, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// The number of seconds for which the round will be extended if there are changes in the top winners - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("extend_time")] - public int ExtendTime { get; set; } + /// + /// The number of seconds for which the round will be extended if there are changes in the top winners + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("extend_time")] + public int ExtendTime { get; set; } - /// - /// The number of top winners who trigger round extension if changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("top_winner_count")] - public int TopWinnerCount { get; set; } - } + /// + /// The number of top winners who trigger round extension if changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("top_winner_count")] + public int TopWinnerCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AuctionStateActive.cs b/TdLib.Api/Objects/AuctionStateActive.cs index 3db854d1..3c36779a 100644 --- a/TdLib.Api/Objects/AuctionStateActive.cs +++ b/TdLib.Api/Objects/AuctionStateActive.cs @@ -2,120 +2,119 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuctionState : Object { - public partial class AuctionState : Object + /// + /// Describes state of an auction + /// + public class AuctionStateActive : AuctionState { /// - /// Describes state of an auction + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "auctionStateActive"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Point in time (Unix timestamp) when the auction started or will start + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the auction will be ended + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_date")] + public int EndDate { get; set; } + + /// + /// The minimum possible bid in the auction in Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_bid")] + public long MinBid { get; set; } + + /// + /// A sparse list of bids that were made in the auction + /// + [JsonProperty("bid_levels", ItemConverterType = typeof(Converter))] + public AuctionBid[] BidLevels { get; set; } + + /// + /// User identifiers of at most 3 users with the biggest bids + /// + [JsonProperty("top_bidder_user_ids", ItemConverterType = typeof(Converter))] + public long[] TopBidderUserIds { get; set; } + + /// + /// Rounds of the auction in which their duration or extension rules are changed + /// + [JsonProperty("rounds", ItemConverterType = typeof(Converter))] + public AuctionRound[] Rounds { get; set; } + + /// + /// Point in time (Unix timestamp) when the current round will end + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("current_round_end_date")] + public int CurrentRoundEndDate { get; set; } + + /// + /// 1-based number of the current round + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("current_round_number")] + public int CurrentRoundNumber { get; set; } + + /// + /// The total number of rounds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_round_count")] + public int TotalRoundCount { get; set; } + + /// + /// The number of items that were purchased on the auction by all users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("distributed_item_count")] + public int DistributedItemCount { get; set; } + + /// + /// The number of items that have to be distributed on the auction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("left_item_count")] + public int LeftItemCount { get; set; } + + /// + /// The number of items that were purchased by the current user on the auction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("acquired_item_count")] + public int AcquiredItemCount { get; set; } + + /// + /// Bid of the current user in the auction; may be null if none /// - public class AuctionStateActive : AuctionState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "auctionStateActive"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Point in time (Unix timestamp) when the auction started or will start - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the auction will be ended - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_date")] - public int EndDate { get; set; } - - /// - /// The minimum possible bid in the auction in Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_bid")] - public long MinBid { get; set; } - - /// - /// A sparse list of bids that were made in the auction - /// - [JsonProperty("bid_levels", ItemConverterType = typeof(Converter))] - public AuctionBid[] BidLevels { get; set; } - - /// - /// User identifiers of at most 3 users with the biggest bids - /// - [JsonProperty("top_bidder_user_ids", ItemConverterType = typeof(Converter))] - public long[] TopBidderUserIds { get; set; } - - /// - /// Rounds of the auction in which their duration or extension rules are changed - /// - [JsonProperty("rounds", ItemConverterType = typeof(Converter))] - public AuctionRound[] Rounds { get; set; } - - /// - /// Point in time (Unix timestamp) when the current round will end - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("current_round_end_date")] - public int CurrentRoundEndDate { get; set; } - - /// - /// 1-based number of the current round - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("current_round_number")] - public int CurrentRoundNumber { get; set; } - - /// - /// The total number of rounds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_round_count")] - public int TotalRoundCount { get; set; } - - /// - /// The number of items that were purchased on the auction by all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("distributed_item_count")] - public int DistributedItemCount { get; set; } - - /// - /// The number of items that have to be distributed on the auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("left_item_count")] - public int LeftItemCount { get; set; } - - /// - /// The number of items that were purchased by the current user on the auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("acquired_item_count")] - public int AcquiredItemCount { get; set; } - - /// - /// Bid of the current user in the auction; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_bid")] - public UserAuctionBid UserBid { get; set; } - } + [JsonConverter(typeof(Converter))] + [JsonProperty("user_bid")] + public UserAuctionBid UserBid { get; set; } } } } diff --git a/TdLib.Api/Objects/AuctionStateFinished.cs b/TdLib.Api/Objects/AuctionStateFinished.cs index fbf39fa6..9c879c23 100644 --- a/TdLib.Api/Objects/AuctionStateFinished.cs +++ b/TdLib.Api/Objects/AuctionStateFinished.cs @@ -2,81 +2,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuctionState : Object { - public partial class AuctionState : Object + /// + /// Contains information about a finished auction + /// + public class AuctionStateFinished : AuctionState { /// - /// Contains information about a finished auction + /// Data type for serialization /// - public class AuctionStateFinished : AuctionState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "auctionStateFinished"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "auctionStateFinished"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the auction started - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } + /// + /// Point in time (Unix timestamp) when the auction started + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } - /// - /// Point in time (Unix timestamp) when the auction will be ended - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_date")] - public int EndDate { get; set; } + /// + /// Point in time (Unix timestamp) when the auction will be ended + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_date")] + public int EndDate { get; set; } - /// - /// Average price of bought items in Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("average_price")] - public long AveragePrice { get; set; } + /// + /// Average price of bought items in Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("average_price")] + public long AveragePrice { get; set; } - /// - /// The number of items that were purchased by the current user on the auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("acquired_item_count")] - public int AcquiredItemCount { get; set; } + /// + /// The number of items that were purchased by the current user on the auction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("acquired_item_count")] + public int AcquiredItemCount { get; set; } - /// - /// Number of items from the auction being resold on Telegram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("telegram_listed_item_count")] - public int TelegramListedItemCount { get; set; } + /// + /// Number of items from the auction being resold on Telegram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("telegram_listed_item_count")] + public int TelegramListedItemCount { get; set; } - /// - /// Number of items from the auction being resold on Fragment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fragment_listed_item_count")] - public int FragmentListedItemCount { get; set; } + /// + /// Number of items from the auction being resold on Fragment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fragment_listed_item_count")] + public int FragmentListedItemCount { get; set; } - /// - /// The HTTPS link to the Fragment for the resold items; may be empty if there are no such items being sold on Fragment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fragment_url")] - public string FragmentUrl { get; set; } - } + /// + /// The HTTPS link to the Fragment for the resold items; may be empty if there are no such items being sold on Fragment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fragment_url")] + public string FragmentUrl { get; set; } } } } diff --git a/TdLib.Api/Objects/Audio.cs b/TdLib.Api/Objects/Audio.cs index c59f8190..6f91bdfb 100644 --- a/TdLib.Api/Objects/Audio.cs +++ b/TdLib.Api/Objects/Audio.cs @@ -2,92 +2,91 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an audio file. Audio is usually in MP3 or M4A format /// - public static partial class TdApi + public partial class Audio : Object { /// - /// Describes an audio file. Audio is usually in MP3 or M4A format + /// Data type for serialization /// - public partial class Audio : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "audio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "audio"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Duration of the audio, in seconds; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the audio, in seconds; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Title of the audio; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the audio; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Performer of the audio; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("performer")] - public string Performer { get; set; } + /// + /// Performer of the audio; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("performer")] + public string Performer { get; set; } - /// - /// Original name of the file; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_name")] - public string FileName { get; set; } + /// + /// Original name of the file; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_name")] + public string FileName { get; set; } - /// - /// The MIME type of the file; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// The MIME type of the file; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// The minithumbnail of the album cover; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("album_cover_minithumbnail")] - public Minithumbnail AlbumCoverMinithumbnail { get; set; } + /// + /// The minithumbnail of the album cover; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("album_cover_minithumbnail")] + public Minithumbnail AlbumCoverMinithumbnail { get; set; } - /// - /// The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("album_cover_thumbnail")] - public Thumbnail AlbumCoverThumbnail { get; set; } + /// + /// The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("album_cover_thumbnail")] + public Thumbnail AlbumCoverThumbnail { get; set; } - /// - /// Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate - /// - [JsonProperty("external_album_covers", ItemConverterType = typeof(Converter))] - public Thumbnail[] ExternalAlbumCovers { get; set; } + /// + /// Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate + /// + [JsonProperty("external_album_covers", ItemConverterType = typeof(Converter))] + public Thumbnail[] ExternalAlbumCovers { get; set; } - /// - /// File containing the audio - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public File Audio_ { get; set; } - } + /// + /// File containing the audio + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public File Audio_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Audios.cs b/TdLib.Api/Objects/Audios.cs index 32015cf4..8bbb3bd8 100644 --- a/TdLib.Api/Objects/Audios.cs +++ b/TdLib.Api/Objects/Audios.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of audio files /// - public static partial class TdApi + public partial class Audios : Object { /// - /// Contains a list of audio files + /// Data type for serialization /// - public partial class Audios : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "audios"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "audios"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of audio files found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of audio files found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of audio files - /// - [JsonProperty("audios", ItemConverterType = typeof(Converter))] - public Audio[] Audios_ { get; set; } - } + /// + /// List of audio files + /// + [JsonProperty("audios", ItemConverterType = typeof(Converter))] + public Audio[] Audios_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AuthenticationCodeInfo.cs b/TdLib.Api/Objects/AuthenticationCodeInfo.cs index 6706a041..e9ee68cb 100644 --- a/TdLib.Api/Objects/AuthenticationCodeInfo.cs +++ b/TdLib.Api/Objects/AuthenticationCodeInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Information about the authentication code that was sent /// - public static partial class TdApi + public partial class AuthenticationCodeInfo : Object { /// - /// Information about the authentication code that was sent + /// Data type for serialization /// - public partial class AuthenticationCodeInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A phone number that is being authenticated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// A phone number that is being authenticated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } - /// - /// The way the code was sent to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public AuthenticationCodeType Type { get; set; } + /// + /// The way the code was sent to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public AuthenticationCodeType Type { get; set; } - /// - /// The way the next code will be sent to the user; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_type")] - public AuthenticationCodeType NextType { get; set; } + /// + /// The way the next code will be sent to the user; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_type")] + public AuthenticationCodeType NextType { get; set; } - /// - /// Timeout before the code can be re-sent, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("timeout")] - public int Timeout { get; set; } - } + /// + /// Timeout before the code can be re-sent, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("timeout")] + public int Timeout { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeCall.cs b/TdLib.Api/Objects/AuthenticationCodeTypeCall.cs index 240f7b80..c3f5618c 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeCall.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeCall.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// A digit-only authentication code is delivered via a phone call to the specified phone number + /// + public class AuthenticationCodeTypeCall : AuthenticationCodeType { /// - /// A digit-only authentication code is delivered via a phone call to the specified phone number + /// Data type for serialization /// - public class AuthenticationCodeTypeCall : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Length of the code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Length of the code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseAndroid.cs b/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseAndroid.cs index fc9b02ae..1a19c1a3 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseAndroid.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseAndroid.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// A digit-only authentication code is delivered via Firebase Authentication to the official Android application + /// + public class AuthenticationCodeTypeFirebaseAndroid : AuthenticationCodeType { /// - /// A digit-only authentication code is delivered via Firebase Authentication to the official Android application + /// Data type for serialization /// - public class AuthenticationCodeTypeFirebaseAndroid : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeFirebaseAndroid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeFirebaseAndroid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Parameters to be used for device verification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_verification_parameters")] - public FirebaseDeviceVerificationParameters DeviceVerificationParameters { get; set; } + /// + /// Parameters to be used for device verification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_verification_parameters")] + public FirebaseDeviceVerificationParameters DeviceVerificationParameters { get; set; } - /// - /// Length of the code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Length of the code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseIos.cs b/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseIos.cs index b5dca8d7..767dc36c 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseIos.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeFirebaseIos.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// A digit-only authentication code is delivered via Firebase Authentication to the official iOS application + /// + public class AuthenticationCodeTypeFirebaseIos : AuthenticationCodeType { /// - /// A digit-only authentication code is delivered via Firebase Authentication to the official iOS application + /// Data type for serialization /// - public class AuthenticationCodeTypeFirebaseIos : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeFirebaseIos"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeFirebaseIos"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Receipt of successful application token validation to compare with receipt from push notification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receipt")] - public string Receipt { get; set; } + /// + /// Receipt of successful application token validation to compare with receipt from push notification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receipt")] + public string Receipt { get; set; } - /// - /// Time after the next authentication method is expected to be used if verification push notification isn't received, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("push_timeout")] - public int PushTimeout { get; set; } + /// + /// Time after the next authentication method is expected to be used if verification push notification isn't received, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("push_timeout")] + public int PushTimeout { get; set; } - /// - /// Length of the code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Length of the code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeFlashCall.cs b/TdLib.Api/Objects/AuthenticationCodeTypeFlashCall.cs index 04be65ae..9539e90d 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeFlashCall.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeFlashCall.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// An authentication code is delivered by an immediately canceled call to the specified phone number. The phone number that calls is the code that must be entered automatically + /// + public class AuthenticationCodeTypeFlashCall : AuthenticationCodeType { /// - /// An authentication code is delivered by an immediately canceled call to the specified phone number. The phone number that calls is the code that must be entered automatically + /// Data type for serialization /// - public class AuthenticationCodeTypeFlashCall : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeFlashCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeFlashCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pattern of the phone number from which the call will be made - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pattern")] - public string Pattern { get; set; } - } + /// + /// Pattern of the phone number from which the call will be made + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pattern")] + public string Pattern { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeFragment.cs b/TdLib.Api/Objects/AuthenticationCodeTypeFragment.cs index ac0ca49b..3d7193b7 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeFragment.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeFragment.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// A digit-only authentication code is delivered to https://fragment.com. The user must be logged in there via a wallet owning the phone number's NFT + /// + public class AuthenticationCodeTypeFragment : AuthenticationCodeType { /// - /// A digit-only authentication code is delivered to https://fragment.com. The user must be logged in there via a wallet owning the phone number's NFT + /// Data type for serialization /// - public class AuthenticationCodeTypeFragment : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeFragment"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeFragment"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL to open to receive the code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL to open to receive the code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Length of the code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Length of the code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeMissedCall.cs b/TdLib.Api/Objects/AuthenticationCodeTypeMissedCall.cs index 0d71a319..37da5ac5 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeMissedCall.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeMissedCall.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of the phone number that calls are the code that must be entered manually by the user + /// + public class AuthenticationCodeTypeMissedCall : AuthenticationCodeType { /// - /// An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of the phone number that calls are the code that must be entered manually by the user + /// Data type for serialization /// - public class AuthenticationCodeTypeMissedCall : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeMissedCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeMissedCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Prefix of the phone number from which the call will be made - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number_prefix")] - public string PhoneNumberPrefix { get; set; } + /// + /// Prefix of the phone number from which the call will be made + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number_prefix")] + public string PhoneNumberPrefix { get; set; } - /// - /// Number of digits in the code, excluding the prefix - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Number of digits in the code, excluding the prefix + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeSms.cs b/TdLib.Api/Objects/AuthenticationCodeTypeSms.cs index b3bd28b8..0f0a0516 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeSms.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeSms.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// A digit-only authentication code is delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code + /// + public class AuthenticationCodeTypeSms : AuthenticationCodeType { /// - /// A digit-only authentication code is delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code + /// Data type for serialization /// - public class AuthenticationCodeTypeSms : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeSms"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeSms"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Length of the code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Length of the code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeSmsPhrase.cs b/TdLib.Api/Objects/AuthenticationCodeTypeSmsPhrase.cs index d1b16cb1..207132c7 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeSmsPhrase.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeSmsPhrase.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// An authentication code is a phrase from multiple words delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code + /// + public class AuthenticationCodeTypeSmsPhrase : AuthenticationCodeType { /// - /// An authentication code is a phrase from multiple words delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code + /// Data type for serialization /// - public class AuthenticationCodeTypeSmsPhrase : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeSmsPhrase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeSmsPhrase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The first word of the phrase if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_word")] - public string FirstWord { get; set; } - } + /// + /// The first word of the phrase if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_word")] + public string FirstWord { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeSmsWord.cs b/TdLib.Api/Objects/AuthenticationCodeTypeSmsWord.cs index 2abf1ea6..773bc1f6 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeSmsWord.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeSmsWord.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// An authentication code is a word delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code + /// + public class AuthenticationCodeTypeSmsWord : AuthenticationCodeType { /// - /// An authentication code is a word delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code + /// Data type for serialization /// - public class AuthenticationCodeTypeSmsWord : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeSmsWord"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeSmsWord"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The first letters of the word if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_letter")] - public string FirstLetter { get; set; } - } + /// + /// The first letters of the word if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_letter")] + public string FirstLetter { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthenticationCodeTypeTelegramMessage.cs b/TdLib.Api/Objects/AuthenticationCodeTypeTelegramMessage.cs index 4a95e118..e0dc5080 100644 --- a/TdLib.Api/Objects/AuthenticationCodeTypeTelegramMessage.cs +++ b/TdLib.Api/Objects/AuthenticationCodeTypeTelegramMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthenticationCodeType : Object { - public partial class AuthenticationCodeType : Object + /// + /// Provides information about the method by which an authentication code is delivered to the user + /// + public class AuthenticationCodeTypeTelegramMessage : AuthenticationCodeType { /// - /// Provides information about the method by which an authentication code is delivered to the user + /// Data type for serialization /// - public class AuthenticationCodeTypeTelegramMessage : AuthenticationCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authenticationCodeTypeTelegramMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authenticationCodeTypeTelegramMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Length of the code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Length of the code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateClosed.cs b/TdLib.Api/Objects/AuthorizationStateClosed.cs index 96f3dc1f..e5a08511 100644 --- a/TdLib.Api/Objects/AuthorizationStateClosed.cs +++ b/TdLib.Api/Objects/AuthorizationStateClosed.cs @@ -2,35 +2,34 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to + /// with error code 500. To continue working, one must create a new instance of the TDLib client + /// + public class AuthorizationStateClosed : AuthorizationState { /// - /// TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to - /// with error code 500. To continue working, one must create a new instance of the TDLib client + /// Data type for serialization /// - public class AuthorizationStateClosed : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateClosed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateClosed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateClosing.cs b/TdLib.Api/Objects/AuthorizationStateClosing.cs index 1c4e9ba5..9a470060 100644 --- a/TdLib.Api/Objects/AuthorizationStateClosing.cs +++ b/TdLib.Api/Objects/AuthorizationStateClosing.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received + /// + public class AuthorizationStateClosing : AuthorizationState { /// - /// TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received + /// Data type for serialization /// - public class AuthorizationStateClosing : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateClosing"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateClosing"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateLoggingOut.cs b/TdLib.Api/Objects/AuthorizationStateLoggingOut.cs index d6f5afe5..a8753b8c 100644 --- a/TdLib.Api/Objects/AuthorizationStateLoggingOut.cs +++ b/TdLib.Api/Objects/AuthorizationStateLoggingOut.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// The user is currently logging out + /// + public class AuthorizationStateLoggingOut : AuthorizationState { /// - /// The user is currently logging out + /// Data type for serialization /// - public class AuthorizationStateLoggingOut : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateLoggingOut"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateLoggingOut"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateReady.cs b/TdLib.Api/Objects/AuthorizationStateReady.cs index ffa9db8b..24210af5 100644 --- a/TdLib.Api/Objects/AuthorizationStateReady.cs +++ b/TdLib.Api/Objects/AuthorizationStateReady.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// The user has been successfully authorized. TDLib is now ready to answer general requests + /// + public class AuthorizationStateReady : AuthorizationState { /// - /// The user has been successfully authorized. TDLib is now ready to answer general requests + /// Data type for serialization /// - public class AuthorizationStateReady : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateReady"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateReady"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitCode.cs b/TdLib.Api/Objects/AuthorizationStateWaitCode.cs index 83d1d521..58f33826 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitCode.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitCode.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code + /// + public class AuthorizationStateWaitCode : AuthorizationState { /// - /// TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code + /// Data type for serialization /// - public class AuthorizationStateWaitCode : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the authorization code that was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code_info")] - public AuthenticationCodeInfo CodeInfo { get; set; } - } + /// + /// Information about the authorization code that was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("code_info")] + public AuthenticationCodeInfo CodeInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitEmailAddress.cs b/TdLib.Api/Objects/AuthorizationStateWaitEmailAddress.cs index 0ebe5e47..e10d6c3b 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitEmailAddress.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitEmailAddress.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// TDLib needs the user's email address to authorize. Call setAuthenticationEmailAddress to provide the email address, or directly call checkAuthenticationEmailCode with Apple ID/Google ID token if allowed + /// + public class AuthorizationStateWaitEmailAddress : AuthorizationState { /// - /// TDLib needs the user's email address to authorize. Call setAuthenticationEmailAddress to provide the email address, or directly call checkAuthenticationEmailCode with Apple ID/Google ID token if allowed + /// Data type for serialization /// - public class AuthorizationStateWaitEmailAddress : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitEmailAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if authorization through Apple ID is allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_apple_id")] - public bool AllowAppleId { get; set; } + /// + /// True, if authorization through Apple ID is allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_apple_id")] + public bool AllowAppleId { get; set; } - /// - /// True, if authorization through Google ID is allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_google_id")] - public bool AllowGoogleId { get; set; } - } + /// + /// True, if authorization through Google ID is allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_google_id")] + public bool AllowGoogleId { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitEmailCode.cs b/TdLib.Api/Objects/AuthorizationStateWaitEmailCode.cs index 5b44dc04..86123407 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitEmailCode.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitEmailCode.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code + /// + public class AuthorizationStateWaitEmailCode : AuthorizationState { /// - /// TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code + /// Data type for serialization /// - public class AuthorizationStateWaitEmailCode : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitEmailCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitEmailCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if authorization through Apple ID is allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_apple_id")] - public bool AllowAppleId { get; set; } + /// + /// True, if authorization through Apple ID is allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_apple_id")] + public bool AllowAppleId { get; set; } - /// - /// True, if authorization through Google ID is allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_google_id")] - public bool AllowGoogleId { get; set; } + /// + /// True, if authorization through Google ID is allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_google_id")] + public bool AllowGoogleId { get; set; } - /// - /// Information about the sent authentication code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code_info")] - public EmailAddressAuthenticationCodeInfo CodeInfo { get; set; } + /// + /// Information about the sent authentication code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("code_info")] + public EmailAddressAuthenticationCodeInfo CodeInfo { get; set; } - /// - /// Reset state of the email address; may be null if the email address can't be reset - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address_reset_state")] - public EmailAddressResetState EmailAddressResetState { get; set; } - } + /// + /// Reset state of the email address; may be null if the email address can't be reset + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address_reset_state")] + public EmailAddressResetState EmailAddressResetState { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitOtherDeviceConfirmation.cs b/TdLib.Api/Objects/AuthorizationStateWaitOtherDeviceConfirmation.cs index 97bea915..cf6b366c 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitOtherDeviceConfirmation.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitOtherDeviceConfirmation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link + /// + public class AuthorizationStateWaitOtherDeviceConfirmation : AuthorizationState { /// - /// The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link + /// Data type for serialization /// - public class AuthorizationStateWaitOtherDeviceConfirmation : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitOtherDeviceConfirmation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitOtherDeviceConfirmation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A tg:// URL for the QR code. The link will be updated frequently - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// A tg:// URL for the QR code. The link will be updated frequently + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitPassword.cs b/TdLib.Api/Objects/AuthorizationStateWaitPassword.cs index 659ed0be..aa5b1ad3 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitPassword.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitPassword.cs @@ -2,61 +2,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// The user has been authorized, but needs to enter a 2-step verification password to start using the application. + /// Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the password, or deleteAccount to delete the account after a week + /// + public class AuthorizationStateWaitPassword : AuthorizationState { /// - /// The user has been authorized, but needs to enter a 2-step verification password to start using the application. - /// Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the password, or deleteAccount to delete the account after a week + /// Data type for serialization /// - public class AuthorizationStateWaitPassword : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitPassword"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Hint for the password; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password_hint")] - public string PasswordHint { get; set; } + /// + /// Hint for the password; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password_hint")] + public string PasswordHint { get; set; } - /// - /// True, if a recovery email address has been set up - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_recovery_email_address")] - public bool HasRecoveryEmailAddress { get; set; } + /// + /// True, if a recovery email address has been set up + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_recovery_email_address")] + public bool HasRecoveryEmailAddress { get; set; } - /// - /// True, if some Telegram Passport elements were saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_passport_data")] - public bool HasPassportData { get; set; } + /// + /// True, if some Telegram Passport elements were saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_passport_data")] + public bool HasPassportData { get; set; } - /// - /// Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recovery_email_address_pattern")] - public string RecoveryEmailAddressPattern { get; set; } - } + /// + /// Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recovery_email_address_pattern")] + public string RecoveryEmailAddressPattern { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitPhoneNumber.cs b/TdLib.Api/Objects/AuthorizationStateWaitPhoneNumber.cs index a19ba529..34340d8c 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitPhoneNumber.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitPhoneNumber.cs @@ -2,35 +2,34 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber to provide the phone number, + /// or use requestQrCodeAuthentication, getAuthenticationPasskeyParameters, checkAuthenticationWebToken, or checkAuthenticationBotToken for other authentication options + /// + public class AuthorizationStateWaitPhoneNumber : AuthorizationState { /// - /// TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber to provide the phone number, - /// or use requestQrCodeAuthentication, getAuthenticationPasskeyParameters, checkAuthenticationWebToken, or checkAuthenticationBotToken for other authentication options + /// Data type for serialization /// - public class AuthorizationStateWaitPhoneNumber : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitPremiumPurchase.cs b/TdLib.Api/Objects/AuthorizationStateWaitPremiumPurchase.cs index 2280230d..1c0d3fcc 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitPremiumPurchase.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitPremiumPurchase.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// The user must buy Telegram Premium as an in-store purchase to log in. Call checkAuthenticationPremiumPurchase and then setAuthenticationPremiumPurchaseTransaction + /// + public class AuthorizationStateWaitPremiumPurchase : AuthorizationState { /// - /// The user must buy Telegram Premium as an in-store purchase to log in. Call checkAuthenticationPremiumPurchase and then setAuthenticationPremiumPurchaseTransaction + /// Data type for serialization /// - public class AuthorizationStateWaitPremiumPurchase : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitPremiumPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitPremiumPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the store product that must be bought - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_id")] - public string StoreProductId { get; set; } + /// + /// Identifier of the store product that must be bought + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_id")] + public string StoreProductId { get; set; } - /// - /// Duration of the Telegram Premium subscription after the purchase; may be 0 if Telegram Premium subscription will not be granted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_day_count")] - public int PremiumDayCount { get; set; } + /// + /// Duration of the Telegram Premium subscription after the purchase; may be 0 if Telegram Premium subscription will not be granted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_day_count")] + public int PremiumDayCount { get; set; } - /// - /// Email address to use for support if the user has issues with Telegram Premium purchase - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("support_email_address")] - public string SupportEmailAddress { get; set; } + /// + /// Email address to use for support if the user has issues with Telegram Premium purchase + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("support_email_address")] + public string SupportEmailAddress { get; set; } - /// - /// Subject for the email sent to the support email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("support_email_subject")] - public string SupportEmailSubject { get; set; } - } + /// + /// Subject for the email sent to the support email address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("support_email_subject")] + public string SupportEmailSubject { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitRegistration.cs b/TdLib.Api/Objects/AuthorizationStateWaitRegistration.cs index 8f98a38c..04ead432 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitRegistration.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitRegistration.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// The user is unregistered and needs to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data + /// + public class AuthorizationStateWaitRegistration : AuthorizationState { /// - /// The user is unregistered and needs to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data + /// Data type for serialization /// - public class AuthorizationStateWaitRegistration : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitRegistration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitRegistration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Telegram terms of service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("terms_of_service")] - public TermsOfService TermsOfService { get; set; } - } + /// + /// Telegram terms of service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("terms_of_service")] + public TermsOfService TermsOfService { get; set; } } } } diff --git a/TdLib.Api/Objects/AuthorizationStateWaitTdlibParameters.cs b/TdLib.Api/Objects/AuthorizationStateWaitTdlibParameters.cs index 24692931..147feac2 100644 --- a/TdLib.Api/Objects/AuthorizationStateWaitTdlibParameters.cs +++ b/TdLib.Api/Objects/AuthorizationStateWaitTdlibParameters.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AuthorizationState : Object { - public partial class AuthorizationState : Object + /// + /// Represents the current authorization state of the TDLib client + /// + public class AuthorizationStateWaitTdlibParameters : AuthorizationState { /// - /// Represents the current authorization state of the TDLib client + /// Data type for serialization /// - public class AuthorizationStateWaitTdlibParameters : AuthorizationState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "authorizationStateWaitTdlibParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "authorizationStateWaitTdlibParameters"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AutoDownloadSettings.cs b/TdLib.Api/Objects/AutoDownloadSettings.cs index d871e1ef..fba099db 100644 --- a/TdLib.Api/Objects/AutoDownloadSettings.cs +++ b/TdLib.Api/Objects/AutoDownloadSettings.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains auto-download settings /// - public static partial class TdApi + public partial class AutoDownloadSettings : Object { /// - /// Contains auto-download settings + /// Data type for serialization /// - public partial class AutoDownloadSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autoDownloadSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autoDownloadSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the auto-download is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_auto_download_enabled")] - public bool IsAutoDownloadEnabled { get; set; } + /// + /// True, if the auto-download is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_auto_download_enabled")] + public bool IsAutoDownloadEnabled { get; set; } - /// - /// The maximum size of a photo file to be auto-downloaded, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_photo_file_size")] - public int MaxPhotoFileSize { get; set; } + /// + /// The maximum size of a photo file to be auto-downloaded, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_photo_file_size")] + public int MaxPhotoFileSize { get; set; } - /// - /// The maximum size of a video file to be auto-downloaded, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_video_file_size")] - public long MaxVideoFileSize { get; set; } + /// + /// The maximum size of a video file to be auto-downloaded, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_video_file_size")] + public long MaxVideoFileSize { get; set; } - /// - /// The maximum size of other file types to be auto-downloaded, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_other_file_size")] - public long MaxOtherFileSize { get; set; } + /// + /// The maximum size of other file types to be auto-downloaded, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_other_file_size")] + public long MaxOtherFileSize { get; set; } - /// - /// The maximum suggested bitrate for uploaded videos, in kbit/s - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_upload_bitrate")] - public int VideoUploadBitrate { get; set; } + /// + /// The maximum suggested bitrate for uploaded videos, in kbit/s + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_upload_bitrate")] + public int VideoUploadBitrate { get; set; } - /// - /// True, if the beginning of video files needs to be preloaded for instant playback - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("preload_large_videos")] - public bool PreloadLargeVideos { get; set; } + /// + /// True, if the beginning of video files needs to be preloaded for instant playback + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("preload_large_videos")] + public bool PreloadLargeVideos { get; set; } - /// - /// True, if the next audio track needs to be preloaded while the user is listening to an audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("preload_next_audio")] - public bool PreloadNextAudio { get; set; } + /// + /// True, if the next audio track needs to be preloaded while the user is listening to an audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("preload_next_audio")] + public bool PreloadNextAudio { get; set; } - /// - /// True, if stories need to be preloaded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("preload_stories")] - public bool PreloadStories { get; set; } + /// + /// True, if stories need to be preloaded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("preload_stories")] + public bool PreloadStories { get; set; } - /// - /// True, if "use less data for calls" option needs to be enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_less_data_for_calls")] - public bool UseLessDataForCalls { get; set; } - } + /// + /// True, if "use less data for calls" option needs to be enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_less_data_for_calls")] + public bool UseLessDataForCalls { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AutoDownloadSettingsPresets.cs b/TdLib.Api/Objects/AutoDownloadSettingsPresets.cs index c2b60d30..022e8823 100644 --- a/TdLib.Api/Objects/AutoDownloadSettingsPresets.cs +++ b/TdLib.Api/Objects/AutoDownloadSettingsPresets.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains auto-download settings presets for the current user /// - public static partial class TdApi + public partial class AutoDownloadSettingsPresets : Object { /// - /// Contains auto-download settings presets for the current user + /// Data type for serialization /// - public partial class AutoDownloadSettingsPresets : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autoDownloadSettingsPresets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autoDownloadSettingsPresets"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Preset with lowest settings; expected to be used by default when roaming - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("low")] - public AutoDownloadSettings Low { get; set; } + /// + /// Preset with lowest settings; expected to be used by default when roaming + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("low")] + public AutoDownloadSettings Low { get; set; } - /// - /// Preset with medium settings; expected to be used by default when using mobile data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("medium")] - public AutoDownloadSettings Medium { get; set; } + /// + /// Preset with medium settings; expected to be used by default when using mobile data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("medium")] + public AutoDownloadSettings Medium { get; set; } - /// - /// Preset with highest settings; expected to be used by default when connected on Wi-Fi - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("high")] - public AutoDownloadSettings High { get; set; } - } + /// + /// Preset with highest settings; expected to be used by default when connected on Wi-Fi + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("high")] + public AutoDownloadSettings High { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AutosaveSettings.cs b/TdLib.Api/Objects/AutosaveSettings.cs index f0c0f069..186808b5 100644 --- a/TdLib.Api/Objects/AutosaveSettings.cs +++ b/TdLib.Api/Objects/AutosaveSettings.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes autosave settings /// - public static partial class TdApi + public partial class AutosaveSettings : Object { /// - /// Describes autosave settings + /// Data type for serialization /// - public partial class AutosaveSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autosaveSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autosaveSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Default autosave settings for private chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("private_chat_settings")] - public ScopeAutosaveSettings PrivateChatSettings { get; set; } + /// + /// Default autosave settings for private chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("private_chat_settings")] + public ScopeAutosaveSettings PrivateChatSettings { get; set; } - /// - /// Default autosave settings for basic group and supergroup chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_settings")] - public ScopeAutosaveSettings GroupSettings { get; set; } + /// + /// Default autosave settings for basic group and supergroup chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_settings")] + public ScopeAutosaveSettings GroupSettings { get; set; } - /// - /// Default autosave settings for channel chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("channel_settings")] - public ScopeAutosaveSettings ChannelSettings { get; set; } + /// + /// Default autosave settings for channel chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("channel_settings")] + public ScopeAutosaveSettings ChannelSettings { get; set; } - /// - /// Autosave settings for specific chats - /// - [JsonProperty("exceptions", ItemConverterType = typeof(Converter))] - public AutosaveSettingsException[] Exceptions { get; set; } - } + /// + /// Autosave settings for specific chats + /// + [JsonProperty("exceptions", ItemConverterType = typeof(Converter))] + public AutosaveSettingsException[] Exceptions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AutosaveSettingsException.cs b/TdLib.Api/Objects/AutosaveSettingsException.cs index f3b2c408..9659d2cc 100644 --- a/TdLib.Api/Objects/AutosaveSettingsException.cs +++ b/TdLib.Api/Objects/AutosaveSettingsException.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains autosave settings for a chat, which overrides default settings for the corresponding scope /// - public static partial class TdApi + public partial class AutosaveSettingsException : Object { /// - /// Contains autosave settings for a chat, which overrides default settings for the corresponding scope + /// Data type for serialization /// - public partial class AutosaveSettingsException : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autosaveSettingsException"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autosaveSettingsException"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Autosave settings for the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public ScopeAutosaveSettings Settings { get; set; } - } + /// + /// Autosave settings for the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public ScopeAutosaveSettings Settings { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AutosaveSettingsScopeChannelChats.cs b/TdLib.Api/Objects/AutosaveSettingsScopeChannelChats.cs index c72f5f28..b1970196 100644 --- a/TdLib.Api/Objects/AutosaveSettingsScopeChannelChats.cs +++ b/TdLib.Api/Objects/AutosaveSettingsScopeChannelChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AutosaveSettingsScope : Object { - public partial class AutosaveSettingsScope : Object + /// + /// Autosave settings applied to all channel chats without chat-specific settings + /// + public class AutosaveSettingsScopeChannelChats : AutosaveSettingsScope { /// - /// Autosave settings applied to all channel chats without chat-specific settings + /// Data type for serialization /// - public class AutosaveSettingsScopeChannelChats : AutosaveSettingsScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autosaveSettingsScopeChannelChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autosaveSettingsScopeChannelChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AutosaveSettingsScopeChat.cs b/TdLib.Api/Objects/AutosaveSettingsScopeChat.cs index f8a0016c..b9108195 100644 --- a/TdLib.Api/Objects/AutosaveSettingsScopeChat.cs +++ b/TdLib.Api/Objects/AutosaveSettingsScopeChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AutosaveSettingsScope : Object { - public partial class AutosaveSettingsScope : Object + /// + /// Autosave settings applied to a chat + /// + public class AutosaveSettingsScopeChat : AutosaveSettingsScope { /// - /// Autosave settings applied to a chat + /// Data type for serialization /// - public class AutosaveSettingsScopeChat : AutosaveSettingsScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autosaveSettingsScopeChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autosaveSettingsScopeChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/AutosaveSettingsScopeGroupChats.cs b/TdLib.Api/Objects/AutosaveSettingsScopeGroupChats.cs index 074bca8a..0103780f 100644 --- a/TdLib.Api/Objects/AutosaveSettingsScopeGroupChats.cs +++ b/TdLib.Api/Objects/AutosaveSettingsScopeGroupChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AutosaveSettingsScope : Object { - public partial class AutosaveSettingsScope : Object + /// + /// Autosave settings applied to all basic group and supergroup chats without chat-specific settings + /// + public class AutosaveSettingsScopeGroupChats : AutosaveSettingsScope { /// - /// Autosave settings applied to all basic group and supergroup chats without chat-specific settings + /// Data type for serialization /// - public class AutosaveSettingsScopeGroupChats : AutosaveSettingsScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autosaveSettingsScopeGroupChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autosaveSettingsScopeGroupChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AutosaveSettingsScopePrivateChats.cs b/TdLib.Api/Objects/AutosaveSettingsScopePrivateChats.cs index 1969cd47..26f817c6 100644 --- a/TdLib.Api/Objects/AutosaveSettingsScopePrivateChats.cs +++ b/TdLib.Api/Objects/AutosaveSettingsScopePrivateChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class AutosaveSettingsScope : Object { - public partial class AutosaveSettingsScope : Object + /// + /// Describes scope of autosave settings + /// + public class AutosaveSettingsScopePrivateChats : AutosaveSettingsScope { /// - /// Describes scope of autosave settings + /// Data type for serialization /// - public class AutosaveSettingsScopePrivateChats : AutosaveSettingsScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "autosaveSettingsScopePrivateChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "autosaveSettingsScopePrivateChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/AvailableGift.cs b/TdLib.Api/Objects/AvailableGift.cs index 50965392..4c3ba531 100644 --- a/TdLib.Api/Objects/AvailableGift.cs +++ b/TdLib.Api/Objects/AvailableGift.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a gift that is available for purchase /// - public static partial class TdApi + public partial class AvailableGift : Object { /// - /// Describes a gift that is available for purchase + /// Data type for serialization /// - public partial class AvailableGift : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "availableGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "availableGift"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } - /// - /// Number of gifts that are available for resale - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("resale_count")] - public int ResaleCount { get; set; } + /// + /// Number of gifts that are available for resale + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("resale_count")] + public int ResaleCount { get; set; } - /// - /// The minimum price for the gifts available for resale in Telegram Star equivalent; 0 if there are no such gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_resale_star_count")] - public long MinResaleStarCount { get; set; } + /// + /// The minimum price for the gifts available for resale in Telegram Star equivalent; 0 if there are no such gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_resale_star_count")] + public long MinResaleStarCount { get; set; } - /// - /// The title of the upgraded gift; empty if the gift isn't available for resale - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// The title of the upgraded gift; empty if the gift isn't available for resale + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AvailableGifts.cs b/TdLib.Api/Objects/AvailableGifts.cs index 2e0f18aa..082659dd 100644 --- a/TdLib.Api/Objects/AvailableGifts.cs +++ b/TdLib.Api/Objects/AvailableGifts.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of gifts that can be sent to another user or channel chat /// - public static partial class TdApi + public partial class AvailableGifts : Object { /// - /// Contains a list of gifts that can be sent to another user or channel chat + /// Data type for serialization /// - public partial class AvailableGifts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "availableGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "availableGifts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of gifts - /// - [JsonProperty("gifts", ItemConverterType = typeof(Converter))] - public AvailableGift[] Gifts { get; set; } - } + /// + /// The list of gifts + /// + [JsonProperty("gifts", ItemConverterType = typeof(Converter))] + public AvailableGift[] Gifts { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AvailableReaction.cs b/TdLib.Api/Objects/AvailableReaction.cs index 429f3cf0..39241451 100644 --- a/TdLib.Api/Objects/AvailableReaction.cs +++ b/TdLib.Api/Objects/AvailableReaction.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents an available reaction /// - public static partial class TdApi + public partial class AvailableReaction : Object { /// - /// Represents an available reaction + /// Data type for serialization /// - public partial class AvailableReaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "availableReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "availableReaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ReactionType Type { get; set; } + /// + /// Type of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ReactionType Type { get; set; } - /// - /// True, if Telegram Premium is needed to send the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("needs_premium")] - public bool NeedsPremium { get; set; } - } + /// + /// True, if Telegram Premium is needed to send the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("needs_premium")] + public bool NeedsPremium { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/AvailableReactions.cs b/TdLib.Api/Objects/AvailableReactions.cs index 43e69309..383f2e87 100644 --- a/TdLib.Api/Objects/AvailableReactions.cs +++ b/TdLib.Api/Objects/AvailableReactions.cs @@ -2,69 +2,68 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of reactions that can be added to a message /// - public static partial class TdApi + public partial class AvailableReactions : Object { /// - /// Represents a list of reactions that can be added to a message + /// Data type for serialization /// - public partial class AvailableReactions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "availableReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "availableReactions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of reactions to be shown at the top - /// - [JsonProperty("top_reactions", ItemConverterType = typeof(Converter))] - public AvailableReaction[] TopReactions { get; set; } + /// + /// List of reactions to be shown at the top + /// + [JsonProperty("top_reactions", ItemConverterType = typeof(Converter))] + public AvailableReaction[] TopReactions { get; set; } - /// - /// List of recently used reactions - /// - [JsonProperty("recent_reactions", ItemConverterType = typeof(Converter))] - public AvailableReaction[] RecentReactions { get; set; } + /// + /// List of recently used reactions + /// + [JsonProperty("recent_reactions", ItemConverterType = typeof(Converter))] + public AvailableReaction[] RecentReactions { get; set; } - /// - /// List of popular reactions - /// - [JsonProperty("popular_reactions", ItemConverterType = typeof(Converter))] - public AvailableReaction[] PopularReactions { get; set; } + /// + /// List of popular reactions + /// + [JsonProperty("popular_reactions", ItemConverterType = typeof(Converter))] + public AvailableReaction[] PopularReactions { get; set; } - /// - /// True, if any custom emoji reaction can be added by Telegram Premium subscribers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_custom_emoji")] - public bool AllowCustomEmoji { get; set; } + /// + /// True, if any custom emoji reaction can be added by Telegram Premium subscribers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_custom_emoji")] + public bool AllowCustomEmoji { get; set; } - /// - /// True, if the reactions will be tags and the message can be found by them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_tags")] - public bool AreTags { get; set; } + /// + /// True, if the reactions will be tags and the message can be found by them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("are_tags")] + public bool AreTags { get; set; } - /// - /// The reason why the current user can't add reactions to the message, despite some other users can; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unavailability_reason")] - public ReactionUnavailabilityReason UnavailabilityReason { get; set; } - } + /// + /// The reason why the current user can't add reactions to the message, despite some other users can; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unavailability_reason")] + public ReactionUnavailabilityReason UnavailabilityReason { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Background.cs b/TdLib.Api/Objects/Background.cs index 91def6e8..b9ec91d0 100644 --- a/TdLib.Api/Objects/Background.cs +++ b/TdLib.Api/Objects/Background.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a chat background /// - public static partial class TdApi + public partial class Background : Object { /// - /// Describes a chat background + /// Data type for serialization /// - public partial class Background : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "background"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "background"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique background identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique background identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// True, if this is one of default backgrounds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_default")] - public bool IsDefault { get; set; } + /// + /// True, if this is one of default backgrounds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_default")] + public bool IsDefault { get; set; } - /// - /// True, if the background is dark and is recommended to be used with dark theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } + /// + /// True, if the background is dark and is recommended to be used with dark theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } - /// - /// Unique background name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Unique background name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Document with the background; may be null. Null only for filled and chat theme backgrounds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } + /// + /// Document with the background; may be null. Null only for filled and chat theme backgrounds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } - /// - /// Type of the background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public BackgroundType Type { get; set; } - } + /// + /// Type of the background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public BackgroundType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BackgroundFillFreeformGradient.cs b/TdLib.Api/Objects/BackgroundFillFreeformGradient.cs index 3e9865f6..76b1afa0 100644 --- a/TdLib.Api/Objects/BackgroundFillFreeformGradient.cs +++ b/TdLib.Api/Objects/BackgroundFillFreeformGradient.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BackgroundFill : Object { - public partial class BackgroundFill : Object + /// + /// Describes a freeform gradient fill of a background + /// + public class BackgroundFillFreeformGradient : BackgroundFill { /// - /// Describes a freeform gradient fill of a background + /// Data type for serialization /// - public class BackgroundFillFreeformGradient : BackgroundFill - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgroundFillFreeformGradient"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgroundFillFreeformGradient"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of 3 or 4 colors of the freeform gradient in the RGB format - /// - [JsonProperty("colors", ItemConverterType = typeof(Converter))] - public int[] Colors { get; set; } - } + /// + /// A list of 3 or 4 colors of the freeform gradient in the RGB format + /// + [JsonProperty("colors", ItemConverterType = typeof(Converter))] + public int[] Colors { get; set; } } } } diff --git a/TdLib.Api/Objects/BackgroundFillGradient.cs b/TdLib.Api/Objects/BackgroundFillGradient.cs index 1ce72326..3fe2de11 100644 --- a/TdLib.Api/Objects/BackgroundFillGradient.cs +++ b/TdLib.Api/Objects/BackgroundFillGradient.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BackgroundFill : Object { - public partial class BackgroundFill : Object + /// + /// Describes a gradient fill of a background + /// + public class BackgroundFillGradient : BackgroundFill { /// - /// Describes a gradient fill of a background + /// Data type for serialization /// - public class BackgroundFillGradient : BackgroundFill - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgroundFillGradient"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgroundFillGradient"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A top color of the background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("top_color")] - public int TopColor { get; set; } + /// + /// A top color of the background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("top_color")] + public int TopColor { get; set; } - /// - /// A bottom color of the background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bottom_color")] - public int BottomColor { get; set; } + /// + /// A bottom color of the background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bottom_color")] + public int BottomColor { get; set; } - /// - /// Clockwise rotation angle of the gradient, in degrees; 0-359. Must always be divisible by 45 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rotation_angle")] - public int RotationAngle { get; set; } - } + /// + /// Clockwise rotation angle of the gradient, in degrees; 0-359. Must always be divisible by 45 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rotation_angle")] + public int RotationAngle { get; set; } } } } diff --git a/TdLib.Api/Objects/BackgroundFillSolid.cs b/TdLib.Api/Objects/BackgroundFillSolid.cs index e6bfc8a8..452a1db2 100644 --- a/TdLib.Api/Objects/BackgroundFillSolid.cs +++ b/TdLib.Api/Objects/BackgroundFillSolid.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BackgroundFill : Object { - public partial class BackgroundFill : Object + /// + /// Describes a fill of a background + /// + public class BackgroundFillSolid : BackgroundFill { /// - /// Describes a fill of a background + /// Data type for serialization /// - public class BackgroundFillSolid : BackgroundFill - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgroundFillSolid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgroundFillSolid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A color of the background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("color")] - public int Color { get; set; } - } + /// + /// A color of the background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("color")] + public int Color { get; set; } } } } diff --git a/TdLib.Api/Objects/BackgroundTypeChatTheme.cs b/TdLib.Api/Objects/BackgroundTypeChatTheme.cs index e01c11d5..86f374a3 100644 --- a/TdLib.Api/Objects/BackgroundTypeChatTheme.cs +++ b/TdLib.Api/Objects/BackgroundTypeChatTheme.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BackgroundType : Object { - public partial class BackgroundType : Object + /// + /// A background from a chat theme based on an emoji; can be used only as a chat background in channels + /// + public class BackgroundTypeChatTheme : BackgroundType { /// - /// A background from a chat theme based on an emoji; can be used only as a chat background in channels + /// Data type for serialization /// - public class BackgroundTypeChatTheme : BackgroundType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgroundTypeChatTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgroundTypeChatTheme"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the emoji chat theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme_name")] - public string ThemeName { get; set; } - } + /// + /// Name of the emoji chat theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("theme_name")] + public string ThemeName { get; set; } } } } diff --git a/TdLib.Api/Objects/BackgroundTypeFill.cs b/TdLib.Api/Objects/BackgroundTypeFill.cs index 6432220c..717c2962 100644 --- a/TdLib.Api/Objects/BackgroundTypeFill.cs +++ b/TdLib.Api/Objects/BackgroundTypeFill.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BackgroundType : Object { - public partial class BackgroundType : Object + /// + /// A filled background + /// + public class BackgroundTypeFill : BackgroundType { /// - /// A filled background + /// Data type for serialization /// - public class BackgroundTypeFill : BackgroundType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgroundTypeFill"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgroundTypeFill"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The background fill - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fill")] - public BackgroundFill Fill { get; set; } - } + /// + /// The background fill + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fill")] + public BackgroundFill Fill { get; set; } } } } diff --git a/TdLib.Api/Objects/BackgroundTypePattern.cs b/TdLib.Api/Objects/BackgroundTypePattern.cs index 382cbb67..311d9cd9 100644 --- a/TdLib.Api/Objects/BackgroundTypePattern.cs +++ b/TdLib.Api/Objects/BackgroundTypePattern.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BackgroundType : Object { - public partial class BackgroundType : Object + /// + /// A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user + /// + public class BackgroundTypePattern : BackgroundType { /// - /// A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user + /// Data type for serialization /// - public class BackgroundTypePattern : BackgroundType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgroundTypePattern"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgroundTypePattern"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Fill of the background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fill")] - public BackgroundFill Fill { get; set; } + /// + /// Fill of the background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fill")] + public BackgroundFill Fill { get; set; } - /// - /// Intensity of the pattern when it is shown above the filled background; 0-100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("intensity")] - public int Intensity { get; set; } + /// + /// Intensity of the pattern when it is shown above the filled background; 0-100 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("intensity")] + public int Intensity { get; set; } - /// - /// True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_inverted")] - public bool IsInverted { get; set; } + /// + /// True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_inverted")] + public bool IsInverted { get; set; } - /// - /// True, if the background needs to be slightly moved when device is tilted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_moving")] - public bool IsMoving { get; set; } - } + /// + /// True, if the background needs to be slightly moved when device is tilted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_moving")] + public bool IsMoving { get; set; } } } } diff --git a/TdLib.Api/Objects/BackgroundTypeWallpaper.cs b/TdLib.Api/Objects/BackgroundTypeWallpaper.cs index b1ca06c3..1b9f4422 100644 --- a/TdLib.Api/Objects/BackgroundTypeWallpaper.cs +++ b/TdLib.Api/Objects/BackgroundTypeWallpaper.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BackgroundType : Object { - public partial class BackgroundType : Object + /// + /// Describes the type of background + /// + public class BackgroundTypeWallpaper : BackgroundType { /// - /// Describes the type of background + /// Data type for serialization /// - public class BackgroundTypeWallpaper : BackgroundType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgroundTypeWallpaper"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgroundTypeWallpaper"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_blurred")] - public bool IsBlurred { get; set; } + /// + /// True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_blurred")] + public bool IsBlurred { get; set; } - /// - /// True, if the background needs to be slightly moved when device is tilted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_moving")] - public bool IsMoving { get; set; } - } + /// + /// True, if the background needs to be slightly moved when device is tilted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_moving")] + public bool IsMoving { get; set; } } } } diff --git a/TdLib.Api/Objects/Backgrounds.cs b/TdLib.Api/Objects/Backgrounds.cs index ab4e0fe0..2b764411 100644 --- a/TdLib.Api/Objects/Backgrounds.cs +++ b/TdLib.Api/Objects/Backgrounds.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of backgrounds /// - public static partial class TdApi + public partial class Backgrounds : Object { /// - /// Contains a list of backgrounds + /// Data type for serialization /// - public partial class Backgrounds : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "backgrounds"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "backgrounds"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of backgrounds - /// - [JsonProperty("backgrounds", ItemConverterType = typeof(Converter))] - public Background[] Backgrounds_ { get; set; } - } + /// + /// A list of backgrounds + /// + [JsonProperty("backgrounds", ItemConverterType = typeof(Converter))] + public Background[] Backgrounds_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BankCardActionOpenUrl.cs b/TdLib.Api/Objects/BankCardActionOpenUrl.cs index 7fe9c845..9f6e5bb3 100644 --- a/TdLib.Api/Objects/BankCardActionOpenUrl.cs +++ b/TdLib.Api/Objects/BankCardActionOpenUrl.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an action associated with a bank card number /// - public static partial class TdApi + public partial class BankCardActionOpenUrl : Object { /// - /// Describes an action associated with a bank card number + /// Data type for serialization /// - public partial class BankCardActionOpenUrl : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "bankCardActionOpenUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "bankCardActionOpenUrl"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Action text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Action text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// The URL to be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// The URL to be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BankCardInfo.cs b/TdLib.Api/Objects/BankCardInfo.cs index f3c78fda..75c9d1e7 100644 --- a/TdLib.Api/Objects/BankCardInfo.cs +++ b/TdLib.Api/Objects/BankCardInfo.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Information about a bank card /// - public static partial class TdApi + public partial class BankCardInfo : Object { /// - /// Information about a bank card + /// Data type for serialization /// - public partial class BankCardInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "bankCardInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "bankCardInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the bank card description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the bank card description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Actions that can be done with the bank card number - /// - [JsonProperty("actions", ItemConverterType = typeof(Converter))] - public BankCardActionOpenUrl[] Actions { get; set; } - } + /// + /// Actions that can be done with the bank card number + /// + [JsonProperty("actions", ItemConverterType = typeof(Converter))] + public BankCardActionOpenUrl[] Actions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BasicGroup.cs b/TdLib.Api/Objects/BasicGroup.cs index f40056f3..dc3433e7 100644 --- a/TdLib.Api/Objects/BasicGroup.cs +++ b/TdLib.Api/Objects/BasicGroup.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users) /// - public static partial class TdApi + public partial class BasicGroup : Object { /// - /// Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users) + /// Data type for serialization /// - public partial class BasicGroup : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "basicGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "basicGroup"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Group identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Number of members in the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count")] - public int MemberCount { get; set; } + /// + /// Number of members in the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count")] + public int MemberCount { get; set; } - /// - /// Status of the current user in the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public ChatMemberStatus Status { get; set; } + /// + /// Status of the current user in the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public ChatMemberStatus Status { get; set; } - /// - /// True, if the group is active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_active")] - public bool IsActive { get; set; } + /// + /// True, if the group is active + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_active")] + public bool IsActive { get; set; } - /// - /// Identifier of the supergroup to which this group was upgraded; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_to_supergroup_id")] - public long UpgradedToSupergroupId { get; set; } - } + /// + /// Identifier of the supergroup to which this group was upgraded; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_to_supergroup_id")] + public long UpgradedToSupergroupId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BasicGroupFullInfo.cs b/TdLib.Api/Objects/BasicGroupFullInfo.cs index ed680929..95c276c0 100644 --- a/TdLib.Api/Objects/BasicGroupFullInfo.cs +++ b/TdLib.Api/Objects/BasicGroupFullInfo.cs @@ -2,84 +2,83 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains full information about a basic group /// - public static partial class TdApi + public partial class BasicGroupFullInfo : Object { /// - /// Contains full information about a basic group + /// Data type for serialization /// - public partial class BasicGroupFullInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "basicGroupFullInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "basicGroupFullInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } + /// + /// Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// User identifier of the creator of the group; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_user_id")] - public long CreatorUserId { get; set; } + /// + /// User identifier of the creator of the group; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_user_id")] + public long CreatorUserId { get; set; } - /// - /// Group members - /// - [JsonProperty("members", ItemConverterType = typeof(Converter))] - public ChatMember[] Members { get; set; } + /// + /// Group members + /// + [JsonProperty("members", ItemConverterType = typeof(Converter))] + public ChatMember[] Members { get; set; } - /// - /// True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators after upgrading the basic group to a supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_hide_members")] - public bool CanHideMembers { get; set; } + /// + /// True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators after upgrading the basic group to a supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_hide_members")] + public bool CanHideMembers { get; set; } - /// - /// True, if aggressive anti-spam checks can be enabled or disabled in the supergroup after upgrading the basic group to a supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_toggle_aggressive_anti_spam")] - public bool CanToggleAggressiveAntiSpam { get; set; } + /// + /// True, if aggressive anti-spam checks can be enabled or disabled in the supergroup after upgrading the basic group to a supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_toggle_aggressive_anti_spam")] + public bool CanToggleAggressiveAntiSpam { get; set; } - /// - /// Primary invite link for this group; may be null. For chat administrators with can_invite_users right only. Updated only after the basic group is opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } + /// + /// Primary invite link for this group; may be null. For chat administrators with can_invite_users right only. Updated only after the basic group is opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } - /// - /// List of commands of bots in the group - /// - [JsonProperty("bot_commands", ItemConverterType = typeof(Converter))] - public BotCommands[] BotCommands { get; set; } - } + /// + /// List of commands of bots in the group + /// + [JsonProperty("bot_commands", ItemConverterType = typeof(Converter))] + public BotCommands[] BotCommands { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Birthdate.cs b/TdLib.Api/Objects/Birthdate.cs index 108e4143..425f261d 100644 --- a/TdLib.Api/Objects/Birthdate.cs +++ b/TdLib.Api/Objects/Birthdate.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a birthdate of a user /// - public static partial class TdApi + public partial class Birthdate : Object { /// - /// Represents a birthdate of a user + /// Data type for serialization /// - public partial class Birthdate : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "birthdate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "birthdate"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Day of the month; 1-31 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("day")] - public int Day { get; set; } + /// + /// Day of the month; 1-31 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("day")] + public int Day { get; set; } - /// - /// Month of the year; 1-12 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month")] - public int Month { get; set; } + /// + /// Month of the year; 1-12 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month")] + public int Month { get; set; } - /// - /// Birth year; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("year")] - public int Year { get; set; } - } + /// + /// Birth year; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("year")] + public int Year { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BlockListMain.cs b/TdLib.Api/Objects/BlockListMain.cs index 3419681b..c6681f62 100644 --- a/TdLib.Api/Objects/BlockListMain.cs +++ b/TdLib.Api/Objects/BlockListMain.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BlockList : Object { - public partial class BlockList : Object + /// + /// Describes type of block list + /// + public class BlockListMain : BlockList { /// - /// Describes type of block list + /// Data type for serialization /// - public class BlockListMain : BlockList - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "blockListMain"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "blockListMain"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BlockListStories.cs b/TdLib.Api/Objects/BlockListStories.cs index 5f29d4aa..a124c7f9 100644 --- a/TdLib.Api/Objects/BlockListStories.cs +++ b/TdLib.Api/Objects/BlockListStories.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BlockList : Object { - public partial class BlockList : Object + /// + /// The block list that disallows viewing of stories of the current user + /// + public class BlockListStories : BlockList { /// - /// The block list that disallows viewing of stories of the current user + /// Data type for serialization /// - public class BlockListStories : BlockList - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "blockListStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "blockListStories"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BotAccessSettings.cs b/TdLib.Api/Objects/BotAccessSettings.cs index b0c4f07a..d24868f4 100644 --- a/TdLib.Api/Objects/BotAccessSettings.cs +++ b/TdLib.Api/Objects/BotAccessSettings.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes users that have access to a bot /// - public static partial class TdApi + public partial class BotAccessSettings : Object { /// - /// Describes users that have access to a bot + /// Data type for serialization /// - public partial class BotAccessSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botAccessSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botAccessSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if access to the bot is restricted to its owner and selected users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_restricted")] - public bool IsRestricted { get; set; } + /// + /// True, if access to the bot is restricted to its owner and selected users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_restricted")] + public bool IsRestricted { get; set; } - /// - /// Identifiers of the users who can use the bot additionally to the owner of the bot - /// - [JsonProperty("added_user_ids", ItemConverterType = typeof(Converter))] - public long[] AddedUserIds { get; set; } - } + /// + /// Identifiers of the users who can use the bot additionally to the owner of the bot + /// + [JsonProperty("added_user_ids", ItemConverterType = typeof(Converter))] + public long[] AddedUserIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotCommand.cs b/TdLib.Api/Objects/BotCommand.cs index 855858fa..cc86fec8 100644 --- a/TdLib.Api/Objects/BotCommand.cs +++ b/TdLib.Api/Objects/BotCommand.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a command supported by a bot /// - public static partial class TdApi + public partial class BotCommand : Object { /// - /// Represents a command supported by a bot + /// Data type for serialization /// - public partial class BotCommand : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommand"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommand"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the bot command - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("command")] - public string Command { get; set; } + /// + /// Text of the bot command + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("command")] + public string Command { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// True, if the command must send an ephemeral message instead of a regular one - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_ephemeral")] - public bool IsEphemeral { get; set; } - } + /// + /// True, if the command must send an ephemeral message instead of a regular one + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_ephemeral")] + public bool IsEphemeral { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotCommandScopeAllChatAdministrators.cs b/TdLib.Api/Objects/BotCommandScopeAllChatAdministrators.cs index 9f9cacff..baa683c1 100644 --- a/TdLib.Api/Objects/BotCommandScopeAllChatAdministrators.cs +++ b/TdLib.Api/Objects/BotCommandScopeAllChatAdministrators.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotCommandScope : Object { - public partial class BotCommandScope : Object + /// + /// A scope covering all group and supergroup chat administrators + /// + public class BotCommandScopeAllChatAdministrators : BotCommandScope { /// - /// A scope covering all group and supergroup chat administrators + /// Data type for serialization /// - public class BotCommandScopeAllChatAdministrators : BotCommandScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommandScopeAllChatAdministrators"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommandScopeAllChatAdministrators"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BotCommandScopeAllGroupChats.cs b/TdLib.Api/Objects/BotCommandScopeAllGroupChats.cs index 771a6b33..bb0660fb 100644 --- a/TdLib.Api/Objects/BotCommandScopeAllGroupChats.cs +++ b/TdLib.Api/Objects/BotCommandScopeAllGroupChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotCommandScope : Object { - public partial class BotCommandScope : Object + /// + /// A scope covering all group and supergroup chats + /// + public class BotCommandScopeAllGroupChats : BotCommandScope { /// - /// A scope covering all group and supergroup chats + /// Data type for serialization /// - public class BotCommandScopeAllGroupChats : BotCommandScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommandScopeAllGroupChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommandScopeAllGroupChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BotCommandScopeAllPrivateChats.cs b/TdLib.Api/Objects/BotCommandScopeAllPrivateChats.cs index 5c568763..49cd9a30 100644 --- a/TdLib.Api/Objects/BotCommandScopeAllPrivateChats.cs +++ b/TdLib.Api/Objects/BotCommandScopeAllPrivateChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotCommandScope : Object { - public partial class BotCommandScope : Object + /// + /// A scope covering all private chats + /// + public class BotCommandScopeAllPrivateChats : BotCommandScope { /// - /// A scope covering all private chats + /// Data type for serialization /// - public class BotCommandScopeAllPrivateChats : BotCommandScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommandScopeAllPrivateChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommandScopeAllPrivateChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BotCommandScopeChat.cs b/TdLib.Api/Objects/BotCommandScopeChat.cs index 7fb0e6cf..72982438 100644 --- a/TdLib.Api/Objects/BotCommandScopeChat.cs +++ b/TdLib.Api/Objects/BotCommandScopeChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotCommandScope : Object { - public partial class BotCommandScope : Object + /// + /// A scope covering all members of a chat + /// + public class BotCommandScopeChat : BotCommandScope { /// - /// A scope covering all members of a chat + /// Data type for serialization /// - public class BotCommandScopeChat : BotCommandScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommandScopeChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommandScopeChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/BotCommandScopeChatAdministrators.cs b/TdLib.Api/Objects/BotCommandScopeChatAdministrators.cs index eb125e0d..50b5182c 100644 --- a/TdLib.Api/Objects/BotCommandScopeChatAdministrators.cs +++ b/TdLib.Api/Objects/BotCommandScopeChatAdministrators.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotCommandScope : Object { - public partial class BotCommandScope : Object + /// + /// A scope covering all administrators of a chat + /// + public class BotCommandScopeChatAdministrators : BotCommandScope { /// - /// A scope covering all administrators of a chat + /// Data type for serialization /// - public class BotCommandScopeChatAdministrators : BotCommandScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommandScopeChatAdministrators"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommandScopeChatAdministrators"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/BotCommandScopeChatMember.cs b/TdLib.Api/Objects/BotCommandScopeChatMember.cs index 7681100c..13c6bf11 100644 --- a/TdLib.Api/Objects/BotCommandScopeChatMember.cs +++ b/TdLib.Api/Objects/BotCommandScopeChatMember.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotCommandScope : Object { - public partial class BotCommandScope : Object + /// + /// A scope covering a member of a chat + /// + public class BotCommandScopeChatMember : BotCommandScope { /// - /// A scope covering a member of a chat + /// Data type for serialization /// - public class BotCommandScopeChatMember : BotCommandScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommandScopeChatMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommandScopeChatMember"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/BotCommandScopeDefault.cs b/TdLib.Api/Objects/BotCommandScopeDefault.cs index 06064655..51ce1e63 100644 --- a/TdLib.Api/Objects/BotCommandScopeDefault.cs +++ b/TdLib.Api/Objects/BotCommandScopeDefault.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotCommandScope : Object { - public partial class BotCommandScope : Object + /// + /// Represents the scope to which bot commands are relevant + /// + public class BotCommandScopeDefault : BotCommandScope { /// - /// Represents the scope to which bot commands are relevant + /// Data type for serialization /// - public class BotCommandScopeDefault : BotCommandScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommandScopeDefault"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommandScopeDefault"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BotCommands.cs b/TdLib.Api/Objects/BotCommands.cs index e31bfc9f..449113c9 100644 --- a/TdLib.Api/Objects/BotCommands.cs +++ b/TdLib.Api/Objects/BotCommands.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of bot commands /// - public static partial class TdApi + public partial class BotCommands : Object { /// - /// Contains a list of bot commands + /// Data type for serialization /// - public partial class BotCommands : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botCommands"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botCommands"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Bot's user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Bot's user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// List of bot commands - /// - [JsonProperty("commands", ItemConverterType = typeof(Converter))] - public BotCommand[] Commands { get; set; } - } + /// + /// List of bot commands + /// + [JsonProperty("commands", ItemConverterType = typeof(Converter))] + public BotCommand[] Commands { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotInfo.cs b/TdLib.Api/Objects/BotInfo.cs index e2c3d5cf..e7af7b21 100644 --- a/TdLib.Api/Objects/BotInfo.cs +++ b/TdLib.Api/Objects/BotInfo.cs @@ -2,190 +2,189 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a bot /// - public static partial class TdApi + public partial class BotInfo : Object { /// - /// Contains information about a bot - /// - public partial class BotInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The text that is shown on the bot's profile page and is sent together with the link when users share the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("short_description")] - public string ShortDescription { get; set; } - - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - - /// - /// Photo shown in the chat with the bot if the chat is empty; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - - /// - /// Animation shown in the chat with the bot if the chat is empty; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } - - /// - /// Identifier of the bot, which manages the bot; 0 if none or unknown; for owner of the bot only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("manager_bot_user_id")] - public long ManagerBotUserId { get; set; } - - /// - /// Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("menu_button")] - public BotMenuButton MenuButton { get; set; } - - /// - /// List of the bot commands - /// - [JsonProperty("commands", ItemConverterType = typeof(Converter))] - public BotCommand[] Commands { get; set; } - - /// - /// The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://telegram.org/privacy-tpa must be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("privacy_policy_url")] - public string PrivacyPolicyUrl { get; set; } - - /// - /// Default administrator rights for adding the bot to basic group and supergroup chats; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_group_administrator_rights")] - public ChatAdministratorRights DefaultGroupAdministratorRights { get; set; } - - /// - /// Default administrator rights for adding the bot to channels; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_channel_administrator_rights")] - public ChatAdministratorRights DefaultChannelAdministratorRights { get; set; } - - /// - /// Information about the affiliate program of the bot; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate_program")] - public AffiliateProgramInfo AffiliateProgram { get; set; } - - /// - /// Default light background color for bot Web Apps; -1 if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_background_light_color")] - public int WebAppBackgroundLightColor { get; set; } - - /// - /// Default dark background color for bot Web Apps; -1 if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_background_dark_color")] - public int WebAppBackgroundDarkColor { get; set; } - - /// - /// Default light header color for bot Web Apps; -1 if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_header_light_color")] - public int WebAppHeaderLightColor { get; set; } - - /// - /// Default dark header color for bot Web Apps; -1 if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_header_dark_color")] - public int WebAppHeaderDarkColor { get; set; } - - /// - /// Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_parameters")] - public BotVerificationParameters VerificationParameters { get; set; } - - /// - /// True, if the bot's revenue statistics are available to the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_revenue_statistics")] - public bool CanGetRevenueStatistics { get; set; } - - /// - /// True, if the bot can manage emoji status of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_emoji_status")] - public bool CanManageEmojiStatus { get; set; } - - /// - /// True, if the bot has media previews - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_media_previews")] - public bool HasMediaPreviews { get; set; } - - /// - /// The internal link, which can be used to edit bot commands; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_commands_link")] - public InternalLinkType EditCommandsLink { get; set; } - - /// - /// The internal link, which can be used to edit bot description; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_description_link")] - public InternalLinkType EditDescriptionLink { get; set; } - - /// - /// The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_description_media_link")] - public InternalLinkType EditDescriptionMediaLink { get; set; } - - /// - /// The internal link, which can be used to edit bot settings; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_settings_link")] - public InternalLinkType EditSettingsLink { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "botInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The text that is shown on the bot's profile page and is sent together with the link when users share the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("short_description")] + public string ShortDescription { get; set; } + + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } + + /// + /// Photo shown in the chat with the bot if the chat is empty; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } + + /// + /// Animation shown in the chat with the bot if the chat is empty; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } + + /// + /// Identifier of the bot, which manages the bot; 0 if none or unknown; for owner of the bot only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manager_bot_user_id")] + public long ManagerBotUserId { get; set; } + + /// + /// Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("menu_button")] + public BotMenuButton MenuButton { get; set; } + + /// + /// List of the bot commands + /// + [JsonProperty("commands", ItemConverterType = typeof(Converter))] + public BotCommand[] Commands { get; set; } + + /// + /// The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://telegram.org/privacy-tpa must be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("privacy_policy_url")] + public string PrivacyPolicyUrl { get; set; } + + /// + /// Default administrator rights for adding the bot to basic group and supergroup chats; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_group_administrator_rights")] + public ChatAdministratorRights DefaultGroupAdministratorRights { get; set; } + + /// + /// Default administrator rights for adding the bot to channels; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_channel_administrator_rights")] + public ChatAdministratorRights DefaultChannelAdministratorRights { get; set; } + + /// + /// Information about the affiliate program of the bot; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate_program")] + public AffiliateProgramInfo AffiliateProgram { get; set; } + + /// + /// Default light background color for bot Web Apps; -1 if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_background_light_color")] + public int WebAppBackgroundLightColor { get; set; } + + /// + /// Default dark background color for bot Web Apps; -1 if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_background_dark_color")] + public int WebAppBackgroundDarkColor { get; set; } + + /// + /// Default light header color for bot Web Apps; -1 if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_header_light_color")] + public int WebAppHeaderLightColor { get; set; } + + /// + /// Default dark header color for bot Web Apps; -1 if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_header_dark_color")] + public int WebAppHeaderDarkColor { get; set; } + + /// + /// Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_parameters")] + public BotVerificationParameters VerificationParameters { get; set; } + + /// + /// True, if the bot's revenue statistics are available to the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_revenue_statistics")] + public bool CanGetRevenueStatistics { get; set; } + + /// + /// True, if the bot can manage emoji status of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_emoji_status")] + public bool CanManageEmojiStatus { get; set; } + + /// + /// True, if the bot has media previews + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_media_previews")] + public bool HasMediaPreviews { get; set; } + + /// + /// The internal link, which can be used to edit bot commands; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_commands_link")] + public InternalLinkType EditCommandsLink { get; set; } + + /// + /// The internal link, which can be used to edit bot description; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_description_link")] + public InternalLinkType EditDescriptionLink { get; set; } + + /// + /// The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_description_media_link")] + public InternalLinkType EditDescriptionMediaLink { get; set; } + + /// + /// The internal link, which can be used to edit bot settings; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_settings_link")] + public InternalLinkType EditSettingsLink { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotMediaPreview.cs b/TdLib.Api/Objects/BotMediaPreview.cs index da78a6b1..9e6df36c 100644 --- a/TdLib.Api/Objects/BotMediaPreview.cs +++ b/TdLib.Api/Objects/BotMediaPreview.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes media previews of a bot /// - public static partial class TdApi + public partial class BotMediaPreview : Object { /// - /// Describes media previews of a bot + /// Data type for serialization /// - public partial class BotMediaPreview : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botMediaPreview"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botMediaPreview"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the preview was added or changed last time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the preview was added or changed last time + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Content of the preview; may only be of the types storyContentPhoto, storyContentVideo, or storyContentUnsupported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public StoryContent Content { get; set; } - } + /// + /// Content of the preview; may only be of the types storyContentPhoto, storyContentVideo, or storyContentUnsupported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public StoryContent Content { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotMediaPreviewInfo.cs b/TdLib.Api/Objects/BotMediaPreviewInfo.cs index 6c8f895c..9e0c59f8 100644 --- a/TdLib.Api/Objects/BotMediaPreviewInfo.cs +++ b/TdLib.Api/Objects/BotMediaPreviewInfo.cs @@ -2,42 +2,41 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of media previews of a bot for the given language and the list of languages for which the bot has dedicated previews /// - public static partial class TdApi + public partial class BotMediaPreviewInfo : Object { /// - /// Contains a list of media previews of a bot for the given language and the list of languages for which the bot has dedicated previews + /// Data type for serialization /// - public partial class BotMediaPreviewInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botMediaPreviewInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botMediaPreviewInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of media previews - /// - [JsonProperty("previews", ItemConverterType = typeof(Converter))] - public BotMediaPreview[] Previews { get; set; } + /// + /// List of media previews + /// + [JsonProperty("previews", ItemConverterType = typeof(Converter))] + public BotMediaPreview[] Previews { get; set; } - /// - /// List of language codes for which the bot has dedicated previews - /// - [JsonProperty("language_codes", ItemConverterType = typeof(Converter))] - public string[] LanguageCodes { get; set; } - } + /// + /// List of language codes for which the bot has dedicated previews + /// + [JsonProperty("language_codes", ItemConverterType = typeof(Converter))] + public string[] LanguageCodes { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotMediaPreviews.cs b/TdLib.Api/Objects/BotMediaPreviews.cs index abd36f54..4fd147c0 100644 --- a/TdLib.Api/Objects/BotMediaPreviews.cs +++ b/TdLib.Api/Objects/BotMediaPreviews.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of media previews of a bot /// - public static partial class TdApi + public partial class BotMediaPreviews : Object { /// - /// Contains a list of media previews of a bot + /// Data type for serialization /// - public partial class BotMediaPreviews : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botMediaPreviews"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botMediaPreviews"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of media previews - /// - [JsonProperty("previews", ItemConverterType = typeof(Converter))] - public BotMediaPreview[] Previews { get; set; } - } + /// + /// List of media previews + /// + [JsonProperty("previews", ItemConverterType = typeof(Converter))] + public BotMediaPreview[] Previews { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotMenuButton.cs b/TdLib.Api/Objects/BotMenuButton.cs index d73432ef..fcab556f 100644 --- a/TdLib.Api/Objects/BotMenuButton.cs +++ b/TdLib.Api/Objects/BotMenuButton.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a button to be shown instead of bot commands menu button /// - public static partial class TdApi + public partial class BotMenuButton : Object { /// - /// Describes a button to be shown instead of bot commands menu button + /// Data type for serialization /// - public partial class BotMenuButton : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botMenuButton"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botMenuButton"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Text of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// URL of a Web App to open when the button is pressed. If the link is of the type internalLinkTypeWebApp, then it must be processed accordingly. Otherwise, the link must be passed to openWebApp - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// URL of a Web App to open when the button is pressed. If the link is of the type internalLinkTypeWebApp, then it must be processed accordingly. Otherwise, the link must be passed to openWebApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotVerification.cs b/TdLib.Api/Objects/BotVerification.cs index d7d4fb20..0d2995d6 100644 --- a/TdLib.Api/Objects/BotVerification.cs +++ b/TdLib.Api/Objects/BotVerification.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes verification status provided by a bot /// - public static partial class TdApi + public partial class BotVerification : Object { /// - /// Describes verification status provided by a bot + /// Data type for serialization /// - public partial class BotVerification : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botVerification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botVerification"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot that provided the verification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Identifier of the bot that provided the verification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Identifier of the custom emoji that is used as the verification sign - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("icon_custom_emoji_id")] - public long IconCustomEmojiId { get; set; } + /// + /// Identifier of the custom emoji that is used as the verification sign + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("icon_custom_emoji_id")] + public long IconCustomEmojiId { get; set; } - /// - /// Custom description of verification reason set by the bot. Can contain only Mention, Hashtag, Cashtag, PhoneNumber, BankCardNumber, Url, and EmailAddress entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("custom_description")] - public FormattedText CustomDescription { get; set; } - } + /// + /// Custom description of verification reason set by the bot. Can contain only Mention, Hashtag, Cashtag, PhoneNumber, BankCardNumber, TonAddress, Url, and EmailAddress entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("custom_description")] + public FormattedText CustomDescription { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotVerificationParameters.cs b/TdLib.Api/Objects/BotVerificationParameters.cs index ccf82287..6fd18844 100644 --- a/TdLib.Api/Objects/BotVerificationParameters.cs +++ b/TdLib.Api/Objects/BotVerificationParameters.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes parameters of verification that is provided by a bot /// - public static partial class TdApi + public partial class BotVerificationParameters : Object { /// - /// Describes parameters of verification that is provided by a bot + /// Data type for serialization /// - public partial class BotVerificationParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botVerificationParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botVerificationParameters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the custom emoji that is used as the verification sign - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("icon_custom_emoji_id")] - public long IconCustomEmojiId { get; set; } + /// + /// Identifier of the custom emoji that is used as the verification sign + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("icon_custom_emoji_id")] + public long IconCustomEmojiId { get; set; } - /// - /// Name of the organization that provides verification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("organization_name")] - public string OrganizationName { get; set; } + /// + /// Name of the organization that provides verification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("organization_name")] + public string OrganizationName { get; set; } - /// - /// Default custom description of verification reason to be used as placeholder in setMessageSenderBotVerification; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_custom_description")] - public FormattedText DefaultCustomDescription { get; set; } + /// + /// Default custom description of verification reason to be used as placeholder in setMessageSenderBotVerification; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_custom_description")] + public FormattedText DefaultCustomDescription { get; set; } - /// - /// True, if the bot is allowed to provide custom description for verified entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_custom_description")] - public bool CanSetCustomDescription { get; set; } - } + /// + /// True, if the bot is allowed to provide custom description for verified entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_custom_description")] + public bool CanSetCustomDescription { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BotWriteAccessAllowReasonAcceptedRequest.cs b/TdLib.Api/Objects/BotWriteAccessAllowReasonAcceptedRequest.cs index 5e0be2a9..14ed2a14 100644 --- a/TdLib.Api/Objects/BotWriteAccessAllowReasonAcceptedRequest.cs +++ b/TdLib.Api/Objects/BotWriteAccessAllowReasonAcceptedRequest.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotWriteAccessAllowReason : Object { - public partial class BotWriteAccessAllowReason : Object + /// + /// The user accepted bot's request to send messages with allowBotToSendMessages + /// + public class BotWriteAccessAllowReasonAcceptedRequest : BotWriteAccessAllowReason { /// - /// The user accepted bot's request to send messages with allowBotToSendMessages + /// Data type for serialization /// - public class BotWriteAccessAllowReasonAcceptedRequest : BotWriteAccessAllowReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botWriteAccessAllowReasonAcceptedRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botWriteAccessAllowReasonAcceptedRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BotWriteAccessAllowReasonAddedToAttachmentMenu.cs b/TdLib.Api/Objects/BotWriteAccessAllowReasonAddedToAttachmentMenu.cs index eb6511f7..769170a5 100644 --- a/TdLib.Api/Objects/BotWriteAccessAllowReasonAddedToAttachmentMenu.cs +++ b/TdLib.Api/Objects/BotWriteAccessAllowReasonAddedToAttachmentMenu.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotWriteAccessAllowReason : Object { - public partial class BotWriteAccessAllowReason : Object + /// + /// The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu + /// + public class BotWriteAccessAllowReasonAddedToAttachmentMenu : BotWriteAccessAllowReason { /// - /// The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu + /// Data type for serialization /// - public class BotWriteAccessAllowReasonAddedToAttachmentMenu : BotWriteAccessAllowReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botWriteAccessAllowReasonAddedToAttachmentMenu"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botWriteAccessAllowReasonAddedToAttachmentMenu"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BotWriteAccessAllowReasonConnectedWebsite.cs b/TdLib.Api/Objects/BotWriteAccessAllowReasonConnectedWebsite.cs index 47885fda..90b1e64e 100644 --- a/TdLib.Api/Objects/BotWriteAccessAllowReasonConnectedWebsite.cs +++ b/TdLib.Api/Objects/BotWriteAccessAllowReasonConnectedWebsite.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotWriteAccessAllowReason : Object { - public partial class BotWriteAccessAllowReason : Object + /// + /// Describes a reason why a bot was allowed to write messages to the current user + /// + public class BotWriteAccessAllowReasonConnectedWebsite : BotWriteAccessAllowReason { /// - /// Describes a reason why a bot was allowed to write messages to the current user + /// Data type for serialization /// - public class BotWriteAccessAllowReasonConnectedWebsite : BotWriteAccessAllowReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botWriteAccessAllowReasonConnectedWebsite"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botWriteAccessAllowReasonConnectedWebsite"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Domain name of the connected website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("domain_name")] - public string DomainName { get; set; } - } + /// + /// Domain name of the connected website + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("domain_name")] + public string DomainName { get; set; } } } } diff --git a/TdLib.Api/Objects/BotWriteAccessAllowReasonLaunchedWebApp.cs b/TdLib.Api/Objects/BotWriteAccessAllowReasonLaunchedWebApp.cs index 14faef5a..93378d17 100644 --- a/TdLib.Api/Objects/BotWriteAccessAllowReasonLaunchedWebApp.cs +++ b/TdLib.Api/Objects/BotWriteAccessAllowReasonLaunchedWebApp.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BotWriteAccessAllowReason : Object { - public partial class BotWriteAccessAllowReason : Object + /// + /// The user launched a Web App using getWebAppLinkUrl + /// + public class BotWriteAccessAllowReasonLaunchedWebApp : BotWriteAccessAllowReason { /// - /// The user launched a Web App using getWebAppLinkUrl + /// Data type for serialization /// - public class BotWriteAccessAllowReasonLaunchedWebApp : BotWriteAccessAllowReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "botWriteAccessAllowReasonLaunchedWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "botWriteAccessAllowReasonLaunchedWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app")] - public WebApp WebApp { get; set; } - } + /// + /// Information about the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app")] + public WebApp WebApp { get; set; } } } } diff --git a/TdLib.Api/Objects/BuiltInThemeArctic.cs b/TdLib.Api/Objects/BuiltInThemeArctic.cs index 51b3bff9..0b37e04f 100644 --- a/TdLib.Api/Objects/BuiltInThemeArctic.cs +++ b/TdLib.Api/Objects/BuiltInThemeArctic.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BuiltInTheme : Object { - public partial class BuiltInTheme : Object + /// + /// Arctic light theme + /// + public class BuiltInThemeArctic : BuiltInTheme { /// - /// Arctic light theme + /// Data type for serialization /// - public class BuiltInThemeArctic : BuiltInTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "builtInThemeArctic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "builtInThemeArctic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BuiltInThemeClassic.cs b/TdLib.Api/Objects/BuiltInThemeClassic.cs index 0052c711..ae3cb313 100644 --- a/TdLib.Api/Objects/BuiltInThemeClassic.cs +++ b/TdLib.Api/Objects/BuiltInThemeClassic.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BuiltInTheme : Object { - public partial class BuiltInTheme : Object + /// + /// Describes a built-in theme of an official application + /// + public class BuiltInThemeClassic : BuiltInTheme { /// - /// Describes a built-in theme of an official application + /// Data type for serialization /// - public class BuiltInThemeClassic : BuiltInTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "builtInThemeClassic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "builtInThemeClassic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BuiltInThemeDay.cs b/TdLib.Api/Objects/BuiltInThemeDay.cs index ff5396ac..1538f9e2 100644 --- a/TdLib.Api/Objects/BuiltInThemeDay.cs +++ b/TdLib.Api/Objects/BuiltInThemeDay.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BuiltInTheme : Object { - public partial class BuiltInTheme : Object + /// + /// Regular light theme + /// + public class BuiltInThemeDay : BuiltInTheme { /// - /// Regular light theme + /// Data type for serialization /// - public class BuiltInThemeDay : BuiltInTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "builtInThemeDay"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "builtInThemeDay"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BuiltInThemeNight.cs b/TdLib.Api/Objects/BuiltInThemeNight.cs index 6789b73d..b798912a 100644 --- a/TdLib.Api/Objects/BuiltInThemeNight.cs +++ b/TdLib.Api/Objects/BuiltInThemeNight.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BuiltInTheme : Object { - public partial class BuiltInTheme : Object + /// + /// Regular dark theme + /// + public class BuiltInThemeNight : BuiltInTheme { /// - /// Regular dark theme + /// Data type for serialization /// - public class BuiltInThemeNight : BuiltInTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "builtInThemeNight"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "builtInThemeNight"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BuiltInThemeTinted.cs b/TdLib.Api/Objects/BuiltInThemeTinted.cs index dfcfc8ca..bbf81f69 100644 --- a/TdLib.Api/Objects/BuiltInThemeTinted.cs +++ b/TdLib.Api/Objects/BuiltInThemeTinted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BuiltInTheme : Object { - public partial class BuiltInTheme : Object + /// + /// Tinted dark theme + /// + public class BuiltInThemeTinted : BuiltInTheme { /// - /// Tinted dark theme + /// Data type for serialization /// - public class BuiltInThemeTinted : BuiltInTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "builtInThemeTinted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "builtInThemeTinted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessAwayMessageScheduleAlways.cs b/TdLib.Api/Objects/BusinessAwayMessageScheduleAlways.cs index e2f530f6..e8b94de3 100644 --- a/TdLib.Api/Objects/BusinessAwayMessageScheduleAlways.cs +++ b/TdLib.Api/Objects/BusinessAwayMessageScheduleAlways.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessAwayMessageSchedule : Object { - public partial class BusinessAwayMessageSchedule : Object + /// + /// Describes conditions for sending of away messages by a Telegram Business account + /// + public class BusinessAwayMessageScheduleAlways : BusinessAwayMessageSchedule { /// - /// Describes conditions for sending of away messages by a Telegram Business account + /// Data type for serialization /// - public class BusinessAwayMessageScheduleAlways : BusinessAwayMessageSchedule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessAwayMessageScheduleAlways"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessAwayMessageScheduleAlways"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessAwayMessageScheduleCustom.cs b/TdLib.Api/Objects/BusinessAwayMessageScheduleCustom.cs index c9165fd2..5f95d03e 100644 --- a/TdLib.Api/Objects/BusinessAwayMessageScheduleCustom.cs +++ b/TdLib.Api/Objects/BusinessAwayMessageScheduleCustom.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessAwayMessageSchedule : Object { - public partial class BusinessAwayMessageSchedule : Object + /// + /// Send away messages only in the specified time span + /// + public class BusinessAwayMessageScheduleCustom : BusinessAwayMessageSchedule { /// - /// Send away messages only in the specified time span + /// Data type for serialization /// - public class BusinessAwayMessageScheduleCustom : BusinessAwayMessageSchedule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessAwayMessageScheduleCustom"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessAwayMessageScheduleCustom"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the away messages will start to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } + /// + /// Point in time (Unix timestamp) when the away messages will start to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } - /// - /// Point in time (Unix timestamp) when the away messages will stop to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_date")] - public int EndDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the away messages will stop to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_date")] + public int EndDate { get; set; } } } } diff --git a/TdLib.Api/Objects/BusinessAwayMessageScheduleOutsideOfOpeningHours.cs b/TdLib.Api/Objects/BusinessAwayMessageScheduleOutsideOfOpeningHours.cs index c8095876..8e832d6b 100644 --- a/TdLib.Api/Objects/BusinessAwayMessageScheduleOutsideOfOpeningHours.cs +++ b/TdLib.Api/Objects/BusinessAwayMessageScheduleOutsideOfOpeningHours.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessAwayMessageSchedule : Object { - public partial class BusinessAwayMessageSchedule : Object + /// + /// Send away messages outside of the business opening hours + /// + public class BusinessAwayMessageScheduleOutsideOfOpeningHours : BusinessAwayMessageSchedule { /// - /// Send away messages outside of the business opening hours + /// Data type for serialization /// - public class BusinessAwayMessageScheduleOutsideOfOpeningHours : BusinessAwayMessageSchedule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessAwayMessageScheduleOutsideOfOpeningHours"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessAwayMessageScheduleOutsideOfOpeningHours"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessAwayMessageSettings.cs b/TdLib.Api/Objects/BusinessAwayMessageSettings.cs index 27a3e8b0..27170162 100644 --- a/TdLib.Api/Objects/BusinessAwayMessageSettings.cs +++ b/TdLib.Api/Objects/BusinessAwayMessageSettings.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes settings for messages that are automatically sent by a Telegram Business account when it is away /// - public static partial class TdApi + public partial class BusinessAwayMessageSettings : Object { /// - /// Describes settings for messages that are automatically sent by a Telegram Business account when it is away + /// Data type for serialization /// - public partial class BusinessAwayMessageSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessAwayMessageSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessAwayMessageSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique quick reply shortcut identifier for the away messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } + /// + /// Unique quick reply shortcut identifier for the away messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } - /// - /// Chosen recipients of the away messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recipients")] - public BusinessRecipients Recipients { get; set; } + /// + /// Chosen recipients of the away messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recipients")] + public BusinessRecipients Recipients { get; set; } - /// - /// Settings used to check whether the current user is away - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("schedule")] - public BusinessAwayMessageSchedule Schedule { get; set; } + /// + /// Settings used to check whether the current user is away + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("schedule")] + public BusinessAwayMessageSchedule Schedule { get; set; } - /// - /// True, if the messages must not be sent if the account was online in the last 10 minutes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offline_only")] - public bool OfflineOnly { get; set; } - } + /// + /// True, if the messages must not be sent if the account was online in the last 10 minutes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offline_only")] + public bool OfflineOnly { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessBotManageBar.cs b/TdLib.Api/Objects/BusinessBotManageBar.cs index b9457046..8d0473e2 100644 --- a/TdLib.Api/Objects/BusinessBotManageBar.cs +++ b/TdLib.Api/Objects/BusinessBotManageBar.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a business bot that manages the chat /// - public static partial class TdApi + public partial class BusinessBotManageBar : Object { /// - /// Contains information about a business bot that manages the chat + /// Data type for serialization /// - public partial class BusinessBotManageBar : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessBotManageBar"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessBotManageBar"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// URL to be opened to manage the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("manage_url")] - public string ManageUrl { get; set; } + /// + /// URL to be opened to manage the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manage_url")] + public string ManageUrl { get; set; } - /// - /// True, if the bot is paused. Use toggleBusinessConnectedBotChatIsPaused to change the value of the field - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_bot_paused")] - public bool IsBotPaused { get; set; } + /// + /// True, if the bot is paused. Use toggleBusinessConnectedBotChatIsPaused to change the value of the field + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_bot_paused")] + public bool IsBotPaused { get; set; } - /// - /// True, if the bot can reply - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_bot_reply")] - public bool CanBotReply { get; set; } - } + /// + /// True, if the bot can reply + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_bot_reply")] + public bool CanBotReply { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessBotRights.cs b/TdLib.Api/Objects/BusinessBotRights.cs index b5b7224f..7b9f7493 100644 --- a/TdLib.Api/Objects/BusinessBotRights.cs +++ b/TdLib.Api/Objects/BusinessBotRights.cs @@ -2,128 +2,127 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes rights of a business bot /// - public static partial class TdApi + public partial class BusinessBotRights : Object { /// - /// Describes rights of a business bot - /// - public partial class BusinessBotRights : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessBotRights"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_reply")] - public bool CanReply { get; set; } - - /// - /// True, if the bot can mark incoming private messages as read - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_read_messages")] - public bool CanReadMessages { get; set; } - - /// - /// True, if the bot can delete sent messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_delete_sent_messages")] - public bool CanDeleteSentMessages { get; set; } - - /// - /// True, if the bot can delete any message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_delete_all_messages")] - public bool CanDeleteAllMessages { get; set; } - - /// - /// True, if the bot can edit name of the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_name")] - public bool CanEditName { get; set; } - - /// - /// True, if the bot can edit bio of the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_bio")] - public bool CanEditBio { get; set; } - - /// - /// True, if the bot can edit profile photo of the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_profile_photo")] - public bool CanEditProfilePhoto { get; set; } - - /// - /// True, if the bot can edit username of the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_username")] - public bool CanEditUsername { get; set; } - - /// - /// True, if the bot can view gifts and Telegram Star amount owned by the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_view_gifts_and_stars")] - public bool CanViewGiftsAndStars { get; set; } - - /// - /// True, if the bot can sell regular gifts received by the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_sell_gifts")] - public bool CanSellGifts { get; set; } - - /// - /// True, if the bot can change gift receiving settings of the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_change_gift_settings")] - public bool CanChangeGiftSettings { get; set; } - - /// - /// True, if the bot can transfer and upgrade gifts received by the business account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_transfer_and_upgrade_gifts")] - public bool CanTransferAndUpgradeGifts { get; set; } - - /// - /// True, if the bot can transfer Telegram Stars received by the business account to account of the bot, or use them to upgrade and transfer gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_transfer_stars")] - public bool CanTransferStars { get; set; } - - /// - /// True, if the bot can post, edit and delete stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_stories")] - public bool CanManageStories { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessBotRights"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_reply")] + public bool CanReply { get; set; } + + /// + /// True, if the bot can mark incoming private messages as read + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_read_messages")] + public bool CanReadMessages { get; set; } + + /// + /// True, if the bot can delete sent messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_delete_sent_messages")] + public bool CanDeleteSentMessages { get; set; } + + /// + /// True, if the bot can delete any message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_delete_all_messages")] + public bool CanDeleteAllMessages { get; set; } + + /// + /// True, if the bot can edit name of the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_name")] + public bool CanEditName { get; set; } + + /// + /// True, if the bot can edit bio of the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_bio")] + public bool CanEditBio { get; set; } + + /// + /// True, if the bot can edit profile photo of the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_profile_photo")] + public bool CanEditProfilePhoto { get; set; } + + /// + /// True, if the bot can edit username of the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_username")] + public bool CanEditUsername { get; set; } + + /// + /// True, if the bot can view gifts and Telegram Star amount owned by the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_view_gifts_and_stars")] + public bool CanViewGiftsAndStars { get; set; } + + /// + /// True, if the bot can sell regular gifts received by the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_sell_gifts")] + public bool CanSellGifts { get; set; } + + /// + /// True, if the bot can change gift receiving settings of the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_change_gift_settings")] + public bool CanChangeGiftSettings { get; set; } + + /// + /// True, if the bot can transfer and upgrade gifts received by the business account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_transfer_and_upgrade_gifts")] + public bool CanTransferAndUpgradeGifts { get; set; } + + /// + /// True, if the bot can transfer Telegram Stars received by the business account to account of the bot, or use them to upgrade and transfer gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_transfer_stars")] + public bool CanTransferStars { get; set; } + + /// + /// True, if the bot can post, edit and delete stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_stories")] + public bool CanManageStories { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessChatLink.cs b/TdLib.Api/Objects/BusinessChatLink.cs index 13b7056a..83c95903 100644 --- a/TdLib.Api/Objects/BusinessChatLink.cs +++ b/TdLib.Api/Objects/BusinessChatLink.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a business chat link /// - public static partial class TdApi + public partial class BusinessChatLink : Object { /// - /// Contains information about a business chat link + /// Data type for serialization /// - public partial class BusinessChatLink : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessChatLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessChatLink"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The HTTPS link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } + /// + /// The HTTPS link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } - /// - /// Message draft text that will be added to the input field - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Message draft text that will be added to the input field + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Link title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Link title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Number of times the link was used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_count")] - public int ViewCount { get; set; } - } + /// + /// Number of times the link was used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_count")] + public int ViewCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessChatLinkInfo.cs b/TdLib.Api/Objects/BusinessChatLinkInfo.cs index d5606807..add8881d 100644 --- a/TdLib.Api/Objects/BusinessChatLinkInfo.cs +++ b/TdLib.Api/Objects/BusinessChatLinkInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a business chat link /// - public static partial class TdApi + public partial class BusinessChatLinkInfo : Object { /// - /// Contains information about a business chat link + /// Data type for serialization /// - public partial class BusinessChatLinkInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessChatLinkInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessChatLinkInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the private chat that created the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the private chat that created the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message draft text that must be added to the input field - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Message draft text that must be added to the input field + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessChatLinks.cs b/TdLib.Api/Objects/BusinessChatLinks.cs index 392ceebf..1787492c 100644 --- a/TdLib.Api/Objects/BusinessChatLinks.cs +++ b/TdLib.Api/Objects/BusinessChatLinks.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of business chat links created by the user /// - public static partial class TdApi + public partial class BusinessChatLinks : Object { /// - /// Contains a list of business chat links created by the user + /// Data type for serialization /// - public partial class BusinessChatLinks : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessChatLinks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessChatLinks"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of links - /// - [JsonProperty("links", ItemConverterType = typeof(Converter))] - public BusinessChatLink[] Links { get; set; } - } + /// + /// List of links + /// + [JsonProperty("links", ItemConverterType = typeof(Converter))] + public BusinessChatLink[] Links { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessConnectedBot.cs b/TdLib.Api/Objects/BusinessConnectedBot.cs index 8766be80..37fb9081 100644 --- a/TdLib.Api/Objects/BusinessConnectedBot.cs +++ b/TdLib.Api/Objects/BusinessConnectedBot.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a business bot connected to an account /// - public static partial class TdApi + public partial class BusinessConnectedBot : Object { /// - /// Describes a business bot connected to an account + /// Data type for serialization /// - public partial class BusinessConnectedBot : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessConnectedBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessConnectedBot"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Private chats that will be accessible to the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recipients")] - public BusinessRecipients Recipients { get; set; } + /// + /// Private chats that will be accessible to the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recipients")] + public BusinessRecipients Recipients { get; set; } - /// - /// Rights of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rights")] - public BusinessBotRights Rights { get; set; } - } + /// + /// Rights of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rights")] + public BusinessBotRights Rights { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessConnectedBotInfo.cs b/TdLib.Api/Objects/BusinessConnectedBotInfo.cs index 30ac9565..7af37db9 100644 --- a/TdLib.Api/Objects/BusinessConnectedBotInfo.cs +++ b/TdLib.Api/Objects/BusinessConnectedBotInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a connection of a bot to an account /// - public static partial class TdApi + public partial class BusinessConnectedBotInfo : Object { /// - /// Describes a connection of a bot to an account + /// Data type for serialization /// - public partial class BusinessConnectedBotInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessConnectedBotInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessConnectedBotInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot")] - public BusinessConnectedBot Bot { get; set; } + /// + /// Information about the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot")] + public BusinessConnectedBot Bot { get; set; } - /// - /// Point in time (Unix timestamp) when the bot was added; may be 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection_date")] - public int ConnectionDate { get; set; } + /// + /// Point in time (Unix timestamp) when the bot was added; may be 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connection_date")] + public int ConnectionDate { get; set; } - /// - /// Model of the device that was used for the bot connection, as provided by the application; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_model")] - public string DeviceModel { get; set; } + /// + /// Model of the device that was used for the bot connection, as provided by the application; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_model")] + public string DeviceModel { get; set; } - /// - /// A human-readable description of the location from which the bot was connected, based on the IP address; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public string Location { get; set; } - } + /// + /// A human-readable description of the location from which the bot was connected, based on the IP address; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public string Location { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessConnection.cs b/TdLib.Api/Objects/BusinessConnection.cs index f1ad6b4d..3943c4f7 100644 --- a/TdLib.Api/Objects/BusinessConnection.cs +++ b/TdLib.Api/Objects/BusinessConnection.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a connection of the bot with a business account /// - public static partial class TdApi + public partial class BusinessConnection : Object { /// - /// Describes a connection of the bot with a business account + /// Data type for serialization /// - public partial class BusinessConnection : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessConnection"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessConnection"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Identifier of the business user who created the connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the business user who created the connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Chat identifier of the private chat with the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_chat_id")] - public long UserChatId { get; set; } + /// + /// Chat identifier of the private chat with the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_chat_id")] + public long UserChatId { get; set; } - /// - /// Point in time (Unix timestamp) when the connection was established - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the connection was established + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Rights of the bot; may be null if the connection was disabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rights")] - public BusinessBotRights Rights { get; set; } + /// + /// Rights of the bot; may be null if the connection was disabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rights")] + public BusinessBotRights Rights { get; set; } - /// - /// True, if the connection is enabled; false otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_enabled")] - public bool IsEnabled { get; set; } - } + /// + /// True, if the connection is enabled; false otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_enabled")] + public bool IsEnabled { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessFeatureAccountLinks.cs b/TdLib.Api/Objects/BusinessFeatureAccountLinks.cs index 06e2dd7b..26013022 100644 --- a/TdLib.Api/Objects/BusinessFeatureAccountLinks.cs +++ b/TdLib.Api/Objects/BusinessFeatureAccountLinks.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to create links to the business account with predefined message text + /// + public class BusinessFeatureAccountLinks : BusinessFeature { /// - /// The ability to create links to the business account with predefined message text + /// Data type for serialization /// - public class BusinessFeatureAccountLinks : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureAccountLinks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureAccountLinks"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureAwayMessage.cs b/TdLib.Api/Objects/BusinessFeatureAwayMessage.cs index 13ccfa9c..e47c8097 100644 --- a/TdLib.Api/Objects/BusinessFeatureAwayMessage.cs +++ b/TdLib.Api/Objects/BusinessFeatureAwayMessage.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to set up an away message + /// + public class BusinessFeatureAwayMessage : BusinessFeature { /// - /// The ability to set up an away message + /// Data type for serialization /// - public class BusinessFeatureAwayMessage : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureAwayMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureAwayMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureBots.cs b/TdLib.Api/Objects/BusinessFeatureBots.cs index 3f9bc63c..13ba9ab3 100644 --- a/TdLib.Api/Objects/BusinessFeatureBots.cs +++ b/TdLib.Api/Objects/BusinessFeatureBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to connect a bot to the account + /// + public class BusinessFeatureBots : BusinessFeature { /// - /// The ability to connect a bot to the account + /// Data type for serialization /// - public class BusinessFeatureBots : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureChatFolderTags.cs b/TdLib.Api/Objects/BusinessFeatureChatFolderTags.cs index 63d0fc2a..6c717b31 100644 --- a/TdLib.Api/Objects/BusinessFeatureChatFolderTags.cs +++ b/TdLib.Api/Objects/BusinessFeatureChatFolderTags.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to display folder names for each chat in the chat list + /// + public class BusinessFeatureChatFolderTags : BusinessFeature { /// - /// The ability to display folder names for each chat in the chat list + /// Data type for serialization /// - public class BusinessFeatureChatFolderTags : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureChatFolderTags"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureChatFolderTags"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureEmojiStatus.cs b/TdLib.Api/Objects/BusinessFeatureEmojiStatus.cs index 6f2469cb..2bb11a8a 100644 --- a/TdLib.Api/Objects/BusinessFeatureEmojiStatus.cs +++ b/TdLib.Api/Objects/BusinessFeatureEmojiStatus.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to show an emoji status along with the business name + /// + public class BusinessFeatureEmojiStatus : BusinessFeature { /// - /// The ability to show an emoji status along with the business name + /// Data type for serialization /// - public class BusinessFeatureEmojiStatus : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureEmojiStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureEmojiStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureGreetingMessage.cs b/TdLib.Api/Objects/BusinessFeatureGreetingMessage.cs index eee2de5a..be8d1b9a 100644 --- a/TdLib.Api/Objects/BusinessFeatureGreetingMessage.cs +++ b/TdLib.Api/Objects/BusinessFeatureGreetingMessage.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to set up a greeting message + /// + public class BusinessFeatureGreetingMessage : BusinessFeature { /// - /// The ability to set up a greeting message + /// Data type for serialization /// - public class BusinessFeatureGreetingMessage : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureGreetingMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureGreetingMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureLocation.cs b/TdLib.Api/Objects/BusinessFeatureLocation.cs index 48a90793..9fffc168 100644 --- a/TdLib.Api/Objects/BusinessFeatureLocation.cs +++ b/TdLib.Api/Objects/BusinessFeatureLocation.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// Describes a feature available to Business user accounts + /// + public class BusinessFeatureLocation : BusinessFeature { /// - /// Describes a feature available to Business user accounts + /// Data type for serialization /// - public class BusinessFeatureLocation : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureOpeningHours.cs b/TdLib.Api/Objects/BusinessFeatureOpeningHours.cs index 6365534c..cade0a8e 100644 --- a/TdLib.Api/Objects/BusinessFeatureOpeningHours.cs +++ b/TdLib.Api/Objects/BusinessFeatureOpeningHours.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to set opening hours + /// + public class BusinessFeatureOpeningHours : BusinessFeature { /// - /// The ability to set opening hours + /// Data type for serialization /// - public class BusinessFeatureOpeningHours : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureOpeningHours"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureOpeningHours"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeaturePromotionAnimation.cs b/TdLib.Api/Objects/BusinessFeaturePromotionAnimation.cs index 59369753..91d796cc 100644 --- a/TdLib.Api/Objects/BusinessFeaturePromotionAnimation.cs +++ b/TdLib.Api/Objects/BusinessFeaturePromotionAnimation.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a promotion animation for a Business feature /// - public static partial class TdApi + public partial class BusinessFeaturePromotionAnimation : Object { /// - /// Describes a promotion animation for a Business feature + /// Data type for serialization /// - public partial class BusinessFeaturePromotionAnimation : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeaturePromotionAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeaturePromotionAnimation"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Business feature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("feature")] - public BusinessFeature Feature { get; set; } + /// + /// Business feature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("feature")] + public BusinessFeature Feature { get; set; } - /// - /// Promotion animation for the feature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } - } + /// + /// Promotion animation for the feature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessFeatureQuickReplies.cs b/TdLib.Api/Objects/BusinessFeatureQuickReplies.cs index 37f0ecdb..48e110f7 100644 --- a/TdLib.Api/Objects/BusinessFeatureQuickReplies.cs +++ b/TdLib.Api/Objects/BusinessFeatureQuickReplies.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to use quick replies + /// + public class BusinessFeatureQuickReplies : BusinessFeature { /// - /// The ability to use quick replies + /// Data type for serialization /// - public class BusinessFeatureQuickReplies : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureQuickReplies"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureQuickReplies"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureStartPage.cs b/TdLib.Api/Objects/BusinessFeatureStartPage.cs index b5f08a0e..09420999 100644 --- a/TdLib.Api/Objects/BusinessFeatureStartPage.cs +++ b/TdLib.Api/Objects/BusinessFeatureStartPage.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// The ability to customize start page + /// + public class BusinessFeatureStartPage : BusinessFeature { /// - /// The ability to customize start page + /// Data type for serialization /// - public class BusinessFeatureStartPage : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureStartPage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureStartPage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatureUpgradedStories.cs b/TdLib.Api/Objects/BusinessFeatureUpgradedStories.cs index da341c60..0250901d 100644 --- a/TdLib.Api/Objects/BusinessFeatureUpgradedStories.cs +++ b/TdLib.Api/Objects/BusinessFeatureUpgradedStories.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class BusinessFeature : Object { - public partial class BusinessFeature : Object + /// + /// Allowed to use many additional features for stories + /// + public class BusinessFeatureUpgradedStories : BusinessFeature { /// - /// Allowed to use many additional features for stories + /// Data type for serialization /// - public class BusinessFeatureUpgradedStories : BusinessFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatureUpgradedStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatureUpgradedStories"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/BusinessFeatures.cs b/TdLib.Api/Objects/BusinessFeatures.cs index 74616deb..3610ecb5 100644 --- a/TdLib.Api/Objects/BusinessFeatures.cs +++ b/TdLib.Api/Objects/BusinessFeatures.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about features, available to Business user accounts /// - public static partial class TdApi + public partial class BusinessFeatures : Object { /// - /// Contains information about features, available to Business user accounts + /// Data type for serialization /// - public partial class BusinessFeatures : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessFeatures"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessFeatures"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of available business features - /// - [JsonProperty("features", ItemConverterType = typeof(Converter))] - public BusinessFeature[] Features { get; set; } - } + /// + /// The list of available business features + /// + [JsonProperty("features", ItemConverterType = typeof(Converter))] + public BusinessFeature[] Features { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessGreetingMessageSettings.cs b/TdLib.Api/Objects/BusinessGreetingMessageSettings.cs index 53cfa672..ef03a944 100644 --- a/TdLib.Api/Objects/BusinessGreetingMessageSettings.cs +++ b/TdLib.Api/Objects/BusinessGreetingMessageSettings.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes settings for greeting messages that are automatically sent by a Telegram Business account as response to incoming messages in an inactive private chat /// - public static partial class TdApi + public partial class BusinessGreetingMessageSettings : Object { /// - /// Describes settings for greeting messages that are automatically sent by a Telegram Business account as response to incoming messages in an inactive private chat + /// Data type for serialization /// - public partial class BusinessGreetingMessageSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessGreetingMessageSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessGreetingMessageSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique quick reply shortcut identifier for the greeting messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } + /// + /// Unique quick reply shortcut identifier for the greeting messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } - /// - /// Chosen recipients of the greeting messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recipients")] - public BusinessRecipients Recipients { get; set; } + /// + /// Chosen recipients of the greeting messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recipients")] + public BusinessRecipients Recipients { get; set; } - /// - /// The number of days after which a chat will be considered as inactive; currently, must be one of 7, 14, 21, or 28 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inactivity_days")] - public int InactivityDays { get; set; } - } + /// + /// The number of days after which a chat will be considered as inactive; currently, must be one of 7, 14, 21, or 28 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inactivity_days")] + public int InactivityDays { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessInfo.cs b/TdLib.Api/Objects/BusinessInfo.cs index 0175e767..70ebac88 100644 --- a/TdLib.Api/Objects/BusinessInfo.cs +++ b/TdLib.Api/Objects/BusinessInfo.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Telegram Business account /// - public static partial class TdApi + public partial class BusinessInfo : Object { /// - /// Contains information about a Telegram Business account + /// Data type for serialization /// - public partial class BusinessInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Location of the business; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public BusinessLocation Location { get; set; } + /// + /// Location of the business; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public BusinessLocation Location { get; set; } - /// - /// Opening hours of the business; may be null if none. The hours are guaranteed to be valid and have already been split by week days - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("opening_hours")] - public BusinessOpeningHours OpeningHours { get; set; } + /// + /// Opening hours of the business; may be null if none. The hours are guaranteed to be valid and have already been split by week days + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("opening_hours")] + public BusinessOpeningHours OpeningHours { get; set; } - /// - /// Opening hours of the business in the local time; may be null if none. The hours are guaranteed to be valid and have already been split by week days. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("local_opening_hours")] - public BusinessOpeningHours LocalOpeningHours { get; set; } + /// + /// Opening hours of the business in the local time; may be null if none. The hours are guaranteed to be valid and have already been split by week days. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("local_opening_hours")] + public BusinessOpeningHours LocalOpeningHours { get; set; } - /// - /// Time left before the business will open the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_open_in")] - public int NextOpenIn { get; set; } + /// + /// Time left before the business will open the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_open_in")] + public int NextOpenIn { get; set; } - /// - /// Time left before the business will close the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_close_in")] - public int NextCloseIn { get; set; } + /// + /// Time left before the business will close the next time, in seconds; 0 if unknown. An updateUserFullInfo update is not triggered when value of this field changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_close_in")] + public int NextCloseIn { get; set; } - /// - /// The greeting message; may be null if none or the Business account is not of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("greeting_message_settings")] - public BusinessGreetingMessageSettings GreetingMessageSettings { get; set; } + /// + /// The greeting message; may be null if none or the Business account is not of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("greeting_message_settings")] + public BusinessGreetingMessageSettings GreetingMessageSettings { get; set; } - /// - /// The away message; may be null if none or the Business account is not of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("away_message_settings")] - public BusinessAwayMessageSettings AwayMessageSettings { get; set; } + /// + /// The away message; may be null if none or the Business account is not of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("away_message_settings")] + public BusinessAwayMessageSettings AwayMessageSettings { get; set; } - /// - /// Information about start page of the account; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_page")] - public BusinessStartPage StartPage { get; set; } - } + /// + /// Information about start page of the account; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_page")] + public BusinessStartPage StartPage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessLocation.cs b/TdLib.Api/Objects/BusinessLocation.cs index a715d004..0b9bb2cf 100644 --- a/TdLib.Api/Objects/BusinessLocation.cs +++ b/TdLib.Api/Objects/BusinessLocation.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a location of a business /// - public static partial class TdApi + public partial class BusinessLocation : Object { /// - /// Represents a location of a business + /// Data type for serialization /// - public partial class BusinessLocation : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessLocation"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The location; may be null if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// The location; may be null if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Location address; 1-96 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public string Address { get; set; } - } + /// + /// Location address; 1-96 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessMessage.cs b/TdLib.Api/Objects/BusinessMessage.cs index f4ab0f7b..d9f81f23 100644 --- a/TdLib.Api/Objects/BusinessMessage.cs +++ b/TdLib.Api/Objects/BusinessMessage.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a message from a business account as received by a bot /// - public static partial class TdApi + public partial class BusinessMessage : Object { /// - /// Describes a message from a business account as received by a bot + /// Data type for serialization /// - public partial class BusinessMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// The message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// Message that is replied by the message in the same chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to_message")] - public Message ReplyToMessage { get; set; } - } + /// + /// Message that is replied by the message in the same chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to_message")] + public Message ReplyToMessage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessMessages.cs b/TdLib.Api/Objects/BusinessMessages.cs index 47066616..ab9fc28b 100644 --- a/TdLib.Api/Objects/BusinessMessages.cs +++ b/TdLib.Api/Objects/BusinessMessages.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of messages from a business account as received by a bot /// - public static partial class TdApi + public partial class BusinessMessages : Object { /// - /// Contains a list of messages from a business account as received by a bot + /// Data type for serialization /// - public partial class BusinessMessages : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessMessages"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of business messages - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public BusinessMessage[] Messages { get; set; } - } + /// + /// List of business messages + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public BusinessMessage[] Messages { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessOpeningHours.cs b/TdLib.Api/Objects/BusinessOpeningHours.cs index ad05aec4..d10b9ebe 100644 --- a/TdLib.Api/Objects/BusinessOpeningHours.cs +++ b/TdLib.Api/Objects/BusinessOpeningHours.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes opening hours of a business /// - public static partial class TdApi + public partial class BusinessOpeningHours : Object { /// - /// Describes opening hours of a business + /// Data type for serialization /// - public partial class BusinessOpeningHours : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessOpeningHours"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessOpeningHours"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique time zone identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("time_zone_id")] - public string TimeZoneId { get; set; } + /// + /// Unique time zone identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("time_zone_id")] + public string TimeZoneId { get; set; } - /// - /// Intervals of the time when the business is open - /// - [JsonProperty("opening_hours", ItemConverterType = typeof(Converter))] - public BusinessOpeningHoursInterval[] OpeningHours { get; set; } - } + /// + /// Intervals of the time when the business is open + /// + [JsonProperty("opening_hours", ItemConverterType = typeof(Converter))] + public BusinessOpeningHoursInterval[] OpeningHours { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessOpeningHoursInterval.cs b/TdLib.Api/Objects/BusinessOpeningHoursInterval.cs index 6f120674..3293625d 100644 --- a/TdLib.Api/Objects/BusinessOpeningHoursInterval.cs +++ b/TdLib.Api/Objects/BusinessOpeningHoursInterval.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an interval of time when the business is open /// - public static partial class TdApi + public partial class BusinessOpeningHoursInterval : Object { /// - /// Describes an interval of time when the business is open + /// Data type for serialization /// - public partial class BusinessOpeningHoursInterval : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessOpeningHoursInterval"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessOpeningHoursInterval"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0-7*24*60 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_minute")] - public int StartMinute { get; set; } + /// + /// The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0-7*24*60 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_minute")] + public int StartMinute { get; set; } - /// - /// The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 1-8*24*60 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_minute")] - public int EndMinute { get; set; } - } + /// + /// The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 1-8*24*60 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_minute")] + public int EndMinute { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessRecipients.cs b/TdLib.Api/Objects/BusinessRecipients.cs index 08a9ff70..97cb684d 100644 --- a/TdLib.Api/Objects/BusinessRecipients.cs +++ b/TdLib.Api/Objects/BusinessRecipients.cs @@ -2,77 +2,76 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes private chats chosen for automatic interaction with a business /// - public static partial class TdApi + public partial class BusinessRecipients : Object { /// - /// Describes private chats chosen for automatic interaction with a business + /// Data type for serialization /// - public partial class BusinessRecipients : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessRecipients"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessRecipients"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of selected private chats - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } + /// + /// Identifiers of selected private chats + /// + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } - /// - /// Identifiers of private chats that are always excluded; for businessConnectedBot only - /// - [JsonProperty("excluded_chat_ids", ItemConverterType = typeof(Converter))] - public long[] ExcludedChatIds { get; set; } + /// + /// Identifiers of private chats that are always excluded; for businessConnectedBot only + /// + [JsonProperty("excluded_chat_ids", ItemConverterType = typeof(Converter))] + public long[] ExcludedChatIds { get; set; } - /// - /// True, if all existing private chats are selected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("select_existing_chats")] - public bool SelectExistingChats { get; set; } + /// + /// True, if all existing private chats are selected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("select_existing_chats")] + public bool SelectExistingChats { get; set; } - /// - /// True, if all new private chats are selected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("select_new_chats")] - public bool SelectNewChats { get; set; } + /// + /// True, if all new private chats are selected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("select_new_chats")] + public bool SelectNewChats { get; set; } - /// - /// True, if all private chats with contacts are selected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("select_contacts")] - public bool SelectContacts { get; set; } + /// + /// True, if all private chats with contacts are selected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("select_contacts")] + public bool SelectContacts { get; set; } - /// - /// True, if all private chats with non-contacts are selected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("select_non_contacts")] - public bool SelectNonContacts { get; set; } + /// + /// True, if all private chats with non-contacts are selected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("select_non_contacts")] + public bool SelectNonContacts { get; set; } - /// - /// If true, then all private chats except the selected are chosen. Otherwise, only the selected chats are chosen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_selected")] - public bool ExcludeSelected { get; set; } - } + /// + /// If true, then all private chats except the selected are chosen. Otherwise, only the selected chats are chosen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_selected")] + public bool ExcludeSelected { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/BusinessStartPage.cs b/TdLib.Api/Objects/BusinessStartPage.cs index 6fcdb742..20e554cd 100644 --- a/TdLib.Api/Objects/BusinessStartPage.cs +++ b/TdLib.Api/Objects/BusinessStartPage.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes settings for a business account start page /// - public static partial class TdApi + public partial class BusinessStartPage : Object { /// - /// Describes settings for a business account start page + /// Data type for serialization /// - public partial class BusinessStartPage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "businessStartPage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "businessStartPage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title text of the start page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title text of the start page + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Message text of the start page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public string Message { get; set; } + /// + /// Message text of the start page + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public string Message { get; set; } - /// - /// Greeting sticker of the start page; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// Greeting sticker of the start page; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ButtonStyleDanger.cs b/TdLib.Api/Objects/ButtonStyleDanger.cs index d9500c39..294171a6 100644 --- a/TdLib.Api/Objects/ButtonStyleDanger.cs +++ b/TdLib.Api/Objects/ButtonStyleDanger.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ButtonStyle : Object { - public partial class ButtonStyle : Object + /// + /// The button has red color + /// + public class ButtonStyleDanger : ButtonStyle { /// - /// The button has red color + /// Data type for serialization /// - public class ButtonStyleDanger : ButtonStyle - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "buttonStyleDanger"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "buttonStyleDanger"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ButtonStyleDefault.cs b/TdLib.Api/Objects/ButtonStyleDefault.cs index a1a8a883..28736987 100644 --- a/TdLib.Api/Objects/ButtonStyleDefault.cs +++ b/TdLib.Api/Objects/ButtonStyleDefault.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ButtonStyle : Object { - public partial class ButtonStyle : Object + /// + /// Describes style of a button + /// + public class ButtonStyleDefault : ButtonStyle { /// - /// Describes style of a button + /// Data type for serialization /// - public class ButtonStyleDefault : ButtonStyle - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "buttonStyleDefault"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "buttonStyleDefault"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ButtonStyleLink.cs b/TdLib.Api/Objects/ButtonStyleLink.cs index 51cff52f..75bd2c1d 100644 --- a/TdLib.Api/Objects/ButtonStyleLink.cs +++ b/TdLib.Api/Objects/ButtonStyleLink.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ButtonStyle : Object { - public partial class ButtonStyle : Object + /// + /// The button must be shown as a link. The style is allowed only for callback buttons in inlineButton + /// + public class ButtonStyleLink : ButtonStyle { /// - /// The button must be shown as a link. The style is allowed only for callback buttons in inlineButton + /// Data type for serialization /// - public class ButtonStyleLink : ButtonStyle - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "buttonStyleLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "buttonStyleLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ButtonStylePrimary.cs b/TdLib.Api/Objects/ButtonStylePrimary.cs index 3bd9fa26..7a2f37ca 100644 --- a/TdLib.Api/Objects/ButtonStylePrimary.cs +++ b/TdLib.Api/Objects/ButtonStylePrimary.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ButtonStyle : Object { - public partial class ButtonStyle : Object + /// + /// The button has dark blue color + /// + public class ButtonStylePrimary : ButtonStyle { /// - /// The button has dark blue color + /// Data type for serialization /// - public class ButtonStylePrimary : ButtonStyle - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "buttonStylePrimary"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "buttonStylePrimary"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ButtonStyleSuccess.cs b/TdLib.Api/Objects/ButtonStyleSuccess.cs index 9fbeaf53..472a8ee1 100644 --- a/TdLib.Api/Objects/ButtonStyleSuccess.cs +++ b/TdLib.Api/Objects/ButtonStyleSuccess.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ButtonStyle : Object { - public partial class ButtonStyle : Object + /// + /// The button has green color + /// + public class ButtonStyleSuccess : ButtonStyle { /// - /// The button has green color + /// Data type for serialization /// - public class ButtonStyleSuccess : ButtonStyle - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "buttonStyleSuccess"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "buttonStyleSuccess"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Call.cs b/TdLib.Api/Objects/Call.cs index 7e027878..c59ad352 100644 --- a/TdLib.Api/Objects/Call.cs +++ b/TdLib.Api/Objects/Call.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a call /// - public static partial class TdApi + public partial class Call : Object { /// - /// Describes a call + /// Data type for serialization /// - public partial class Call : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "call"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "call"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Call identifier, not persistent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Call identifier, not persistent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Persistent unique call identifier; 0 if isn't assigned yet by the server - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("unique_id")] - public long UniqueId { get; set; } + /// + /// Persistent unique call identifier; 0 if isn't assigned yet by the server + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("unique_id")] + public long UniqueId { get; set; } - /// - /// User identifier of the other call participant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier of the other call participant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// True, if the call is outgoing - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_outgoing")] - public bool IsOutgoing { get; set; } + /// + /// True, if the call is outgoing + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outgoing")] + public bool IsOutgoing { get; set; } - /// - /// True, if the call is a video call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video")] - public bool IsVideo { get; set; } + /// + /// True, if the call is a video call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video")] + public bool IsVideo { get; set; } - /// - /// Call state - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public CallState State { get; set; } - } + /// + /// Call state + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public CallState State { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CallDiscardReasonDeclined.cs b/TdLib.Api/Objects/CallDiscardReasonDeclined.cs index 4de01383..ad466ecf 100644 --- a/TdLib.Api/Objects/CallDiscardReasonDeclined.cs +++ b/TdLib.Api/Objects/CallDiscardReasonDeclined.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallDiscardReason : Object { - public partial class CallDiscardReason : Object + /// + /// The call was ended before the conversation started. It was declined by the other party + /// + public class CallDiscardReasonDeclined : CallDiscardReason { /// - /// The call was ended before the conversation started. It was declined by the other party + /// Data type for serialization /// - public class CallDiscardReasonDeclined : CallDiscardReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callDiscardReasonDeclined"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callDiscardReasonDeclined"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallDiscardReasonDisconnected.cs b/TdLib.Api/Objects/CallDiscardReasonDisconnected.cs index d3ec5b7a..d8f3251d 100644 --- a/TdLib.Api/Objects/CallDiscardReasonDisconnected.cs +++ b/TdLib.Api/Objects/CallDiscardReasonDisconnected.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallDiscardReason : Object { - public partial class CallDiscardReason : Object + /// + /// The call was ended during the conversation because the users were disconnected + /// + public class CallDiscardReasonDisconnected : CallDiscardReason { /// - /// The call was ended during the conversation because the users were disconnected + /// Data type for serialization /// - public class CallDiscardReasonDisconnected : CallDiscardReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callDiscardReasonDisconnected"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callDiscardReasonDisconnected"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallDiscardReasonEmpty.cs b/TdLib.Api/Objects/CallDiscardReasonEmpty.cs index 81b3256c..1ef59613 100644 --- a/TdLib.Api/Objects/CallDiscardReasonEmpty.cs +++ b/TdLib.Api/Objects/CallDiscardReasonEmpty.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallDiscardReason : Object { - public partial class CallDiscardReason : Object + /// + /// Describes the reason why a call was discarded + /// + public class CallDiscardReasonEmpty : CallDiscardReason { /// - /// Describes the reason why a call was discarded + /// Data type for serialization /// - public class CallDiscardReasonEmpty : CallDiscardReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callDiscardReasonEmpty"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callDiscardReasonEmpty"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallDiscardReasonHungUp.cs b/TdLib.Api/Objects/CallDiscardReasonHungUp.cs index 21cfbe2f..21f60495 100644 --- a/TdLib.Api/Objects/CallDiscardReasonHungUp.cs +++ b/TdLib.Api/Objects/CallDiscardReasonHungUp.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallDiscardReason : Object { - public partial class CallDiscardReason : Object + /// + /// The call was ended because one of the parties hung up + /// + public class CallDiscardReasonHungUp : CallDiscardReason { /// - /// The call was ended because one of the parties hung up + /// Data type for serialization /// - public class CallDiscardReasonHungUp : CallDiscardReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callDiscardReasonHungUp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callDiscardReasonHungUp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallDiscardReasonMissed.cs b/TdLib.Api/Objects/CallDiscardReasonMissed.cs index 2279ff99..a0c55f64 100644 --- a/TdLib.Api/Objects/CallDiscardReasonMissed.cs +++ b/TdLib.Api/Objects/CallDiscardReasonMissed.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallDiscardReason : Object { - public partial class CallDiscardReason : Object + /// + /// The call was ended before the conversation started. It was canceled by the caller or missed by the other party + /// + public class CallDiscardReasonMissed : CallDiscardReason { /// - /// The call was ended before the conversation started. It was canceled by the caller or missed by the other party + /// Data type for serialization /// - public class CallDiscardReasonMissed : CallDiscardReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callDiscardReasonMissed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callDiscardReasonMissed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallDiscardReasonUpgradeToGroupCall.cs b/TdLib.Api/Objects/CallDiscardReasonUpgradeToGroupCall.cs index 1bc1545b..628960d9 100644 --- a/TdLib.Api/Objects/CallDiscardReasonUpgradeToGroupCall.cs +++ b/TdLib.Api/Objects/CallDiscardReasonUpgradeToGroupCall.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallDiscardReason : Object { - public partial class CallDiscardReason : Object + /// + /// The call was ended because it has been upgraded to a group call + /// + public class CallDiscardReasonUpgradeToGroupCall : CallDiscardReason { /// - /// The call was ended because it has been upgraded to a group call + /// Data type for serialization /// - public class CallDiscardReasonUpgradeToGroupCall : CallDiscardReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callDiscardReasonUpgradeToGroupCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callDiscardReasonUpgradeToGroupCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link for the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Invite link for the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/CallId.cs b/TdLib.Api/Objects/CallId.cs index fbd50f82..d6ef344f 100644 --- a/TdLib.Api/Objects/CallId.cs +++ b/TdLib.Api/Objects/CallId.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the call identifier /// - public static partial class TdApi + public partial class CallId : Object { /// - /// Contains the call identifier + /// Data type for serialization /// - public partial class CallId : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callId"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } - } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CallProblemDistortedSpeech.cs b/TdLib.Api/Objects/CallProblemDistortedSpeech.cs index fa26307c..617c9b83 100644 --- a/TdLib.Api/Objects/CallProblemDistortedSpeech.cs +++ b/TdLib.Api/Objects/CallProblemDistortedSpeech.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The speech was distorted + /// + public class CallProblemDistortedSpeech : CallProblem { /// - /// The speech was distorted + /// Data type for serialization /// - public class CallProblemDistortedSpeech : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemDistortedSpeech"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemDistortedSpeech"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemDistortedVideo.cs b/TdLib.Api/Objects/CallProblemDistortedVideo.cs index 68afda95..55e0c1cc 100644 --- a/TdLib.Api/Objects/CallProblemDistortedVideo.cs +++ b/TdLib.Api/Objects/CallProblemDistortedVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The video was distorted + /// + public class CallProblemDistortedVideo : CallProblem { /// - /// The video was distorted + /// Data type for serialization /// - public class CallProblemDistortedVideo : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemDistortedVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemDistortedVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemDropped.cs b/TdLib.Api/Objects/CallProblemDropped.cs index cb656a6f..a903eac5 100644 --- a/TdLib.Api/Objects/CallProblemDropped.cs +++ b/TdLib.Api/Objects/CallProblemDropped.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The call ended unexpectedly + /// + public class CallProblemDropped : CallProblem { /// - /// The call ended unexpectedly + /// Data type for serialization /// - public class CallProblemDropped : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemDropped"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemDropped"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemEcho.cs b/TdLib.Api/Objects/CallProblemEcho.cs index bae0f05b..2428f107 100644 --- a/TdLib.Api/Objects/CallProblemEcho.cs +++ b/TdLib.Api/Objects/CallProblemEcho.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// Describes the exact type of problem with a call + /// + public class CallProblemEcho : CallProblem { /// - /// Describes the exact type of problem with a call + /// Data type for serialization /// - public class CallProblemEcho : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemEcho"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemEcho"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemInterruptions.cs b/TdLib.Api/Objects/CallProblemInterruptions.cs index 5f09da6b..33cce6c8 100644 --- a/TdLib.Api/Objects/CallProblemInterruptions.cs +++ b/TdLib.Api/Objects/CallProblemInterruptions.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The other side kept disappearing + /// + public class CallProblemInterruptions : CallProblem { /// - /// The other side kept disappearing + /// Data type for serialization /// - public class CallProblemInterruptions : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemInterruptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemInterruptions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemNoise.cs b/TdLib.Api/Objects/CallProblemNoise.cs index b8afd617..fe4f4f74 100644 --- a/TdLib.Api/Objects/CallProblemNoise.cs +++ b/TdLib.Api/Objects/CallProblemNoise.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The user heard background noise + /// + public class CallProblemNoise : CallProblem { /// - /// The user heard background noise + /// Data type for serialization /// - public class CallProblemNoise : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemNoise"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemNoise"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemPixelatedVideo.cs b/TdLib.Api/Objects/CallProblemPixelatedVideo.cs index 7c6d0afe..aa4cddcb 100644 --- a/TdLib.Api/Objects/CallProblemPixelatedVideo.cs +++ b/TdLib.Api/Objects/CallProblemPixelatedVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The video was pixelated + /// + public class CallProblemPixelatedVideo : CallProblem { /// - /// The video was pixelated + /// Data type for serialization /// - public class CallProblemPixelatedVideo : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemPixelatedVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemPixelatedVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemSilentLocal.cs b/TdLib.Api/Objects/CallProblemSilentLocal.cs index 25768bfe..daccd7bb 100644 --- a/TdLib.Api/Objects/CallProblemSilentLocal.cs +++ b/TdLib.Api/Objects/CallProblemSilentLocal.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The user couldn't hear the other side + /// + public class CallProblemSilentLocal : CallProblem { /// - /// The user couldn't hear the other side + /// Data type for serialization /// - public class CallProblemSilentLocal : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemSilentLocal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemSilentLocal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProblemSilentRemote.cs b/TdLib.Api/Objects/CallProblemSilentRemote.cs index 9fe80ac4..bcccaf61 100644 --- a/TdLib.Api/Objects/CallProblemSilentRemote.cs +++ b/TdLib.Api/Objects/CallProblemSilentRemote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallProblem : Object { - public partial class CallProblem : Object + /// + /// The other side couldn't hear the user + /// + public class CallProblemSilentRemote : CallProblem { /// - /// The other side couldn't hear the user + /// Data type for serialization /// - public class CallProblemSilentRemote : CallProblem - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProblemSilentRemote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProblemSilentRemote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallProtocol.cs b/TdLib.Api/Objects/CallProtocol.cs index 57768fb4..3eed3b3f 100644 --- a/TdLib.Api/Objects/CallProtocol.cs +++ b/TdLib.Api/Objects/CallProtocol.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Specifies the supported call protocols /// - public static partial class TdApi + public partial class CallProtocol : Object { /// - /// Specifies the supported call protocols + /// Data type for serialization /// - public partial class CallProtocol : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callProtocol"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callProtocol"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if UDP peer-to-peer connections are supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("udp_p2p")] - public bool UdpP2p { get; set; } + /// + /// True, if UDP peer-to-peer connections are supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("udp_p2p")] + public bool UdpP2p { get; set; } - /// - /// True, if connection through UDP reflectors is supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("udp_reflector")] - public bool UdpReflector { get; set; } + /// + /// True, if connection through UDP reflectors is supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("udp_reflector")] + public bool UdpReflector { get; set; } - /// - /// The minimum supported API layer; use 65 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_layer")] - public int MinLayer { get; set; } + /// + /// The minimum supported API layer; use 65 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_layer")] + public int MinLayer { get; set; } - /// - /// The maximum supported API layer; use 92 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_layer")] - public int MaxLayer { get; set; } + /// + /// The maximum supported API layer; use 92 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_layer")] + public int MaxLayer { get; set; } - /// - /// List of supported tgcalls versions - /// - [JsonProperty("library_versions", ItemConverterType = typeof(Converter))] - public string[] LibraryVersions { get; set; } - } + /// + /// List of supported tgcalls versions + /// + [JsonProperty("library_versions", ItemConverterType = typeof(Converter))] + public string[] LibraryVersions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CallServer.cs b/TdLib.Api/Objects/CallServer.cs index adf56a33..d78be1f6 100644 --- a/TdLib.Api/Objects/CallServer.cs +++ b/TdLib.Api/Objects/CallServer.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a server for relaying call data /// - public static partial class TdApi + public partial class CallServer : Object { /// - /// Describes a server for relaying call data + /// Data type for serialization /// - public partial class CallServer : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callServer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callServer"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Server identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Server identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Server IPv4 address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ip_address")] - public string IpAddress { get; set; } + /// + /// Server IPv4 address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ip_address")] + public string IpAddress { get; set; } - /// - /// Server IPv6 address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ipv6_address")] - public string Ipv6Address { get; set; } + /// + /// Server IPv6 address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ipv6_address")] + public string Ipv6Address { get; set; } - /// - /// Server port number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("port")] - public int Port { get; set; } + /// + /// Server port number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("port")] + public int Port { get; set; } - /// - /// Server type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public CallServerType Type { get; set; } - } + /// + /// Server type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public CallServerType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CallServerTypeTelegramReflector.cs b/TdLib.Api/Objects/CallServerTypeTelegramReflector.cs index bbab5930..36571910 100644 --- a/TdLib.Api/Objects/CallServerTypeTelegramReflector.cs +++ b/TdLib.Api/Objects/CallServerTypeTelegramReflector.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallServerType : Object { - public partial class CallServerType : Object + /// + /// Describes the type of call server + /// + public class CallServerTypeTelegramReflector : CallServerType { /// - /// Describes the type of call server + /// Data type for serialization /// - public class CallServerTypeTelegramReflector : CallServerType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callServerTypeTelegramReflector"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callServerTypeTelegramReflector"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A peer tag to be used with the reflector - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("peer_tag")] - public byte[] PeerTag { get; set; } + /// + /// A peer tag to be used with the reflector + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("peer_tag")] + public byte[] PeerTag { get; set; } - /// - /// True, if the server uses TCP instead of UDP - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_tcp")] - public bool IsTcp { get; set; } - } + /// + /// True, if the server uses TCP instead of UDP + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_tcp")] + public bool IsTcp { get; set; } } } } diff --git a/TdLib.Api/Objects/CallServerTypeWebrtc.cs b/TdLib.Api/Objects/CallServerTypeWebrtc.cs index 794fa5c5..553ada86 100644 --- a/TdLib.Api/Objects/CallServerTypeWebrtc.cs +++ b/TdLib.Api/Objects/CallServerTypeWebrtc.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallServerType : Object { - public partial class CallServerType : Object + /// + /// A WebRTC server + /// + public class CallServerTypeWebrtc : CallServerType { /// - /// A WebRTC server + /// Data type for serialization /// - public class CallServerTypeWebrtc : CallServerType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callServerTypeWebrtc"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callServerTypeWebrtc"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username to be used for authentication - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Username to be used for authentication + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } - /// - /// Authentication password - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } + /// + /// Authentication password + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } - /// - /// True, if the server supports TURN - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_turn")] - public bool SupportsTurn { get; set; } + /// + /// True, if the server supports TURN + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_turn")] + public bool SupportsTurn { get; set; } - /// - /// True, if the server supports STUN - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_stun")] - public bool SupportsStun { get; set; } - } + /// + /// True, if the server supports STUN + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_stun")] + public bool SupportsStun { get; set; } } } } diff --git a/TdLib.Api/Objects/CallStateDiscarded.cs b/TdLib.Api/Objects/CallStateDiscarded.cs index 91e7001c..02cb13ec 100644 --- a/TdLib.Api/Objects/CallStateDiscarded.cs +++ b/TdLib.Api/Objects/CallStateDiscarded.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallState : Object { - public partial class CallState : Object + /// + /// The call has ended successfully + /// + public class CallStateDiscarded : CallState { /// - /// The call has ended successfully + /// Data type for serialization /// - public class CallStateDiscarded : CallState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callStateDiscarded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callStateDiscarded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The reason why the call has ended - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public CallDiscardReason Reason { get; set; } + /// + /// The reason why the call has ended + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public CallDiscardReason Reason { get; set; } - /// - /// True, if the call rating must be sent to the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_rating")] - public bool NeedRating { get; set; } + /// + /// True, if the call rating must be sent to the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_rating")] + public bool NeedRating { get; set; } - /// - /// True, if the call debug information must be sent to the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_debug_information")] - public bool NeedDebugInformation { get; set; } + /// + /// True, if the call debug information must be sent to the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_debug_information")] + public bool NeedDebugInformation { get; set; } - /// - /// True, if the call log must be sent to the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_log")] - public bool NeedLog { get; set; } - } + /// + /// True, if the call log must be sent to the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_log")] + public bool NeedLog { get; set; } } } } diff --git a/TdLib.Api/Objects/CallStateError.cs b/TdLib.Api/Objects/CallStateError.cs index 30496b0d..9ec2ea75 100644 --- a/TdLib.Api/Objects/CallStateError.cs +++ b/TdLib.Api/Objects/CallStateError.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallState : Object { - public partial class CallState : Object + /// + /// The call has ended with an error + /// + public class CallStateError : CallState { /// - /// The call has ended with an error + /// Data type for serialization /// - public class CallStateError : CallState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callStateError"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callStateError"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Error. An error with the code 4005000 will be returned if an outgoing call is missed because of an expired timeout - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } - } + /// + /// Error. An error with the code 4005000 will be returned if an outgoing call is missed because of an expired timeout + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } } } } diff --git a/TdLib.Api/Objects/CallStateExchangingKeys.cs b/TdLib.Api/Objects/CallStateExchangingKeys.cs index 5d8b748e..8aeb5d02 100644 --- a/TdLib.Api/Objects/CallStateExchangingKeys.cs +++ b/TdLib.Api/Objects/CallStateExchangingKeys.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallState : Object { - public partial class CallState : Object + /// + /// The call has been answered and encryption keys are being exchanged + /// + public class CallStateExchangingKeys : CallState { /// - /// The call has been answered and encryption keys are being exchanged + /// Data type for serialization /// - public class CallStateExchangingKeys : CallState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callStateExchangingKeys"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callStateExchangingKeys"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallStateHangingUp.cs b/TdLib.Api/Objects/CallStateHangingUp.cs index 576c6a9f..54b30ffe 100644 --- a/TdLib.Api/Objects/CallStateHangingUp.cs +++ b/TdLib.Api/Objects/CallStateHangingUp.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallState : Object { - public partial class CallState : Object + /// + /// The call is hanging up after discardCall has been called + /// + public class CallStateHangingUp : CallState { /// - /// The call is hanging up after discardCall has been called + /// Data type for serialization /// - public class CallStateHangingUp : CallState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callStateHangingUp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callStateHangingUp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CallStatePending.cs b/TdLib.Api/Objects/CallStatePending.cs index 7c94b8ab..0da3f3c5 100644 --- a/TdLib.Api/Objects/CallStatePending.cs +++ b/TdLib.Api/Objects/CallStatePending.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallState : Object { - public partial class CallState : Object + /// + /// Describes the current call state + /// + public class CallStatePending : CallState { /// - /// Describes the current call state + /// Data type for serialization /// - public class CallStatePending : CallState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callStatePending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callStatePending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the call has already been created by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_created")] - public bool IsCreated { get; set; } + /// + /// True, if the call has already been created by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_created")] + public bool IsCreated { get; set; } - /// - /// True, if the call has already been received by the other party - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_received")] - public bool IsReceived { get; set; } - } + /// + /// True, if the call has already been received by the other party + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_received")] + public bool IsReceived { get; set; } } } } diff --git a/TdLib.Api/Objects/CallStateReady.cs b/TdLib.Api/Objects/CallStateReady.cs index 35fbdb52..d0654890 100644 --- a/TdLib.Api/Objects/CallStateReady.cs +++ b/TdLib.Api/Objects/CallStateReady.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallState : Object { - public partial class CallState : Object + /// + /// The call is ready to use + /// + public class CallStateReady : CallState { /// - /// The call is ready to use + /// Data type for serialization /// - public class CallStateReady : CallState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callStateReady"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callStateReady"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Call protocols supported by the other call participant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protocol")] - public CallProtocol Protocol { get; set; } + /// + /// Call protocols supported by the other call participant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protocol")] + public CallProtocol Protocol { get; set; } - /// - /// List of available call servers - /// - [JsonProperty("servers", ItemConverterType = typeof(Converter))] - public CallServer[] Servers { get; set; } + /// + /// List of available call servers + /// + [JsonProperty("servers", ItemConverterType = typeof(Converter))] + public CallServer[] Servers { get; set; } - /// - /// A JSON-encoded call config - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("config")] - public string Config { get; set; } + /// + /// A JSON-encoded call config + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("config")] + public string Config { get; set; } - /// - /// Call encryption key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("encryption_key")] - public byte[] EncryptionKey { get; set; } + /// + /// Call encryption key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("encryption_key")] + public byte[] EncryptionKey { get; set; } - /// - /// Encryption key fingerprint represented as 4 emoji - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public string[] Emojis { get; set; } + /// + /// Encryption key fingerprint represented as 4 emoji + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public string[] Emojis { get; set; } - /// - /// True, if peer-to-peer connection is allowed by users privacy settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_p2p")] - public bool AllowP2p { get; set; } + /// + /// True, if peer-to-peer connection is allowed by users privacy settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_p2p")] + public bool AllowP2p { get; set; } - /// - /// True, if the other party supports upgrading of the call to a group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_group_call_supported")] - public bool IsGroupCallSupported { get; set; } + /// + /// True, if the other party supports upgrading of the call to a group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_group_call_supported")] + public bool IsGroupCallSupported { get; set; } - /// - /// Custom JSON-encoded call parameters to be passed to tgcalls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("custom_parameters")] - public string CustomParameters { get; set; } - } + /// + /// Custom JSON-encoded call parameters to be passed to tgcalls + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("custom_parameters")] + public string CustomParameters { get; set; } } } } diff --git a/TdLib.Api/Objects/CallbackQueryAnswer.cs b/TdLib.Api/Objects/CallbackQueryAnswer.cs index 281f1240..3f2d49ea 100644 --- a/TdLib.Api/Objects/CallbackQueryAnswer.cs +++ b/TdLib.Api/Objects/CallbackQueryAnswer.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a bot's answer to a callback query /// - public static partial class TdApi + public partial class CallbackQueryAnswer : Object { /// - /// Contains a bot's answer to a callback query + /// Data type for serialization /// - public partial class CallbackQueryAnswer : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callbackQueryAnswer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callbackQueryAnswer"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the answer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Text of the answer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// True, if an alert must be shown to the user instead of a toast notification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_alert")] - public bool ShowAlert { get; set; } + /// + /// True, if an alert must be shown to the user instead of a toast notification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_alert")] + public bool ShowAlert { get; set; } - /// - /// URL to be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// URL to be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CallbackQueryPayloadData.cs b/TdLib.Api/Objects/CallbackQueryPayloadData.cs index dd916bcc..a1d501eb 100644 --- a/TdLib.Api/Objects/CallbackQueryPayloadData.cs +++ b/TdLib.Api/Objects/CallbackQueryPayloadData.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallbackQueryPayload : Object { - public partial class CallbackQueryPayload : Object + /// + /// Represents a payload of a callback query + /// + public class CallbackQueryPayloadData : CallbackQueryPayload { /// - /// Represents a payload of a callback query + /// Data type for serialization /// - public class CallbackQueryPayloadData : CallbackQueryPayload - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callbackQueryPayloadData"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callbackQueryPayloadData"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Data that was attached to the callback button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// Data that was attached to the callback button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } } } } diff --git a/TdLib.Api/Objects/CallbackQueryPayloadDataWithPassword.cs b/TdLib.Api/Objects/CallbackQueryPayloadDataWithPassword.cs index 32e54e75..2668a153 100644 --- a/TdLib.Api/Objects/CallbackQueryPayloadDataWithPassword.cs +++ b/TdLib.Api/Objects/CallbackQueryPayloadDataWithPassword.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallbackQueryPayload : Object { - public partial class CallbackQueryPayload : Object + /// + /// The payload for a callback button requiring password + /// + public class CallbackQueryPayloadDataWithPassword : CallbackQueryPayload { /// - /// The payload for a callback button requiring password + /// Data type for serialization /// - public class CallbackQueryPayloadDataWithPassword : CallbackQueryPayload - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callbackQueryPayloadDataWithPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callbackQueryPayloadDataWithPassword"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The 2-step verification password for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } + /// + /// The 2-step verification password for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } - /// - /// Data that was attached to the callback button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// Data that was attached to the callback button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } } } } diff --git a/TdLib.Api/Objects/CallbackQueryPayloadGame.cs b/TdLib.Api/Objects/CallbackQueryPayloadGame.cs index 5fe2f8ed..e8a3f9bb 100644 --- a/TdLib.Api/Objects/CallbackQueryPayloadGame.cs +++ b/TdLib.Api/Objects/CallbackQueryPayloadGame.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CallbackQueryPayload : Object { - public partial class CallbackQueryPayload : Object + /// + /// The payload for a game callback button + /// + public class CallbackQueryPayloadGame : CallbackQueryPayload { /// - /// The payload for a game callback button + /// Data type for serialization /// - public class CallbackQueryPayloadGame : CallbackQueryPayload - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "callbackQueryPayloadGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "callbackQueryPayloadGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A short name of the game that was attached to the callback button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("game_short_name")] - public string GameShortName { get; set; } - } + /// + /// A short name of the game that was attached to the callback button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("game_short_name")] + public string GameShortName { get; set; } } } } diff --git a/TdLib.Api/Objects/CanPostStoryResultActiveStoryLimitExceeded.cs b/TdLib.Api/Objects/CanPostStoryResultActiveStoryLimitExceeded.cs index 9e6eeb61..45932c64 100644 --- a/TdLib.Api/Objects/CanPostStoryResultActiveStoryLimitExceeded.cs +++ b/TdLib.Api/Objects/CanPostStoryResultActiveStoryLimitExceeded.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanPostStoryResult : Object { - public partial class CanPostStoryResult : Object + /// + /// The limit for the number of active stories exceeded. The user can buy Telegram Premium, delete an active story, or wait for the oldest story to expire + /// + public class CanPostStoryResultActiveStoryLimitExceeded : CanPostStoryResult { /// - /// The limit for the number of active stories exceeded. The user can buy Telegram Premium, delete an active story, or wait for the oldest story to expire + /// Data type for serialization /// - public class CanPostStoryResultActiveStoryLimitExceeded : CanPostStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStoryResultActiveStoryLimitExceeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStoryResultActiveStoryLimitExceeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanPostStoryResultBoostNeeded.cs b/TdLib.Api/Objects/CanPostStoryResultBoostNeeded.cs index a31124ea..a3b0008f 100644 --- a/TdLib.Api/Objects/CanPostStoryResultBoostNeeded.cs +++ b/TdLib.Api/Objects/CanPostStoryResultBoostNeeded.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanPostStoryResult : Object { - public partial class CanPostStoryResult : Object + /// + /// The chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get current boost status of the chat + /// + public class CanPostStoryResultBoostNeeded : CanPostStoryResult { /// - /// The chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get current boost status of the chat + /// Data type for serialization /// - public class CanPostStoryResultBoostNeeded : CanPostStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStoryResultBoostNeeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStoryResultBoostNeeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanPostStoryResultLiveStoryIsActive.cs b/TdLib.Api/Objects/CanPostStoryResultLiveStoryIsActive.cs index bc429bc1..1e3fa39f 100644 --- a/TdLib.Api/Objects/CanPostStoryResultLiveStoryIsActive.cs +++ b/TdLib.Api/Objects/CanPostStoryResultLiveStoryIsActive.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanPostStoryResult : Object { - public partial class CanPostStoryResult : Object + /// + /// The user or the chat has an active live story. The live story must be deleted first + /// + public class CanPostStoryResultLiveStoryIsActive : CanPostStoryResult { /// - /// The user or the chat has an active live story. The live story must be deleted first + /// Data type for serialization /// - public class CanPostStoryResultLiveStoryIsActive : CanPostStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStoryResultLiveStoryIsActive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStoryResultLiveStoryIsActive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the active live story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Identifier of the active live story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/CanPostStoryResultMonthlyLimitExceeded.cs b/TdLib.Api/Objects/CanPostStoryResultMonthlyLimitExceeded.cs index c3377076..12b99643 100644 --- a/TdLib.Api/Objects/CanPostStoryResultMonthlyLimitExceeded.cs +++ b/TdLib.Api/Objects/CanPostStoryResultMonthlyLimitExceeded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanPostStoryResult : Object { - public partial class CanPostStoryResult : Object + /// + /// The monthly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time + /// + public class CanPostStoryResultMonthlyLimitExceeded : CanPostStoryResult { /// - /// The monthly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time + /// Data type for serialization /// - public class CanPostStoryResultMonthlyLimitExceeded : CanPostStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStoryResultMonthlyLimitExceeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStoryResultMonthlyLimitExceeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time left before the user can post the next story, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("retry_after")] - public int RetryAfter { get; set; } - } + /// + /// Time left before the user can post the next story, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("retry_after")] + public int RetryAfter { get; set; } } } } diff --git a/TdLib.Api/Objects/CanPostStoryResultOk.cs b/TdLib.Api/Objects/CanPostStoryResultOk.cs index ddfa8f4d..bc8eaada 100644 --- a/TdLib.Api/Objects/CanPostStoryResultOk.cs +++ b/TdLib.Api/Objects/CanPostStoryResultOk.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanPostStoryResult : Object { - public partial class CanPostStoryResult : Object + /// + /// Represents result of checking whether the current user can post a story on behalf of the specific chat + /// + public class CanPostStoryResultOk : CanPostStoryResult { /// - /// Represents result of checking whether the current user can post a story on behalf of the specific chat + /// Data type for serialization /// - public class CanPostStoryResultOk : CanPostStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStoryResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStoryResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of stories that can be posted by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_count")] - public int StoryCount { get; set; } - } + /// + /// Number of stories that can be posted by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_count")] + public int StoryCount { get; set; } } } } diff --git a/TdLib.Api/Objects/CanPostStoryResultPremiumNeeded.cs b/TdLib.Api/Objects/CanPostStoryResultPremiumNeeded.cs index 6fc553b5..079c8569 100644 --- a/TdLib.Api/Objects/CanPostStoryResultPremiumNeeded.cs +++ b/TdLib.Api/Objects/CanPostStoryResultPremiumNeeded.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanPostStoryResult : Object { - public partial class CanPostStoryResult : Object + /// + /// The user must subscribe to Telegram Premium to be able to post stories + /// + public class CanPostStoryResultPremiumNeeded : CanPostStoryResult { /// - /// The user must subscribe to Telegram Premium to be able to post stories + /// Data type for serialization /// - public class CanPostStoryResultPremiumNeeded : CanPostStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStoryResultPremiumNeeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStoryResultPremiumNeeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanPostStoryResultWeeklyLimitExceeded.cs b/TdLib.Api/Objects/CanPostStoryResultWeeklyLimitExceeded.cs index 4b009260..a49f6b28 100644 --- a/TdLib.Api/Objects/CanPostStoryResultWeeklyLimitExceeded.cs +++ b/TdLib.Api/Objects/CanPostStoryResultWeeklyLimitExceeded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanPostStoryResult : Object { - public partial class CanPostStoryResult : Object + /// + /// The weekly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time + /// + public class CanPostStoryResultWeeklyLimitExceeded : CanPostStoryResult { /// - /// The weekly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time + /// Data type for serialization /// - public class CanPostStoryResultWeeklyLimitExceeded : CanPostStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canPostStoryResultWeeklyLimitExceeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canPostStoryResultWeeklyLimitExceeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time left before the user can post the next story, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("retry_after")] - public int RetryAfter { get; set; } - } + /// + /// Time left before the user can post the next story, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("retry_after")] + public int RetryAfter { get; set; } } } } diff --git a/TdLib.Api/Objects/CanSendGiftResultFail.cs b/TdLib.Api/Objects/CanSendGiftResultFail.cs index 69165bdb..509b0c12 100644 --- a/TdLib.Api/Objects/CanSendGiftResultFail.cs +++ b/TdLib.Api/Objects/CanSendGiftResultFail.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanSendGiftResult : Object { - public partial class CanSendGiftResult : Object + /// + /// The gift can't be sent now by the current user + /// + public class CanSendGiftResultFail : CanSendGiftResult { /// - /// The gift can't be sent now by the current user + /// Data type for serialization /// - public class CanSendGiftResultFail : CanSendGiftResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendGiftResultFail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendGiftResultFail"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Reason to be shown to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public FormattedText Reason { get; set; } - } + /// + /// Reason to be shown to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public FormattedText Reason { get; set; } } } } diff --git a/TdLib.Api/Objects/CanSendGiftResultOk.cs b/TdLib.Api/Objects/CanSendGiftResultOk.cs index 4c571108..5ce146e2 100644 --- a/TdLib.Api/Objects/CanSendGiftResultOk.cs +++ b/TdLib.Api/Objects/CanSendGiftResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanSendGiftResult : Object { - public partial class CanSendGiftResult : Object + /// + /// Describes whether a gift can be sent now by the current user + /// + public class CanSendGiftResultOk : CanSendGiftResult { /// - /// Describes whether a gift can be sent now by the current user + /// Data type for serialization /// - public class CanSendGiftResultOk : CanSendGiftResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendGiftResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendGiftResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanSendMessageToUserResultOk.cs b/TdLib.Api/Objects/CanSendMessageToUserResultOk.cs index c3eda05f..745bb54f 100644 --- a/TdLib.Api/Objects/CanSendMessageToUserResultOk.cs +++ b/TdLib.Api/Objects/CanSendMessageToUserResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanSendMessageToUserResult : Object { - public partial class CanSendMessageToUserResult : Object + /// + /// Describes result of canSendMessageToUser + /// + public class CanSendMessageToUserResultOk : CanSendMessageToUserResult { /// - /// Describes result of canSendMessageToUser + /// Data type for serialization /// - public class CanSendMessageToUserResultOk : CanSendMessageToUserResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendMessageToUserResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendMessageToUserResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanSendMessageToUserResultUserHasPaidMessages.cs b/TdLib.Api/Objects/CanSendMessageToUserResultUserHasPaidMessages.cs index 72c8b6b7..72600a32 100644 --- a/TdLib.Api/Objects/CanSendMessageToUserResultUserHasPaidMessages.cs +++ b/TdLib.Api/Objects/CanSendMessageToUserResultUserHasPaidMessages.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanSendMessageToUserResult : Object { - public partial class CanSendMessageToUserResult : Object + /// + /// The user can be messaged, but the messages are paid + /// + public class CanSendMessageToUserResultUserHasPaidMessages : CanSendMessageToUserResult { /// - /// The user can be messaged, but the messages are paid + /// Data type for serialization /// - public class CanSendMessageToUserResultUserHasPaidMessages : CanSendMessageToUserResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendMessageToUserResultUserHasPaidMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendMessageToUserResultUserHasPaidMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars that must be paid by the current user for each sent message to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("outgoing_paid_message_star_count")] - public long OutgoingPaidMessageStarCount { get; set; } - } + /// + /// Number of Telegram Stars that must be paid by the current user for each sent message to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("outgoing_paid_message_star_count")] + public long OutgoingPaidMessageStarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/CanSendMessageToUserResultUserIsDeleted.cs b/TdLib.Api/Objects/CanSendMessageToUserResultUserIsDeleted.cs index 9aa76be9..a18ea38e 100644 --- a/TdLib.Api/Objects/CanSendMessageToUserResultUserIsDeleted.cs +++ b/TdLib.Api/Objects/CanSendMessageToUserResultUserIsDeleted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanSendMessageToUserResult : Object { - public partial class CanSendMessageToUserResult : Object + /// + /// The user can't be messaged, because they are deleted or unknown + /// + public class CanSendMessageToUserResultUserIsDeleted : CanSendMessageToUserResult { /// - /// The user can't be messaged, because they are deleted or unknown + /// Data type for serialization /// - public class CanSendMessageToUserResultUserIsDeleted : CanSendMessageToUserResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendMessageToUserResultUserIsDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendMessageToUserResultUserIsDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanSendMessageToUserResultUserRestrictsNewChats.cs b/TdLib.Api/Objects/CanSendMessageToUserResultUserRestrictsNewChats.cs index 9ca1cf27..c26d30fe 100644 --- a/TdLib.Api/Objects/CanSendMessageToUserResultUserRestrictsNewChats.cs +++ b/TdLib.Api/Objects/CanSendMessageToUserResultUserRestrictsNewChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanSendMessageToUserResult : Object { - public partial class CanSendMessageToUserResult : Object + /// + /// The user can't be messaged, because they restrict new chats with non-contacts + /// + public class CanSendMessageToUserResultUserRestrictsNewChats : CanSendMessageToUserResult { /// - /// The user can't be messaged, because they restrict new chats with non-contacts + /// Data type for serialization /// - public class CanSendMessageToUserResultUserRestrictsNewChats : CanSendMessageToUserResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canSendMessageToUserResultUserRestrictsNewChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canSendMessageToUserResultUserRestrictsNewChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanTransferOwnershipResultOk.cs b/TdLib.Api/Objects/CanTransferOwnershipResultOk.cs index a85a2908..aa38ac63 100644 --- a/TdLib.Api/Objects/CanTransferOwnershipResultOk.cs +++ b/TdLib.Api/Objects/CanTransferOwnershipResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanTransferOwnershipResult : Object { - public partial class CanTransferOwnershipResult : Object + /// + /// Represents result of checking whether the current session can be used to transfer a chat ownership to another user + /// + public class CanTransferOwnershipResultOk : CanTransferOwnershipResult { /// - /// Represents result of checking whether the current session can be used to transfer a chat ownership to another user + /// Data type for serialization /// - public class CanTransferOwnershipResultOk : CanTransferOwnershipResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canTransferOwnershipResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canTransferOwnershipResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanTransferOwnershipResultPasswordNeeded.cs b/TdLib.Api/Objects/CanTransferOwnershipResultPasswordNeeded.cs index 4a8e3325..aa109f58 100644 --- a/TdLib.Api/Objects/CanTransferOwnershipResultPasswordNeeded.cs +++ b/TdLib.Api/Objects/CanTransferOwnershipResultPasswordNeeded.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanTransferOwnershipResult : Object { - public partial class CanTransferOwnershipResult : Object + /// + /// The 2-step verification needs to be enabled first + /// + public class CanTransferOwnershipResultPasswordNeeded : CanTransferOwnershipResult { /// - /// The 2-step verification needs to be enabled first + /// Data type for serialization /// - public class CanTransferOwnershipResultPasswordNeeded : CanTransferOwnershipResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canTransferOwnershipResultPasswordNeeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canTransferOwnershipResultPasswordNeeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CanTransferOwnershipResultPasswordTooFresh.cs b/TdLib.Api/Objects/CanTransferOwnershipResultPasswordTooFresh.cs index 20a4d9ea..1b677c7c 100644 --- a/TdLib.Api/Objects/CanTransferOwnershipResultPasswordTooFresh.cs +++ b/TdLib.Api/Objects/CanTransferOwnershipResultPasswordTooFresh.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanTransferOwnershipResult : Object { - public partial class CanTransferOwnershipResult : Object + /// + /// The 2-step verification was enabled recently, user needs to wait + /// + public class CanTransferOwnershipResultPasswordTooFresh : CanTransferOwnershipResult { /// - /// The 2-step verification was enabled recently, user needs to wait + /// Data type for serialization /// - public class CanTransferOwnershipResultPasswordTooFresh : CanTransferOwnershipResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canTransferOwnershipResultPasswordTooFresh"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canTransferOwnershipResultPasswordTooFresh"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time left before the session can be used to transfer ownership of a chat, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("retry_after")] - public int RetryAfter { get; set; } - } + /// + /// Time left before the session can be used to transfer ownership of a chat, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("retry_after")] + public int RetryAfter { get; set; } } } } diff --git a/TdLib.Api/Objects/CanTransferOwnershipResultSessionTooFresh.cs b/TdLib.Api/Objects/CanTransferOwnershipResultSessionTooFresh.cs index 3296d1ba..c7069fc9 100644 --- a/TdLib.Api/Objects/CanTransferOwnershipResultSessionTooFresh.cs +++ b/TdLib.Api/Objects/CanTransferOwnershipResultSessionTooFresh.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CanTransferOwnershipResult : Object { - public partial class CanTransferOwnershipResult : Object + /// + /// The session was created recently, user needs to wait + /// + public class CanTransferOwnershipResultSessionTooFresh : CanTransferOwnershipResult { /// - /// The session was created recently, user needs to wait + /// Data type for serialization /// - public class CanTransferOwnershipResultSessionTooFresh : CanTransferOwnershipResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "canTransferOwnershipResultSessionTooFresh"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "canTransferOwnershipResultSessionTooFresh"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time left before the session can be used to transfer ownership of a chat, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("retry_after")] - public int RetryAfter { get; set; } - } + /// + /// Time left before the session can be used to transfer ownership of a chat, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("retry_after")] + public int RetryAfter { get; set; } } } } diff --git a/TdLib.Api/Objects/Chat.cs b/TdLib.Api/Objects/Chat.cs index 0b5c88ce..b6b59b73 100644 --- a/TdLib.Api/Objects/Chat.cs +++ b/TdLib.Api/Objects/Chat.cs @@ -2,336 +2,335 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A chat. (Can be a private chat, basic group, supergroup, or secret chat) /// - public static partial class TdApi + public partial class Chat : Object { /// - /// A chat. (Can be a private chat, basic group, supergroup, or secret chat) - /// - public partial class Chat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chat"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat unique identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Type of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ChatType Type { get; set; } - - /// - /// Chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// Chat photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhotoInfo Photo { get; set; } - - /// - /// Identifier of the accent color for message sender name, and backgrounds of chat photo, reply header, and link preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } - - /// - /// Identifier of a custom emoji to be shown on the reply header and link preview background for messages sent by the chat; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_custom_emoji_id")] - public long BackgroundCustomEmojiId { get; set; } - - /// - /// Color scheme based on an upgraded gift to be used for the chat instead of accent_color_id and background_custom_emoji_id; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_gift_colors")] - public UpgradedGiftColors UpgradedGiftColors { get; set; } - - /// - /// Identifier of the profile accent color for the chat's profile; -1 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("profile_accent_color_id")] - public int ProfileAccentColorId { get; set; } - - /// - /// Identifier of a custom emoji to be shown on the background of the chat's profile; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("profile_background_custom_emoji_id")] - public long ProfileBackgroundCustomEmojiId { get; set; } - - /// - /// Actions that non-administrator chat members are allowed to take in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("permissions")] - public ChatPermissions Permissions { get; set; } - - /// - /// Last message in the chat; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_message")] - public Message LastMessage { get; set; } - - /// - /// Positions of the chat in chat lists - /// - [JsonProperty("positions", ItemConverterType = typeof(Converter))] - public ChatPosition[] Positions { get; set; } - - /// - /// Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even if it doesn't belong to the chat list and have no position in a chat list even if it belongs to the chat list - /// - [JsonProperty("chat_lists", ItemConverterType = typeof(Converter))] - public ChatList[] ChatLists { get; set; } - - /// - /// Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_sender_id")] - public MessageSender MessageSenderId { get; set; } - - /// - /// Block list to which the chat is added; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("block_list")] - public BlockList BlockList { get; set; } - - /// - /// True, if chat content can't be saved locally, forwarded, or copied - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_protected_content")] - public bool HasProtectedContent { get; set; } - - /// - /// True, if translation of all messages in the chat must be suggested to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_translatable")] - public bool IsTranslatable { get; set; } - - /// - /// True, if the chat is marked as unread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_marked_as_unread")] - public bool IsMarkedAsUnread { get; set; } - - /// - /// True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_as_topics")] - public bool ViewAsTopics { get; set; } - - /// - /// True, if the chat has scheduled messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_scheduled_messages")] - public bool HasScheduledMessages { get; set; } - - /// - /// True, if the chat has welcome messages; for chat administrators with can_change_info administrator right only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_welcome_messages")] - public bool HasWelcomeMessages { get; set; } - - /// - /// True, if the chat messages can be deleted only for the current user while other users will continue to see the messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted_only_for_self")] - public bool CanBeDeletedOnlyForSelf { get; set; } - - /// - /// True, if the chat messages can be deleted for all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted_for_all_users")] - public bool CanBeDeletedForAllUsers { get; set; } - - /// - /// True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_reported")] - public bool CanBeReported { get; set; } - - /// - /// Default value of the disable_notification parameter, used when a message is sent to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_disable_notification")] - public bool DefaultDisableNotification { get; set; } - - /// - /// Number of unread messages in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_count")] - public int UnreadCount { get; set; } - - /// - /// Identifier of the last read incoming message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_inbox_message_id")] - public long LastReadInboxMessageId { get; set; } - - /// - /// Identifier of the last read outgoing message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_outbox_message_id")] - public long LastReadOutboxMessageId { get; set; } - - /// - /// Number of unread messages with a mention/reply in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_mention_count")] - public int UnreadMentionCount { get; set; } - - /// - /// Number of messages with unread reactions in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_reaction_count")] - public int UnreadReactionCount { get; set; } - - /// - /// Number of messages with unread poll votes in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_poll_vote_count")] - public int UnreadPollVoteCount { get; set; } - - /// - /// Notification settings for the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ChatNotificationSettings NotificationSettings { get; set; } - - /// - /// Types of reaction, available in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("available_reactions")] - public ChatAvailableReactions AvailableReactions { get; set; } - - /// - /// Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_auto_delete_time")] - public int MessageAutoDeleteTime { get; set; } - - /// - /// Emoji status to be shown along with chat title; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji_status")] - public EmojiStatus EmojiStatus { get; set; } - - /// - /// Background set for the chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public ChatBackground Background { get; set; } - - /// - /// Theme set for the chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme")] - public ChatTheme Theme { get; set; } - - /// - /// Information about actions which must be possible to do through the chat action bar; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action_bar")] - public ChatActionBar ActionBar { get; set; } - - /// - /// Information about bar for managing a business bot in the chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_bot_manage_bar")] - public BusinessBotManageBar BusinessBotManageBar { get; set; } - - /// - /// Information about video chat of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_chat")] - public VideoChat VideoChat { get; set; } - - /// - /// Information about pending join requests; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_join_requests")] - public ChatJoinRequestsInfo PendingJoinRequests { get; set; } - - /// - /// Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup_message_id")] - public long ReplyMarkupMessageId { get; set; } - - /// - /// A draft of a message in the chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } - - /// - /// Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("client_data")] - public string ClientData { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chat"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Chat unique identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Type of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ChatType Type { get; set; } + + /// + /// Chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// Chat photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhotoInfo Photo { get; set; } + + /// + /// Identifier of the accent color for message sender name, and backgrounds of chat photo, reply header, and link preview + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } + + /// + /// Identifier of a custom emoji to be shown on the reply header and link preview background for messages sent by the chat; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_custom_emoji_id")] + public long BackgroundCustomEmojiId { get; set; } + + /// + /// Color scheme based on an upgraded gift to be used for the chat instead of accent_color_id and background_custom_emoji_id; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_gift_colors")] + public UpgradedGiftColors UpgradedGiftColors { get; set; } + + /// + /// Identifier of the profile accent color for the chat's profile; -1 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("profile_accent_color_id")] + public int ProfileAccentColorId { get; set; } + + /// + /// Identifier of a custom emoji to be shown on the background of the chat's profile; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("profile_background_custom_emoji_id")] + public long ProfileBackgroundCustomEmojiId { get; set; } + + /// + /// Actions that non-administrator chat members are allowed to take in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("permissions")] + public ChatPermissions Permissions { get; set; } + + /// + /// Last message in the chat; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_message")] + public Message LastMessage { get; set; } + + /// + /// Positions of the chat in chat lists + /// + [JsonProperty("positions", ItemConverterType = typeof(Converter))] + public ChatPosition[] Positions { get; set; } + + /// + /// Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even if it doesn't belong to the chat list and have no position in a chat list even if it belongs to the chat list + /// + [JsonProperty("chat_lists", ItemConverterType = typeof(Converter))] + public ChatList[] ChatLists { get; set; } + + /// + /// Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can't change message sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_sender_id")] + public MessageSender MessageSenderId { get; set; } + + /// + /// Block list to which the chat is added; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("block_list")] + public BlockList BlockList { get; set; } + + /// + /// True, if chat content can't be saved locally, forwarded, or copied + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_protected_content")] + public bool HasProtectedContent { get; set; } + + /// + /// True, if translation of all messages in the chat must be suggested to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_translatable")] + public bool IsTranslatable { get; set; } + + /// + /// True, if the chat is marked as unread + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_marked_as_unread")] + public bool IsMarkedAsUnread { get; set; } + + /// + /// True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_as_topics")] + public bool ViewAsTopics { get; set; } + + /// + /// True, if the chat has scheduled messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_scheduled_messages")] + public bool HasScheduledMessages { get; set; } + + /// + /// True, if the chat has welcome messages; for chat administrators with can_change_info administrator right only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_welcome_messages")] + public bool HasWelcomeMessages { get; set; } + + /// + /// True, if the chat messages can be deleted only for the current user while other users will continue to see the messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted_only_for_self")] + public bool CanBeDeletedOnlyForSelf { get; set; } + + /// + /// True, if the chat messages can be deleted for all users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted_for_all_users")] + public bool CanBeDeletedForAllUsers { get; set; } + + /// + /// True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_reported")] + public bool CanBeReported { get; set; } + + /// + /// Default value of the disable_notification parameter, used when a message is sent to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_disable_notification")] + public bool DefaultDisableNotification { get; set; } + + /// + /// Number of unread messages in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_count")] + public int UnreadCount { get; set; } + + /// + /// Identifier of the last read incoming message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_inbox_message_id")] + public long LastReadInboxMessageId { get; set; } + + /// + /// Identifier of the last read outgoing message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_outbox_message_id")] + public long LastReadOutboxMessageId { get; set; } + + /// + /// Number of unread messages with a mention/reply in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_mention_count")] + public int UnreadMentionCount { get; set; } + + /// + /// Number of messages with unread reactions in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_reaction_count")] + public int UnreadReactionCount { get; set; } + + /// + /// Number of messages with unread poll votes in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_poll_vote_count")] + public int UnreadPollVoteCount { get; set; } + + /// + /// Notification settings for the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ChatNotificationSettings NotificationSettings { get; set; } + + /// + /// Types of reaction, available in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("available_reactions")] + public ChatAvailableReactions AvailableReactions { get; set; } + + /// + /// Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_auto_delete_time")] + public int MessageAutoDeleteTime { get; set; } + + /// + /// Emoji status to be shown along with chat title; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji_status")] + public EmojiStatus EmojiStatus { get; set; } + + /// + /// Background set for the chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public ChatBackground Background { get; set; } + + /// + /// Theme set for the chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public ChatTheme Theme { get; set; } + + /// + /// Information about actions which must be possible to do through the chat action bar; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("action_bar")] + public ChatActionBar ActionBar { get; set; } + + /// + /// Information about bar for managing a business bot in the chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_bot_manage_bar")] + public BusinessBotManageBar BusinessBotManageBar { get; set; } + + /// + /// Information about video chat of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_chat")] + public VideoChat VideoChat { get; set; } + + /// + /// Information about pending join requests; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_join_requests")] + public ChatJoinRequestsInfo PendingJoinRequests { get; set; } + + /// + /// Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup_message_id")] + public long ReplyMarkupMessageId { get; set; } + + /// + /// A draft of a message in the chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } + + /// + /// Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("client_data")] + public string ClientData { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatActionBarAddContact.cs b/TdLib.Api/Objects/ChatActionBarAddContact.cs index d04992d3..1d729569 100644 --- a/TdLib.Api/Objects/ChatActionBarAddContact.cs +++ b/TdLib.Api/Objects/ChatActionBarAddContact.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatActionBar : Object { - public partial class ChatActionBar : Object + /// + /// The chat is a private or secret chat and the other user can be added to the contact list using the method addContact + /// + public class ChatActionBarAddContact : ChatActionBar { /// - /// The chat is a private or secret chat and the other user can be added to the contact list using the method addContact + /// Data type for serialization /// - public class ChatActionBarAddContact : ChatActionBar - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionBarAddContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionBarAddContact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionBarInviteMembers.cs b/TdLib.Api/Objects/ChatActionBarInviteMembers.cs index 91caee98..55a3787b 100644 --- a/TdLib.Api/Objects/ChatActionBarInviteMembers.cs +++ b/TdLib.Api/Objects/ChatActionBarInviteMembers.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatActionBar : Object { - public partial class ChatActionBar : Object + /// + /// The chat is a recently created group chat to which new members can be invited + /// + public class ChatActionBarInviteMembers : ChatActionBar { /// - /// The chat is a recently created group chat to which new members can be invited + /// Data type for serialization /// - public class ChatActionBarInviteMembers : ChatActionBar - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionBarInviteMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionBarInviteMembers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionBarJoinRequest.cs b/TdLib.Api/Objects/ChatActionBarJoinRequest.cs index 641f0dab..ae2036bf 100644 --- a/TdLib.Api/Objects/ChatActionBarJoinRequest.cs +++ b/TdLib.Api/Objects/ChatActionBarJoinRequest.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatActionBar : Object { - public partial class ChatActionBar : Object + /// + /// The chat is a private chat with an administrator of a chat to which the user sent join request + /// + public class ChatActionBarJoinRequest : ChatActionBar { /// - /// The chat is a private chat with an administrator of a chat to which the user sent join request + /// Data type for serialization /// - public class ChatActionBarJoinRequest : ChatActionBar - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionBarJoinRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionBarJoinRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the chat to which the join request was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the chat to which the join request was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// True, if the join request was sent to a channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_channel")] - public bool IsChannel { get; set; } + /// + /// True, if the join request was sent to a channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_channel")] + public bool IsChannel { get; set; } - /// - /// Point in time (Unix timestamp) when the join request was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_date")] - public int RequestDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the join request was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_date")] + public int RequestDate { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionBarReportAddBlock.cs b/TdLib.Api/Objects/ChatActionBarReportAddBlock.cs index b571cb43..d3e05a87 100644 --- a/TdLib.Api/Objects/ChatActionBarReportAddBlock.cs +++ b/TdLib.Api/Objects/ChatActionBarReportAddBlock.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatActionBar : Object { - public partial class ChatActionBar : Object + /// + /// The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method setMessageSenderBlockList, + /// or the other user can be added to the contact list using the method addContact. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown + /// + public class ChatActionBarReportAddBlock : ChatActionBar { /// - /// The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method setMessageSenderBlockList, - /// or the other user can be added to the contact list using the method addContact. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown + /// Data type for serialization /// - public class ChatActionBarReportAddBlock : ChatActionBar - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionBarReportAddBlock"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionBarReportAddBlock"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_unarchive")] - public bool CanUnarchive { get; set; } + /// + /// If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_unarchive")] + public bool CanUnarchive { get; set; } - /// - /// Basic information about the other user in the chat; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("account_info")] - public AccountInfo AccountInfo { get; set; } - } + /// + /// Basic information about the other user in the chat; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("account_info")] + public AccountInfo AccountInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionBarReportSpam.cs b/TdLib.Api/Objects/ChatActionBarReportSpam.cs index 21fbbeaa..b9ae4598 100644 --- a/TdLib.Api/Objects/ChatActionBarReportSpam.cs +++ b/TdLib.Api/Objects/ChatActionBarReportSpam.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatActionBar : Object { - public partial class ChatActionBar : Object + /// + /// Describes actions which must be possible to do through a chat action bar + /// + public class ChatActionBarReportSpam : ChatActionBar { /// - /// Describes actions which must be possible to do through a chat action bar + /// Data type for serialization /// - public class ChatActionBarReportSpam : ChatActionBar - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionBarReportSpam"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionBarReportSpam"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_unarchive")] - public bool CanUnarchive { get; set; } - } + /// + /// If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_unarchive")] + public bool CanUnarchive { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionBarSharePhoneNumber.cs b/TdLib.Api/Objects/ChatActionBarSharePhoneNumber.cs index 2a17245b..6d1147e1 100644 --- a/TdLib.Api/Objects/ChatActionBarSharePhoneNumber.cs +++ b/TdLib.Api/Objects/ChatActionBarSharePhoneNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatActionBar : Object { - public partial class ChatActionBar : Object + /// + /// The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user using the method sharePhoneNumber + /// + public class ChatActionBarSharePhoneNumber : ChatActionBar { /// - /// The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user using the method sharePhoneNumber + /// Data type for serialization /// - public class ChatActionBarSharePhoneNumber : ChatActionBar - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionBarSharePhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionBarSharePhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionCancel.cs b/TdLib.Api/Objects/ChatActionCancel.cs index c848dc98..6e783a81 100644 --- a/TdLib.Api/Objects/ChatActionCancel.cs +++ b/TdLib.Api/Objects/ChatActionCancel.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user has canceled the previous action + /// + public class ChatActionCancel : ChatAction { /// - /// The user has canceled the previous action + /// Data type for serialization /// - public class ChatActionCancel : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionCancel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionCancel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionChoosingContact.cs b/TdLib.Api/Objects/ChatActionChoosingContact.cs index cfc20498..74844c51 100644 --- a/TdLib.Api/Objects/ChatActionChoosingContact.cs +++ b/TdLib.Api/Objects/ChatActionChoosingContact.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is picking a contact to send + /// + public class ChatActionChoosingContact : ChatAction { /// - /// The user is picking a contact to send + /// Data type for serialization /// - public class ChatActionChoosingContact : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionChoosingContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionChoosingContact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionChoosingLocation.cs b/TdLib.Api/Objects/ChatActionChoosingLocation.cs index 50f60c70..ab7ae85f 100644 --- a/TdLib.Api/Objects/ChatActionChoosingLocation.cs +++ b/TdLib.Api/Objects/ChatActionChoosingLocation.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is picking a location or venue to send + /// + public class ChatActionChoosingLocation : ChatAction { /// - /// The user is picking a location or venue to send + /// Data type for serialization /// - public class ChatActionChoosingLocation : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionChoosingLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionChoosingLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionChoosingSticker.cs b/TdLib.Api/Objects/ChatActionChoosingSticker.cs index e0f31cfa..a3aede7e 100644 --- a/TdLib.Api/Objects/ChatActionChoosingSticker.cs +++ b/TdLib.Api/Objects/ChatActionChoosingSticker.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is picking a sticker to send + /// + public class ChatActionChoosingSticker : ChatAction { /// - /// The user is picking a sticker to send + /// Data type for serialization /// - public class ChatActionChoosingSticker : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionChoosingSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionChoosingSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionRecordingVideo.cs b/TdLib.Api/Objects/ChatActionRecordingVideo.cs index 971e14a2..5ca9dba5 100644 --- a/TdLib.Api/Objects/ChatActionRecordingVideo.cs +++ b/TdLib.Api/Objects/ChatActionRecordingVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is recording a video + /// + public class ChatActionRecordingVideo : ChatAction { /// - /// The user is recording a video + /// Data type for serialization /// - public class ChatActionRecordingVideo : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionRecordingVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionRecordingVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionRecordingVideoNote.cs b/TdLib.Api/Objects/ChatActionRecordingVideoNote.cs index 8d6870cc..793c0d3b 100644 --- a/TdLib.Api/Objects/ChatActionRecordingVideoNote.cs +++ b/TdLib.Api/Objects/ChatActionRecordingVideoNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is recording a video note + /// + public class ChatActionRecordingVideoNote : ChatAction { /// - /// The user is recording a video note + /// Data type for serialization /// - public class ChatActionRecordingVideoNote : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionRecordingVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionRecordingVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionRecordingVoiceNote.cs b/TdLib.Api/Objects/ChatActionRecordingVoiceNote.cs index a5d92bb8..07accddf 100644 --- a/TdLib.Api/Objects/ChatActionRecordingVoiceNote.cs +++ b/TdLib.Api/Objects/ChatActionRecordingVoiceNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is recording a voice note + /// + public class ChatActionRecordingVoiceNote : ChatAction { /// - /// The user is recording a voice note + /// Data type for serialization /// - public class ChatActionRecordingVoiceNote : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionRecordingVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionRecordingVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionStartPlayingGame.cs b/TdLib.Api/Objects/ChatActionStartPlayingGame.cs index da7b3ec4..7cd10328 100644 --- a/TdLib.Api/Objects/ChatActionStartPlayingGame.cs +++ b/TdLib.Api/Objects/ChatActionStartPlayingGame.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user has started to play a game + /// + public class ChatActionStartPlayingGame : ChatAction { /// - /// The user has started to play a game + /// Data type for serialization /// - public class ChatActionStartPlayingGame : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionStartPlayingGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionStartPlayingGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionTyping.cs b/TdLib.Api/Objects/ChatActionTyping.cs index 3d67e9de..02e607e8 100644 --- a/TdLib.Api/Objects/ChatActionTyping.cs +++ b/TdLib.Api/Objects/ChatActionTyping.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// Describes the different types of activity in a chat + /// + public class ChatActionTyping : ChatAction { /// - /// Describes the different types of activity in a chat + /// Data type for serialization /// - public class ChatActionTyping : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionTyping"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionTyping"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatActionUploadingDocument.cs b/TdLib.Api/Objects/ChatActionUploadingDocument.cs index 74cd1d0c..d01e4c4b 100644 --- a/TdLib.Api/Objects/ChatActionUploadingDocument.cs +++ b/TdLib.Api/Objects/ChatActionUploadingDocument.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is uploading a document + /// + public class ChatActionUploadingDocument : ChatAction { /// - /// The user is uploading a document + /// Data type for serialization /// - public class ChatActionUploadingDocument : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionUploadingDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionUploadingDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Upload progress, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("progress")] - public int Progress { get; set; } - } + /// + /// Upload progress, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("progress")] + public int Progress { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionUploadingPhoto.cs b/TdLib.Api/Objects/ChatActionUploadingPhoto.cs index f2b5d743..c437e3c8 100644 --- a/TdLib.Api/Objects/ChatActionUploadingPhoto.cs +++ b/TdLib.Api/Objects/ChatActionUploadingPhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is uploading a photo + /// + public class ChatActionUploadingPhoto : ChatAction { /// - /// The user is uploading a photo + /// Data type for serialization /// - public class ChatActionUploadingPhoto : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionUploadingPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionUploadingPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Upload progress, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("progress")] - public int Progress { get; set; } - } + /// + /// Upload progress, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("progress")] + public int Progress { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionUploadingVideo.cs b/TdLib.Api/Objects/ChatActionUploadingVideo.cs index e7a18ff2..e2ad64e5 100644 --- a/TdLib.Api/Objects/ChatActionUploadingVideo.cs +++ b/TdLib.Api/Objects/ChatActionUploadingVideo.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is uploading a video + /// + public class ChatActionUploadingVideo : ChatAction { /// - /// The user is uploading a video + /// Data type for serialization /// - public class ChatActionUploadingVideo : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionUploadingVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionUploadingVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Upload progress, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("progress")] - public int Progress { get; set; } - } + /// + /// Upload progress, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("progress")] + public int Progress { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionUploadingVideoNote.cs b/TdLib.Api/Objects/ChatActionUploadingVideoNote.cs index 32d4328c..9cfb12dc 100644 --- a/TdLib.Api/Objects/ChatActionUploadingVideoNote.cs +++ b/TdLib.Api/Objects/ChatActionUploadingVideoNote.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is uploading a video note + /// + public class ChatActionUploadingVideoNote : ChatAction { /// - /// The user is uploading a video note + /// Data type for serialization /// - public class ChatActionUploadingVideoNote : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionUploadingVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionUploadingVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Upload progress, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("progress")] - public int Progress { get; set; } - } + /// + /// Upload progress, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("progress")] + public int Progress { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionUploadingVoiceNote.cs b/TdLib.Api/Objects/ChatActionUploadingVoiceNote.cs index 6fe6b37f..4714fe32 100644 --- a/TdLib.Api/Objects/ChatActionUploadingVoiceNote.cs +++ b/TdLib.Api/Objects/ChatActionUploadingVoiceNote.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is uploading a voice note + /// + public class ChatActionUploadingVoiceNote : ChatAction { /// - /// The user is uploading a voice note + /// Data type for serialization /// - public class ChatActionUploadingVoiceNote : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionUploadingVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionUploadingVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Upload progress, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("progress")] - public int Progress { get; set; } - } + /// + /// Upload progress, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("progress")] + public int Progress { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActionWatchingAnimations.cs b/TdLib.Api/Objects/ChatActionWatchingAnimations.cs index ed6c8be9..5df20b04 100644 --- a/TdLib.Api/Objects/ChatActionWatchingAnimations.cs +++ b/TdLib.Api/Objects/ChatActionWatchingAnimations.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAction : Object { - public partial class ChatAction : Object + /// + /// The user is watching animations sent by the other party by clicking on an animated emoji + /// + public class ChatActionWatchingAnimations : ChatAction { /// - /// The user is watching animations sent by the other party by clicking on an animated emoji + /// Data type for serialization /// - public class ChatActionWatchingAnimations : ChatAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActionWatchingAnimations"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActionWatchingAnimations"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animated emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } - } + /// + /// The animated emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatActiveStories.cs b/TdLib.Api/Objects/ChatActiveStories.cs index 2dc9d852..7cbb2220 100644 --- a/TdLib.Api/Objects/ChatActiveStories.cs +++ b/TdLib.Api/Objects/ChatActiveStories.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes active stories posted by a chat /// - public static partial class TdApi + public partial class ChatActiveStories : Object { /// - /// Describes active stories posted by a chat + /// Data type for serialization /// - public partial class ChatActiveStories : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatActiveStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatActiveStories"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that posted the stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat that posted the stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("list")] - public StoryList List { get; set; } + /// + /// Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("list")] + public StoryList List { get; set; } - /// - /// A parameter used to determine order of the stories in the story list; 0 if the stories don't need to be shown in the story list. Stories must be sorted by the pair (order, story_poster_chat_id) in descending order - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order")] - public long Order { get; set; } + /// + /// A parameter used to determine order of the stories in the story list; 0 if the stories don't need to be shown in the story list. Stories must be sorted by the pair (order, story_poster_chat_id) in descending order + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order")] + public long Order { get; set; } - /// - /// True, if the stories are shown in the main story list and can be archived; otherwise, the stories can be hidden from the main story list - /// only by calling removeTopChat with topChatCategoryUsers and the chat_id. Stories of the current user can't be archived nor hidden using removeTopChat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_archived")] - public bool CanBeArchived { get; set; } + /// + /// True, if the stories are shown in the main story list and can be archived; otherwise, the stories can be hidden from the main story list + /// only by calling removeTopChat with topChatCategoryUsers and the chat_id. Stories of the current user can't be archived nor hidden using removeTopChat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_archived")] + public bool CanBeArchived { get; set; } - /// - /// Identifier of the last read active story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_read_story_id")] - public int MaxReadStoryId { get; set; } + /// + /// Identifier of the last read active story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_read_story_id")] + public int MaxReadStoryId { get; set; } - /// - /// Basic information about the stories; use getStory to get full information about the stories. The stories are in chronological order (i.e., in order of increasing story identifiers) - /// - [JsonProperty("stories", ItemConverterType = typeof(Converter))] - public StoryInfo[] Stories { get; set; } - } + /// + /// Basic information about the stories; use getStory to get full information about the stories. The stories are in chronological order (i.e., in order of increasing story identifiers) + /// + [JsonProperty("stories", ItemConverterType = typeof(Converter))] + public StoryInfo[] Stories { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatAdministrator.cs b/TdLib.Api/Objects/ChatAdministrator.cs index 09b12549..faeee3de 100644 --- a/TdLib.Api/Objects/ChatAdministrator.cs +++ b/TdLib.Api/Objects/ChatAdministrator.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a chat administrator /// - public static partial class TdApi + public partial class ChatAdministrator : Object { /// - /// Contains information about a chat administrator + /// Data type for serialization /// - public partial class ChatAdministrator : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatAdministrator"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatAdministrator"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier of the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Custom title of the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("custom_title")] - public string CustomTitle { get; set; } + /// + /// Custom title of the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("custom_title")] + public string CustomTitle { get; set; } - /// - /// True, if the user is the owner of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_owner")] - public bool IsOwner { get; set; } + /// + /// True, if the user is the owner of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_owner")] + public bool IsOwner { get; set; } - /// - /// True, if the current user can edit the administrator privileges for the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_edited")] - public bool CanBeEdited { get; set; } - } + /// + /// True, if the current user can edit the administrator privileges for the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_edited")] + public bool CanBeEdited { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatAdministratorRights.cs b/TdLib.Api/Objects/ChatAdministratorRights.cs index 7366f844..7b6da3c0 100644 --- a/TdLib.Api/Objects/ChatAdministratorRights.cs +++ b/TdLib.Api/Objects/ChatAdministratorRights.cs @@ -2,156 +2,155 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes rights of the administrator /// - public static partial class TdApi + public partial class ChatAdministratorRights : Object { /// - /// Describes rights of the administrator - /// - public partial class ChatAdministratorRights : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatAdministratorRights"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_chat")] - public bool CanManageChat { get; set; } - - /// - /// True, if the administrator can change the chat title, photo, and other settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_change_info")] - public bool CanChangeInfo { get; set; } - - /// - /// True, if the administrator can create channel posts, approve suggested channel posts, or view channel statistics; applicable to channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_post_messages")] - public bool CanPostMessages { get; set; } - - /// - /// True, if the administrator can edit messages of other users and pin messages; applicable to channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_messages")] - public bool CanEditMessages { get; set; } - - /// - /// True, if the administrator can delete messages of other users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_delete_messages")] - public bool CanDeleteMessages { get; set; } - - /// - /// True, if the administrator can invite new users to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_invite_users")] - public bool CanInviteUsers { get; set; } - - /// - /// True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_restrict_members")] - public bool CanRestrictMembers { get; set; } - - /// - /// True, if the administrator can pin messages; applicable to basic groups and supergroups only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_pin_messages")] - public bool CanPinMessages { get; set; } - - /// - /// True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_topics")] - public bool CanManageTopics { get; set; } - - /// - /// True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them; applicable to supergroups and channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_promote_members")] - public bool CanPromoteMembers { get; set; } - - /// - /// True, if the administrator can manage video chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_video_chats")] - public bool CanManageVideoChats { get; set; } - - /// - /// True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_post_stories")] - public bool CanPostStories { get; set; } - - /// - /// True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_stories")] - public bool CanEditStories { get; set; } - - /// - /// True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_delete_stories")] - public bool CanDeleteStories { get; set; } - - /// - /// True, if the administrator can answer to channel direct messages; applicable to channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_direct_messages")] - public bool CanManageDirectMessages { get; set; } - - /// - /// True, if the administrator can change tags of other users; applicable to basic groups and supergroups only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_tags")] - public bool CanManageTags { get; set; } - - /// - /// True, if the administrator can manage and send welcome messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_welcome_messages")] - public bool CanSendWelcomeMessages { get; set; } - - /// - /// True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_anonymous")] - public bool IsAnonymous { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatAdministratorRights"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_chat")] + public bool CanManageChat { get; set; } + + /// + /// True, if the administrator can change the chat title, photo, and other settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_change_info")] + public bool CanChangeInfo { get; set; } + + /// + /// True, if the administrator can create channel posts, approve suggested channel posts, or view channel statistics; applicable to channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_post_messages")] + public bool CanPostMessages { get; set; } + + /// + /// True, if the administrator can edit messages of other users and pin messages; applicable to channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_messages")] + public bool CanEditMessages { get; set; } + + /// + /// True, if the administrator can delete messages of other users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_delete_messages")] + public bool CanDeleteMessages { get; set; } + + /// + /// True, if the administrator can invite new users to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_invite_users")] + public bool CanInviteUsers { get; set; } + + /// + /// True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_restrict_members")] + public bool CanRestrictMembers { get; set; } + + /// + /// True, if the administrator can pin messages; applicable to basic groups and supergroups only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_pin_messages")] + public bool CanPinMessages { get; set; } + + /// + /// True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_topics")] + public bool CanManageTopics { get; set; } + + /// + /// True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them; applicable to supergroups and channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_promote_members")] + public bool CanPromoteMembers { get; set; } + + /// + /// True, if the administrator can manage video chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_video_chats")] + public bool CanManageVideoChats { get; set; } + + /// + /// True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_post_stories")] + public bool CanPostStories { get; set; } + + /// + /// True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_stories")] + public bool CanEditStories { get; set; } + + /// + /// True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_delete_stories")] + public bool CanDeleteStories { get; set; } + + /// + /// True, if the administrator can answer to channel direct messages; applicable to channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_direct_messages")] + public bool CanManageDirectMessages { get; set; } + + /// + /// True, if the administrator can change tags of other users; applicable to basic groups and supergroups only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_tags")] + public bool CanManageTags { get; set; } + + /// + /// True, if the administrator can manage and send welcome messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_welcome_messages")] + public bool CanSendWelcomeMessages { get; set; } + + /// + /// True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_anonymous")] + public bool IsAnonymous { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatAdministrators.cs b/TdLib.Api/Objects/ChatAdministrators.cs index e699b102..f16b4a7a 100644 --- a/TdLib.Api/Objects/ChatAdministrators.cs +++ b/TdLib.Api/Objects/ChatAdministrators.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of chat administrators /// - public static partial class TdApi + public partial class ChatAdministrators : Object { /// - /// Represents a list of chat administrators + /// Data type for serialization /// - public partial class ChatAdministrators : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatAdministrators"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatAdministrators"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of chat administrators - /// - [JsonProperty("administrators", ItemConverterType = typeof(Converter))] - public ChatAdministrator[] Administrators { get; set; } - } + /// + /// A list of chat administrators + /// + [JsonProperty("administrators", ItemConverterType = typeof(Converter))] + public ChatAdministrator[] Administrators { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatAvailableReactionsAll.cs b/TdLib.Api/Objects/ChatAvailableReactionsAll.cs index 4ccdc6ff..061cf352 100644 --- a/TdLib.Api/Objects/ChatAvailableReactionsAll.cs +++ b/TdLib.Api/Objects/ChatAvailableReactionsAll.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAvailableReactions : Object { - public partial class ChatAvailableReactions : Object + /// + /// Describes reactions available in the chat + /// + public class ChatAvailableReactionsAll : ChatAvailableReactions { /// - /// Describes reactions available in the chat + /// Data type for serialization /// - public class ChatAvailableReactionsAll : ChatAvailableReactions - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatAvailableReactionsAll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatAvailableReactionsAll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum allowed number of reactions per message; 1-11 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_reaction_count")] - public int MaxReactionCount { get; set; } - } + /// + /// The maximum allowed number of reactions per message; 1-11 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_reaction_count")] + public int MaxReactionCount { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatAvailableReactionsSome.cs b/TdLib.Api/Objects/ChatAvailableReactionsSome.cs index 54555e40..c7c43cab 100644 --- a/TdLib.Api/Objects/ChatAvailableReactionsSome.cs +++ b/TdLib.Api/Objects/ChatAvailableReactionsSome.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatAvailableReactions : Object { - public partial class ChatAvailableReactions : Object + /// + /// Only specific reactions are available in the chat + /// + public class ChatAvailableReactionsSome : ChatAvailableReactions { /// - /// Only specific reactions are available in the chat + /// Data type for serialization /// - public class ChatAvailableReactionsSome : ChatAvailableReactions - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatAvailableReactionsSome"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatAvailableReactionsSome"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of reactions - /// - [JsonProperty("reactions", ItemConverterType = typeof(Converter))] - public ReactionType[] Reactions { get; set; } + /// + /// The list of reactions + /// + [JsonProperty("reactions", ItemConverterType = typeof(Converter))] + public ReactionType[] Reactions { get; set; } - /// - /// The maximum allowed number of reactions per message; 1-11 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_reaction_count")] - public int MaxReactionCount { get; set; } - } + /// + /// The maximum allowed number of reactions per message; 1-11 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_reaction_count")] + public int MaxReactionCount { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatBackground.cs b/TdLib.Api/Objects/ChatBackground.cs index 0b852e09..4b65a491 100644 --- a/TdLib.Api/Objects/ChatBackground.cs +++ b/TdLib.Api/Objects/ChatBackground.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a background set for a specific chat /// - public static partial class TdApi + public partial class ChatBackground : Object { /// - /// Describes a background set for a specific chat + /// Data type for serialization /// - public partial class ChatBackground : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBackground"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public Background Background { get; set; } + /// + /// The background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public Background Background { get; set; } - /// - /// Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dark_theme_dimming")] - public int DarkThemeDimming { get; set; } - } + /// + /// Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dark_theme_dimming")] + public int DarkThemeDimming { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoost.cs b/TdLib.Api/Objects/ChatBoost.cs index 80db52f1..7ef5f20c 100644 --- a/TdLib.Api/Objects/ChatBoost.cs +++ b/TdLib.Api/Objects/ChatBoost.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a boost applied to a chat /// - public static partial class TdApi + public partial class ChatBoost : Object { /// - /// Describes a boost applied to a chat + /// Data type for serialization /// - public partial class ChatBoost : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoost"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the boost - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the boost + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// The number of identical boosts applied - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public int Count { get; set; } + /// + /// The number of identical boosts applied + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public int Count { get; set; } - /// - /// Source of the boost - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public ChatBoostSource Source { get; set; } + /// + /// Source of the boost + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public ChatBoostSource Source { get; set; } - /// - /// Point in time (Unix timestamp) when the chat was boosted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } + /// + /// Point in time (Unix timestamp) when the chat was boosted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } - /// - /// Point in time (Unix timestamp) when the boost will expire - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the boost will expire + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoostFeatures.cs b/TdLib.Api/Objects/ChatBoostFeatures.cs index d5c87eb2..cf8acc65 100644 --- a/TdLib.Api/Objects/ChatBoostFeatures.cs +++ b/TdLib.Api/Objects/ChatBoostFeatures.cs @@ -2,99 +2,98 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of features available on the first chat boost levels /// - public static partial class TdApi + public partial class ChatBoostFeatures : Object { /// - /// Contains a list of features available on the first chat boost levels + /// Data type for serialization /// - public partial class ChatBoostFeatures : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostFeatures"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostFeatures"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of features - /// - [JsonProperty("features", ItemConverterType = typeof(Converter))] - public ChatBoostLevelFeatures[] Features { get; set; } + /// + /// The list of features + /// + [JsonProperty("features", ItemConverterType = typeof(Converter))] + public ChatBoostLevelFeatures[] Features { get; set; } - /// - /// The minimum boost level required to set custom emoji for profile background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_profile_background_custom_emoji_boost_level")] - public int MinProfileBackgroundCustomEmojiBoostLevel { get; set; } + /// + /// The minimum boost level required to set custom emoji for profile background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_profile_background_custom_emoji_boost_level")] + public int MinProfileBackgroundCustomEmojiBoostLevel { get; set; } - /// - /// The minimum boost level required to set custom emoji for reply header and link preview background; for channel chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_background_custom_emoji_boost_level")] - public int MinBackgroundCustomEmojiBoostLevel { get; set; } + /// + /// The minimum boost level required to set custom emoji for reply header and link preview background; for channel chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_background_custom_emoji_boost_level")] + public int MinBackgroundCustomEmojiBoostLevel { get; set; } - /// - /// The minimum boost level required to set emoji status - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_emoji_status_boost_level")] - public int MinEmojiStatusBoostLevel { get; set; } + /// + /// The minimum boost level required to set emoji status + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_emoji_status_boost_level")] + public int MinEmojiStatusBoostLevel { get; set; } - /// - /// The minimum boost level required to set a chat theme background as chat background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_chat_theme_background_boost_level")] - public int MinChatThemeBackgroundBoostLevel { get; set; } + /// + /// The minimum boost level required to set a chat theme background as chat background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_chat_theme_background_boost_level")] + public int MinChatThemeBackgroundBoostLevel { get; set; } - /// - /// The minimum boost level required to set custom chat background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_custom_background_boost_level")] - public int MinCustomBackgroundBoostLevel { get; set; } + /// + /// The minimum boost level required to set custom chat background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_custom_background_boost_level")] + public int MinCustomBackgroundBoostLevel { get; set; } - /// - /// The minimum boost level required to set custom emoji sticker set for the chat; for supergroup chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_custom_emoji_sticker_set_boost_level")] - public int MinCustomEmojiStickerSetBoostLevel { get; set; } + /// + /// The minimum boost level required to set custom emoji sticker set for the chat; for supergroup chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_custom_emoji_sticker_set_boost_level")] + public int MinCustomEmojiStickerSetBoostLevel { get; set; } - /// - /// The minimum boost level allowing to enable automatic translation of messages for non-Premium users; for channel chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_automatic_translation_boost_level")] - public int MinAutomaticTranslationBoostLevel { get; set; } + /// + /// The minimum boost level allowing to enable automatic translation of messages for non-Premium users; for channel chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_automatic_translation_boost_level")] + public int MinAutomaticTranslationBoostLevel { get; set; } - /// - /// The minimum boost level allowing to recognize speech in video note and voice note messages for non-Premium users; for supergroup chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_speech_recognition_boost_level")] - public int MinSpeechRecognitionBoostLevel { get; set; } + /// + /// The minimum boost level allowing to recognize speech in video note and voice note messages for non-Premium users; for supergroup chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_speech_recognition_boost_level")] + public int MinSpeechRecognitionBoostLevel { get; set; } - /// - /// The minimum boost level allowing to disable sponsored messages in the chat; for channel chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_sponsored_message_disable_boost_level")] - public int MinSponsoredMessageDisableBoostLevel { get; set; } - } + /// + /// The minimum boost level allowing to disable sponsored messages in the chat; for channel chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_sponsored_message_disable_boost_level")] + public int MinSponsoredMessageDisableBoostLevel { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoostLevelFeatures.cs b/TdLib.Api/Objects/ChatBoostLevelFeatures.cs index cfc85cb8..3a55cf62 100644 --- a/TdLib.Api/Objects/ChatBoostLevelFeatures.cs +++ b/TdLib.Api/Objects/ChatBoostLevelFeatures.cs @@ -2,135 +2,134 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of features available on a specific chat boost level /// - public static partial class TdApi + public partial class ChatBoostLevelFeatures : Object { /// - /// Contains a list of features available on a specific chat boost level - /// - public partial class ChatBoostLevelFeatures : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostLevelFeatures"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Target chat boost level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("level")] - public int Level { get; set; } - - /// - /// Number of stories that the chat can publish daily - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_per_day_count")] - public int StoryPerDayCount { get; set; } - - /// - /// Number of custom emoji reactions that can be added to the list of available reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("custom_emoji_reaction_count")] - public int CustomEmojiReactionCount { get; set; } - - /// - /// Number of custom colors for chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title_color_count")] - public int TitleColorCount { get; set; } - - /// - /// Number of custom colors for profile photo background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("profile_accent_color_count")] - public int ProfileAccentColorCount { get; set; } - - /// - /// True, if custom emoji for profile background can be set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_profile_background_custom_emoji")] - public bool CanSetProfileBackgroundCustomEmoji { get; set; } - - /// - /// Number of custom colors for background of empty chat photo, replies to messages and link previews - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_count")] - public int AccentColorCount { get; set; } - - /// - /// True, if custom emoji for reply header and link preview background can be set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_background_custom_emoji")] - public bool CanSetBackgroundCustomEmoji { get; set; } - - /// - /// True, if emoji status can be set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_emoji_status")] - public bool CanSetEmojiStatus { get; set; } - - /// - /// Number of chat theme backgrounds that can be set as chat background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_theme_background_count")] - public int ChatThemeBackgroundCount { get; set; } - - /// - /// True, if custom background can be set in the chat for all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_custom_background")] - public bool CanSetCustomBackground { get; set; } - - /// - /// True, if custom emoji sticker set can be set for the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_custom_emoji_sticker_set")] - public bool CanSetCustomEmojiStickerSet { get; set; } - - /// - /// True, if automatic translation of messages can be enabled in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_enable_automatic_translation")] - public bool CanEnableAutomaticTranslation { get; set; } - - /// - /// True, if speech recognition can be used for video note and voice note messages by all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_recognize_speech")] - public bool CanRecognizeSpeech { get; set; } - - /// - /// True, if sponsored messages can be disabled in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_disable_sponsored_messages")] - public bool CanDisableSponsoredMessages { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostLevelFeatures"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Target chat boost level + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("level")] + public int Level { get; set; } + + /// + /// Number of stories that the chat can publish daily + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_per_day_count")] + public int StoryPerDayCount { get; set; } + + /// + /// Number of custom emoji reactions that can be added to the list of available reactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("custom_emoji_reaction_count")] + public int CustomEmojiReactionCount { get; set; } + + /// + /// Number of custom colors for chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title_color_count")] + public int TitleColorCount { get; set; } + + /// + /// Number of custom colors for profile photo background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("profile_accent_color_count")] + public int ProfileAccentColorCount { get; set; } + + /// + /// True, if custom emoji for profile background can be set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_profile_background_custom_emoji")] + public bool CanSetProfileBackgroundCustomEmoji { get; set; } + + /// + /// Number of custom colors for background of empty chat photo, replies to messages and link previews + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_count")] + public int AccentColorCount { get; set; } + + /// + /// True, if custom emoji for reply header and link preview background can be set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_background_custom_emoji")] + public bool CanSetBackgroundCustomEmoji { get; set; } + + /// + /// True, if emoji status can be set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_emoji_status")] + public bool CanSetEmojiStatus { get; set; } + + /// + /// Number of chat theme backgrounds that can be set as chat background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_theme_background_count")] + public int ChatThemeBackgroundCount { get; set; } + + /// + /// True, if custom background can be set in the chat for all users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_custom_background")] + public bool CanSetCustomBackground { get; set; } + + /// + /// True, if custom emoji sticker set can be set for the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_custom_emoji_sticker_set")] + public bool CanSetCustomEmojiStickerSet { get; set; } + + /// + /// True, if automatic translation of messages can be enabled in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_enable_automatic_translation")] + public bool CanEnableAutomaticTranslation { get; set; } + + /// + /// True, if speech recognition can be used for video note and voice note messages by all users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_recognize_speech")] + public bool CanRecognizeSpeech { get; set; } + + /// + /// True, if sponsored messages can be disabled in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_disable_sponsored_messages")] + public bool CanDisableSponsoredMessages { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoostLink.cs b/TdLib.Api/Objects/ChatBoostLink.cs index 8957a48e..8befe0c1 100644 --- a/TdLib.Api/Objects/ChatBoostLink.cs +++ b/TdLib.Api/Objects/ChatBoostLink.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains an HTTPS link to boost a chat /// - public static partial class TdApi + public partial class ChatBoostLink : Object { /// - /// Contains an HTTPS link to boost a chat + /// Data type for serialization /// - public partial class ChatBoostLink : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostLink"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } + /// + /// The link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } - /// - /// True, if the link will work for non-members of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_public")] - public bool IsPublic { get; set; } - } + /// + /// True, if the link will work for non-members of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_public")] + public bool IsPublic { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoostLinkInfo.cs b/TdLib.Api/Objects/ChatBoostLinkInfo.cs index 1aabba42..efb0465e 100644 --- a/TdLib.Api/Objects/ChatBoostLinkInfo.cs +++ b/TdLib.Api/Objects/ChatBoostLinkInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a link to boost a chat /// - public static partial class TdApi + public partial class ChatBoostLinkInfo : Object { /// - /// Contains information about a link to boost a chat + /// Data type for serialization /// - public partial class ChatBoostLinkInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostLinkInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostLinkInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the link will work for non-members of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_public")] - public bool IsPublic { get; set; } + /// + /// True, if the link will work for non-members of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_public")] + public bool IsPublic { get; set; } - /// - /// Identifier of the chat to which the link points; 0 if the chat isn't found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat to which the link points; 0 if the chat isn't found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoostSlot.cs b/TdLib.Api/Objects/ChatBoostSlot.cs index 3ae43dbb..3a8f7bba 100644 --- a/TdLib.Api/Objects/ChatBoostSlot.cs +++ b/TdLib.Api/Objects/ChatBoostSlot.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a slot for chat boost /// - public static partial class TdApi + public partial class ChatBoostSlot : Object { /// - /// Describes a slot for chat boost + /// Data type for serialization /// - public partial class ChatBoostSlot : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostSlot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostSlot"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the slot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("slot_id")] - public int SlotId { get; set; } + /// + /// Unique identifier of the slot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("slot_id")] + public int SlotId { get; set; } - /// - /// Identifier of the currently boosted chat; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currently_boosted_chat_id")] - public long CurrentlyBoostedChatId { get; set; } + /// + /// Identifier of the currently boosted chat; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currently_boosted_chat_id")] + public long CurrentlyBoostedChatId { get; set; } - /// - /// Point in time (Unix timestamp) when the chat was boosted; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } + /// + /// Point in time (Unix timestamp) when the chat was boosted; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } - /// - /// Point in time (Unix timestamp) when the boost will expire - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } + /// + /// Point in time (Unix timestamp) when the boost will expire + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } - /// - /// Point in time (Unix timestamp) after which the boost can be used for another chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cooldown_until_date")] - public int CooldownUntilDate { get; set; } - } + /// + /// Point in time (Unix timestamp) after which the boost can be used for another chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cooldown_until_date")] + public int CooldownUntilDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoostSlots.cs b/TdLib.Api/Objects/ChatBoostSlots.cs index 1ce383e2..c67c6a42 100644 --- a/TdLib.Api/Objects/ChatBoostSlots.cs +++ b/TdLib.Api/Objects/ChatBoostSlots.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat boost slots /// - public static partial class TdApi + public partial class ChatBoostSlots : Object { /// - /// Contains a list of chat boost slots + /// Data type for serialization /// - public partial class ChatBoostSlots : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostSlots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostSlots"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of boost slots - /// - [JsonProperty("slots", ItemConverterType = typeof(Converter))] - public ChatBoostSlot[] Slots { get; set; } - } + /// + /// List of boost slots + /// + [JsonProperty("slots", ItemConverterType = typeof(Converter))] + public ChatBoostSlot[] Slots { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatBoostSourceGiftCode.cs b/TdLib.Api/Objects/ChatBoostSourceGiftCode.cs index b5bb0183..209d46eb 100644 --- a/TdLib.Api/Objects/ChatBoostSourceGiftCode.cs +++ b/TdLib.Api/Objects/ChatBoostSourceGiftCode.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatBoostSource : Object { - public partial class ChatBoostSource : Object + /// + /// Describes source of a chat boost + /// + public class ChatBoostSourceGiftCode : ChatBoostSource { /// - /// Describes source of a chat boost + /// Data type for serialization /// - public class ChatBoostSourceGiftCode : ChatBoostSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostSourceGiftCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostSourceGiftCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a user, for which the gift code was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of a user, for which the gift code was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_code")] - public string GiftCode { get; set; } - } + /// + /// The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_code")] + public string GiftCode { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatBoostSourceGiveaway.cs b/TdLib.Api/Objects/ChatBoostSourceGiveaway.cs index c30328cd..84287274 100644 --- a/TdLib.Api/Objects/ChatBoostSourceGiveaway.cs +++ b/TdLib.Api/Objects/ChatBoostSourceGiveaway.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatBoostSource : Object { - public partial class ChatBoostSource : Object + /// + /// The chat created a giveaway + /// + public class ChatBoostSourceGiveaway : ChatBoostSource { /// - /// The chat created a giveaway + /// Data type for serialization /// - public class ChatBoostSourceGiveaway : ChatBoostSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostSourceGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostSourceGiveaway"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a user who won in the giveaway; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of a user who won in the giveaway; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise; for Telegram Premium giveways only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_code")] - public string GiftCode { get; set; } + /// + /// The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise; for Telegram Premium giveways only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_code")] + public string GiftCode { get; set; } - /// - /// Number of Telegram Stars distributed among winners of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars distributed among winners of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the corresponding giveaway message; can be an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("giveaway_message_id")] - public long GiveawayMessageId { get; set; } + /// + /// Identifier of the corresponding giveaway message; can be an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("giveaway_message_id")] + public long GiveawayMessageId { get; set; } - /// - /// True, if the winner for the corresponding giveaway prize wasn't chosen, because there were not enough participants - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_unclaimed")] - public bool IsUnclaimed { get; set; } - } + /// + /// True, if the winner for the corresponding giveaway prize wasn't chosen, because there were not enough participants + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_unclaimed")] + public bool IsUnclaimed { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatBoostSourcePremium.cs b/TdLib.Api/Objects/ChatBoostSourcePremium.cs index 24e72bf1..6bcd5172 100644 --- a/TdLib.Api/Objects/ChatBoostSourcePremium.cs +++ b/TdLib.Api/Objects/ChatBoostSourcePremium.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatBoostSource : Object { - public partial class ChatBoostSource : Object + /// + /// A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat + /// + public class ChatBoostSourcePremium : ChatBoostSource { /// - /// A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat + /// Data type for serialization /// - public class ChatBoostSourcePremium : ChatBoostSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostSourcePremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostSourcePremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatBoostStatus.cs b/TdLib.Api/Objects/ChatBoostStatus.cs index a4367f2b..873546cf 100644 --- a/TdLib.Api/Objects/ChatBoostStatus.cs +++ b/TdLib.Api/Objects/ChatBoostStatus.cs @@ -2,98 +2,97 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes current boost status of a chat /// - public static partial class TdApi + public partial class ChatBoostStatus : Object { /// - /// Describes current boost status of a chat + /// Data type for serialization /// - public partial class ChatBoostStatus : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatBoostStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatBoostStatus"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An HTTP URL, which can be used to boost the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boost_url")] - public string BoostUrl { get; set; } + /// + /// An HTTP URL, which can be used to boost the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boost_url")] + public string BoostUrl { get; set; } - /// - /// Identifiers of boost slots of the current user applied to the chat - /// - [JsonProperty("applied_slot_ids", ItemConverterType = typeof(Converter))] - public int[] AppliedSlotIds { get; set; } + /// + /// Identifiers of boost slots of the current user applied to the chat + /// + [JsonProperty("applied_slot_ids", ItemConverterType = typeof(Converter))] + public int[] AppliedSlotIds { get; set; } - /// - /// Current boost level of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("level")] - public int Level { get; set; } + /// + /// Current boost level of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("level")] + public int Level { get; set; } - /// - /// The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn't an administrator in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_code_boost_count")] - public int GiftCodeBoostCount { get; set; } + /// + /// The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn't an administrator in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_code_boost_count")] + public int GiftCodeBoostCount { get; set; } - /// - /// The number of boosts received by the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boost_count")] - public int BoostCount { get; set; } + /// + /// The number of boosts received by the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boost_count")] + public int BoostCount { get; set; } - /// - /// The number of boosts added to reach the current level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("current_level_boost_count")] - public int CurrentLevelBoostCount { get; set; } + /// + /// The number of boosts added to reach the current level + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("current_level_boost_count")] + public int CurrentLevelBoostCount { get; set; } - /// - /// The number of boosts needed to reach the next level; 0 if the next level isn't available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_level_boost_count")] - public int NextLevelBoostCount { get; set; } + /// + /// The number of boosts needed to reach the next level; 0 if the next level isn't available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_level_boost_count")] + public int NextLevelBoostCount { get; set; } - /// - /// Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_member_count")] - public int PremiumMemberCount { get; set; } + /// + /// Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_member_count")] + public int PremiumMemberCount { get; set; } - /// - /// A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_member_percentage")] - public double? PremiumMemberPercentage { get; set; } + /// + /// A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_member_percentage")] + public double? PremiumMemberPercentage { get; set; } - /// - /// The list of prepaid giveaways available for the chat; only for chat administrators - /// - [JsonProperty("prepaid_giveaways", ItemConverterType = typeof(Converter))] - public PrepaidGiveaway[] PrepaidGiveaways { get; set; } - } + /// + /// The list of prepaid giveaways available for the chat; only for chat administrators + /// + [JsonProperty("prepaid_giveaways", ItemConverterType = typeof(Converter))] + public PrepaidGiveaway[] PrepaidGiveaways { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatEvent.cs b/TdLib.Api/Objects/ChatEvent.cs index 793665f0..5547f2b1 100644 --- a/TdLib.Api/Objects/ChatEvent.cs +++ b/TdLib.Api/Objects/ChatEvent.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a chat event /// - public static partial class TdApi + public partial class ChatEvent : Object { /// - /// Represents a chat event + /// Data type for serialization /// - public partial class ChatEvent : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEvent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEvent"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat event identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Chat event identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Point in time (Unix timestamp) when the event happened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the event happened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Identifier of the user or chat who performed the action - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_id")] - public MessageSender MemberId { get; set; } + /// + /// Identifier of the user or chat who performed the action + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_id")] + public MessageSender MemberId { get; set; } - /// - /// The action - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action")] - public ChatEventAction Action { get; set; } - } + /// + /// The action + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("action")] + public ChatEventAction Action { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatEventAccentColorChanged.cs b/TdLib.Api/Objects/ChatEventAccentColorChanged.cs index 3ceb714c..b893b544 100644 --- a/TdLib.Api/Objects/ChatEventAccentColorChanged.cs +++ b/TdLib.Api/Objects/ChatEventAccentColorChanged.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat accent color or background custom emoji were changed + /// + public class ChatEventAccentColorChanged : ChatEventAction { /// - /// The chat accent color or background custom emoji were changed + /// Data type for serialization /// - public class ChatEventAccentColorChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventAccentColorChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventAccentColorChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous identifier of chat accent color - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_accent_color_id")] - public int OldAccentColorId { get; set; } + /// + /// Previous identifier of chat accent color + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_accent_color_id")] + public int OldAccentColorId { get; set; } - /// - /// Previous identifier of the custom emoji; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("old_background_custom_emoji_id")] - public long OldBackgroundCustomEmojiId { get; set; } + /// + /// Previous identifier of the custom emoji; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("old_background_custom_emoji_id")] + public long OldBackgroundCustomEmojiId { get; set; } - /// - /// New identifier of chat accent color - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_accent_color_id")] - public int NewAccentColorId { get; set; } + /// + /// New identifier of chat accent color + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_accent_color_id")] + public int NewAccentColorId { get; set; } - /// - /// New identifier of the custom emoji; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("new_background_custom_emoji_id")] - public long NewBackgroundCustomEmojiId { get; set; } - } + /// + /// New identifier of the custom emoji; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("new_background_custom_emoji_id")] + public long NewBackgroundCustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventActiveUsernamesChanged.cs b/TdLib.Api/Objects/ChatEventActiveUsernamesChanged.cs index 61d0349f..5d5400a1 100644 --- a/TdLib.Api/Objects/ChatEventActiveUsernamesChanged.cs +++ b/TdLib.Api/Objects/ChatEventActiveUsernamesChanged.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat active usernames were changed + /// + public class ChatEventActiveUsernamesChanged : ChatEventAction { /// - /// The chat active usernames were changed + /// Data type for serialization /// - public class ChatEventActiveUsernamesChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventActiveUsernamesChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventActiveUsernamesChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous list of active usernames - /// - [JsonProperty("old_usernames", ItemConverterType = typeof(Converter))] - public string[] OldUsernames { get; set; } + /// + /// Previous list of active usernames + /// + [JsonProperty("old_usernames", ItemConverterType = typeof(Converter))] + public string[] OldUsernames { get; set; } - /// - /// New list of active usernames - /// - [JsonProperty("new_usernames", ItemConverterType = typeof(Converter))] - public string[] NewUsernames { get; set; } - } + /// + /// New list of active usernames + /// + [JsonProperty("new_usernames", ItemConverterType = typeof(Converter))] + public string[] NewUsernames { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventAutomaticTranslationToggled.cs b/TdLib.Api/Objects/ChatEventAutomaticTranslationToggled.cs index 50e37324..809872f3 100644 --- a/TdLib.Api/Objects/ChatEventAutomaticTranslationToggled.cs +++ b/TdLib.Api/Objects/ChatEventAutomaticTranslationToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The has_automatic_translation setting of a channel was toggled + /// + public class ChatEventAutomaticTranslationToggled : ChatEventAction { /// - /// The has_automatic_translation setting of a channel was toggled + /// Data type for serialization /// - public class ChatEventAutomaticTranslationToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventAutomaticTranslationToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventAutomaticTranslationToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of has_automatic_translation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_automatic_translation")] - public bool HasAutomaticTranslation { get; set; } - } + /// + /// New value of has_automatic_translation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_automatic_translation")] + public bool HasAutomaticTranslation { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventAvailableReactionsChanged.cs b/TdLib.Api/Objects/ChatEventAvailableReactionsChanged.cs index 7aff0f4f..322f662b 100644 --- a/TdLib.Api/Objects/ChatEventAvailableReactionsChanged.cs +++ b/TdLib.Api/Objects/ChatEventAvailableReactionsChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat available reactions were changed + /// + public class ChatEventAvailableReactionsChanged : ChatEventAction { /// - /// The chat available reactions were changed + /// Data type for serialization /// - public class ChatEventAvailableReactionsChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventAvailableReactionsChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventAvailableReactionsChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous chat available reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_available_reactions")] - public ChatAvailableReactions OldAvailableReactions { get; set; } + /// + /// Previous chat available reactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_available_reactions")] + public ChatAvailableReactions OldAvailableReactions { get; set; } - /// - /// New chat available reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_available_reactions")] - public ChatAvailableReactions NewAvailableReactions { get; set; } - } + /// + /// New chat available reactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_available_reactions")] + public ChatAvailableReactions NewAvailableReactions { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventBackgroundChanged.cs b/TdLib.Api/Objects/ChatEventBackgroundChanged.cs index 9fe7ac23..5c01e8b4 100644 --- a/TdLib.Api/Objects/ChatEventBackgroundChanged.cs +++ b/TdLib.Api/Objects/ChatEventBackgroundChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat background was changed + /// + public class ChatEventBackgroundChanged : ChatEventAction { /// - /// The chat background was changed + /// Data type for serialization /// - public class ChatEventBackgroundChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventBackgroundChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventBackgroundChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous background; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_background")] - public ChatBackground OldBackground { get; set; } + /// + /// Previous background; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_background")] + public ChatBackground OldBackground { get; set; } - /// - /// New background; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_background")] - public ChatBackground NewBackground { get; set; } - } + /// + /// New background; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_background")] + public ChatBackground NewBackground { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventCustomEmojiStickerSetChanged.cs b/TdLib.Api/Objects/ChatEventCustomEmojiStickerSetChanged.cs index f3c9cd45..f5acc43c 100644 --- a/TdLib.Api/Objects/ChatEventCustomEmojiStickerSetChanged.cs +++ b/TdLib.Api/Objects/ChatEventCustomEmojiStickerSetChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The supergroup sticker set with allowed custom emoji was changed + /// + public class ChatEventCustomEmojiStickerSetChanged : ChatEventAction { /// - /// The supergroup sticker set with allowed custom emoji was changed + /// Data type for serialization /// - public class ChatEventCustomEmojiStickerSetChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventCustomEmojiStickerSetChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventCustomEmojiStickerSetChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous identifier of the chat sticker set; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("old_sticker_set_id")] - public long OldStickerSetId { get; set; } + /// + /// Previous identifier of the chat sticker set; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("old_sticker_set_id")] + public long OldStickerSetId { get; set; } - /// - /// New identifier of the chat sticker set; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("new_sticker_set_id")] - public long NewStickerSetId { get; set; } - } + /// + /// New identifier of the chat sticker set; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("new_sticker_set_id")] + public long NewStickerSetId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventDescriptionChanged.cs b/TdLib.Api/Objects/ChatEventDescriptionChanged.cs index e6966a80..fadf09ab 100644 --- a/TdLib.Api/Objects/ChatEventDescriptionChanged.cs +++ b/TdLib.Api/Objects/ChatEventDescriptionChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat description was changed + /// + public class ChatEventDescriptionChanged : ChatEventAction { /// - /// The chat description was changed + /// Data type for serialization /// - public class ChatEventDescriptionChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventDescriptionChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventDescriptionChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous chat description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_description")] - public string OldDescription { get; set; } + /// + /// Previous chat description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_description")] + public string OldDescription { get; set; } - /// - /// New chat description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_description")] - public string NewDescription { get; set; } - } + /// + /// New chat description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_description")] + public string NewDescription { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventEmojiStatusChanged.cs b/TdLib.Api/Objects/ChatEventEmojiStatusChanged.cs index 40021414..2fbfdccd 100644 --- a/TdLib.Api/Objects/ChatEventEmojiStatusChanged.cs +++ b/TdLib.Api/Objects/ChatEventEmojiStatusChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat emoji status was changed + /// + public class ChatEventEmojiStatusChanged : ChatEventAction { /// - /// The chat emoji status was changed + /// Data type for serialization /// - public class ChatEventEmojiStatusChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventEmojiStatusChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventEmojiStatusChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous emoji status; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_emoji_status")] - public EmojiStatus OldEmojiStatus { get; set; } + /// + /// Previous emoji status; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_emoji_status")] + public EmojiStatus OldEmojiStatus { get; set; } - /// - /// New emoji status; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_emoji_status")] - public EmojiStatus NewEmojiStatus { get; set; } - } + /// + /// New emoji status; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_emoji_status")] + public EmojiStatus NewEmojiStatus { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventForumTopicCreated.cs b/TdLib.Api/Objects/ChatEventForumTopicCreated.cs index 1cc59f62..2fea477d 100644 --- a/TdLib.Api/Objects/ChatEventForumTopicCreated.cs +++ b/TdLib.Api/Objects/ChatEventForumTopicCreated.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A new forum topic was created + /// + public class ChatEventForumTopicCreated : ChatEventAction { /// - /// A new forum topic was created + /// Data type for serialization /// - public class ChatEventForumTopicCreated : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventForumTopicCreated"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventForumTopicCreated"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_info")] - public ForumTopicInfo TopicInfo { get; set; } - } + /// + /// Information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_info")] + public ForumTopicInfo TopicInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventForumTopicDeleted.cs b/TdLib.Api/Objects/ChatEventForumTopicDeleted.cs index 9e9876a3..59bbb1e4 100644 --- a/TdLib.Api/Objects/ChatEventForumTopicDeleted.cs +++ b/TdLib.Api/Objects/ChatEventForumTopicDeleted.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A forum topic was deleted + /// + public class ChatEventForumTopicDeleted : ChatEventAction { /// - /// A forum topic was deleted + /// Data type for serialization /// - public class ChatEventForumTopicDeleted : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventForumTopicDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventForumTopicDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_info")] - public ForumTopicInfo TopicInfo { get; set; } - } + /// + /// Information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_info")] + public ForumTopicInfo TopicInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventForumTopicEdited.cs b/TdLib.Api/Objects/ChatEventForumTopicEdited.cs index ef387924..b572c098 100644 --- a/TdLib.Api/Objects/ChatEventForumTopicEdited.cs +++ b/TdLib.Api/Objects/ChatEventForumTopicEdited.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A forum topic was edited + /// + public class ChatEventForumTopicEdited : ChatEventAction { /// - /// A forum topic was edited + /// Data type for serialization /// - public class ChatEventForumTopicEdited : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventForumTopicEdited"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventForumTopicEdited"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Old information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_topic_info")] - public ForumTopicInfo OldTopicInfo { get; set; } + /// + /// Old information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_topic_info")] + public ForumTopicInfo OldTopicInfo { get; set; } - /// - /// New information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_topic_info")] - public ForumTopicInfo NewTopicInfo { get; set; } - } + /// + /// New information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_topic_info")] + public ForumTopicInfo NewTopicInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventForumTopicPinned.cs b/TdLib.Api/Objects/ChatEventForumTopicPinned.cs index cae59527..deccb0d8 100644 --- a/TdLib.Api/Objects/ChatEventForumTopicPinned.cs +++ b/TdLib.Api/Objects/ChatEventForumTopicPinned.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A pinned forum topic was changed + /// + public class ChatEventForumTopicPinned : ChatEventAction { /// - /// A pinned forum topic was changed + /// Data type for serialization /// - public class ChatEventForumTopicPinned : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventForumTopicPinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventForumTopicPinned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the old pinned topic; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_topic_info")] - public ForumTopicInfo OldTopicInfo { get; set; } + /// + /// Information about the old pinned topic; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_topic_info")] + public ForumTopicInfo OldTopicInfo { get; set; } - /// - /// Information about the new pinned topic; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_topic_info")] - public ForumTopicInfo NewTopicInfo { get; set; } - } + /// + /// Information about the new pinned topic; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_topic_info")] + public ForumTopicInfo NewTopicInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventForumTopicToggleIsClosed.cs b/TdLib.Api/Objects/ChatEventForumTopicToggleIsClosed.cs index 8fb496b6..35f9c91c 100644 --- a/TdLib.Api/Objects/ChatEventForumTopicToggleIsClosed.cs +++ b/TdLib.Api/Objects/ChatEventForumTopicToggleIsClosed.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A forum topic was closed or reopened + /// + public class ChatEventForumTopicToggleIsClosed : ChatEventAction { /// - /// A forum topic was closed or reopened + /// Data type for serialization /// - public class ChatEventForumTopicToggleIsClosed : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventForumTopicToggleIsClosed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventForumTopicToggleIsClosed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_info")] - public ForumTopicInfo TopicInfo { get; set; } - } + /// + /// New information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_info")] + public ForumTopicInfo TopicInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventForumTopicToggleIsHidden.cs b/TdLib.Api/Objects/ChatEventForumTopicToggleIsHidden.cs index 55104d80..851802a0 100644 --- a/TdLib.Api/Objects/ChatEventForumTopicToggleIsHidden.cs +++ b/TdLib.Api/Objects/ChatEventForumTopicToggleIsHidden.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The General forum topic was hidden or unhidden + /// + public class ChatEventForumTopicToggleIsHidden : ChatEventAction { /// - /// The General forum topic was hidden or unhidden + /// Data type for serialization /// - public class ChatEventForumTopicToggleIsHidden : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventForumTopicToggleIsHidden"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventForumTopicToggleIsHidden"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_info")] - public ForumTopicInfo TopicInfo { get; set; } - } + /// + /// New information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_info")] + public ForumTopicInfo TopicInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventHasAggressiveAntiSpamEnabledToggled.cs b/TdLib.Api/Objects/ChatEventHasAggressiveAntiSpamEnabledToggled.cs index 288f8232..749c9d35 100644 --- a/TdLib.Api/Objects/ChatEventHasAggressiveAntiSpamEnabledToggled.cs +++ b/TdLib.Api/Objects/ChatEventHasAggressiveAntiSpamEnabledToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The has_aggressive_anti_spam_enabled setting of a supergroup was toggled + /// + public class ChatEventHasAggressiveAntiSpamEnabledToggled : ChatEventAction { /// - /// The has_aggressive_anti_spam_enabled setting of a supergroup was toggled + /// Data type for serialization /// - public class ChatEventHasAggressiveAntiSpamEnabledToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventHasAggressiveAntiSpamEnabledToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventHasAggressiveAntiSpamEnabledToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of has_aggressive_anti_spam_enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_aggressive_anti_spam_enabled")] - public bool HasAggressiveAntiSpamEnabled { get; set; } - } + /// + /// New value of has_aggressive_anti_spam_enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_aggressive_anti_spam_enabled")] + public bool HasAggressiveAntiSpamEnabled { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventHasProtectedContentToggled.cs b/TdLib.Api/Objects/ChatEventHasProtectedContentToggled.cs index f87c9526..a1f8688f 100644 --- a/TdLib.Api/Objects/ChatEventHasProtectedContentToggled.cs +++ b/TdLib.Api/Objects/ChatEventHasProtectedContentToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The has_protected_content setting of a chat was toggled + /// + public class ChatEventHasProtectedContentToggled : ChatEventAction { /// - /// The has_protected_content setting of a channel was toggled + /// Data type for serialization /// - public class ChatEventHasProtectedContentToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventHasProtectedContentToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventHasProtectedContentToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of has_protected_content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_protected_content")] - public bool HasProtectedContent { get; set; } - } + /// + /// New value of has_protected_content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_protected_content")] + public bool HasProtectedContent { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventInviteLinkDeleted.cs b/TdLib.Api/Objects/ChatEventInviteLinkDeleted.cs index 6d5e1770..6f9f3385 100644 --- a/TdLib.Api/Objects/ChatEventInviteLinkDeleted.cs +++ b/TdLib.Api/Objects/ChatEventInviteLinkDeleted.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A revoked chat invite link was deleted + /// + public class ChatEventInviteLinkDeleted : ChatEventAction { /// - /// A revoked chat invite link was deleted + /// Data type for serialization /// - public class ChatEventInviteLinkDeleted : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventInviteLinkDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventInviteLinkDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } - } + /// + /// The invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventInviteLinkEdited.cs b/TdLib.Api/Objects/ChatEventInviteLinkEdited.cs index 1bf5bf3f..c92d123a 100644 --- a/TdLib.Api/Objects/ChatEventInviteLinkEdited.cs +++ b/TdLib.Api/Objects/ChatEventInviteLinkEdited.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A chat invite link was edited + /// + public class ChatEventInviteLinkEdited : ChatEventAction { /// - /// A chat invite link was edited + /// Data type for serialization /// - public class ChatEventInviteLinkEdited : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventInviteLinkEdited"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventInviteLinkEdited"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous information about the invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_invite_link")] - public ChatInviteLink OldInviteLink { get; set; } + /// + /// Previous information about the invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_invite_link")] + public ChatInviteLink OldInviteLink { get; set; } - /// - /// New information about the invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_invite_link")] - public ChatInviteLink NewInviteLink { get; set; } - } + /// + /// New information about the invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_invite_link")] + public ChatInviteLink NewInviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventInviteLinkRevoked.cs b/TdLib.Api/Objects/ChatEventInviteLinkRevoked.cs index a87cc276..ca603c1c 100644 --- a/TdLib.Api/Objects/ChatEventInviteLinkRevoked.cs +++ b/TdLib.Api/Objects/ChatEventInviteLinkRevoked.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A chat invite link was revoked + /// + public class ChatEventInviteLinkRevoked : ChatEventAction { /// - /// A chat invite link was revoked + /// Data type for serialization /// - public class ChatEventInviteLinkRevoked : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventInviteLinkRevoked"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventInviteLinkRevoked"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } - } + /// + /// The invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventInvitesToggled.cs b/TdLib.Api/Objects/ChatEventInvitesToggled.cs index 145f91ad..70b749d6 100644 --- a/TdLib.Api/Objects/ChatEventInvitesToggled.cs +++ b/TdLib.Api/Objects/ChatEventInvitesToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The can_invite_users permission of a supergroup chat was toggled + /// + public class ChatEventInvitesToggled : ChatEventAction { /// - /// The can_invite_users permission of a supergroup chat was toggled + /// Data type for serialization /// - public class ChatEventInvitesToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventInvitesToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventInvitesToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of can_invite_users permission - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_invite_users")] - public bool CanInviteUsers { get; set; } - } + /// + /// New value of can_invite_users permission + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_invite_users")] + public bool CanInviteUsers { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventIsAllHistoryAvailableToggled.cs b/TdLib.Api/Objects/ChatEventIsAllHistoryAvailableToggled.cs index dcf4c95f..3863bec4 100644 --- a/TdLib.Api/Objects/ChatEventIsAllHistoryAvailableToggled.cs +++ b/TdLib.Api/Objects/ChatEventIsAllHistoryAvailableToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The is_all_history_available setting of a supergroup was toggled + /// + public class ChatEventIsAllHistoryAvailableToggled : ChatEventAction { /// - /// The is_all_history_available setting of a supergroup was toggled + /// Data type for serialization /// - public class ChatEventIsAllHistoryAvailableToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventIsAllHistoryAvailableToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventIsAllHistoryAvailableToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of is_all_history_available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_all_history_available")] - public bool IsAllHistoryAvailable { get; set; } - } + /// + /// New value of is_all_history_available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_all_history_available")] + public bool IsAllHistoryAvailable { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventIsForumToggled.cs b/TdLib.Api/Objects/ChatEventIsForumToggled.cs index dd524333..d25d4383 100644 --- a/TdLib.Api/Objects/ChatEventIsForumToggled.cs +++ b/TdLib.Api/Objects/ChatEventIsForumToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The is_forum setting of a supergroup was toggled + /// + public class ChatEventIsForumToggled : ChatEventAction { /// - /// The is_forum setting of a channel was toggled + /// Data type for serialization /// - public class ChatEventIsForumToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventIsForumToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventIsForumToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of is_forum - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_forum")] - public bool IsForum { get; set; } - } + /// + /// New value of is_forum + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_forum")] + public bool IsForum { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventLinkedChatChanged.cs b/TdLib.Api/Objects/ChatEventLinkedChatChanged.cs index 2121eb2f..86887293 100644 --- a/TdLib.Api/Objects/ChatEventLinkedChatChanged.cs +++ b/TdLib.Api/Objects/ChatEventLinkedChatChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The linked chat of a supergroup was changed + /// + public class ChatEventLinkedChatChanged : ChatEventAction { /// - /// The linked chat of a supergroup was changed + /// Data type for serialization /// - public class ChatEventLinkedChatChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventLinkedChatChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventLinkedChatChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous supergroup linked chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_linked_chat_id")] - public long OldLinkedChatId { get; set; } + /// + /// Previous supergroup linked chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_linked_chat_id")] + public long OldLinkedChatId { get; set; } - /// - /// New supergroup linked chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_linked_chat_id")] - public long NewLinkedChatId { get; set; } - } + /// + /// New supergroup linked chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_linked_chat_id")] + public long NewLinkedChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventLocationChanged.cs b/TdLib.Api/Objects/ChatEventLocationChanged.cs index ba67fa37..f4133adf 100644 --- a/TdLib.Api/Objects/ChatEventLocationChanged.cs +++ b/TdLib.Api/Objects/ChatEventLocationChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The supergroup location was changed + /// + public class ChatEventLocationChanged : ChatEventAction { /// - /// The supergroup location was changed + /// Data type for serialization /// - public class ChatEventLocationChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventLocationChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventLocationChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous location; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_location")] - public ChatLocation OldLocation { get; set; } + /// + /// Previous location; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_location")] + public ChatLocation OldLocation { get; set; } - /// - /// New location; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_location")] - public ChatLocation NewLocation { get; set; } - } + /// + /// New location; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_location")] + public ChatLocation NewLocation { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventLogFilters.cs b/TdLib.Api/Objects/ChatEventLogFilters.cs index f658ce48..51ea73e3 100644 --- a/TdLib.Api/Objects/ChatEventLogFilters.cs +++ b/TdLib.Api/Objects/ChatEventLogFilters.cs @@ -2,135 +2,134 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a set of filters used to obtain a chat event log /// - public static partial class TdApi + public partial class ChatEventLogFilters : Object { /// - /// Represents a set of filters used to obtain a chat event log - /// - public partial class ChatEventLogFilters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventLogFilters"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// True, if message edits need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_edits")] - public bool MessageEdits { get; set; } - - /// - /// True, if message deletions need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_deletions")] - public bool MessageDeletions { get; set; } - - /// - /// True, if pin/unpin events need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_pins")] - public bool MessagePins { get; set; } - - /// - /// True, if members joining events need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_joins")] - public bool MemberJoins { get; set; } - - /// - /// True, if members leaving events need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_leaves")] - public bool MemberLeaves { get; set; } - - /// - /// True, if invited member events need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_invites")] - public bool MemberInvites { get; set; } - - /// - /// True, if member promotion/demotion events need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_promotions")] - public bool MemberPromotions { get; set; } - - /// - /// True, if member restricted/unrestricted/banned/unbanned events need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_restrictions")] - public bool MemberRestrictions { get; set; } - - /// - /// True, if member tag and custom title change events need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_tag_changes")] - public bool MemberTagChanges { get; set; } - - /// - /// True, if changes in chat information need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info_changes")] - public bool InfoChanges { get; set; } - - /// - /// True, if changes in chat settings need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("setting_changes")] - public bool SettingChanges { get; set; } - - /// - /// True, if changes to invite links need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link_changes")] - public bool InviteLinkChanges { get; set; } - - /// - /// True, if video chat actions need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_chat_changes")] - public bool VideoChatChanges { get; set; } - - /// - /// True, if forum-related actions need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_changes")] - public bool ForumChanges { get; set; } - - /// - /// True, if subscription extensions need to be returned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_extensions")] - public bool SubscriptionExtensions { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventLogFilters"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if message edits need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_edits")] + public bool MessageEdits { get; set; } + + /// + /// True, if message deletions need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_deletions")] + public bool MessageDeletions { get; set; } + + /// + /// True, if pin/unpin events need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_pins")] + public bool MessagePins { get; set; } + + /// + /// True, if members joining events need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_joins")] + public bool MemberJoins { get; set; } + + /// + /// True, if members leaving events need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_leaves")] + public bool MemberLeaves { get; set; } + + /// + /// True, if invited member events need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_invites")] + public bool MemberInvites { get; set; } + + /// + /// True, if member promotion/demotion events need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_promotions")] + public bool MemberPromotions { get; set; } + + /// + /// True, if member restricted/unrestricted/banned/unbanned events need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_restrictions")] + public bool MemberRestrictions { get; set; } + + /// + /// True, if member tag and custom title change events need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_tag_changes")] + public bool MemberTagChanges { get; set; } + + /// + /// True, if changes in chat information need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info_changes")] + public bool InfoChanges { get; set; } + + /// + /// True, if changes in chat settings need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("setting_changes")] + public bool SettingChanges { get; set; } + + /// + /// True, if changes to invite links need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link_changes")] + public bool InviteLinkChanges { get; set; } + + /// + /// True, if video chat actions need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_chat_changes")] + public bool VideoChatChanges { get; set; } + + /// + /// True, if forum-related actions need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_changes")] + public bool ForumChanges { get; set; } + + /// + /// True, if subscription extensions need to be returned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_extensions")] + public bool SubscriptionExtensions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatEventMemberInvited.cs b/TdLib.Api/Objects/ChatEventMemberInvited.cs index e097ff52..a7a61d96 100644 --- a/TdLib.Api/Objects/ChatEventMemberInvited.cs +++ b/TdLib.Api/Objects/ChatEventMemberInvited.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A new chat member was invited + /// + public class ChatEventMemberInvited : ChatEventAction { /// - /// A new chat member was invited + /// Data type for serialization /// - public class ChatEventMemberInvited : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberInvited"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberInvited"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New member user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// New member user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// New member status - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public ChatMemberStatus Status { get; set; } - } + /// + /// New member status + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public ChatMemberStatus Status { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberJoined.cs b/TdLib.Api/Objects/ChatEventMemberJoined.cs index 2900c232..1feb5326 100644 --- a/TdLib.Api/Objects/ChatEventMemberJoined.cs +++ b/TdLib.Api/Objects/ChatEventMemberJoined.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A new member joined the chat + /// + public class ChatEventMemberJoined : ChatEventAction { /// - /// A new member joined the chat + /// Data type for serialization /// - public class ChatEventMemberJoined : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberJoined"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberJoined"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberJoinedByInviteLink.cs b/TdLib.Api/Objects/ChatEventMemberJoinedByInviteLink.cs index 3c1ac6ff..e1361912 100644 --- a/TdLib.Api/Objects/ChatEventMemberJoinedByInviteLink.cs +++ b/TdLib.Api/Objects/ChatEventMemberJoinedByInviteLink.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A new member joined the chat via an invite link + /// + public class ChatEventMemberJoinedByInviteLink : ChatEventAction { /// - /// A new member joined the chat via an invite link + /// Data type for serialization /// - public class ChatEventMemberJoinedByInviteLink : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberJoinedByInviteLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberJoinedByInviteLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link used to join the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } + /// + /// Invite link used to join the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } - /// - /// True, if the user has joined the chat using an invite link for a chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_chat_folder_invite_link")] - public bool ViaChatFolderInviteLink { get; set; } - } + /// + /// True, if the user has joined the chat using an invite link for a chat folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_chat_folder_invite_link")] + public bool ViaChatFolderInviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberJoinedByRequest.cs b/TdLib.Api/Objects/ChatEventMemberJoinedByRequest.cs index 02e4d3ad..caa33ac1 100644 --- a/TdLib.Api/Objects/ChatEventMemberJoinedByRequest.cs +++ b/TdLib.Api/Objects/ChatEventMemberJoinedByRequest.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A new member was accepted to the chat by an administrator + /// + public class ChatEventMemberJoinedByRequest : ChatEventAction { /// - /// A new member was accepted to the chat by an administrator + /// Data type for serialization /// - public class ChatEventMemberJoinedByRequest : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberJoinedByRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberJoinedByRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the chat administrator, approved user join request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("approver_user_id")] - public long ApproverUserId { get; set; } + /// + /// User identifier of the chat administrator, approved user join request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("approver_user_id")] + public long ApproverUserId { get; set; } - /// - /// Invite link used to join the chat; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } - } + /// + /// Invite link used to join the chat; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberLeft.cs b/TdLib.Api/Objects/ChatEventMemberLeft.cs index 6b7d2031..a1adeef3 100644 --- a/TdLib.Api/Objects/ChatEventMemberLeft.cs +++ b/TdLib.Api/Objects/ChatEventMemberLeft.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A member left the chat + /// + public class ChatEventMemberLeft : ChatEventAction { /// - /// A member left the chat + /// Data type for serialization /// - public class ChatEventMemberLeft : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberLeft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberLeft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberPromoted.cs b/TdLib.Api/Objects/ChatEventMemberPromoted.cs index dc7e4b90..ed8ac634 100644 --- a/TdLib.Api/Objects/ChatEventMemberPromoted.cs +++ b/TdLib.Api/Objects/ChatEventMemberPromoted.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A chat member has gained/lost administrator status, or the list of their administrator privileges has changed + /// + public class ChatEventMemberPromoted : ChatEventAction { /// - /// A chat member has gained/lost administrator status, or the list of their administrator privileges has changed + /// Data type for serialization /// - public class ChatEventMemberPromoted : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberPromoted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberPromoted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Affected chat member user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Affected chat member user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Previous status of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_status")] - public ChatMemberStatus OldStatus { get; set; } + /// + /// Previous status of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_status")] + public ChatMemberStatus OldStatus { get; set; } - /// - /// New status of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_status")] - public ChatMemberStatus NewStatus { get; set; } - } + /// + /// New status of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_status")] + public ChatMemberStatus NewStatus { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberRestricted.cs b/TdLib.Api/Objects/ChatEventMemberRestricted.cs index 233b7435..73a14991 100644 --- a/TdLib.Api/Objects/ChatEventMemberRestricted.cs +++ b/TdLib.Api/Objects/ChatEventMemberRestricted.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed + /// + public class ChatEventMemberRestricted : ChatEventAction { /// - /// A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed + /// Data type for serialization /// - public class ChatEventMemberRestricted : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Affected chat member identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_id")] - public MessageSender MemberId { get; set; } + /// + /// Affected chat member identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_id")] + public MessageSender MemberId { get; set; } - /// - /// Previous status of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_status")] - public ChatMemberStatus OldStatus { get; set; } + /// + /// Previous status of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_status")] + public ChatMemberStatus OldStatus { get; set; } - /// - /// New status of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_status")] - public ChatMemberStatus NewStatus { get; set; } - } + /// + /// New status of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_status")] + public ChatMemberStatus NewStatus { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberSubscriptionExtended.cs b/TdLib.Api/Objects/ChatEventMemberSubscriptionExtended.cs index 492550c8..982df4ff 100644 --- a/TdLib.Api/Objects/ChatEventMemberSubscriptionExtended.cs +++ b/TdLib.Api/Objects/ChatEventMemberSubscriptionExtended.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A chat member extended their subscription to the chat + /// + public class ChatEventMemberSubscriptionExtended : ChatEventAction { /// - /// A chat member extended their subscription to the chat + /// Data type for serialization /// - public class ChatEventMemberSubscriptionExtended : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberSubscriptionExtended"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberSubscriptionExtended"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Affected chat member user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Affected chat member user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Previous status of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_status")] - public ChatMemberStatus OldStatus { get; set; } + /// + /// Previous status of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_status")] + public ChatMemberStatus OldStatus { get; set; } - /// - /// New status of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_status")] - public ChatMemberStatus NewStatus { get; set; } - } + /// + /// New status of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_status")] + public ChatMemberStatus NewStatus { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMemberTagChanged.cs b/TdLib.Api/Objects/ChatEventMemberTagChanged.cs index 3aae9f15..e66f71b1 100644 --- a/TdLib.Api/Objects/ChatEventMemberTagChanged.cs +++ b/TdLib.Api/Objects/ChatEventMemberTagChanged.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A chat member tag has been changed + /// + public class ChatEventMemberTagChanged : ChatEventAction { /// - /// A chat member tag has been changed + /// Data type for serialization /// - public class ChatEventMemberTagChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMemberTagChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMemberTagChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Affected chat member user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Affected chat member user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Previous tag of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_tag")] - public string OldTag { get; set; } + /// + /// Previous tag of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_tag")] + public string OldTag { get; set; } - /// - /// New tag of the chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_tag")] - public string NewTag { get; set; } - } + /// + /// New tag of the chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_tag")] + public string NewTag { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMessageAutoDeleteTimeChanged.cs b/TdLib.Api/Objects/ChatEventMessageAutoDeleteTimeChanged.cs index b251dace..0271d100 100644 --- a/TdLib.Api/Objects/ChatEventMessageAutoDeleteTimeChanged.cs +++ b/TdLib.Api/Objects/ChatEventMessageAutoDeleteTimeChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The message auto-delete timer was changed + /// + public class ChatEventMessageAutoDeleteTimeChanged : ChatEventAction { /// - /// The message auto-delete timer was changed + /// Data type for serialization /// - public class ChatEventMessageAutoDeleteTimeChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMessageAutoDeleteTimeChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMessageAutoDeleteTimeChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous value of message_auto_delete_time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_message_auto_delete_time")] - public int OldMessageAutoDeleteTime { get; set; } + /// + /// Previous value of message_auto_delete_time + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_message_auto_delete_time")] + public int OldMessageAutoDeleteTime { get; set; } - /// - /// New value of message_auto_delete_time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_message_auto_delete_time")] - public int NewMessageAutoDeleteTime { get; set; } - } + /// + /// New value of message_auto_delete_time + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_message_auto_delete_time")] + public int NewMessageAutoDeleteTime { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMessageDeleted.cs b/TdLib.Api/Objects/ChatEventMessageDeleted.cs index 8b5880f7..29b5126e 100644 --- a/TdLib.Api/Objects/ChatEventMessageDeleted.cs +++ b/TdLib.Api/Objects/ChatEventMessageDeleted.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A message was deleted + /// + public class ChatEventMessageDeleted : ChatEventAction { /// - /// A message was deleted + /// Data type for serialization /// - public class ChatEventMessageDeleted : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMessageDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMessageDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// Deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// True, if the message deletion can be reported via reportSupergroupAntiSpamFalsePositive - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_report_anti_spam_false_positive")] - public bool CanReportAntiSpamFalsePositive { get; set; } - } + /// + /// True, if the message deletion can be reported via reportSupergroupAntiSpamFalsePositive + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_report_anti_spam_false_positive")] + public bool CanReportAntiSpamFalsePositive { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMessageEdited.cs b/TdLib.Api/Objects/ChatEventMessageEdited.cs index 1d130a3c..678c4ab4 100644 --- a/TdLib.Api/Objects/ChatEventMessageEdited.cs +++ b/TdLib.Api/Objects/ChatEventMessageEdited.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// Represents a chat event + /// + public class ChatEventMessageEdited : ChatEventAction { /// - /// Represents a chat event + /// Data type for serialization /// - public class ChatEventMessageEdited : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMessageEdited"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMessageEdited"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The original message before the edit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_message")] - public Message OldMessage { get; set; } + /// + /// The original message before the edit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_message")] + public Message OldMessage { get; set; } - /// - /// The message after it was edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_message")] - public Message NewMessage { get; set; } - } + /// + /// The message after it was edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_message")] + public Message NewMessage { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMessagePinned.cs b/TdLib.Api/Objects/ChatEventMessagePinned.cs index 2ed56fea..e5519c90 100644 --- a/TdLib.Api/Objects/ChatEventMessagePinned.cs +++ b/TdLib.Api/Objects/ChatEventMessagePinned.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A message was pinned + /// + public class ChatEventMessagePinned : ChatEventAction { /// - /// A message was pinned + /// Data type for serialization /// - public class ChatEventMessagePinned : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMessagePinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMessagePinned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } - } + /// + /// Pinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventMessageUnpinned.cs b/TdLib.Api/Objects/ChatEventMessageUnpinned.cs index 9dcc1db3..b5c97e7f 100644 --- a/TdLib.Api/Objects/ChatEventMessageUnpinned.cs +++ b/TdLib.Api/Objects/ChatEventMessageUnpinned.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A message was unpinned + /// + public class ChatEventMessageUnpinned : ChatEventAction { /// - /// A message was unpinned + /// Data type for serialization /// - public class ChatEventMessageUnpinned : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventMessageUnpinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventMessageUnpinned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unpinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } - } + /// + /// Unpinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventPermissionsChanged.cs b/TdLib.Api/Objects/ChatEventPermissionsChanged.cs index 7163e0e2..d8a426d2 100644 --- a/TdLib.Api/Objects/ChatEventPermissionsChanged.cs +++ b/TdLib.Api/Objects/ChatEventPermissionsChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat permissions were changed + /// + public class ChatEventPermissionsChanged : ChatEventAction { /// - /// The chat permissions were changed + /// Data type for serialization /// - public class ChatEventPermissionsChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventPermissionsChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventPermissionsChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous chat permissions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_permissions")] - public ChatPermissions OldPermissions { get; set; } + /// + /// Previous chat permissions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_permissions")] + public ChatPermissions OldPermissions { get; set; } - /// - /// New chat permissions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_permissions")] - public ChatPermissions NewPermissions { get; set; } - } + /// + /// New chat permissions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_permissions")] + public ChatPermissions NewPermissions { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventPhotoChanged.cs b/TdLib.Api/Objects/ChatEventPhotoChanged.cs index 3ee7d73f..9a035795 100644 --- a/TdLib.Api/Objects/ChatEventPhotoChanged.cs +++ b/TdLib.Api/Objects/ChatEventPhotoChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat photo was changed + /// + public class ChatEventPhotoChanged : ChatEventAction { /// - /// The chat photo was changed + /// Data type for serialization /// - public class ChatEventPhotoChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventPhotoChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventPhotoChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous chat photo value; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_photo")] - public ChatPhoto OldPhoto { get; set; } + /// + /// Previous chat photo value; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_photo")] + public ChatPhoto OldPhoto { get; set; } - /// - /// New chat photo value; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_photo")] - public ChatPhoto NewPhoto { get; set; } - } + /// + /// New chat photo value; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_photo")] + public ChatPhoto NewPhoto { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventPollStopped.cs b/TdLib.Api/Objects/ChatEventPollStopped.cs index 3f9d0be0..bcd2cab9 100644 --- a/TdLib.Api/Objects/ChatEventPollStopped.cs +++ b/TdLib.Api/Objects/ChatEventPollStopped.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A poll in a message was stopped + /// + public class ChatEventPollStopped : ChatEventAction { /// - /// A poll in a message was stopped + /// Data type for serialization /// - public class ChatEventPollStopped : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventPollStopped"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventPollStopped"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message with the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } - } + /// + /// The message with the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventProfileAccentColorChanged.cs b/TdLib.Api/Objects/ChatEventProfileAccentColorChanged.cs index 9b7b3689..408f3af5 100644 --- a/TdLib.Api/Objects/ChatEventProfileAccentColorChanged.cs +++ b/TdLib.Api/Objects/ChatEventProfileAccentColorChanged.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat's profile accent color or profile background custom emoji were changed + /// + public class ChatEventProfileAccentColorChanged : ChatEventAction { /// - /// The chat's profile accent color or profile background custom emoji were changed + /// Data type for serialization /// - public class ChatEventProfileAccentColorChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventProfileAccentColorChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventProfileAccentColorChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous identifier of chat's profile accent color; -1 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_profile_accent_color_id")] - public int OldProfileAccentColorId { get; set; } + /// + /// Previous identifier of chat's profile accent color; -1 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_profile_accent_color_id")] + public int OldProfileAccentColorId { get; set; } - /// - /// Previous identifier of the custom emoji; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("old_profile_background_custom_emoji_id")] - public long OldProfileBackgroundCustomEmojiId { get; set; } + /// + /// Previous identifier of the custom emoji; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("old_profile_background_custom_emoji_id")] + public long OldProfileBackgroundCustomEmojiId { get; set; } - /// - /// New identifier of chat's profile accent color; -1 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_profile_accent_color_id")] - public int NewProfileAccentColorId { get; set; } + /// + /// New identifier of chat's profile accent color; -1 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_profile_accent_color_id")] + public int NewProfileAccentColorId { get; set; } - /// - /// New identifier of the custom emoji; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("new_profile_background_custom_emoji_id")] - public long NewProfileBackgroundCustomEmojiId { get; set; } - } + /// + /// New identifier of the custom emoji; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("new_profile_background_custom_emoji_id")] + public long NewProfileBackgroundCustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventShowMessageSenderToggled.cs b/TdLib.Api/Objects/ChatEventShowMessageSenderToggled.cs index dbb9f0cf..9063db9a 100644 --- a/TdLib.Api/Objects/ChatEventShowMessageSenderToggled.cs +++ b/TdLib.Api/Objects/ChatEventShowMessageSenderToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The show_message_sender setting of a channel was toggled + /// + public class ChatEventShowMessageSenderToggled : ChatEventAction { /// - /// The show_message_sender setting of a channel was toggled + /// Data type for serialization /// - public class ChatEventShowMessageSenderToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventShowMessageSenderToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventShowMessageSenderToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of show_message_sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_message_sender")] - public bool ShowMessageSender { get; set; } - } + /// + /// New value of show_message_sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_message_sender")] + public bool ShowMessageSender { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventSignMessagesToggled.cs b/TdLib.Api/Objects/ChatEventSignMessagesToggled.cs index f3e64944..b7bdedf6 100644 --- a/TdLib.Api/Objects/ChatEventSignMessagesToggled.cs +++ b/TdLib.Api/Objects/ChatEventSignMessagesToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The sign_messages setting of a channel was toggled + /// + public class ChatEventSignMessagesToggled : ChatEventAction { /// - /// The sign_messages setting of a channel was toggled + /// Data type for serialization /// - public class ChatEventSignMessagesToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventSignMessagesToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventSignMessagesToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of sign_messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sign_messages")] - public bool SignMessages { get; set; } - } + /// + /// New value of sign_messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sign_messages")] + public bool SignMessages { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventSlowModeDelayChanged.cs b/TdLib.Api/Objects/ChatEventSlowModeDelayChanged.cs index a997a225..1cfcd2f9 100644 --- a/TdLib.Api/Objects/ChatEventSlowModeDelayChanged.cs +++ b/TdLib.Api/Objects/ChatEventSlowModeDelayChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The slow_mode_delay setting of a supergroup was changed + /// + public class ChatEventSlowModeDelayChanged : ChatEventAction { /// - /// The slow_mode_delay setting of a supergroup was changed + /// Data type for serialization /// - public class ChatEventSlowModeDelayChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventSlowModeDelayChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventSlowModeDelayChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous value of slow_mode_delay, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_slow_mode_delay")] - public int OldSlowModeDelay { get; set; } + /// + /// Previous value of slow_mode_delay, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_slow_mode_delay")] + public int OldSlowModeDelay { get; set; } - /// - /// New value of slow_mode_delay, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_slow_mode_delay")] - public int NewSlowModeDelay { get; set; } - } + /// + /// New value of slow_mode_delay, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_slow_mode_delay")] + public int NewSlowModeDelay { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventStickerSetChanged.cs b/TdLib.Api/Objects/ChatEventStickerSetChanged.cs index 4f9e3fca..83f37c28 100644 --- a/TdLib.Api/Objects/ChatEventStickerSetChanged.cs +++ b/TdLib.Api/Objects/ChatEventStickerSetChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The supergroup sticker set was changed + /// + public class ChatEventStickerSetChanged : ChatEventAction { /// - /// The supergroup sticker set was changed + /// Data type for serialization /// - public class ChatEventStickerSetChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventStickerSetChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventStickerSetChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous identifier of the chat sticker set; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("old_sticker_set_id")] - public long OldStickerSetId { get; set; } + /// + /// Previous identifier of the chat sticker set; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("old_sticker_set_id")] + public long OldStickerSetId { get; set; } - /// - /// New identifier of the chat sticker set; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("new_sticker_set_id")] - public long NewStickerSetId { get; set; } - } + /// + /// New identifier of the chat sticker set; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("new_sticker_set_id")] + public long NewStickerSetId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventTitleChanged.cs b/TdLib.Api/Objects/ChatEventTitleChanged.cs index a822d502..3a252409 100644 --- a/TdLib.Api/Objects/ChatEventTitleChanged.cs +++ b/TdLib.Api/Objects/ChatEventTitleChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat title was changed + /// + public class ChatEventTitleChanged : ChatEventAction { /// - /// The chat title was changed + /// Data type for serialization /// - public class ChatEventTitleChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventTitleChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventTitleChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_title")] - public string OldTitle { get; set; } + /// + /// Previous chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_title")] + public string OldTitle { get; set; } - /// - /// New chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_title")] - public string NewTitle { get; set; } - } + /// + /// New chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_title")] + public string NewTitle { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventUsernameChanged.cs b/TdLib.Api/Objects/ChatEventUsernameChanged.cs index 225c3837..e2340c7e 100644 --- a/TdLib.Api/Objects/ChatEventUsernameChanged.cs +++ b/TdLib.Api/Objects/ChatEventUsernameChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The chat editable username was changed + /// + public class ChatEventUsernameChanged : ChatEventAction { /// - /// The chat editable username was changed + /// Data type for serialization /// - public class ChatEventUsernameChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventUsernameChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventUsernameChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Previous chat username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_username")] - public string OldUsername { get; set; } + /// + /// Previous chat username + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_username")] + public string OldUsername { get; set; } - /// - /// New chat username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_username")] - public string NewUsername { get; set; } - } + /// + /// New chat username + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_username")] + public string NewUsername { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventVideoChatCreated.cs b/TdLib.Api/Objects/ChatEventVideoChatCreated.cs index 9d1e4b89..a2ddce90 100644 --- a/TdLib.Api/Objects/ChatEventVideoChatCreated.cs +++ b/TdLib.Api/Objects/ChatEventVideoChatCreated.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A video chat was created + /// + public class ChatEventVideoChatCreated : ChatEventAction { /// - /// A video chat was created + /// Data type for serialization /// - public class ChatEventVideoChatCreated : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventVideoChatCreated"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventVideoChatCreated"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the video chat. The video chat can be received through the method getGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Identifier of the video chat. The video chat can be received through the method getGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventVideoChatEnded.cs b/TdLib.Api/Objects/ChatEventVideoChatEnded.cs index ac831d52..9799c7f2 100644 --- a/TdLib.Api/Objects/ChatEventVideoChatEnded.cs +++ b/TdLib.Api/Objects/ChatEventVideoChatEnded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A video chat was ended + /// + public class ChatEventVideoChatEnded : ChatEventAction { /// - /// A video chat was ended + /// Data type for serialization /// - public class ChatEventVideoChatEnded : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventVideoChatEnded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventVideoChatEnded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the video chat. The video chat can be received through the method getGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Identifier of the video chat. The video chat can be received through the method getGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventVideoChatMuteNewParticipantsToggled.cs b/TdLib.Api/Objects/ChatEventVideoChatMuteNewParticipantsToggled.cs index 65aa13a6..1a619bfc 100644 --- a/TdLib.Api/Objects/ChatEventVideoChatMuteNewParticipantsToggled.cs +++ b/TdLib.Api/Objects/ChatEventVideoChatMuteNewParticipantsToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// The mute_new_participants setting of a video chat was toggled + /// + public class ChatEventVideoChatMuteNewParticipantsToggled : ChatEventAction { /// - /// The mute_new_participants setting of a video chat was toggled + /// Data type for serialization /// - public class ChatEventVideoChatMuteNewParticipantsToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventVideoChatMuteNewParticipantsToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventVideoChatMuteNewParticipantsToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value of the mute_new_participants setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_new_participants")] - public bool MuteNewParticipants { get; set; } - } + /// + /// New value of the mute_new_participants setting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_new_participants")] + public bool MuteNewParticipants { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventVideoChatParticipantIsMutedToggled.cs b/TdLib.Api/Objects/ChatEventVideoChatParticipantIsMutedToggled.cs index 9adde979..7b23fa9b 100644 --- a/TdLib.Api/Objects/ChatEventVideoChatParticipantIsMutedToggled.cs +++ b/TdLib.Api/Objects/ChatEventVideoChatParticipantIsMutedToggled.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A video chat participant was muted or unmuted + /// + public class ChatEventVideoChatParticipantIsMutedToggled : ChatEventAction { /// - /// A video chat participant was muted or unmuted + /// Data type for serialization /// - public class ChatEventVideoChatParticipantIsMutedToggled : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventVideoChatParticipantIsMutedToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventVideoChatParticipantIsMutedToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the affected group call participant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Identifier of the affected group call participant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } - /// - /// New value of is_muted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_muted")] - public bool IsMuted { get; set; } - } + /// + /// New value of is_muted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_muted")] + public bool IsMuted { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEventVideoChatParticipantVolumeLevelChanged.cs b/TdLib.Api/Objects/ChatEventVideoChatParticipantVolumeLevelChanged.cs index aa69578c..882ebe18 100644 --- a/TdLib.Api/Objects/ChatEventVideoChatParticipantVolumeLevelChanged.cs +++ b/TdLib.Api/Objects/ChatEventVideoChatParticipantVolumeLevelChanged.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatEventAction : Object { - public partial class ChatEventAction : Object + /// + /// A video chat participant volume level was changed + /// + public class ChatEventVideoChatParticipantVolumeLevelChanged : ChatEventAction { /// - /// A video chat participant volume level was changed + /// Data type for serialization /// - public class ChatEventVideoChatParticipantVolumeLevelChanged : ChatEventAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEventVideoChatParticipantVolumeLevelChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEventVideoChatParticipantVolumeLevelChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the affected group call participant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Identifier of the affected group call participant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } - /// - /// New value of volume_level; 1-20000 in hundreds of percents - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("volume_level")] - public int VolumeLevel { get; set; } - } + /// + /// New value of volume_level; 1-20000 in hundreds of percents + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("volume_level")] + public int VolumeLevel { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatEvents.cs b/TdLib.Api/Objects/ChatEvents.cs index 17ca2427..bcf8dfb6 100644 --- a/TdLib.Api/Objects/ChatEvents.cs +++ b/TdLib.Api/Objects/ChatEvents.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat events /// - public static partial class TdApi + public partial class ChatEvents : Object { /// - /// Contains a list of chat events + /// Data type for serialization /// - public partial class ChatEvents : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatEvents"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatEvents"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of events - /// - [JsonProperty("events", ItemConverterType = typeof(Converter))] - public ChatEvent[] Events { get; set; } - } + /// + /// List of events + /// + [JsonProperty("events", ItemConverterType = typeof(Converter))] + public ChatEvent[] Events { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatFolder.cs b/TdLib.Api/Objects/ChatFolder.cs index 4566480e..a7a97ecd 100644 --- a/TdLib.Api/Objects/ChatFolder.cs +++ b/TdLib.Api/Objects/ChatFolder.cs @@ -2,132 +2,131 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a folder for user chats /// - public static partial class TdApi + public partial class ChatFolder : Object { /// - /// Represents a folder for user chats - /// - public partial class ChatFolder : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatFolder"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The name of the folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public ChatFolderName Name { get; set; } - - /// - /// The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon")] - public ChatFolderIcon Icon { get; set; } - - /// - /// The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled. Can't be changed if folder tags are disabled or the current user doesn't have Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("color_id")] - public int ColorId { get; set; } - - /// - /// True, if at least one link has been created for the folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_shareable")] - public bool IsShareable { get; set; } - - /// - /// The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium - /// - [JsonProperty("pinned_chat_ids", ItemConverterType = typeof(Converter))] - public long[] PinnedChatIds { get; set; } - - /// - /// The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium - /// - [JsonProperty("included_chat_ids", ItemConverterType = typeof(Converter))] - public long[] IncludedChatIds { get; set; } - - /// - /// The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium - /// - [JsonProperty("excluded_chat_ids", ItemConverterType = typeof(Converter))] - public long[] ExcludedChatIds { get; set; } - - /// - /// True, if muted chats need to be excluded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_muted")] - public bool ExcludeMuted { get; set; } - - /// - /// True, if read chats need to be excluded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_read")] - public bool ExcludeRead { get; set; } - - /// - /// True, if archived chats need to be excluded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("exclude_archived")] - public bool ExcludeArchived { get; set; } - - /// - /// True, if contacts need to be included - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("include_contacts")] - public bool IncludeContacts { get; set; } - - /// - /// True, if non-contact users need to be included - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("include_non_contacts")] - public bool IncludeNonContacts { get; set; } - - /// - /// True, if bots need to be included - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("include_bots")] - public bool IncludeBots { get; set; } - - /// - /// True, if basic groups and supergroups need to be included - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("include_groups")] - public bool IncludeGroups { get; set; } - - /// - /// True, if channels need to be included - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("include_channels")] - public bool IncludeChannels { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatFolder"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The name of the folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public ChatFolderName Name { get; set; } + + /// + /// The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public ChatFolderIcon Icon { get; set; } + + /// + /// The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled. Can't be changed if folder tags are disabled or the current user doesn't have Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("color_id")] + public int ColorId { get; set; } + + /// + /// True, if at least one link has been created for the folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_shareable")] + public bool IsShareable { get; set; } + + /// + /// The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium + /// + [JsonProperty("pinned_chat_ids", ItemConverterType = typeof(Converter))] + public long[] PinnedChatIds { get; set; } + + /// + /// The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium + /// + [JsonProperty("included_chat_ids", ItemConverterType = typeof(Converter))] + public long[] IncludedChatIds { get; set; } + + /// + /// The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium + /// + [JsonProperty("excluded_chat_ids", ItemConverterType = typeof(Converter))] + public long[] ExcludedChatIds { get; set; } + + /// + /// True, if muted chats need to be excluded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_muted")] + public bool ExcludeMuted { get; set; } + + /// + /// True, if read chats need to be excluded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_read")] + public bool ExcludeRead { get; set; } + + /// + /// True, if archived chats need to be excluded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("exclude_archived")] + public bool ExcludeArchived { get; set; } + + /// + /// True, if contacts need to be included + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("include_contacts")] + public bool IncludeContacts { get; set; } + + /// + /// True, if non-contact users need to be included + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("include_non_contacts")] + public bool IncludeNonContacts { get; set; } + + /// + /// True, if bots need to be included + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("include_bots")] + public bool IncludeBots { get; set; } + + /// + /// True, if basic groups and supergroups need to be included + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("include_groups")] + public bool IncludeGroups { get; set; } + + /// + /// True, if channels need to be included + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("include_channels")] + public bool IncludeChannels { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatFolderIcon.cs b/TdLib.Api/Objects/ChatFolderIcon.cs index 8cb1f256..d5221d1e 100644 --- a/TdLib.Api/Objects/ChatFolderIcon.cs +++ b/TdLib.Api/Objects/ChatFolderIcon.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents an icon for a chat folder /// - public static partial class TdApi + public partial class ChatFolderIcon : Object { /// - /// Represents an icon for a chat folder + /// Data type for serialization /// - public partial class ChatFolderIcon : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatFolderIcon"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatFolderIcon"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chosen icon name for short folder representation; one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown", - /// "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work", "Airplane", "Book", "Light", "Like", "Money", "Note", "Palette" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// The chosen icon name for short folder representation; one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown", + /// "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work", "Airplane", "Book", "Light", "Like", "Money", "Note", "Palette" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatFolderInfo.cs b/TdLib.Api/Objects/ChatFolderInfo.cs index e7de8a55..c7a2371f 100644 --- a/TdLib.Api/Objects/ChatFolderInfo.cs +++ b/TdLib.Api/Objects/ChatFolderInfo.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains basic information about a chat folder /// - public static partial class TdApi + public partial class ChatFolderInfo : Object { /// - /// Contains basic information about a chat folder + /// Data type for serialization /// - public partial class ChatFolderInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatFolderInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatFolderInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// The name of the folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public ChatFolderName Name { get; set; } + /// + /// The name of the folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public ChatFolderName Name { get; set; } - /// - /// The chosen or default icon for the chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon")] - public ChatFolderIcon Icon { get; set; } + /// + /// The chosen or default icon for the chat folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public ChatFolderIcon Icon { get; set; } - /// - /// The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("color_id")] - public int ColorId { get; set; } + /// + /// The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("color_id")] + public int ColorId { get; set; } - /// - /// True, if at least one link has been created for the folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_shareable")] - public bool IsShareable { get; set; } + /// + /// True, if at least one link has been created for the folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_shareable")] + public bool IsShareable { get; set; } - /// - /// True, if the chat folder has invite links created by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_my_invite_links")] - public bool HasMyInviteLinks { get; set; } - } + /// + /// True, if the chat folder has invite links created by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_my_invite_links")] + public bool HasMyInviteLinks { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatFolderInviteLink.cs b/TdLib.Api/Objects/ChatFolderInviteLink.cs index 671d3ce0..74cf427f 100644 --- a/TdLib.Api/Objects/ChatFolderInviteLink.cs +++ b/TdLib.Api/Objects/ChatFolderInviteLink.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a chat folder invite link /// - public static partial class TdApi + public partial class ChatFolderInviteLink : Object { /// - /// Contains a chat folder invite link + /// Data type for serialization /// - public partial class ChatFolderInviteLink : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatFolderInviteLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatFolderInviteLink"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat folder invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } + /// + /// The chat folder invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } - /// - /// Name of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Identifiers of chats, included in the link - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// Identifiers of chats, included in the link + /// + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatFolderInviteLinkInfo.cs b/TdLib.Api/Objects/ChatFolderInviteLinkInfo.cs index 5c228234..0acc36ab 100644 --- a/TdLib.Api/Objects/ChatFolderInviteLinkInfo.cs +++ b/TdLib.Api/Objects/ChatFolderInviteLinkInfo.cs @@ -2,49 +2,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an invite link to a chat folder /// - public static partial class TdApi + public partial class ChatFolderInviteLinkInfo : Object { /// - /// Contains information about an invite link to a chat folder + /// Data type for serialization /// - public partial class ChatFolderInviteLinkInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatFolderInviteLinkInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatFolderInviteLinkInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Basic information about the chat folder; chat folder identifier will be 0 if the user didn't have the chat folder yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_info")] - public ChatFolderInfo ChatFolderInfo { get; set; } + /// + /// Basic information about the chat folder; chat folder identifier will be 0 if the user didn't have the chat folder yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_info")] + public ChatFolderInfo ChatFolderInfo { get; set; } - /// - /// Identifiers of the chats from the link, which aren't added to the folder yet - /// - [JsonProperty("missing_chat_ids", ItemConverterType = typeof(Converter))] - public long[] MissingChatIds { get; set; } + /// + /// Identifiers of the chats from the link, which aren't added to the folder yet + /// + [JsonProperty("missing_chat_ids", ItemConverterType = typeof(Converter))] + public long[] MissingChatIds { get; set; } - /// - /// Identifiers of the chats from the link, which are added to the folder already - /// - [JsonProperty("added_chat_ids", ItemConverterType = typeof(Converter))] - public long[] AddedChatIds { get; set; } - } + /// + /// Identifiers of the chats from the link, which are added to the folder already + /// + [JsonProperty("added_chat_ids", ItemConverterType = typeof(Converter))] + public long[] AddedChatIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatFolderInviteLinks.cs b/TdLib.Api/Objects/ChatFolderInviteLinks.cs index ca9a595d..b9a08432 100644 --- a/TdLib.Api/Objects/ChatFolderInviteLinks.cs +++ b/TdLib.Api/Objects/ChatFolderInviteLinks.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of chat folder invite links /// - public static partial class TdApi + public partial class ChatFolderInviteLinks : Object { /// - /// Represents a list of chat folder invite links + /// Data type for serialization /// - public partial class ChatFolderInviteLinks : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatFolderInviteLinks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatFolderInviteLinks"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of the invite links - /// - [JsonProperty("invite_links", ItemConverterType = typeof(Converter))] - public ChatFolderInviteLink[] InviteLinks { get; set; } - } + /// + /// List of the invite links + /// + [JsonProperty("invite_links", ItemConverterType = typeof(Converter))] + public ChatFolderInviteLink[] InviteLinks { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatFolderName.cs b/TdLib.Api/Objects/ChatFolderName.cs index ff6a4d43..d5d6484d 100644 --- a/TdLib.Api/Objects/ChatFolderName.cs +++ b/TdLib.Api/Objects/ChatFolderName.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes name of a chat folder /// - public static partial class TdApi + public partial class ChatFolderName : Object { /// - /// Describes name of a chat folder + /// Data type for serialization /// - public partial class ChatFolderName : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatFolderName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatFolderName"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The text of the chat folder name; 1-12 characters without line feeds. May contain only CustomEmoji entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// The text of the chat folder name; 1-12 characters without line feeds. May contain only CustomEmoji entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// True, if custom emoji in the name must be animated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animate_custom_emoji")] - public bool AnimateCustomEmoji { get; set; } - } + /// + /// True, if custom emoji in the name must be animated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animate_custom_emoji")] + public bool AnimateCustomEmoji { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLink.cs b/TdLib.Api/Objects/ChatInviteLink.cs index 60ede0e2..67dbfbbd 100644 --- a/TdLib.Api/Objects/ChatInviteLink.cs +++ b/TdLib.Api/Objects/ChatInviteLink.cs @@ -2,128 +2,127 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a chat invite link /// - public static partial class TdApi + public partial class ChatInviteLink : Object { /// - /// Contains a chat invite link - /// - public partial class ChatInviteLink : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLink"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - - /// - /// Name of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - - /// - /// User identifier of an administrator created the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_user_id")] - public long CreatorUserId { get; set; } - - /// - /// Point in time (Unix timestamp) when the link was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - - /// - /// Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_date")] - public int EditDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the link will expire; 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } - - /// - /// Information about subscription plan that is applied to the users joining the chat by the link; may be null if the link doesn't require subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_pricing")] - public StarSubscriptionPricing SubscriptionPricing { get; set; } - - /// - /// The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the link requires approval - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_limit")] - public int MemberLimit { get; set; } - - /// - /// Number of chat members, which joined the chat using the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count")] - public int MemberCount { get; set; } - - /// - /// Number of chat members, which joined the chat using the link, but have already left because of expired subscription; for subscription links only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expired_member_count")] - public int ExpiredMemberCount { get; set; } - - /// - /// Number of pending join requests created using this link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_join_request_count")] - public int PendingJoinRequestCount { get; set; } - - /// - /// True, if the link only creates join request. If true, total number of joining members will be unlimited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creates_join_request")] - public bool CreatesJoinRequest { get; set; } - - /// - /// True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one primary invite link for each administrator with can_invite_users right at a given time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_primary")] - public bool IsPrimary { get; set; } - - /// - /// True, if the link was revoked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_revoked")] - public bool IsRevoked { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLink"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Chat invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + + /// + /// Name of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// User identifier of an administrator created the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_user_id")] + public long CreatorUserId { get; set; } + + /// + /// Point in time (Unix timestamp) when the link was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + + /// + /// Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_date")] + public int EditDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the link will expire; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } + + /// + /// Information about subscription plan that is applied to the users joining the chat by the link; may be null if the link doesn't require subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_pricing")] + public StarSubscriptionPricing SubscriptionPricing { get; set; } + + /// + /// The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the link requires approval + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_limit")] + public int MemberLimit { get; set; } + + /// + /// Number of chat members, which joined the chat using the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count")] + public int MemberCount { get; set; } + + /// + /// Number of chat members, which joined the chat using the link, but have already left because of expired subscription; for subscription links only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expired_member_count")] + public int ExpiredMemberCount { get; set; } + + /// + /// Number of pending join requests created using this link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_join_request_count")] + public int PendingJoinRequestCount { get; set; } + + /// + /// True, if the link only creates join request. If true, total number of joining members will be unlimited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creates_join_request")] + public bool CreatesJoinRequest { get; set; } + + /// + /// True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. Primary link can create join requests only if this is set up using toggleSupergroupJoinByRequest. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_primary")] + public bool IsPrimary { get; set; } + + /// + /// True, if the link was revoked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_revoked")] + public bool IsRevoked { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLinkCount.cs b/TdLib.Api/Objects/ChatInviteLinkCount.cs index e30e76ea..9b5236d8 100644 --- a/TdLib.Api/Objects/ChatInviteLinkCount.cs +++ b/TdLib.Api/Objects/ChatInviteLinkCount.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a chat administrator with a number of active and revoked chat invite links /// - public static partial class TdApi + public partial class ChatInviteLinkCount : Object { /// - /// Describes a chat administrator with a number of active and revoked chat invite links + /// Data type for serialization /// - public partial class ChatInviteLinkCount : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLinkCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLinkCount"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Administrator's user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Administrator's user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Number of active invite links - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link_count")] - public int InviteLinkCount { get; set; } + /// + /// Number of active invite links + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link_count")] + public int InviteLinkCount { get; set; } - /// - /// Number of revoked invite links - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revoked_invite_link_count")] - public int RevokedInviteLinkCount { get; set; } - } + /// + /// Number of revoked invite links + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revoked_invite_link_count")] + public int RevokedInviteLinkCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLinkCounts.cs b/TdLib.Api/Objects/ChatInviteLinkCounts.cs index 96799eee..25400f7e 100644 --- a/TdLib.Api/Objects/ChatInviteLinkCounts.cs +++ b/TdLib.Api/Objects/ChatInviteLinkCounts.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat invite link counts /// - public static partial class TdApi + public partial class ChatInviteLinkCounts : Object { /// - /// Contains a list of chat invite link counts + /// Data type for serialization /// - public partial class ChatInviteLinkCounts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLinkCounts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLinkCounts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of invite link counts - /// - [JsonProperty("invite_link_counts", ItemConverterType = typeof(Converter))] - public ChatInviteLinkCount[] InviteLinkCounts { get; set; } - } + /// + /// List of invite link counts + /// + [JsonProperty("invite_link_counts", ItemConverterType = typeof(Converter))] + public ChatInviteLinkCount[] InviteLinkCounts { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLinkInfo.cs b/TdLib.Api/Objects/ChatInviteLinkInfo.cs index 41c7e190..4dea3d70 100644 --- a/TdLib.Api/Objects/ChatInviteLinkInfo.cs +++ b/TdLib.Api/Objects/ChatInviteLinkInfo.cs @@ -2,120 +2,119 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a chat invite link /// - public static partial class TdApi + public partial class ChatInviteLinkInfo : Object { /// - /// Contains information about a chat invite link + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLinkInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Chat identifier of the invite link; 0 if the user has no access to the chat before joining + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + + /// + /// If non-zero, the amount of time for which read access to the chat will remain available, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accessible_for")] + public int AccessibleFor { get; set; } + + /// + /// Type of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InviteLinkChatType Type { get; set; } + + /// + /// Title of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// Chat photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhotoInfo Photo { get; set; } + + /// + /// Identifier of the accent color for chat title and background of chat photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } + + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } + + /// + /// Number of members in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count")] + public int MemberCount { get; set; } + + /// + /// User identifiers of some chat members that may be known to the current user + /// + [JsonProperty("member_user_ids", ItemConverterType = typeof(Converter))] + public long[] MemberUserIds { get; set; } + + /// + /// Information about subscription plan that must be paid by the user to use the link; may be null if the link doesn't require subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_info")] + public ChatInviteLinkSubscriptionInfo SubscriptionInfo { get; set; } + + /// + /// True, if the link only creates join request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creates_join_request")] + public bool CreatesJoinRequest { get; set; } + + /// + /// True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_public")] + public bool IsPublic { get; set; } + + /// + /// Information about verification status of the chat; may be null if none /// - public partial class ChatInviteLinkInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLinkInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat identifier of the invite link; 0 if the user has no access to the chat before joining - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - - /// - /// If non-zero, the amount of time for which read access to the chat will remain available, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accessible_for")] - public int AccessibleFor { get; set; } - - /// - /// Type of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InviteLinkChatType Type { get; set; } - - /// - /// Title of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// Chat photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhotoInfo Photo { get; set; } - - /// - /// Identifier of the accent color for chat title and background of chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } - - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - - /// - /// Number of members in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count")] - public int MemberCount { get; set; } - - /// - /// User identifiers of some chat members that may be known to the current user - /// - [JsonProperty("member_user_ids", ItemConverterType = typeof(Converter))] - public long[] MemberUserIds { get; set; } - - /// - /// Information about subscription plan that must be paid by the user to use the link; may be null if the link doesn't require subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_info")] - public ChatInviteLinkSubscriptionInfo SubscriptionInfo { get; set; } - - /// - /// True, if the link only creates join request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creates_join_request")] - public bool CreatesJoinRequest { get; set; } - - /// - /// True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_public")] - public bool IsPublic { get; set; } - - /// - /// Information about verification status of the chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_status")] - public VerificationStatus VerificationStatus { get; set; } - } + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_status")] + public VerificationStatus VerificationStatus { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLinkMember.cs b/TdLib.Api/Objects/ChatInviteLinkMember.cs index 0f3974bd..43bac761 100644 --- a/TdLib.Api/Objects/ChatInviteLinkMember.cs +++ b/TdLib.Api/Objects/ChatInviteLinkMember.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a chat member joined a chat via an invite link /// - public static partial class TdApi + public partial class ChatInviteLinkMember : Object { /// - /// Describes a chat member joined a chat via an invite link + /// Data type for serialization /// - public partial class ChatInviteLinkMember : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLinkMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLinkMember"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Point in time (Unix timestamp) when the user joined the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("joined_chat_date")] - public int JoinedChatDate { get; set; } + /// + /// Point in time (Unix timestamp) when the user joined the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("joined_chat_date")] + public int JoinedChatDate { get; set; } - /// - /// True, if the user has joined the chat using an invite link for a chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_chat_folder_invite_link")] - public bool ViaChatFolderInviteLink { get; set; } + /// + /// True, if the user has joined the chat using an invite link for a chat folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_chat_folder_invite_link")] + public bool ViaChatFolderInviteLink { get; set; } - /// - /// User identifier of the chat administrator, approved user join request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("approver_user_id")] - public long ApproverUserId { get; set; } - } + /// + /// User identifier of the chat administrator, approved user join request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("approver_user_id")] + public long ApproverUserId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLinkMembers.cs b/TdLib.Api/Objects/ChatInviteLinkMembers.cs index 56ad48aa..c71f8186 100644 --- a/TdLib.Api/Objects/ChatInviteLinkMembers.cs +++ b/TdLib.Api/Objects/ChatInviteLinkMembers.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat members joined a chat via an invite link /// - public static partial class TdApi + public partial class ChatInviteLinkMembers : Object { /// - /// Contains a list of chat members joined a chat via an invite link + /// Data type for serialization /// - public partial class ChatInviteLinkMembers : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLinkMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLinkMembers"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of chat members found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of chat members found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of chat members, joined a chat via an invite link - /// - [JsonProperty("members", ItemConverterType = typeof(Converter))] - public ChatInviteLinkMember[] Members { get; set; } - } + /// + /// List of chat members, joined a chat via an invite link + /// + [JsonProperty("members", ItemConverterType = typeof(Converter))] + public ChatInviteLinkMember[] Members { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLinkSubscriptionInfo.cs b/TdLib.Api/Objects/ChatInviteLinkSubscriptionInfo.cs index 31b45331..9f667c04 100644 --- a/TdLib.Api/Objects/ChatInviteLinkSubscriptionInfo.cs +++ b/TdLib.Api/Objects/ChatInviteLinkSubscriptionInfo.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about subscription plan that must be paid by the user to use a chat invite link /// - public static partial class TdApi + public partial class ChatInviteLinkSubscriptionInfo : Object { /// - /// Contains information about subscription plan that must be paid by the user to use a chat invite link + /// Data type for serialization /// - public partial class ChatInviteLinkSubscriptionInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLinkSubscriptionInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLinkSubscriptionInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about subscription plan that must be paid by the user to use the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pricing")] - public StarSubscriptionPricing Pricing { get; set; } + /// + /// Information about subscription plan that must be paid by the user to use the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pricing")] + public StarSubscriptionPricing Pricing { get; set; } - /// - /// True, if the user has already paid for the subscription and can use joinChatByInviteLink to join the subscribed chat again - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_reuse")] - public bool CanReuse { get; set; } + /// + /// True, if the user has already paid for the subscription and can use joinChatByInviteLink to join the subscribed chat again + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_reuse")] + public bool CanReuse { get; set; } - /// - /// Identifier of the payment form to use for subscription payment; 0 if the subscription can't be paid - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("form_id")] - public long FormId { get; set; } - } + /// + /// Identifier of the payment form to use for subscription payment; 0 if the subscription can't be paid + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("form_id")] + public long FormId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatInviteLinks.cs b/TdLib.Api/Objects/ChatInviteLinks.cs index 17548593..8812677a 100644 --- a/TdLib.Api/Objects/ChatInviteLinks.cs +++ b/TdLib.Api/Objects/ChatInviteLinks.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat invite links /// - public static partial class TdApi + public partial class ChatInviteLinks : Object { /// - /// Contains a list of chat invite links + /// Data type for serialization /// - public partial class ChatInviteLinks : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatInviteLinks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatInviteLinks"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of chat invite links found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of chat invite links found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of invite links - /// - [JsonProperty("invite_links", ItemConverterType = typeof(Converter))] - public ChatInviteLink[] InviteLinks { get; set; } - } + /// + /// List of invite links + /// + [JsonProperty("invite_links", ItemConverterType = typeof(Converter))] + public ChatInviteLink[] InviteLinks { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatJoinRequest.cs b/TdLib.Api/Objects/ChatJoinRequest.cs index 452e2164..2180e3b0 100644 --- a/TdLib.Api/Objects/ChatJoinRequest.cs +++ b/TdLib.Api/Objects/ChatJoinRequest.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a user who sent a join request and waits for administrator approval /// - public static partial class TdApi + public partial class ChatJoinRequest : Object { /// - /// Describes a user who sent a join request and waits for administrator approval + /// Data type for serialization /// - public partial class ChatJoinRequest : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinRequest"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Point in time (Unix timestamp) when the user sent the join request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the user sent the join request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// A short bio of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bio")] - public string Bio { get; set; } - } + /// + /// A short bio of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bio")] + public string Bio { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatJoinRequestResultApproved.cs b/TdLib.Api/Objects/ChatJoinRequestResultApproved.cs index 757a7de6..a4d9543b 100644 --- a/TdLib.Api/Objects/ChatJoinRequestResultApproved.cs +++ b/TdLib.Api/Objects/ChatJoinRequestResultApproved.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatJoinRequestResult : Object { - public partial class ChatJoinRequestResult : Object + /// + /// Describes result of a chat join request + /// + public class ChatJoinRequestResultApproved : ChatJoinRequestResult { /// - /// Describes result of a chat join request + /// Data type for serialization /// - public class ChatJoinRequestResultApproved : ChatJoinRequestResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinRequestResultApproved"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinRequestResultApproved"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatJoinRequestResultDeclined.cs b/TdLib.Api/Objects/ChatJoinRequestResultDeclined.cs index 59f3ff49..b173c1b9 100644 --- a/TdLib.Api/Objects/ChatJoinRequestResultDeclined.cs +++ b/TdLib.Api/Objects/ChatJoinRequestResultDeclined.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatJoinRequestResult : Object { - public partial class ChatJoinRequestResult : Object + /// + /// The request was declined + /// + public class ChatJoinRequestResultDeclined : ChatJoinRequestResult { /// - /// The request was declined + /// Data type for serialization /// - public class ChatJoinRequestResultDeclined : ChatJoinRequestResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinRequestResultDeclined"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinRequestResultDeclined"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatJoinRequestResultQueued.cs b/TdLib.Api/Objects/ChatJoinRequestResultQueued.cs index 51d2b59c..4534ac23 100644 --- a/TdLib.Api/Objects/ChatJoinRequestResultQueued.cs +++ b/TdLib.Api/Objects/ChatJoinRequestResultQueued.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatJoinRequestResult : Object { - public partial class ChatJoinRequestResult : Object + /// + /// The request was postponed without a decision + /// + public class ChatJoinRequestResultQueued : ChatJoinRequestResult { /// - /// The request was postponed without a decision + /// Data type for serialization /// - public class ChatJoinRequestResultQueued : ChatJoinRequestResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinRequestResultQueued"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinRequestResultQueued"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatJoinRequests.cs b/TdLib.Api/Objects/ChatJoinRequests.cs index 6d810191..1d67e178 100644 --- a/TdLib.Api/Objects/ChatJoinRequests.cs +++ b/TdLib.Api/Objects/ChatJoinRequests.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of requests to join a chat /// - public static partial class TdApi + public partial class ChatJoinRequests : Object { /// - /// Contains a list of requests to join a chat + /// Data type for serialization /// - public partial class ChatJoinRequests : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinRequests"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinRequests"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of requests found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of requests found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of the requests - /// - [JsonProperty("requests", ItemConverterType = typeof(Converter))] - public ChatJoinRequest[] Requests { get; set; } - } + /// + /// List of the requests + /// + [JsonProperty("requests", ItemConverterType = typeof(Converter))] + public ChatJoinRequest[] Requests { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatJoinRequestsInfo.cs b/TdLib.Api/Objects/ChatJoinRequestsInfo.cs index bb02787d..ce644544 100644 --- a/TdLib.Api/Objects/ChatJoinRequestsInfo.cs +++ b/TdLib.Api/Objects/ChatJoinRequestsInfo.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about pending join requests for a chat /// - public static partial class TdApi + public partial class ChatJoinRequestsInfo : Object { /// - /// Contains information about pending join requests for a chat + /// Data type for serialization /// - public partial class ChatJoinRequestsInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinRequestsInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinRequestsInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of pending join requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of pending join requests + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// Identifiers of at most 3 users sent the newest pending join requests - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Identifiers of at most 3 users sent the newest pending join requests + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatJoinResultDeclined.cs b/TdLib.Api/Objects/ChatJoinResultDeclined.cs index 6e07c75a..bf9956b5 100644 --- a/TdLib.Api/Objects/ChatJoinResultDeclined.cs +++ b/TdLib.Api/Objects/ChatJoinResultDeclined.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatJoinResult : Object { - public partial class ChatJoinResult : Object + /// + /// The join was declined by the guard bot + /// + public class ChatJoinResultDeclined : ChatJoinResult { /// - /// The join was declined by the guard bot + /// Data type for serialization /// - public class ChatJoinResultDeclined : ChatJoinResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinResultDeclined"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinResultDeclined"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatJoinResultGuardBotApprovalRequired.cs b/TdLib.Api/Objects/ChatJoinResultGuardBotApprovalRequired.cs index c56276b9..96721e9a 100644 --- a/TdLib.Api/Objects/ChatJoinResultGuardBotApprovalRequired.cs +++ b/TdLib.Api/Objects/ChatJoinResultGuardBotApprovalRequired.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatJoinResult : Object { - public partial class ChatJoinResult : Object + /// + /// An approval from a guard bot through a Web App is required to join the chat + /// + public class ChatJoinResultGuardBotApprovalRequired : ChatJoinResult { /// - /// An approval from a guard bot through a Web App is required to join the chat + /// Data type for serialization /// - public class ChatJoinResultGuardBotApprovalRequired : ChatJoinResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinResultGuardBotApprovalRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinResultGuardBotApprovalRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the guard bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Identifier of the guard bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Unique identifier of the join request, which will be used in getGuardBotWebAppUrl and updateChatJoinResult - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } - } + /// + /// Unique identifier of the join request, which will be used in getGuardBotWebAppUrl and updateChatJoinResult + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatJoinResultRequestSent.cs b/TdLib.Api/Objects/ChatJoinResultRequestSent.cs index 73b8fec0..cffef82f 100644 --- a/TdLib.Api/Objects/ChatJoinResultRequestSent.cs +++ b/TdLib.Api/Objects/ChatJoinResultRequestSent.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatJoinResult : Object { - public partial class ChatJoinResult : Object + /// + /// The join request was sent and have to be approved by administrators of the chat + /// + public class ChatJoinResultRequestSent : ChatJoinResult { /// - /// The join request was sent and have to be approved by administrators of the chat + /// Data type for serialization /// - public class ChatJoinResultRequestSent : ChatJoinResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinResultRequestSent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinResultRequestSent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatJoinResultSuccess.cs b/TdLib.Api/Objects/ChatJoinResultSuccess.cs index 79899e4b..cae6da97 100644 --- a/TdLib.Api/Objects/ChatJoinResultSuccess.cs +++ b/TdLib.Api/Objects/ChatJoinResultSuccess.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatJoinResult : Object { - public partial class ChatJoinResult : Object + /// + /// Describes result of join of a chat by the current user + /// + public class ChatJoinResultSuccess : ChatJoinResult { /// - /// Describes result of join of a chat by the current user + /// Data type for serialization /// - public class ChatJoinResultSuccess : ChatJoinResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatJoinResultSuccess"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatJoinResultSuccess"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatListArchive.cs b/TdLib.Api/Objects/ChatListArchive.cs index 16eccd4b..f1e30689 100644 --- a/TdLib.Api/Objects/ChatListArchive.cs +++ b/TdLib.Api/Objects/ChatListArchive.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatList : Object { - public partial class ChatList : Object + /// + /// A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives + /// + public class ChatListArchive : ChatList { /// - /// A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives + /// Data type for serialization /// - public class ChatListArchive : ChatList - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatListArchive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatListArchive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatListFolder.cs b/TdLib.Api/Objects/ChatListFolder.cs index d74f72b0..58e144dc 100644 --- a/TdLib.Api/Objects/ChatListFolder.cs +++ b/TdLib.Api/Objects/ChatListFolder.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatList : Object { - public partial class ChatList : Object + /// + /// A list of chats added to a chat folder + /// + public class ChatListFolder : ChatList { /// - /// A list of chats added to a chat folder + /// Data type for serialization /// - public class ChatListFolder : ChatList - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatListFolder"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatListFolder"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat folder identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_folder_id")] - public int ChatFolderId { get; set; } - } + /// + /// Chat folder identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_folder_id")] + public int ChatFolderId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatListMain.cs b/TdLib.Api/Objects/ChatListMain.cs index 278df767..7812d28a 100644 --- a/TdLib.Api/Objects/ChatListMain.cs +++ b/TdLib.Api/Objects/ChatListMain.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatList : Object { - public partial class ChatList : Object + /// + /// Describes a list of chats + /// + public class ChatListMain : ChatList { /// - /// Describes a list of chats + /// Data type for serialization /// - public class ChatListMain : ChatList - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatListMain"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatListMain"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatLists.cs b/TdLib.Api/Objects/ChatLists.cs index e3eb1e6a..e3af9124 100644 --- a/TdLib.Api/Objects/ChatLists.cs +++ b/TdLib.Api/Objects/ChatLists.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat lists /// - public static partial class TdApi + public partial class ChatLists : Object { /// - /// Contains a list of chat lists + /// Data type for serialization /// - public partial class ChatLists : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatLists"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatLists"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of chat lists - /// - [JsonProperty("chat_lists", ItemConverterType = typeof(Converter))] - public ChatList[] ChatLists_ { get; set; } - } + /// + /// List of chat lists + /// + [JsonProperty("chat_lists", ItemConverterType = typeof(Converter))] + public ChatList[] ChatLists_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatLocation.cs b/TdLib.Api/Objects/ChatLocation.cs index c77e5898..255f5ec2 100644 --- a/TdLib.Api/Objects/ChatLocation.cs +++ b/TdLib.Api/Objects/ChatLocation.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a location to which a chat is connected /// - public static partial class TdApi + public partial class ChatLocation : Object { /// - /// Represents a location to which a chat is connected + /// Data type for serialization /// - public partial class ChatLocation : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatLocation"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// The location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Location address; 1-64 characters, as defined by the chat owner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public string Address { get; set; } - } + /// + /// Location address; 1-64 characters, as defined by the chat owner + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatMember.cs b/TdLib.Api/Objects/ChatMember.cs index 4edcbc31..437756b2 100644 --- a/TdLib.Api/Objects/ChatMember.cs +++ b/TdLib.Api/Objects/ChatMember.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a user or a chat as a member of another chat /// - public static partial class TdApi + public partial class ChatMember : Object { /// - /// Describes a user or a chat as a member of another chat + /// Data type for serialization /// - public partial class ChatMember : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMember"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_id")] - public MessageSender MemberId { get; set; } + /// + /// Identifier of the chat member. Currently, other chats can be only Left or Banned. Only supergroups and channels can have other chats as Left or Banned members and these chats must be supergroups or channels + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_id")] + public MessageSender MemberId { get; set; } - /// - /// Tag of the chat member or its custom title if the member is an administrator of the chat; 0-16 characters without emoji; applicable to basic groups and supergroups only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public string Tag { get; set; } + /// + /// Tag of the chat member or its custom title if the member is an administrator of the chat; 0-16 characters without emoji; applicable to basic groups and supergroups only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public string Tag { get; set; } - /// - /// Identifier of a user who invited/promoted/banned this member in the chat; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inviter_user_id")] - public long InviterUserId { get; set; } + /// + /// Identifier of a user who invited/promoted/banned this member in the chat; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inviter_user_id")] + public long InviterUserId { get; set; } - /// - /// Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("joined_chat_date")] - public int JoinedChatDate { get; set; } + /// + /// Point in time (Unix timestamp) when the user joined/was promoted/was banned in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("joined_chat_date")] + public int JoinedChatDate { get; set; } - /// - /// Status of the member in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public ChatMemberStatus Status { get; set; } - } + /// + /// Status of the member in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public ChatMemberStatus Status { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatMemberStatusAdministrator.cs b/TdLib.Api/Objects/ChatMemberStatusAdministrator.cs index 75d11c30..6c4c271b 100644 --- a/TdLib.Api/Objects/ChatMemberStatusAdministrator.cs +++ b/TdLib.Api/Objects/ChatMemberStatusAdministrator.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMemberStatus : Object { - public partial class ChatMemberStatus : Object + /// + /// The user is a member of the chat and has some additional privileges. In basic groups, administrators have all applicable rights. + /// In supergroups and channels, any subset of the rights can be chosen for an administrator + /// + public class ChatMemberStatusAdministrator : ChatMemberStatus { /// - /// The user is a member of the chat and has some additional privileges. In basic groups, administrators have all applicable rights. - /// In supergroups and channels, any subset of the rights can be chosen for an administrator + /// Data type for serialization /// - public class ChatMemberStatusAdministrator : ChatMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMemberStatusAdministrator"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMemberStatusAdministrator"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the current user can edit the administrator privileges for the called user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_edited")] - public bool CanBeEdited { get; set; } + /// + /// True, if the current user can edit the administrator privileges for the called user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_edited")] + public bool CanBeEdited { get; set; } - /// - /// Rights of the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rights")] - public ChatAdministratorRights Rights { get; set; } - } + /// + /// Rights of the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rights")] + public ChatAdministratorRights Rights { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatMemberStatusBanned.cs b/TdLib.Api/Objects/ChatMemberStatusBanned.cs index e44b1fc1..74ab41d5 100644 --- a/TdLib.Api/Objects/ChatMemberStatusBanned.cs +++ b/TdLib.Api/Objects/ChatMemberStatusBanned.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMemberStatus : Object { - public partial class ChatMemberStatus : Object + /// + /// The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat + /// + public class ChatMemberStatusBanned : ChatMemberStatus { /// - /// The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat + /// Data type for serialization /// - public class ChatMemberStatusBanned : ChatMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMemberStatusBanned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMemberStatusBanned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Always 0 in basic groups - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("banned_until_date")] - public int BannedUntilDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever. Always 0 in basic groups + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("banned_until_date")] + public int BannedUntilDate { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatMemberStatusCreator.cs b/TdLib.Api/Objects/ChatMemberStatusCreator.cs index bf3169b6..ea92535d 100644 --- a/TdLib.Api/Objects/ChatMemberStatusCreator.cs +++ b/TdLib.Api/Objects/ChatMemberStatusCreator.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMemberStatus : Object { - public partial class ChatMemberStatus : Object + /// + /// Provides information about the status of a member in a chat + /// + public class ChatMemberStatusCreator : ChatMemberStatus { /// - /// Provides information about the status of a member in a chat + /// Data type for serialization /// - public class ChatMemberStatusCreator : ChatMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMemberStatusCreator"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMemberStatusCreator"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_anonymous")] - public bool IsAnonymous { get; set; } + /// + /// True, if the creator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_anonymous")] + public bool IsAnonymous { get; set; } - /// - /// True, if the user is a member of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_member")] - public bool IsMember { get; set; } - } + /// + /// True, if the user is a member of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_member")] + public bool IsMember { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatMemberStatusLeft.cs b/TdLib.Api/Objects/ChatMemberStatusLeft.cs index 028c9552..8d8b0378 100644 --- a/TdLib.Api/Objects/ChatMemberStatusLeft.cs +++ b/TdLib.Api/Objects/ChatMemberStatusLeft.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMemberStatus : Object { - public partial class ChatMemberStatus : Object + /// + /// The user or the chat is not a chat member + /// + public class ChatMemberStatusLeft : ChatMemberStatus { /// - /// The user or the chat is not a chat member + /// Data type for serialization /// - public class ChatMemberStatusLeft : ChatMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMemberStatusLeft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMemberStatusLeft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatMemberStatusMember.cs b/TdLib.Api/Objects/ChatMemberStatusMember.cs index c86750b0..5e056b73 100644 --- a/TdLib.Api/Objects/ChatMemberStatusMember.cs +++ b/TdLib.Api/Objects/ChatMemberStatusMember.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMemberStatus : Object { - public partial class ChatMemberStatus : Object + /// + /// The user is a member of the chat, without any additional privileges or restrictions + /// + public class ChatMemberStatusMember : ChatMemberStatus { /// - /// The user is a member of the chat, without any additional privileges or restrictions + /// Data type for serialization /// - public class ChatMemberStatusMember : ChatMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMemberStatusMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMemberStatusMember"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the user will be removed from the chat because of the expired subscription; 0 if never. Ignored in setChatMemberStatus - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_until_date")] - public int MemberUntilDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the user will be removed from the chat because of the expired subscription; 0 if never. Ignored in setChatMemberStatus + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_until_date")] + public int MemberUntilDate { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatMemberStatusRestricted.cs b/TdLib.Api/Objects/ChatMemberStatusRestricted.cs index f4614ad0..28386597 100644 --- a/TdLib.Api/Objects/ChatMemberStatusRestricted.cs +++ b/TdLib.Api/Objects/ChatMemberStatusRestricted.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMemberStatus : Object { - public partial class ChatMemberStatus : Object + /// + /// The user is under certain restrictions in the chat. Not supported in basic groups and channels + /// + public class ChatMemberStatusRestricted : ChatMemberStatus { /// - /// The user is under certain restrictions in the chat. Not supported in basic groups and channels + /// Data type for serialization /// - public class ChatMemberStatusRestricted : ChatMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMemberStatusRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMemberStatusRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the user is a member of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_member")] - public bool IsMember { get; set; } + /// + /// True, if the user is a member of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_member")] + public bool IsMember { get; set; } - /// - /// Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restricted_until_date")] - public int RestrictedUntilDate { get; set; } + /// + /// Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restricted_until_date")] + public int RestrictedUntilDate { get; set; } - /// - /// User permissions in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("permissions")] - public ChatPermissions Permissions { get; set; } - } + /// + /// User permissions in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("permissions")] + public ChatPermissions Permissions { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatMembers.cs b/TdLib.Api/Objects/ChatMembers.cs index 260d19e9..26de2d69 100644 --- a/TdLib.Api/Objects/ChatMembers.cs +++ b/TdLib.Api/Objects/ChatMembers.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat members /// - public static partial class TdApi + public partial class ChatMembers : Object { /// - /// Contains a list of chat members + /// Data type for serialization /// - public partial class ChatMembers : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembers"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of chat members found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of chat members found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// A list of chat members - /// - [JsonProperty("members", ItemConverterType = typeof(Converter))] - public ChatMember[] Members { get; set; } - } + /// + /// A list of chat members + /// + [JsonProperty("members", ItemConverterType = typeof(Converter))] + public ChatMember[] Members { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatMembersFilterAdministrators.cs b/TdLib.Api/Objects/ChatMembersFilterAdministrators.cs index 3d595edc..b578bdb4 100644 --- a/TdLib.Api/Objects/ChatMembersFilterAdministrators.cs +++ b/TdLib.Api/Objects/ChatMembersFilterAdministrators.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMembersFilter : Object { - public partial class ChatMembersFilter : Object + /// + /// Returns the owner and administrators + /// + public class ChatMembersFilterAdministrators : ChatMembersFilter { /// - /// Returns the owner and administrators + /// Data type for serialization /// - public class ChatMembersFilterAdministrators : ChatMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembersFilterAdministrators"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembersFilterAdministrators"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatMembersFilterBanned.cs b/TdLib.Api/Objects/ChatMembersFilterBanned.cs index 3ea98882..c8fe79f4 100644 --- a/TdLib.Api/Objects/ChatMembersFilterBanned.cs +++ b/TdLib.Api/Objects/ChatMembersFilterBanned.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMembersFilter : Object { - public partial class ChatMembersFilter : Object + /// + /// Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel + /// + public class ChatMembersFilterBanned : ChatMembersFilter { /// - /// Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel + /// Data type for serialization /// - public class ChatMembersFilterBanned : ChatMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembersFilterBanned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembersFilterBanned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatMembersFilterBots.cs b/TdLib.Api/Objects/ChatMembersFilterBots.cs index 00a3cfa9..99a98fb0 100644 --- a/TdLib.Api/Objects/ChatMembersFilterBots.cs +++ b/TdLib.Api/Objects/ChatMembersFilterBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMembersFilter : Object { - public partial class ChatMembersFilter : Object + /// + /// Returns bot members of the chat + /// + public class ChatMembersFilterBots : ChatMembersFilter { /// - /// Returns bot members of the chat + /// Data type for serialization /// - public class ChatMembersFilterBots : ChatMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembersFilterBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembersFilterBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatMembersFilterContacts.cs b/TdLib.Api/Objects/ChatMembersFilterContacts.cs index ec415278..799fbac9 100644 --- a/TdLib.Api/Objects/ChatMembersFilterContacts.cs +++ b/TdLib.Api/Objects/ChatMembersFilterContacts.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMembersFilter : Object { - public partial class ChatMembersFilter : Object + /// + /// Specifies the kind of chat members to return in searchChatMembers + /// + public class ChatMembersFilterContacts : ChatMembersFilter { /// - /// Specifies the kind of chat members to return in searchChatMembers + /// Data type for serialization /// - public class ChatMembersFilterContacts : ChatMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembersFilterContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembersFilterContacts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatMembersFilterMembers.cs b/TdLib.Api/Objects/ChatMembersFilterMembers.cs index a9ab33ab..47a9ff6e 100644 --- a/TdLib.Api/Objects/ChatMembersFilterMembers.cs +++ b/TdLib.Api/Objects/ChatMembersFilterMembers.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMembersFilter : Object { - public partial class ChatMembersFilter : Object + /// + /// Returns all chat members, including restricted chat members + /// + public class ChatMembersFilterMembers : ChatMembersFilter { /// - /// Returns all chat members, including restricted chat members + /// Data type for serialization /// - public class ChatMembersFilterMembers : ChatMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembersFilterMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembersFilterMembers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatMembersFilterMention.cs b/TdLib.Api/Objects/ChatMembersFilterMention.cs index b3b9c770..ccc6843f 100644 --- a/TdLib.Api/Objects/ChatMembersFilterMention.cs +++ b/TdLib.Api/Objects/ChatMembersFilterMention.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMembersFilter : Object { - public partial class ChatMembersFilter : Object + /// + /// Returns users who can be mentioned in the chat + /// + public class ChatMembersFilterMention : ChatMembersFilter { /// - /// Returns users who can be mentioned in the chat + /// Data type for serialization /// - public class ChatMembersFilterMention : ChatMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembersFilterMention"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembersFilterMention"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the topic in which the users will be mentioned; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } - } + /// + /// Identifier of the topic in which the users will be mentioned; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatMembersFilterRestricted.cs b/TdLib.Api/Objects/ChatMembersFilterRestricted.cs index 61aa3b29..9f3100ee 100644 --- a/TdLib.Api/Objects/ChatMembersFilterRestricted.cs +++ b/TdLib.Api/Objects/ChatMembersFilterRestricted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatMembersFilter : Object { - public partial class ChatMembersFilter : Object + /// + /// Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup + /// + public class ChatMembersFilterRestricted : ChatMembersFilter { /// - /// Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup + /// Data type for serialization /// - public class ChatMembersFilterRestricted : ChatMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMembersFilterRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMembersFilterRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatMessageSender.cs b/TdLib.Api/Objects/ChatMessageSender.cs index e0951068..e658b9cd 100644 --- a/TdLib.Api/Objects/ChatMessageSender.cs +++ b/TdLib.Api/Objects/ChatMessageSender.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a message sender, which can be used to send messages in a chat /// - public static partial class TdApi + public partial class ChatMessageSender : Object { /// - /// Represents a message sender, which can be used to send messages in a chat + /// Data type for serialization /// - public partial class ChatMessageSender : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMessageSender"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMessageSender"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender")] - public MessageSender Sender { get; set; } + /// + /// The message sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender")] + public MessageSender Sender { get; set; } - /// - /// True, if Telegram Premium is needed to use the message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("needs_premium")] - public bool NeedsPremium { get; set; } - } + /// + /// True, if Telegram Premium is needed to use the message sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("needs_premium")] + public bool NeedsPremium { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatMessageSenders.cs b/TdLib.Api/Objects/ChatMessageSenders.cs index f083dc2d..a395ae31 100644 --- a/TdLib.Api/Objects/ChatMessageSenders.cs +++ b/TdLib.Api/Objects/ChatMessageSenders.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of message senders, which can be used to send messages in a chat /// - public static partial class TdApi + public partial class ChatMessageSenders : Object { /// - /// Represents a list of message senders, which can be used to send messages in a chat + /// Data type for serialization /// - public partial class ChatMessageSenders : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatMessageSenders"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatMessageSenders"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of available message senders - /// - [JsonProperty("senders", ItemConverterType = typeof(Converter))] - public ChatMessageSender[] Senders { get; set; } - } + /// + /// List of available message senders + /// + [JsonProperty("senders", ItemConverterType = typeof(Converter))] + public ChatMessageSender[] Senders { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatNotificationSettings.cs b/TdLib.Api/Objects/ChatNotificationSettings.cs index 3c9a5bbe..77693dda 100644 --- a/TdLib.Api/Objects/ChatNotificationSettings.cs +++ b/TdLib.Api/Objects/ChatNotificationSettings.cs @@ -2,142 +2,141 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about notification settings for a chat or a forum topic /// - public static partial class TdApi + public partial class ChatNotificationSettings : Object { /// - /// Contains information about notification settings for a chat or a forum topic - /// - public partial class ChatNotificationSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatNotificationSettings"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// If true, the value for the relevant type of chat or the forum chat is used instead of mute_for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_mute_for")] - public bool UseDefaultMuteFor { get; set; } - - /// - /// Time left before notifications will be unmuted, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_for")] - public int MuteFor { get; set; } - - /// - /// If true, the value for the relevant type of chat or the forum chat is used instead of sound_id - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_sound")] - public bool UseDefaultSound { get; set; } - - /// - /// Identifier of the notification sound to be played for messages; 0 if sound is disabled - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sound_id")] - public long SoundId { get; set; } - - /// - /// If true, the value for the relevant type of chat or the forum chat is used instead of show_preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_show_preview")] - public bool UseDefaultShowPreview { get; set; } - - /// - /// True, if message content must be displayed in notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_preview")] - public bool ShowPreview { get; set; } - - /// - /// If true, the value for the relevant type of chat is used instead of mute_stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_mute_stories")] - public bool UseDefaultMuteStories { get; set; } - - /// - /// True, if story notifications are disabled for the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_stories")] - public bool MuteStories { get; set; } - - /// - /// If true, the value for the relevant type of chat is used instead of story_sound_id - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_story_sound")] - public bool UseDefaultStorySound { get; set; } - - /// - /// Identifier of the notification sound to be played for stories; 0 if sound is disabled - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("story_sound_id")] - public long StorySoundId { get; set; } - - /// - /// If true, the value for the relevant type of chat is used instead of show_story_poster - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_show_story_poster")] - public bool UseDefaultShowStoryPoster { get; set; } - - /// - /// True, if the chat that posted a story must be displayed in notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_story_poster")] - public bool ShowStoryPoster { get; set; } - - /// - /// If true, the value for the relevant type of chat or the forum chat is used instead of disable_pinned_message_notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_disable_pinned_message_notifications")] - public bool UseDefaultDisablePinnedMessageNotifications { get; set; } - - /// - /// If true, notifications for incoming pinned messages will be created as for an ordinary unread message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_pinned_message_notifications")] - public bool DisablePinnedMessageNotifications { get; set; } - - /// - /// If true, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_disable_mention_notifications")] - public bool UseDefaultDisableMentionNotifications { get; set; } - - /// - /// If true, notifications for messages with mentions will be created as for an ordinary unread message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_mention_notifications")] - public bool DisableMentionNotifications { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatNotificationSettings"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// If true, the value for the relevant type of chat or the forum chat is used instead of mute_for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_mute_for")] + public bool UseDefaultMuteFor { get; set; } + + /// + /// Time left before notifications will be unmuted, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_for")] + public int MuteFor { get; set; } + + /// + /// If true, the value for the relevant type of chat or the forum chat is used instead of sound_id + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_sound")] + public bool UseDefaultSound { get; set; } + + /// + /// Identifier of the notification sound to be played for messages; 0 if sound is disabled + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sound_id")] + public long SoundId { get; set; } + + /// + /// If true, the value for the relevant type of chat or the forum chat is used instead of show_preview + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_show_preview")] + public bool UseDefaultShowPreview { get; set; } + + /// + /// True, if message content must be displayed in notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_preview")] + public bool ShowPreview { get; set; } + + /// + /// If true, the value for the relevant type of chat is used instead of mute_stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_mute_stories")] + public bool UseDefaultMuteStories { get; set; } + + /// + /// True, if story notifications are disabled for the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_stories")] + public bool MuteStories { get; set; } + + /// + /// If true, the value for the relevant type of chat is used instead of story_sound_id + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_story_sound")] + public bool UseDefaultStorySound { get; set; } + + /// + /// Identifier of the notification sound to be played for stories; 0 if sound is disabled + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("story_sound_id")] + public long StorySoundId { get; set; } + + /// + /// If true, the value for the relevant type of chat is used instead of show_story_poster + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_show_story_poster")] + public bool UseDefaultShowStoryPoster { get; set; } + + /// + /// True, if the chat that posted a story must be displayed in notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_story_poster")] + public bool ShowStoryPoster { get; set; } + + /// + /// If true, the value for the relevant type of chat or the forum chat is used instead of disable_pinned_message_notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_disable_pinned_message_notifications")] + public bool UseDefaultDisablePinnedMessageNotifications { get; set; } + + /// + /// If true, notifications for incoming pinned messages will be created as for an ordinary unread message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_pinned_message_notifications")] + public bool DisablePinnedMessageNotifications { get; set; } + + /// + /// If true, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_disable_mention_notifications")] + public bool UseDefaultDisableMentionNotifications { get; set; } + + /// + /// If true, notifications for messages with mentions will be created as for an ordinary unread message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_mention_notifications")] + public bool DisableMentionNotifications { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatPermissions.cs b/TdLib.Api/Objects/ChatPermissions.cs index a5a4d984..190c6cff 100644 --- a/TdLib.Api/Objects/ChatPermissions.cs +++ b/TdLib.Api/Objects/ChatPermissions.cs @@ -2,142 +2,141 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes actions that a user is allowed to take in a chat /// - public static partial class TdApi + public partial class ChatPermissions : Object { /// - /// Describes actions that a user is allowed to take in a chat - /// - public partial class ChatPermissions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPermissions"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// True, if the user can send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations, and venues - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_basic_messages")] - public bool CanSendBasicMessages { get; set; } - - /// - /// True, if the user can send music files - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_audios")] - public bool CanSendAudios { get; set; } - - /// - /// True, if the user can send documents - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_documents")] - public bool CanSendDocuments { get; set; } - - /// - /// True, if the user can send photos - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_photos")] - public bool CanSendPhotos { get; set; } - - /// - /// True, if the user can send videos - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_videos")] - public bool CanSendVideos { get; set; } - - /// - /// True, if the user can send video notes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_video_notes")] - public bool CanSendVideoNotes { get; set; } - - /// - /// True, if the user can send voice notes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_voice_notes")] - public bool CanSendVoiceNotes { get; set; } - - /// - /// True, if the user can send polls and checklists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_polls")] - public bool CanSendPolls { get; set; } - - /// - /// True, if the user can send animations, games, stickers, and dice and use inline bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_other_messages")] - public bool CanSendOtherMessages { get; set; } - - /// - /// True, if the user may add a link preview to their messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_add_link_previews")] - public bool CanAddLinkPreviews { get; set; } - - /// - /// True, if the user can react to messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_react_to_messages")] - public bool CanReactToMessages { get; set; } - - /// - /// True, if the user may change the tag of self - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_tag")] - public bool CanEditTag { get; set; } - - /// - /// True, if the user can change the chat title, photo, and other settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_change_info")] - public bool CanChangeInfo { get; set; } - - /// - /// True, if the user can invite new users to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_invite_users")] - public bool CanInviteUsers { get; set; } - - /// - /// True, if the user can pin messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_pin_messages")] - public bool CanPinMessages { get; set; } - - /// - /// True, if the user can create topics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_create_topics")] - public bool CanCreateTopics { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPermissions"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if the user can send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations, and venues + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_basic_messages")] + public bool CanSendBasicMessages { get; set; } + + /// + /// True, if the user can send music files + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_audios")] + public bool CanSendAudios { get; set; } + + /// + /// True, if the user can send documents + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_documents")] + public bool CanSendDocuments { get; set; } + + /// + /// True, if the user can send photos + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_photos")] + public bool CanSendPhotos { get; set; } + + /// + /// True, if the user can send videos + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_videos")] + public bool CanSendVideos { get; set; } + + /// + /// True, if the user can send video notes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_video_notes")] + public bool CanSendVideoNotes { get; set; } + + /// + /// True, if the user can send voice notes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_voice_notes")] + public bool CanSendVoiceNotes { get; set; } + + /// + /// True, if the user can send polls and checklists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_polls")] + public bool CanSendPolls { get; set; } + + /// + /// True, if the user can send animations, games, stickers, and dice and use inline bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_other_messages")] + public bool CanSendOtherMessages { get; set; } + + /// + /// True, if the user may add a link preview to their messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_add_link_previews")] + public bool CanAddLinkPreviews { get; set; } + + /// + /// True, if the user can react to messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_react_to_messages")] + public bool CanReactToMessages { get; set; } + + /// + /// True, if the user may change the tag of self + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_tag")] + public bool CanEditTag { get; set; } + + /// + /// True, if the user can change the chat title, photo, and other settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_change_info")] + public bool CanChangeInfo { get; set; } + + /// + /// True, if the user can invite new users to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_invite_users")] + public bool CanInviteUsers { get; set; } + + /// + /// True, if the user can pin messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_pin_messages")] + public bool CanPinMessages { get; set; } + + /// + /// True, if the user can create topics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_create_topics")] + public bool CanCreateTopics { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatPhoto.cs b/TdLib.Api/Objects/ChatPhoto.cs index 7e29ee8b..549ba576 100644 --- a/TdLib.Api/Objects/ChatPhoto.cs +++ b/TdLib.Api/Objects/ChatPhoto.cs @@ -2,78 +2,77 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a chat or user profile photo /// - public static partial class TdApi + public partial class ChatPhoto : Object { /// - /// Describes a chat or user profile photo + /// Data type for serialization /// - public partial class ChatPhoto : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPhoto"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique photo identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique photo identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Point in time (Unix timestamp) when the photo has been added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("added_date")] - public int AddedDate { get; set; } + /// + /// Point in time (Unix timestamp) when the photo has been added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("added_date")] + public int AddedDate { get; set; } - /// - /// Photo minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Photo minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// Available variants of the photo in JPEG format, in different size - /// - [JsonProperty("sizes", ItemConverterType = typeof(Converter))] - public PhotoSize[] Sizes { get; set; } + /// + /// Available variants of the photo in JPEG format, in different size + /// + [JsonProperty("sizes", ItemConverterType = typeof(Converter))] + public PhotoSize[] Sizes { get; set; } - /// - /// A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public AnimatedChatPhoto Animation { get; set; } + /// + /// A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public AnimatedChatPhoto Animation { get; set; } - /// - /// A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("small_animation")] - public AnimatedChatPhoto SmallAnimation { get; set; } + /// + /// A small (160x160) animated variant of the photo in MPEG4 format; may be null even if the big animation is available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("small_animation")] + public AnimatedChatPhoto SmallAnimation { get; set; } - /// - /// Sticker-based version of the chat photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public ChatPhotoSticker Sticker { get; set; } - } + /// + /// Sticker-based version of the chat photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public ChatPhotoSticker Sticker { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatPhotoInfo.cs b/TdLib.Api/Objects/ChatPhotoInfo.cs index 3835b0a9..1edb2b3a 100644 --- a/TdLib.Api/Objects/ChatPhotoInfo.cs +++ b/TdLib.Api/Objects/ChatPhotoInfo.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains basic information about the photo of a chat /// - public static partial class TdApi + public partial class ChatPhotoInfo : Object { /// - /// Contains basic information about the photo of a chat + /// Data type for serialization /// - public partial class ChatPhotoInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPhotoInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPhotoInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("small")] - public File Small { get; set; } + /// + /// A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("small")] + public File Small { get; set; } - /// - /// A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("big")] - public File Big { get; set; } + /// + /// A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("big")] + public File Big { get; set; } - /// - /// Chat photo minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Chat photo minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// True, if the photo has animated variant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_animation")] - public bool HasAnimation { get; set; } + /// + /// True, if the photo has animated variant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_animation")] + public bool HasAnimation { get; set; } - /// - /// True, if the photo is visible only for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_personal")] - public bool IsPersonal { get; set; } - } + /// + /// True, if the photo is visible only for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_personal")] + public bool IsPersonal { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatPhotoSticker.cs b/TdLib.Api/Objects/ChatPhotoSticker.cs index 7961bef7..89a8d572 100644 --- a/TdLib.Api/Objects/ChatPhotoSticker.cs +++ b/TdLib.Api/Objects/ChatPhotoSticker.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Information about the sticker, which was used to create the chat photo. The sticker is shown at the center of the photo and occupies at most 67% of it /// - public static partial class TdApi + public partial class ChatPhotoSticker : Object { /// - /// Information about the sticker, which was used to create the chat photo. The sticker is shown at the center of the photo and occupies at most 67% of it + /// Data type for serialization /// - public partial class ChatPhotoSticker : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPhotoSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPhotoSticker"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ChatPhotoStickerType Type { get; set; } + /// + /// Type of the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ChatPhotoStickerType Type { get; set; } - /// - /// The fill to be used as background for the sticker; rotation angle in backgroundFillGradient isn't supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background_fill")] - public BackgroundFill BackgroundFill { get; set; } - } + /// + /// The fill to be used as background for the sticker; rotation angle in backgroundFillGradient isn't supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background_fill")] + public BackgroundFill BackgroundFill { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatPhotoStickerTypeCustomEmoji.cs b/TdLib.Api/Objects/ChatPhotoStickerTypeCustomEmoji.cs index aa1f8f61..75fb431d 100644 --- a/TdLib.Api/Objects/ChatPhotoStickerTypeCustomEmoji.cs +++ b/TdLib.Api/Objects/ChatPhotoStickerTypeCustomEmoji.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatPhotoStickerType : Object { - public partial class ChatPhotoStickerType : Object + /// + /// Information about the custom emoji, which was used to create the chat photo + /// + public class ChatPhotoStickerTypeCustomEmoji : ChatPhotoStickerType { /// - /// Information about the custom emoji, which was used to create the chat photo + /// Data type for serialization /// - public class ChatPhotoStickerTypeCustomEmoji : ChatPhotoStickerType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPhotoStickerTypeCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPhotoStickerTypeCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the custom emoji - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } - } + /// + /// Identifier of the custom emoji + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatPhotoStickerTypeRegularOrMask.cs b/TdLib.Api/Objects/ChatPhotoStickerTypeRegularOrMask.cs index 3cbe7b69..5e899579 100644 --- a/TdLib.Api/Objects/ChatPhotoStickerTypeRegularOrMask.cs +++ b/TdLib.Api/Objects/ChatPhotoStickerTypeRegularOrMask.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatPhotoStickerType : Object { - public partial class ChatPhotoStickerType : Object + /// + /// Describes type of sticker, which was used to create a chat photo + /// + public class ChatPhotoStickerTypeRegularOrMask : ChatPhotoStickerType { /// - /// Describes type of sticker, which was used to create a chat photo + /// Data type for serialization /// - public class ChatPhotoStickerTypeRegularOrMask : ChatPhotoStickerType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPhotoStickerTypeRegularOrMask"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPhotoStickerTypeRegularOrMask"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker set identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sticker_set_id")] - public long StickerSetId { get; set; } + /// + /// Sticker set identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sticker_set_id")] + public long StickerSetId { get; set; } - /// - /// Identifier of the sticker in the set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sticker_id")] - public long StickerId { get; set; } - } + /// + /// Identifier of the sticker in the set + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sticker_id")] + public long StickerId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatPhotos.cs b/TdLib.Api/Objects/ChatPhotos.cs index dc0a1f4a..1e98dd8f 100644 --- a/TdLib.Api/Objects/ChatPhotos.cs +++ b/TdLib.Api/Objects/ChatPhotos.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat or user profile photos /// - public static partial class TdApi + public partial class ChatPhotos : Object { /// - /// Contains a list of chat or user profile photos + /// Data type for serialization /// - public partial class ChatPhotos : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPhotos"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPhotos"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of photos - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of photos + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of photos - /// - [JsonProperty("photos", ItemConverterType = typeof(Converter))] - public ChatPhoto[] Photos { get; set; } - } + /// + /// List of photos + /// + [JsonProperty("photos", ItemConverterType = typeof(Converter))] + public ChatPhoto[] Photos { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatPosition.cs b/TdLib.Api/Objects/ChatPosition.cs index 8552727e..5453178a 100644 --- a/TdLib.Api/Objects/ChatPosition.cs +++ b/TdLib.Api/Objects/ChatPosition.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a position of a chat in a chat list /// - public static partial class TdApi + public partial class ChatPosition : Object { /// - /// Describes a position of a chat in a chat list + /// Data type for serialization /// - public partial class ChatPosition : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatPosition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatPosition"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("list")] - public ChatList List { get; set; } + /// + /// The chat list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("list")] + public ChatList List { get; set; } - /// - /// A parameter used to determine order of the chat in the chat list. Chats must be sorted by the pair (order, chat.id) in descending order - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("order")] - public long Order { get; set; } + /// + /// A parameter used to determine order of the chat in the chat list. Chats must be sorted by the pair (order, chat.id) in descending order + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("order")] + public long Order { get; set; } - /// - /// True, if the chat is pinned in the chat list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } + /// + /// True, if the chat is pinned in the chat list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } - /// - /// Source of the chat in the chat list; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public ChatSource Source { get; set; } - } + /// + /// Source of the chat in the chat list; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public ChatSource Source { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatRevenueAmount.cs b/TdLib.Api/Objects/ChatRevenueAmount.cs index 72754e79..54c382f6 100644 --- a/TdLib.Api/Objects/ChatRevenueAmount.cs +++ b/TdLib.Api/Objects/ChatRevenueAmount.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about revenue earned from sponsored messages in a chat /// - public static partial class TdApi + public partial class ChatRevenueAmount : Object { /// - /// Contains information about revenue earned from sponsored messages in a chat + /// Data type for serialization /// - public partial class ChatRevenueAmount : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueAmount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueAmount"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Cryptocurrency in which revenue is calculated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cryptocurrency")] - public string Cryptocurrency { get; set; } + /// + /// Cryptocurrency in which revenue is calculated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } - /// - /// Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("total_amount")] - public long TotalAmount { get; set; } + /// + /// Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("total_amount")] + public long TotalAmount { get; set; } - /// - /// Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("balance_amount")] - public long BalanceAmount { get; set; } + /// + /// Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("balance_amount")] + public long BalanceAmount { get; set; } - /// - /// Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("available_amount")] - public long AvailableAmount { get; set; } + /// + /// Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("available_amount")] + public long AvailableAmount { get; set; } - /// - /// True, if Telegram Stars can be withdrawn now or later - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("withdrawal_enabled")] - public bool WithdrawalEnabled { get; set; } - } + /// + /// True, if Telegram Stars can be withdrawn now or later + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("withdrawal_enabled")] + public bool WithdrawalEnabled { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatRevenueStatistics.cs b/TdLib.Api/Objects/ChatRevenueStatistics.cs index edec1c82..8b3cfa15 100644 --- a/TdLib.Api/Objects/ChatRevenueStatistics.cs +++ b/TdLib.Api/Objects/ChatRevenueStatistics.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A detailed statistics about revenue earned from sponsored messages in a chat /// - public static partial class TdApi + public partial class ChatRevenueStatistics : Object { /// - /// A detailed statistics about revenue earned from sponsored messages in a chat + /// Data type for serialization /// - public partial class ChatRevenueStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A graph containing amount of revenue in a given hour - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revenue_by_hour_graph")] - public StatisticalGraph RevenueByHourGraph { get; set; } + /// + /// A graph containing amount of revenue in a given hour + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revenue_by_hour_graph")] + public StatisticalGraph RevenueByHourGraph { get; set; } - /// - /// A graph containing amount of revenue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revenue_graph")] - public StatisticalGraph RevenueGraph { get; set; } + /// + /// A graph containing amount of revenue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revenue_graph")] + public StatisticalGraph RevenueGraph { get; set; } - /// - /// Amount of earned revenue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revenue_amount")] - public ChatRevenueAmount RevenueAmount { get; set; } + /// + /// Amount of earned revenue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revenue_amount")] + public ChatRevenueAmount RevenueAmount { get; set; } - /// - /// Current conversion rate of the cryptocurrency in which revenue is calculated to USD - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("usd_rate")] - public double? UsdRate { get; set; } - } + /// + /// Current exchange rate of the cryptocurrency in which revenue is calculated to USD + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("usd_rate")] + public double? UsdRate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatRevenueTransaction.cs b/TdLib.Api/Objects/ChatRevenueTransaction.cs index 29292072..f38a571b 100644 --- a/TdLib.Api/Objects/ChatRevenueTransaction.cs +++ b/TdLib.Api/Objects/ChatRevenueTransaction.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a chat revenue transactions /// - public static partial class TdApi + public partial class ChatRevenueTransaction : Object { /// - /// Contains a chat revenue transactions + /// Data type for serialization /// - public partial class ChatRevenueTransaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueTransaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueTransaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Cryptocurrency in which revenue is calculated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cryptocurrency")] - public string Cryptocurrency { get; set; } + /// + /// Cryptocurrency in which revenue is calculated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } - /// - /// The withdrawn amount, in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("cryptocurrency_amount")] - public long CryptocurrencyAmount { get; set; } + /// + /// The withdrawn amount, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("cryptocurrency_amount")] + public long CryptocurrencyAmount { get; set; } - /// - /// Type of the transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ChatRevenueTransactionType Type { get; set; } - } + /// + /// Type of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ChatRevenueTransactionType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentRefund.cs b/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentRefund.cs index d01fc5d9..98db62ad 100644 --- a/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentRefund.cs +++ b/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentRefund.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatRevenueTransactionType : Object { - public partial class ChatRevenueTransactionType : Object + /// + /// Describes a refund for failed withdrawal of earnings through Fragment + /// + public class ChatRevenueTransactionTypeFragmentRefund : ChatRevenueTransactionType { /// - /// Describes a refund for failed withdrawal of earnings through Fragment + /// Data type for serialization /// - public class ChatRevenueTransactionTypeFragmentRefund : ChatRevenueTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueTransactionTypeFragmentRefund"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueTransactionTypeFragmentRefund"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the transaction was refunded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("refund_date")] - public int RefundDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the transaction was refunded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("refund_date")] + public int RefundDate { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentWithdrawal.cs b/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentWithdrawal.cs index 9a3f45dc..e3fed3b9 100644 --- a/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentWithdrawal.cs +++ b/TdLib.Api/Objects/ChatRevenueTransactionTypeFragmentWithdrawal.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatRevenueTransactionType : Object { - public partial class ChatRevenueTransactionType : Object + /// + /// Describes a withdrawal of earnings through Fragment + /// + public class ChatRevenueTransactionTypeFragmentWithdrawal : ChatRevenueTransactionType { /// - /// Describes a withdrawal of earnings through Fragment + /// Data type for serialization /// - public class ChatRevenueTransactionTypeFragmentWithdrawal : ChatRevenueTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueTransactionTypeFragmentWithdrawal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueTransactionTypeFragmentWithdrawal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the earnings withdrawal started - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("withdrawal_date")] - public int WithdrawalDate { get; set; } + /// + /// Point in time (Unix timestamp) when the earnings withdrawal started + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("withdrawal_date")] + public int WithdrawalDate { get; set; } - /// - /// State of the withdrawal - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public RevenueWithdrawalState State { get; set; } - } + /// + /// State of the withdrawal + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public RevenueWithdrawalState State { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatRevenueTransactionTypeSponsoredMessageEarnings.cs b/TdLib.Api/Objects/ChatRevenueTransactionTypeSponsoredMessageEarnings.cs index f50c517a..b074e6ab 100644 --- a/TdLib.Api/Objects/ChatRevenueTransactionTypeSponsoredMessageEarnings.cs +++ b/TdLib.Api/Objects/ChatRevenueTransactionTypeSponsoredMessageEarnings.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatRevenueTransactionType : Object { - public partial class ChatRevenueTransactionType : Object + /// + /// Describes earnings from sponsored messages in a chat in some time frame + /// + public class ChatRevenueTransactionTypeSponsoredMessageEarnings : ChatRevenueTransactionType { /// - /// Describes earnings from sponsored messages in a chat in some time frame + /// Data type for serialization /// - public class ChatRevenueTransactionTypeSponsoredMessageEarnings : ChatRevenueTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueTransactionTypeSponsoredMessageEarnings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueTransactionTypeSponsoredMessageEarnings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the earnings started - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } + /// + /// Point in time (Unix timestamp) when the earnings started + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } - /// - /// Point in time (Unix timestamp) when the earnings ended - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_date")] - public int EndDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the earnings ended + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_date")] + public int EndDate { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatRevenueTransactionTypeSuggestedPostEarnings.cs b/TdLib.Api/Objects/ChatRevenueTransactionTypeSuggestedPostEarnings.cs index 5de9f873..46da7400 100644 --- a/TdLib.Api/Objects/ChatRevenueTransactionTypeSuggestedPostEarnings.cs +++ b/TdLib.Api/Objects/ChatRevenueTransactionTypeSuggestedPostEarnings.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatRevenueTransactionType : Object { - public partial class ChatRevenueTransactionType : Object + /// + /// Describes earnings from a published suggested post + /// + public class ChatRevenueTransactionTypeSuggestedPostEarnings : ChatRevenueTransactionType { /// - /// Describes earnings from a published suggested post + /// Data type for serialization /// - public class ChatRevenueTransactionTypeSuggestedPostEarnings : ChatRevenueTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueTransactionTypeSuggestedPostEarnings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueTransactionTypeSuggestedPostEarnings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who paid for the suggested post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the user who paid for the suggested post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatRevenueTransactionTypeUnsupported.cs b/TdLib.Api/Objects/ChatRevenueTransactionTypeUnsupported.cs index be4a353b..6e809167 100644 --- a/TdLib.Api/Objects/ChatRevenueTransactionTypeUnsupported.cs +++ b/TdLib.Api/Objects/ChatRevenueTransactionTypeUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatRevenueTransactionType : Object { - public partial class ChatRevenueTransactionType : Object + /// + /// Describes type of transaction for revenue earned from sponsored messages in a chat + /// + public class ChatRevenueTransactionTypeUnsupported : ChatRevenueTransactionType { /// - /// Describes type of transaction for revenue earned from sponsored messages in a chat + /// Data type for serialization /// - public class ChatRevenueTransactionTypeUnsupported : ChatRevenueTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueTransactionTypeUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueTransactionTypeUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatRevenueTransactions.cs b/TdLib.Api/Objects/ChatRevenueTransactions.cs index 2765d7cb..ceb71ca0 100644 --- a/TdLib.Api/Objects/ChatRevenueTransactions.cs +++ b/TdLib.Api/Objects/ChatRevenueTransactions.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat revenue transactions /// - public static partial class TdApi + public partial class ChatRevenueTransactions : Object { /// - /// Contains a list of chat revenue transactions + /// Data type for serialization /// - public partial class ChatRevenueTransactions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatRevenueTransactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatRevenueTransactions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The amount of owned TON Grams; in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_amount")] - public long GramAmount { get; set; } + /// + /// The amount of owned TON Grams; in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } - /// - /// List of transactions - /// - [JsonProperty("transactions", ItemConverterType = typeof(Converter))] - public ChatRevenueTransaction[] Transactions { get; set; } + /// + /// List of transactions + /// + [JsonProperty("transactions", ItemConverterType = typeof(Converter))] + public ChatRevenueTransaction[] Transactions { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatSourceMtprotoProxy.cs b/TdLib.Api/Objects/ChatSourceMtprotoProxy.cs index be36d637..199b2ea9 100644 --- a/TdLib.Api/Objects/ChatSourceMtprotoProxy.cs +++ b/TdLib.Api/Objects/ChatSourceMtprotoProxy.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatSource : Object { - public partial class ChatSource : Object + /// + /// Describes a reason why an external chat is shown in a chat list + /// + public class ChatSourceMtprotoProxy : ChatSource { /// - /// Describes a reason why an external chat is shown in a chat list + /// Data type for serialization /// - public class ChatSourceMtprotoProxy : ChatSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatSourceMtprotoProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatSourceMtprotoProxy"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ChatSourcePublicServiceAnnouncement.cs b/TdLib.Api/Objects/ChatSourcePublicServiceAnnouncement.cs index caae1609..76474da6 100644 --- a/TdLib.Api/Objects/ChatSourcePublicServiceAnnouncement.cs +++ b/TdLib.Api/Objects/ChatSourcePublicServiceAnnouncement.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatSource : Object { - public partial class ChatSource : Object + /// + /// The chat contains a public service announcement + /// + public class ChatSourcePublicServiceAnnouncement : ChatSource { /// - /// The chat contains a public service announcement + /// Data type for serialization /// - public class ChatSourcePublicServiceAnnouncement : ChatSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatSourcePublicServiceAnnouncement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatSourcePublicServiceAnnouncement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The type of the announcement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public string Type { get; set; } + /// + /// The type of the announcement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public string Type { get; set; } - /// - /// The text of the announcement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// The text of the announcement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatStatisticsAdministratorActionsInfo.cs b/TdLib.Api/Objects/ChatStatisticsAdministratorActionsInfo.cs index 6a70500c..3de44c96 100644 --- a/TdLib.Api/Objects/ChatStatisticsAdministratorActionsInfo.cs +++ b/TdLib.Api/Objects/ChatStatisticsAdministratorActionsInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains statistics about administrator actions done by a user /// - public static partial class TdApi + public partial class ChatStatisticsAdministratorActionsInfo : Object { /// - /// Contains statistics about administrator actions done by a user + /// Data type for serialization /// - public partial class ChatStatisticsAdministratorActionsInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsAdministratorActionsInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsAdministratorActionsInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Administrator user identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Administrator user identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Number of messages deleted by the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("deleted_message_count")] - public int DeletedMessageCount { get; set; } + /// + /// Number of messages deleted by the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("deleted_message_count")] + public int DeletedMessageCount { get; set; } - /// - /// Number of users banned by the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("banned_user_count")] - public int BannedUserCount { get; set; } + /// + /// Number of users banned by the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("banned_user_count")] + public int BannedUserCount { get; set; } - /// - /// Number of users restricted by the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restricted_user_count")] - public int RestrictedUserCount { get; set; } - } + /// + /// Number of users restricted by the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restricted_user_count")] + public int RestrictedUserCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatStatisticsChannel.cs b/TdLib.Api/Objects/ChatStatisticsChannel.cs index d2b17b27..986543e7 100644 --- a/TdLib.Api/Objects/ChatStatisticsChannel.cs +++ b/TdLib.Api/Objects/ChatStatisticsChannel.cs @@ -2,185 +2,184 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatStatistics : Object { - public partial class ChatStatistics : Object + /// + /// A detailed statistics about a channel chat + /// + public class ChatStatisticsChannel : ChatStatistics { /// - /// A detailed statistics about a channel chat - /// - public class ChatStatisticsChannel : ChatStatistics - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsChannel"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// A period to which the statistics applies - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("period")] - public DateRange Period { get; set; } - - /// - /// Number of members in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count")] - public StatisticalValue MemberCount { get; set; } - - /// - /// Mean number of times the recently sent messages were viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mean_message_view_count")] - public StatisticalValue MeanMessageViewCount { get; set; } - - /// - /// Mean number of times the recently sent messages were shared - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mean_message_share_count")] - public StatisticalValue MeanMessageShareCount { get; set; } - - /// - /// Mean number of times reactions were added to the recently sent messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mean_message_reaction_count")] - public StatisticalValue MeanMessageReactionCount { get; set; } - - /// - /// Mean number of times the recently posted stories were viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mean_story_view_count")] - public StatisticalValue MeanStoryViewCount { get; set; } - - /// - /// Mean number of times the recently posted stories were shared - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mean_story_share_count")] - public StatisticalValue MeanStoryShareCount { get; set; } - - /// - /// Mean number of times reactions were added to the recently posted stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mean_story_reaction_count")] - public StatisticalValue MeanStoryReactionCount { get; set; } - - /// - /// A percentage of users with enabled notifications for the chat; 0-100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("enabled_notifications_percentage")] - public double? EnabledNotificationsPercentage { get; set; } - - /// - /// A graph containing number of members in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count_graph")] - public StatisticalGraph MemberCountGraph { get; set; } - - /// - /// A graph containing number of members joined and left the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_graph")] - public StatisticalGraph JoinGraph { get; set; } - - /// - /// A graph containing number of members muted and unmuted the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_graph")] - public StatisticalGraph MuteGraph { get; set; } - - /// - /// A graph containing number of message views in a given hour in the last two weeks - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_count_by_hour_graph")] - public StatisticalGraph ViewCountByHourGraph { get; set; } - - /// - /// A graph containing number of message views per source - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_count_by_source_graph")] - public StatisticalGraph ViewCountBySourceGraph { get; set; } - - /// - /// A graph containing number of new member joins per source - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_by_source_graph")] - public StatisticalGraph JoinBySourceGraph { get; set; } - - /// - /// A graph containing number of users viewed chat messages per language - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_graph")] - public StatisticalGraph LanguageGraph { get; set; } - - /// - /// A graph containing number of chat message views and shares - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_interaction_graph")] - public StatisticalGraph MessageInteractionGraph { get; set; } - - /// - /// A graph containing number of reactions on messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_reaction_graph")] - public StatisticalGraph MessageReactionGraph { get; set; } - - /// - /// A graph containing number of story views and shares - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_interaction_graph")] - public StatisticalGraph StoryInteractionGraph { get; set; } - - /// - /// A graph containing number of reactions on stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_reaction_graph")] - public StatisticalGraph StoryReactionGraph { get; set; } - - /// - /// A graph containing number of views of associated with the chat instant views - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("instant_view_interaction_graph")] - public StatisticalGraph InstantViewInteractionGraph { get; set; } - - /// - /// Detailed statistics about number of views and shares of recently sent messages and posted stories - /// - [JsonProperty("recent_interactions", ItemConverterType = typeof(Converter))] - public ChatStatisticsInteractionInfo[] RecentInteractions { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsChannel"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// A period to which the statistics applies + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("period")] + public DateRange Period { get; set; } + + /// + /// Number of members in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count")] + public StatisticalValue MemberCount { get; set; } + + /// + /// Mean number of times the recently sent messages were viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mean_message_view_count")] + public StatisticalValue MeanMessageViewCount { get; set; } + + /// + /// Mean number of times the recently sent messages were shared + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mean_message_share_count")] + public StatisticalValue MeanMessageShareCount { get; set; } + + /// + /// Mean number of times reactions were added to the recently sent messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mean_message_reaction_count")] + public StatisticalValue MeanMessageReactionCount { get; set; } + + /// + /// Mean number of times the recently posted stories were viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mean_story_view_count")] + public StatisticalValue MeanStoryViewCount { get; set; } + + /// + /// Mean number of times the recently posted stories were shared + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mean_story_share_count")] + public StatisticalValue MeanStoryShareCount { get; set; } + + /// + /// Mean number of times reactions were added to the recently posted stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mean_story_reaction_count")] + public StatisticalValue MeanStoryReactionCount { get; set; } + + /// + /// A percentage of users with enabled notifications for the chat; 0-100 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("enabled_notifications_percentage")] + public double? EnabledNotificationsPercentage { get; set; } + + /// + /// A graph containing number of members in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count_graph")] + public StatisticalGraph MemberCountGraph { get; set; } + + /// + /// A graph containing number of members joined and left the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_graph")] + public StatisticalGraph JoinGraph { get; set; } + + /// + /// A graph containing number of members muted and unmuted the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_graph")] + public StatisticalGraph MuteGraph { get; set; } + + /// + /// A graph containing number of message views in a given hour in the last two weeks + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_count_by_hour_graph")] + public StatisticalGraph ViewCountByHourGraph { get; set; } + + /// + /// A graph containing number of message views per source + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_count_by_source_graph")] + public StatisticalGraph ViewCountBySourceGraph { get; set; } + + /// + /// A graph containing number of new member joins per source + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_by_source_graph")] + public StatisticalGraph JoinBySourceGraph { get; set; } + + /// + /// A graph containing number of users viewed chat messages per language + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_graph")] + public StatisticalGraph LanguageGraph { get; set; } + + /// + /// A graph containing number of chat message views and shares + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_interaction_graph")] + public StatisticalGraph MessageInteractionGraph { get; set; } + + /// + /// A graph containing number of reactions on messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_reaction_graph")] + public StatisticalGraph MessageReactionGraph { get; set; } + + /// + /// A graph containing number of story views and shares + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_interaction_graph")] + public StatisticalGraph StoryInteractionGraph { get; set; } + + /// + /// A graph containing number of reactions on stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_reaction_graph")] + public StatisticalGraph StoryReactionGraph { get; set; } + + /// + /// A graph containing number of views of associated with the chat instant views + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("instant_view_interaction_graph")] + public StatisticalGraph InstantViewInteractionGraph { get; set; } + + /// + /// Detailed statistics about number of views and shares of recently sent messages and posted stories + /// + [JsonProperty("recent_interactions", ItemConverterType = typeof(Converter))] + public ChatStatisticsInteractionInfo[] RecentInteractions { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatStatisticsInteractionInfo.cs b/TdLib.Api/Objects/ChatStatisticsInteractionInfo.cs index 53620d3e..15feb2ec 100644 --- a/TdLib.Api/Objects/ChatStatisticsInteractionInfo.cs +++ b/TdLib.Api/Objects/ChatStatisticsInteractionInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains statistics about interactions with a message sent in the chat or a story posted on behalf of the chat /// - public static partial class TdApi + public partial class ChatStatisticsInteractionInfo : Object { /// - /// Contains statistics about interactions with a message sent in the chat or a story posted on behalf of the chat + /// Data type for serialization /// - public partial class ChatStatisticsInteractionInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsInteractionInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsInteractionInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the object - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("object_type")] - public ChatStatisticsObjectType ObjectType { get; set; } + /// + /// Type of the object + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("object_type")] + public ChatStatisticsObjectType ObjectType { get; set; } - /// - /// Number of times the object was viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_count")] - public int ViewCount { get; set; } + /// + /// Number of times the object was viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_count")] + public int ViewCount { get; set; } - /// - /// Number of times the object was forwarded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forward_count")] - public int ForwardCount { get; set; } + /// + /// Number of times the object was forwarded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forward_count")] + public int ForwardCount { get; set; } - /// - /// Number of times reactions were added to the object - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_count")] - public int ReactionCount { get; set; } - } + /// + /// Number of times reactions were added to the object + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_count")] + public int ReactionCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatStatisticsInviterInfo.cs b/TdLib.Api/Objects/ChatStatisticsInviterInfo.cs index e1fc23af..fcc8571c 100644 --- a/TdLib.Api/Objects/ChatStatisticsInviterInfo.cs +++ b/TdLib.Api/Objects/ChatStatisticsInviterInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains statistics about number of new members invited by a user /// - public static partial class TdApi + public partial class ChatStatisticsInviterInfo : Object { /// - /// Contains statistics about number of new members invited by a user + /// Data type for serialization /// - public partial class ChatStatisticsInviterInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsInviterInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsInviterInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Number of new members invited by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("added_member_count")] - public int AddedMemberCount { get; set; } - } + /// + /// Number of new members invited by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("added_member_count")] + public int AddedMemberCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatStatisticsMessageSenderInfo.cs b/TdLib.Api/Objects/ChatStatisticsMessageSenderInfo.cs index 584be73b..4c133c73 100644 --- a/TdLib.Api/Objects/ChatStatisticsMessageSenderInfo.cs +++ b/TdLib.Api/Objects/ChatStatisticsMessageSenderInfo.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains statistics about messages sent by a user /// - public static partial class TdApi + public partial class ChatStatisticsMessageSenderInfo : Object { /// - /// Contains statistics about messages sent by a user + /// Data type for serialization /// - public partial class ChatStatisticsMessageSenderInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsMessageSenderInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsMessageSenderInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Number of sent messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sent_message_count")] - public int SentMessageCount { get; set; } + /// + /// Number of sent messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sent_message_count")] + public int SentMessageCount { get; set; } - /// - /// Average number of characters in sent messages; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("average_character_count")] - public int AverageCharacterCount { get; set; } - } + /// + /// Average number of characters in sent messages; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("average_character_count")] + public int AverageCharacterCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChatStatisticsObjectTypeMessage.cs b/TdLib.Api/Objects/ChatStatisticsObjectTypeMessage.cs index 536c50c7..32263e58 100644 --- a/TdLib.Api/Objects/ChatStatisticsObjectTypeMessage.cs +++ b/TdLib.Api/Objects/ChatStatisticsObjectTypeMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatStatisticsObjectType : Object { - public partial class ChatStatisticsObjectType : Object + /// + /// Describes type of object, for which statistics are provided + /// + public class ChatStatisticsObjectTypeMessage : ChatStatisticsObjectType { /// - /// Describes type of object, for which statistics are provided + /// Data type for serialization /// - public class ChatStatisticsObjectTypeMessage : ChatStatisticsObjectType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsObjectTypeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsObjectTypeMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatStatisticsObjectTypeStory.cs b/TdLib.Api/Objects/ChatStatisticsObjectTypeStory.cs index 94a86321..7b7fc96d 100644 --- a/TdLib.Api/Objects/ChatStatisticsObjectTypeStory.cs +++ b/TdLib.Api/Objects/ChatStatisticsObjectTypeStory.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatStatisticsObjectType : Object { - public partial class ChatStatisticsObjectType : Object + /// + /// Describes a story posted on behalf of the chat + /// + public class ChatStatisticsObjectTypeStory : ChatStatisticsObjectType { /// - /// Describes a story posted on behalf of the chat + /// Data type for serialization /// - public class ChatStatisticsObjectTypeStory : ChatStatisticsObjectType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsObjectTypeStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsObjectTypeStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatStatisticsSupergroup.cs b/TdLib.Api/Objects/ChatStatisticsSupergroup.cs index 341cc8f9..50e2a8bd 100644 --- a/TdLib.Api/Objects/ChatStatisticsSupergroup.cs +++ b/TdLib.Api/Objects/ChatStatisticsSupergroup.cs @@ -2,141 +2,140 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatStatistics : Object { - public partial class ChatStatistics : Object + /// + /// Contains a detailed statistics about a chat + /// + public class ChatStatisticsSupergroup : ChatStatistics { /// - /// Contains a detailed statistics about a chat - /// - public class ChatStatisticsSupergroup : ChatStatistics - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatStatisticsSupergroup"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// A period to which the statistics applies - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("period")] - public DateRange Period { get; set; } - - /// - /// Number of members in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count")] - public StatisticalValue MemberCount { get; set; } - - /// - /// Number of messages sent to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_count")] - public StatisticalValue MessageCount { get; set; } - - /// - /// Number of users who viewed messages in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("viewer_count")] - public StatisticalValue ViewerCount { get; set; } - - /// - /// Number of users who sent messages to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_count")] - public StatisticalValue SenderCount { get; set; } - - /// - /// A graph containing number of members in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count_graph")] - public StatisticalGraph MemberCountGraph { get; set; } - - /// - /// A graph containing number of members joined and left the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_graph")] - public StatisticalGraph JoinGraph { get; set; } - - /// - /// A graph containing number of new member joins per source - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_by_source_graph")] - public StatisticalGraph JoinBySourceGraph { get; set; } - - /// - /// A graph containing distribution of active users per language - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_graph")] - public StatisticalGraph LanguageGraph { get; set; } - - /// - /// A graph containing distribution of sent messages by content type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_content_graph")] - public StatisticalGraph MessageContentGraph { get; set; } - - /// - /// A graph containing number of different actions in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action_graph")] - public StatisticalGraph ActionGraph { get; set; } - - /// - /// A graph containing distribution of message views per hour - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("day_graph")] - public StatisticalGraph DayGraph { get; set; } - - /// - /// A graph containing distribution of message views per day of week - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("week_graph")] - public StatisticalGraph WeekGraph { get; set; } - - /// - /// List of users sent most messages in the last week - /// - [JsonProperty("top_senders", ItemConverterType = typeof(Converter))] - public ChatStatisticsMessageSenderInfo[] TopSenders { get; set; } - - /// - /// List of most active administrators in the last week - /// - [JsonProperty("top_administrators", ItemConverterType = typeof(Converter))] - public ChatStatisticsAdministratorActionsInfo[] TopAdministrators { get; set; } - - /// - /// List of most active inviters of new members in the last week - /// - [JsonProperty("top_inviters", ItemConverterType = typeof(Converter))] - public ChatStatisticsInviterInfo[] TopInviters { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatStatisticsSupergroup"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// A period to which the statistics applies + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("period")] + public DateRange Period { get; set; } + + /// + /// Number of members in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count")] + public StatisticalValue MemberCount { get; set; } + + /// + /// Number of messages sent to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_count")] + public StatisticalValue MessageCount { get; set; } + + /// + /// Number of users who viewed messages in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("viewer_count")] + public StatisticalValue ViewerCount { get; set; } + + /// + /// Number of users who sent messages to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_count")] + public StatisticalValue SenderCount { get; set; } + + /// + /// A graph containing number of members in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count_graph")] + public StatisticalGraph MemberCountGraph { get; set; } + + /// + /// A graph containing number of members joined and left the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_graph")] + public StatisticalGraph JoinGraph { get; set; } + + /// + /// A graph containing number of new member joins per source + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_by_source_graph")] + public StatisticalGraph JoinBySourceGraph { get; set; } + + /// + /// A graph containing distribution of active users per language + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_graph")] + public StatisticalGraph LanguageGraph { get; set; } + + /// + /// A graph containing distribution of sent messages by content type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_content_graph")] + public StatisticalGraph MessageContentGraph { get; set; } + + /// + /// A graph containing number of different actions in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("action_graph")] + public StatisticalGraph ActionGraph { get; set; } + + /// + /// A graph containing distribution of message views per hour + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("day_graph")] + public StatisticalGraph DayGraph { get; set; } + + /// + /// A graph containing distribution of message views per day of week + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("week_graph")] + public StatisticalGraph WeekGraph { get; set; } + + /// + /// List of users sent most messages in the last week + /// + [JsonProperty("top_senders", ItemConverterType = typeof(Converter))] + public ChatStatisticsMessageSenderInfo[] TopSenders { get; set; } + + /// + /// List of most active administrators in the last week + /// + [JsonProperty("top_administrators", ItemConverterType = typeof(Converter))] + public ChatStatisticsAdministratorActionsInfo[] TopAdministrators { get; set; } + + /// + /// List of most active inviters of new members in the last week + /// + [JsonProperty("top_inviters", ItemConverterType = typeof(Converter))] + public ChatStatisticsInviterInfo[] TopInviters { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatThemeEmoji.cs b/TdLib.Api/Objects/ChatThemeEmoji.cs index 5e1b9be8..9bd9d766 100644 --- a/TdLib.Api/Objects/ChatThemeEmoji.cs +++ b/TdLib.Api/Objects/ChatThemeEmoji.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatTheme : Object { - public partial class ChatTheme : Object + /// + /// Describes a chat theme + /// + public class ChatThemeEmoji : ChatTheme { /// - /// Describes a chat theme + /// Data type for serialization /// - public class ChatThemeEmoji : ChatTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatThemeEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatThemeEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the theme; full theme description is received through updateEmojiChatThemes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the theme; full theme description is received through updateEmojiChatThemes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatThemeGift.cs b/TdLib.Api/Objects/ChatThemeGift.cs index 84f1cc18..74ea08a6 100644 --- a/TdLib.Api/Objects/ChatThemeGift.cs +++ b/TdLib.Api/Objects/ChatThemeGift.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatTheme : Object { - public partial class ChatTheme : Object + /// + /// A chat theme based on an upgraded gift + /// + public class ChatThemeGift : ChatTheme { /// - /// A chat theme based on an upgraded gift + /// Data type for serialization /// - public class ChatThemeGift : ChatTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatThemeGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatThemeGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_theme")] - public GiftChatTheme GiftTheme { get; set; } - } + /// + /// The chat theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_theme")] + public GiftChatTheme GiftTheme { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatTypeBasicGroup.cs b/TdLib.Api/Objects/ChatTypeBasicGroup.cs index 952d651d..cdda9a0f 100644 --- a/TdLib.Api/Objects/ChatTypeBasicGroup.cs +++ b/TdLib.Api/Objects/ChatTypeBasicGroup.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatType : Object { - public partial class ChatType : Object + /// + /// A basic group (a chat with 0-200 other users) + /// + public class ChatTypeBasicGroup : ChatType { /// - /// A basic group (a chat with 0-200 other users) + /// Data type for serialization /// - public class ChatTypeBasicGroup : ChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatTypeBasicGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatTypeBasicGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Basic group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group_id")] - public long BasicGroupId { get; set; } - } + /// + /// Basic group identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group_id")] + public long BasicGroupId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatTypePrivate.cs b/TdLib.Api/Objects/ChatTypePrivate.cs index 7ebb6d75..3c8ff49c 100644 --- a/TdLib.Api/Objects/ChatTypePrivate.cs +++ b/TdLib.Api/Objects/ChatTypePrivate.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatType : Object { - public partial class ChatType : Object + /// + /// Describes the type of chat + /// + public class ChatTypePrivate : ChatType { /// - /// Describes the type of chat + /// Data type for serialization /// - public class ChatTypePrivate : ChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatTypePrivate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatTypePrivate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatTypeSecret.cs b/TdLib.Api/Objects/ChatTypeSecret.cs index 6aa2bfb1..92fc82d2 100644 --- a/TdLib.Api/Objects/ChatTypeSecret.cs +++ b/TdLib.Api/Objects/ChatTypeSecret.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatType : Object { - public partial class ChatType : Object + /// + /// A secret chat with a user + /// + public class ChatTypeSecret : ChatType { /// - /// A secret chat with a user + /// Data type for serialization /// - public class ChatTypeSecret : ChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatTypeSecret"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatTypeSecret"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Secret chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secret_chat_id")] - public int SecretChatId { get; set; } + /// + /// Secret chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("secret_chat_id")] + public int SecretChatId { get; set; } - /// - /// User identifier of the other user in the secret chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// User identifier of the other user in the secret chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/ChatTypeSupergroup.cs b/TdLib.Api/Objects/ChatTypeSupergroup.cs index fd05b46a..b17da041 100644 --- a/TdLib.Api/Objects/ChatTypeSupergroup.cs +++ b/TdLib.Api/Objects/ChatTypeSupergroup.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ChatType : Object { - public partial class ChatType : Object + /// + /// A supergroup or channel (with unlimited members) + /// + public class ChatTypeSupergroup : ChatType { /// - /// A supergroup or channel (with unlimited members) + /// Data type for serialization /// - public class ChatTypeSupergroup : ChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chatTypeSupergroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chatTypeSupergroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Supergroup or channel identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Supergroup or channel identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } - /// - /// True, if the supergroup is a channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_channel")] - public bool IsChannel { get; set; } - } + /// + /// True, if the supergroup is a channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_channel")] + public bool IsChannel { get; set; } } } } diff --git a/TdLib.Api/Objects/Chats.cs b/TdLib.Api/Objects/Chats.cs index 4b9c4930..b05bc9dd 100644 --- a/TdLib.Api/Objects/Chats.cs +++ b/TdLib.Api/Objects/Chats.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of chats /// - public static partial class TdApi + public partial class Chats : Object { /// - /// Represents a list of chats + /// Data type for serialization /// - public partial class Chats : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "chats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "chats"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of chats found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of chats found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of chat identifiers - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// List of chat identifiers + /// + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CheckChatUsernameResultOk.cs b/TdLib.Api/Objects/CheckChatUsernameResultOk.cs index 5c53c648..bd95106c 100644 --- a/TdLib.Api/Objects/CheckChatUsernameResultOk.cs +++ b/TdLib.Api/Objects/CheckChatUsernameResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckChatUsernameResult : Object { - public partial class CheckChatUsernameResult : Object + /// + /// Represents result of checking whether a username can be set for a chat + /// + public class CheckChatUsernameResultOk : CheckChatUsernameResult { /// - /// Represents result of checking whether a username can be set for a chat + /// Data type for serialization /// - public class CheckChatUsernameResultOk : CheckChatUsernameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatUsernameResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatUsernameResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckChatUsernameResultPublicChatsTooMany.cs b/TdLib.Api/Objects/CheckChatUsernameResultPublicChatsTooMany.cs index 4d0daca2..f723d5f9 100644 --- a/TdLib.Api/Objects/CheckChatUsernameResultPublicChatsTooMany.cs +++ b/TdLib.Api/Objects/CheckChatUsernameResultPublicChatsTooMany.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckChatUsernameResult : Object { - public partial class CheckChatUsernameResult : Object + /// + /// The user has too many chats with username, one of them must be made private first + /// + public class CheckChatUsernameResultPublicChatsTooMany : CheckChatUsernameResult { /// - /// The user has too many chats with username, one of them must be made private first + /// Data type for serialization /// - public class CheckChatUsernameResultPublicChatsTooMany : CheckChatUsernameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatUsernameResultPublicChatsTooMany"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatUsernameResultPublicChatsTooMany"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckChatUsernameResultPublicGroupsUnavailable.cs b/TdLib.Api/Objects/CheckChatUsernameResultPublicGroupsUnavailable.cs index 887f94a7..7af3cef4 100644 --- a/TdLib.Api/Objects/CheckChatUsernameResultPublicGroupsUnavailable.cs +++ b/TdLib.Api/Objects/CheckChatUsernameResultPublicGroupsUnavailable.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckChatUsernameResult : Object { - public partial class CheckChatUsernameResult : Object + /// + /// The user can't be a member of a public supergroup + /// + public class CheckChatUsernameResultPublicGroupsUnavailable : CheckChatUsernameResult { /// - /// The user can't be a member of a public supergroup + /// Data type for serialization /// - public class CheckChatUsernameResultPublicGroupsUnavailable : CheckChatUsernameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatUsernameResultPublicGroupsUnavailable"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatUsernameResultPublicGroupsUnavailable"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckChatUsernameResultUsernameInvalid.cs b/TdLib.Api/Objects/CheckChatUsernameResultUsernameInvalid.cs index c95518f2..18c7a1a5 100644 --- a/TdLib.Api/Objects/CheckChatUsernameResultUsernameInvalid.cs +++ b/TdLib.Api/Objects/CheckChatUsernameResultUsernameInvalid.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckChatUsernameResult : Object { - public partial class CheckChatUsernameResult : Object + /// + /// The username is invalid + /// + public class CheckChatUsernameResultUsernameInvalid : CheckChatUsernameResult { /// - /// The username is invalid + /// Data type for serialization /// - public class CheckChatUsernameResultUsernameInvalid : CheckChatUsernameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatUsernameResultUsernameInvalid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatUsernameResultUsernameInvalid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckChatUsernameResultUsernameOccupied.cs b/TdLib.Api/Objects/CheckChatUsernameResultUsernameOccupied.cs index f034afb3..46d403f4 100644 --- a/TdLib.Api/Objects/CheckChatUsernameResultUsernameOccupied.cs +++ b/TdLib.Api/Objects/CheckChatUsernameResultUsernameOccupied.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckChatUsernameResult : Object { - public partial class CheckChatUsernameResult : Object + /// + /// The username is occupied + /// + public class CheckChatUsernameResultUsernameOccupied : CheckChatUsernameResult { /// - /// The username is occupied + /// Data type for serialization /// - public class CheckChatUsernameResultUsernameOccupied : CheckChatUsernameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatUsernameResultUsernameOccupied"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatUsernameResultUsernameOccupied"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckChatUsernameResultUsernamePurchasable.cs b/TdLib.Api/Objects/CheckChatUsernameResultUsernamePurchasable.cs index 79ef01e0..9e619dda 100644 --- a/TdLib.Api/Objects/CheckChatUsernameResultUsernamePurchasable.cs +++ b/TdLib.Api/Objects/CheckChatUsernameResultUsernamePurchasable.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckChatUsernameResult : Object { - public partial class CheckChatUsernameResult : Object + /// + /// The username can be purchased at https://fragment.com. Information about the username can be received using getCollectibleItemInfo + /// + public class CheckChatUsernameResultUsernamePurchasable : CheckChatUsernameResult { /// - /// The username can be purchased at https://fragment.com. Information about the username can be received using getCollectibleItemInfo + /// Data type for serialization /// - public class CheckChatUsernameResultUsernamePurchasable : CheckChatUsernameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkChatUsernameResultUsernamePurchasable"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkChatUsernameResultUsernamePurchasable"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckStickerSetNameResultNameInvalid.cs b/TdLib.Api/Objects/CheckStickerSetNameResultNameInvalid.cs index 77e8d268..2f3cc523 100644 --- a/TdLib.Api/Objects/CheckStickerSetNameResultNameInvalid.cs +++ b/TdLib.Api/Objects/CheckStickerSetNameResultNameInvalid.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckStickerSetNameResult : Object { - public partial class CheckStickerSetNameResult : Object + /// + /// The name is invalid + /// + public class CheckStickerSetNameResultNameInvalid : CheckStickerSetNameResult { /// - /// The name is invalid + /// Data type for serialization /// - public class CheckStickerSetNameResultNameInvalid : CheckStickerSetNameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkStickerSetNameResultNameInvalid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkStickerSetNameResultNameInvalid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckStickerSetNameResultNameOccupied.cs b/TdLib.Api/Objects/CheckStickerSetNameResultNameOccupied.cs index 3bbd52c6..e24ba231 100644 --- a/TdLib.Api/Objects/CheckStickerSetNameResultNameOccupied.cs +++ b/TdLib.Api/Objects/CheckStickerSetNameResultNameOccupied.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckStickerSetNameResult : Object { - public partial class CheckStickerSetNameResult : Object + /// + /// The name is occupied + /// + public class CheckStickerSetNameResultNameOccupied : CheckStickerSetNameResult { /// - /// The name is occupied + /// Data type for serialization /// - public class CheckStickerSetNameResultNameOccupied : CheckStickerSetNameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkStickerSetNameResultNameOccupied"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkStickerSetNameResultNameOccupied"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CheckStickerSetNameResultOk.cs b/TdLib.Api/Objects/CheckStickerSetNameResultOk.cs index 388846e7..9df06743 100644 --- a/TdLib.Api/Objects/CheckStickerSetNameResultOk.cs +++ b/TdLib.Api/Objects/CheckStickerSetNameResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CheckStickerSetNameResult : Object { - public partial class CheckStickerSetNameResult : Object + /// + /// Represents result of checking whether a name can be used for a new sticker set + /// + public class CheckStickerSetNameResultOk : CheckStickerSetNameResult { /// - /// Represents result of checking whether a name can be used for a new sticker set + /// Data type for serialization /// - public class CheckStickerSetNameResultOk : CheckStickerSetNameResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checkStickerSetNameResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checkStickerSetNameResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Checklist.cs b/TdLib.Api/Objects/Checklist.cs index 02184365..b752a0ab 100644 --- a/TdLib.Api/Objects/Checklist.cs +++ b/TdLib.Api/Objects/Checklist.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a checklist /// - public static partial class TdApi + public partial class Checklist : Object { /// - /// Describes a checklist + /// Data type for serialization /// - public partial class Checklist : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checklist"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checklist"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public FormattedText Title { get; set; } + /// + /// Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public FormattedText Title { get; set; } - /// - /// List of tasks in the checklist - /// - [JsonProperty("tasks", ItemConverterType = typeof(Converter))] - public ChecklistTask[] Tasks { get; set; } + /// + /// List of tasks in the checklist + /// + [JsonProperty("tasks", ItemConverterType = typeof(Converter))] + public ChecklistTask[] Tasks { get; set; } - /// - /// True, if users other than creator of the list can add tasks to the list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("others_can_add_tasks")] - public bool OthersCanAddTasks { get; set; } + /// + /// True, if users other than creator of the list can add tasks to the list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("others_can_add_tasks")] + public bool OthersCanAddTasks { get; set; } - /// - /// True, if the current user can add tasks to the list if they have Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_add_tasks")] - public bool CanAddTasks { get; set; } + /// + /// True, if the current user can add tasks to the list if they have Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_add_tasks")] + public bool CanAddTasks { get; set; } - /// - /// True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("others_can_mark_tasks_as_done")] - public bool OthersCanMarkTasksAsDone { get; set; } + /// + /// True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("others_can_mark_tasks_as_done")] + public bool OthersCanMarkTasksAsDone { get; set; } - /// - /// True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_mark_tasks_as_done")] - public bool CanMarkTasksAsDone { get; set; } - } + /// + /// True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_mark_tasks_as_done")] + public bool CanMarkTasksAsDone { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ChecklistTask.cs b/TdLib.Api/Objects/ChecklistTask.cs index 45c94ffc..f98911de 100644 --- a/TdLib.Api/Objects/ChecklistTask.cs +++ b/TdLib.Api/Objects/ChecklistTask.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a task in a checklist /// - public static partial class TdApi + public partial class ChecklistTask : Object { /// - /// Describes a task in a checklist + /// Data type for serialization /// - public partial class ChecklistTask : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "checklistTask"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "checklistTask"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the task - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique identifier of the task + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Text of the task; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, DateTime and automatically found entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text of the task; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, DateTime and automatically found entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Identifier of the user or chat that completed the task; may be null if the task isn't completed yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("completed_by")] - public MessageSender CompletedBy { get; set; } + /// + /// Identifier of the user or chat that completed the task; may be null if the task isn't completed yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("completed_by")] + public MessageSender CompletedBy { get; set; } - /// - /// Point in time (Unix timestamp) when the task was completed; 0 if the task isn't completed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("completion_date")] - public int CompletionDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the task was completed; 0 if the task isn't completed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("completion_date")] + public int CompletionDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CloseBirthdayUser.cs b/TdLib.Api/Objects/CloseBirthdayUser.cs index dca289e0..b480efe8 100644 --- a/TdLib.Api/Objects/CloseBirthdayUser.cs +++ b/TdLib.Api/Objects/CloseBirthdayUser.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a user who had or will have a birthday soon /// - public static partial class TdApi + public partial class CloseBirthdayUser : Object { /// - /// Describes a user who had or will have a birthday soon + /// Data type for serialization /// - public partial class CloseBirthdayUser : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "closeBirthdayUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "closeBirthdayUser"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Birthdate of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("birthdate")] - public Birthdate Birthdate { get; set; } - } + /// + /// Birthdate of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("birthdate")] + public Birthdate Birthdate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ClosedVectorPath.cs b/TdLib.Api/Objects/ClosedVectorPath.cs index c2c66f8f..9d00dc84 100644 --- a/TdLib.Api/Objects/ClosedVectorPath.cs +++ b/TdLib.Api/Objects/ClosedVectorPath.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a closed vector path. The path begins at the end point of the last command. The coordinate system origin is in the upper-left corner /// - public static partial class TdApi + public partial class ClosedVectorPath : Object { /// - /// Represents a closed vector path. The path begins at the end point of the last command. The coordinate system origin is in the upper-left corner + /// Data type for serialization /// - public partial class ClosedVectorPath : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "closedVectorPath"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "closedVectorPath"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of vector path commands - /// - [JsonProperty("commands", ItemConverterType = typeof(Converter))] - public VectorPathCommand[] Commands { get; set; } - } + /// + /// List of vector path commands + /// + [JsonProperty("commands", ItemConverterType = typeof(Converter))] + public VectorPathCommand[] Commands { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CollectibleItemInfo.cs b/TdLib.Api/Objects/CollectibleItemInfo.cs index 1fec370e..2e0d4dce 100644 --- a/TdLib.Api/Objects/CollectibleItemInfo.cs +++ b/TdLib.Api/Objects/CollectibleItemInfo.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a collectible item and its last purchase /// - public static partial class TdApi + public partial class CollectibleItemInfo : Object { /// - /// Contains information about a collectible item and its last purchase + /// Data type for serialization /// - public partial class CollectibleItemInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "collectibleItemInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "collectibleItemInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the item was purchased - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("purchase_date")] - public int PurchaseDate { get; set; } + /// + /// Point in time (Unix timestamp) when the item was purchased + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("purchase_date")] + public int PurchaseDate { get; set; } - /// - /// Currency for the paid amount - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the paid amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Cryptocurrency used to pay for the item - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cryptocurrency")] - public string Cryptocurrency { get; set; } + /// + /// Cryptocurrency used to pay for the item + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } - /// - /// The paid amount, in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("cryptocurrency_amount")] - public long CryptocurrencyAmount { get; set; } + /// + /// The paid amount, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("cryptocurrency_amount")] + public long CryptocurrencyAmount { get; set; } - /// - /// Individual URL for the item on https://fragment.com - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Individual URL for the item on https://fragment.com + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CollectibleItemTypePhoneNumber.cs b/TdLib.Api/Objects/CollectibleItemTypePhoneNumber.cs index 26ed8f48..2a9edeee 100644 --- a/TdLib.Api/Objects/CollectibleItemTypePhoneNumber.cs +++ b/TdLib.Api/Objects/CollectibleItemTypePhoneNumber.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CollectibleItemType : Object { - public partial class CollectibleItemType : Object + /// + /// A phone number + /// + public class CollectibleItemTypePhoneNumber : CollectibleItemType { /// - /// A phone number + /// Data type for serialization /// - public class CollectibleItemTypePhoneNumber : CollectibleItemType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "collectibleItemTypePhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "collectibleItemTypePhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The phone number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } - } + /// + /// The phone number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/CollectibleItemTypeUsername.cs b/TdLib.Api/Objects/CollectibleItemTypeUsername.cs index 7a300eb6..1d7ca88a 100644 --- a/TdLib.Api/Objects/CollectibleItemTypeUsername.cs +++ b/TdLib.Api/Objects/CollectibleItemTypeUsername.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CollectibleItemType : Object { - public partial class CollectibleItemType : Object + /// + /// Describes a collectible item that can be purchased at https://fragment.com + /// + public class CollectibleItemTypeUsername : CollectibleItemType { /// - /// Describes a collectible item that can be purchased at https://fragment.com + /// Data type for serialization /// - public class CollectibleItemTypeUsername : CollectibleItemType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "collectibleItemTypeUsername"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "collectibleItemTypeUsername"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// The username + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } } } } diff --git a/TdLib.Api/Objects/Community.cs b/TdLib.Api/Objects/Community.cs index b50580bf..29a43ce8 100644 --- a/TdLib.Api/Objects/Community.cs +++ b/TdLib.Api/Objects/Community.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a community consisting of supergroup chats, channel chats and chats with bots /// - public static partial class TdApi + public partial class Community : Object { /// - /// Represents a community consisting of supergroup chats, channel chats and chats with bots + /// Data type for serialization /// - public partial class Community : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "community"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "community"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Community identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Community identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// If false, the community is inaccessible, and the only information known about the community is inside this class. Identifier of the community can't be passed to any method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("have_access")] - public bool HaveAccess { get; set; } + /// + /// If false, the community is inaccessible, and the only information known about the community is inside this class. Identifier of the community can't be passed to any method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("have_access")] + public bool HaveAccess { get; set; } - /// - /// Community name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Community name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Community photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhotoInfo Photo { get; set; } + /// + /// Community photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhotoInfo Photo { get; set; } - /// - /// Point in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Status of the current user in the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public CommunityMemberStatus Status { get; set; } + /// + /// Status of the current user in the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public CommunityMemberStatus Status { get; set; } - /// - /// Actions that non-administrator community members are allowed to take in the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("permissions")] - public CommunityPermissions Permissions { get; set; } - } + /// + /// Actions that non-administrator community members are allowed to take in the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("permissions")] + public CommunityPermissions Permissions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CommunityAdministratorRights.cs b/TdLib.Api/Objects/CommunityAdministratorRights.cs index 88fd1827..ab864b00 100644 --- a/TdLib.Api/Objects/CommunityAdministratorRights.cs +++ b/TdLib.Api/Objects/CommunityAdministratorRights.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes rights of the administrator in a community /// - public static partial class TdApi + public partial class CommunityAdministratorRights : Object { /// - /// Describes rights of the administrator in a community + /// Data type for serialization /// - public partial class CommunityAdministratorRights : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityAdministratorRights"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityAdministratorRights"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the user is an administrator. Implied by any other privilege - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_community")] - public bool CanManageCommunity { get; set; } + /// + /// True, if the user is an administrator. Implied by any other privilege + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_community")] + public bool CanManageCommunity { get; set; } - /// - /// True, if the administrator can change the community name, photo, and other settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_change_info")] - public bool CanChangeInfo { get; set; } + /// + /// True, if the administrator can change the community name, photo, and other settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_change_info")] + public bool CanChangeInfo { get; set; } - /// - /// True, if the user can change the chats added to the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_chat_list")] - public bool CanEditChatList { get; set; } + /// + /// True, if the user can change the chats added to the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_chat_list")] + public bool CanEditChatList { get; set; } - /// - /// True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_promote_members")] - public bool CanPromoteMembers { get; set; } + /// + /// True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_promote_members")] + public bool CanPromoteMembers { get; set; } - /// - /// True, if the administrator can ban, or unban community members - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_ban_members")] - public bool CanBanMembers { get; set; } - } + /// + /// True, if the administrator can ban, or unban community members + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_ban_members")] + public bool CanBanMembers { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CommunityChat.cs b/TdLib.Api/Objects/CommunityChat.cs index 5c9d4c7f..1934655e 100644 --- a/TdLib.Api/Objects/CommunityChat.cs +++ b/TdLib.Api/Objects/CommunityChat.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a chat in a community /// - public static partial class TdApi + public partial class CommunityChat : Object { /// - /// Describes a chat in a community + /// Data type for serialization /// - public partial class CommunityChat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityChat"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat in the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat in the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// True, if message history of the chat can be viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_view_history")] - public bool CanViewHistory { get; set; } + /// + /// True, if message history of the chat can be viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_view_history")] + public bool CanViewHistory { get; set; } - /// - /// True, if the chat is hidden in the list of community chats; for community administrators only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_hidden")] - public bool IsHidden { get; set; } - } + /// + /// True, if the chat is hidden in the list of community chats; for community administrators only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_hidden")] + public bool IsHidden { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CommunityFullInfo.cs b/TdLib.Api/Objects/CommunityFullInfo.cs index ce55eb35..097f91f8 100644 --- a/TdLib.Api/Objects/CommunityFullInfo.cs +++ b/TdLib.Api/Objects/CommunityFullInfo.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains full information about a community /// - public static partial class TdApi + public partial class CommunityFullInfo : Object { /// - /// Contains full information about a community + /// Data type for serialization /// - public partial class CommunityFullInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityFullInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityFullInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } + /// + /// Photo of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } - /// - /// Chats belonging to the community - /// - [JsonProperty("chats", ItemConverterType = typeof(Converter))] - public CommunityChat[] Chats { get; set; } + /// + /// Chats belonging to the community + /// + [JsonProperty("chats", ItemConverterType = typeof(Converter))] + public CommunityChat[] Chats { get; set; } - /// - /// Number of privileged users in the community; 0 if the current user isn't an administrator of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("administrator_count")] - public int AdministratorCount { get; set; } + /// + /// Number of privileged users in the community; 0 if the current user isn't an administrator of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("administrator_count")] + public int AdministratorCount { get; set; } - /// - /// Number of users banned from the community; 0 if the current user isn't an administrator of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("banned_count")] - public int BannedCount { get; set; } + /// + /// Number of users banned from the community; 0 if the current user isn't an administrator of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("banned_count")] + public int BannedCount { get; set; } - /// - /// Number of pending requests for addition of chats to the community; 0 if the current user isn't an administrator of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("add_chat_request_count")] - public int AddChatRequestCount { get; set; } - } + /// + /// Number of pending requests for addition of chats to the community; 0 if the current user isn't an administrator of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("add_chat_request_count")] + public int AddChatRequestCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CommunityId.cs b/TdLib.Api/Objects/CommunityId.cs index 5681623d..4475e1aa 100644 --- a/TdLib.Api/Objects/CommunityId.cs +++ b/TdLib.Api/Objects/CommunityId.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains identifier of a community /// - public static partial class TdApi + public partial class CommunityId : Object { /// - /// Contains identifier of a community + /// Data type for serialization /// - public partial class CommunityId : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityId"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Community identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } - } + /// + /// Community identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CommunityMemberStatusAdministrator.cs b/TdLib.Api/Objects/CommunityMemberStatusAdministrator.cs index 881c15c9..cc4c9b52 100644 --- a/TdLib.Api/Objects/CommunityMemberStatusAdministrator.cs +++ b/TdLib.Api/Objects/CommunityMemberStatusAdministrator.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CommunityMemberStatus : Object { - public partial class CommunityMemberStatus : Object + /// + /// The user is a member of the community and has some additional privileges + /// + public class CommunityMemberStatusAdministrator : CommunityMemberStatus { /// - /// The user is a member of the community and has some additional privileges + /// Data type for serialization /// - public class CommunityMemberStatusAdministrator : CommunityMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityMemberStatusAdministrator"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityMemberStatusAdministrator"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the current user can edit the administrator privileges for the called user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_edited")] - public bool CanBeEdited { get; set; } + /// + /// True, if the current user can edit the administrator privileges for the called user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_edited")] + public bool CanBeEdited { get; set; } - /// - /// Rights of the administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rights")] - public CommunityAdministratorRights Rights { get; set; } - } + /// + /// Rights of the administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rights")] + public CommunityAdministratorRights Rights { get; set; } } } } diff --git a/TdLib.Api/Objects/CommunityMemberStatusBanned.cs b/TdLib.Api/Objects/CommunityMemberStatusBanned.cs index 7b07a499..2ca7f6f0 100644 --- a/TdLib.Api/Objects/CommunityMemberStatusBanned.cs +++ b/TdLib.Api/Objects/CommunityMemberStatusBanned.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CommunityMemberStatus : Object { - public partial class CommunityMemberStatus : Object + /// + /// The user or the chat was banned in the community; implies ban in all chats in the community + /// + public class CommunityMemberStatusBanned : CommunityMemberStatus { /// - /// The user or the chat was banned in the community; implies ban in all chats in the community + /// Data type for serialization /// - public class CommunityMemberStatusBanned : CommunityMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityMemberStatusBanned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityMemberStatusBanned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CommunityMemberStatusCreator.cs b/TdLib.Api/Objects/CommunityMemberStatusCreator.cs index 523e7718..c0aa8d09 100644 --- a/TdLib.Api/Objects/CommunityMemberStatusCreator.cs +++ b/TdLib.Api/Objects/CommunityMemberStatusCreator.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CommunityMemberStatus : Object { - public partial class CommunityMemberStatus : Object + /// + /// Provides information about the status of a member in a community + /// + public class CommunityMemberStatusCreator : CommunityMemberStatus { /// - /// Provides information about the status of a member in a community + /// Data type for serialization /// - public class CommunityMemberStatusCreator : CommunityMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityMemberStatusCreator"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityMemberStatusCreator"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CommunityMemberStatusLeft.cs b/TdLib.Api/Objects/CommunityMemberStatusLeft.cs index 8726be4c..0a6802c3 100644 --- a/TdLib.Api/Objects/CommunityMemberStatusLeft.cs +++ b/TdLib.Api/Objects/CommunityMemberStatusLeft.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CommunityMemberStatus : Object { - public partial class CommunityMemberStatus : Object + /// + /// The user or the chat is not a community member + /// + public class CommunityMemberStatusLeft : CommunityMemberStatus { /// - /// The user or the chat is not a community member + /// Data type for serialization /// - public class CommunityMemberStatusLeft : CommunityMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityMemberStatusLeft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityMemberStatusLeft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CommunityMemberStatusMember.cs b/TdLib.Api/Objects/CommunityMemberStatusMember.cs index 5d73f145..e623636d 100644 --- a/TdLib.Api/Objects/CommunityMemberStatusMember.cs +++ b/TdLib.Api/Objects/CommunityMemberStatusMember.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CommunityMemberStatus : Object { - public partial class CommunityMemberStatus : Object + /// + /// The user is a member of the community, without any additional privileges or restrictions + /// + public class CommunityMemberStatusMember : CommunityMemberStatus { /// - /// The user is a member of the community, without any additional privileges or restrictions + /// Data type for serialization /// - public class CommunityMemberStatusMember : CommunityMemberStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityMemberStatusMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityMemberStatusMember"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CommunityPermissions.cs b/TdLib.Api/Objects/CommunityPermissions.cs index cea15342..5bdb1a57 100644 --- a/TdLib.Api/Objects/CommunityPermissions.cs +++ b/TdLib.Api/Objects/CommunityPermissions.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes actions that a user is allowed to take in a community /// - public static partial class TdApi + public partial class CommunityPermissions : Object { /// - /// Describes actions that a user is allowed to take in a community + /// Data type for serialization /// - public partial class CommunityPermissions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "communityPermissions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "communityPermissions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the user can change the chats added to the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_chat_list")] - public bool CanEditChatList { get; set; } - } + /// + /// True, if the user can change the chats added to the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_chat_list")] + public bool CanEditChatList { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ConnectedAffiliateProgram.cs b/TdLib.Api/Objects/ConnectedAffiliateProgram.cs index 87b4bceb..b24d89da 100644 --- a/TdLib.Api/Objects/ConnectedAffiliateProgram.cs +++ b/TdLib.Api/Objects/ConnectedAffiliateProgram.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an affiliate program that was connected to an affiliate /// - public static partial class TdApi + public partial class ConnectedAffiliateProgram : Object { /// - /// Describes an affiliate program that was connected to an affiliate + /// Data type for serialization /// - public partial class ConnectedAffiliateProgram : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectedAffiliateProgram"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectedAffiliateProgram"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The link that can be used to refer users if the program is still active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// The link that can be used to refer users if the program is still active + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// User identifier of the bot created the program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of the bot created the program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// The parameters of the affiliate program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public AffiliateProgramParameters Parameters { get; set; } + /// + /// The parameters of the affiliate program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public AffiliateProgramParameters Parameters { get; set; } - /// - /// Point in time (Unix timestamp) when the affiliate program was connected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection_date")] - public int ConnectionDate { get; set; } + /// + /// Point in time (Unix timestamp) when the affiliate program was connected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connection_date")] + public int ConnectionDate { get; set; } - /// - /// True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_disconnected")] - public bool IsDisconnected { get; set; } + /// + /// True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_disconnected")] + public bool IsDisconnected { get; set; } - /// - /// The number of users that used the affiliate program - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("user_count")] - public long UserCount { get; set; } + /// + /// The number of users that used the affiliate program + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("user_count")] + public long UserCount { get; set; } - /// - /// The number of Telegram Stars that were earned by the affiliate program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revenue_star_count")] - public long RevenueStarCount { get; set; } - } + /// + /// The number of Telegram Stars that were earned by the affiliate program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revenue_star_count")] + public long RevenueStarCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ConnectedAffiliatePrograms.cs b/TdLib.Api/Objects/ConnectedAffiliatePrograms.cs index a1ed48fd..8e69252b 100644 --- a/TdLib.Api/Objects/ConnectedAffiliatePrograms.cs +++ b/TdLib.Api/Objects/ConnectedAffiliatePrograms.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of affiliate programs that were connected to an affiliate /// - public static partial class TdApi + public partial class ConnectedAffiliatePrograms : Object { /// - /// Represents a list of affiliate programs that were connected to an affiliate + /// Data type for serialization /// - public partial class ConnectedAffiliatePrograms : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectedAffiliatePrograms"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectedAffiliatePrograms"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The total number of affiliate programs that were connected to the affiliate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// The total number of affiliate programs that were connected to the affiliate + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The list of connected affiliate programs - /// - [JsonProperty("programs", ItemConverterType = typeof(Converter))] - public ConnectedAffiliateProgram[] Programs { get; set; } + /// + /// The list of connected affiliate programs + /// + [JsonProperty("programs", ItemConverterType = typeof(Converter))] + public ConnectedAffiliateProgram[] Programs { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ConnectedWebsite.cs b/TdLib.Api/Objects/ConnectedWebsite.cs index ded5e5f1..2a8fe57f 100644 --- a/TdLib.Api/Objects/ConnectedWebsite.cs +++ b/TdLib.Api/Objects/ConnectedWebsite.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about one website the current user is logged in with Telegram /// - public static partial class TdApi + public partial class ConnectedWebsite : Object { /// - /// Contains information about one website the current user is logged in with Telegram + /// Data type for serialization /// - public partial class ConnectedWebsite : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectedWebsite"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectedWebsite"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Website identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Website identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// The domain name of the website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("domain_name")] - public string DomainName { get; set; } + /// + /// The domain name of the website + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("domain_name")] + public string DomainName { get; set; } - /// - /// User identifier of a bot linked with the website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of a bot linked with the website + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// The version of a browser used to log in - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("browser")] - public string Browser { get; set; } + /// + /// The version of a browser used to log in + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("browser")] + public string Browser { get; set; } - /// - /// Operating system the browser is running on - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("platform")] - public string Platform { get; set; } + /// + /// Operating system the browser is running on + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("platform")] + public string Platform { get; set; } - /// - /// Point in time (Unix timestamp) when the user was logged in - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("log_in_date")] - public int LogInDate { get; set; } + /// + /// Point in time (Unix timestamp) when the user was logged in + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("log_in_date")] + public int LogInDate { get; set; } - /// - /// Point in time (Unix timestamp) when obtained authorization was last used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_active_date")] - public int LastActiveDate { get; set; } + /// + /// Point in time (Unix timestamp) when obtained authorization was last used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_active_date")] + public int LastActiveDate { get; set; } - /// - /// IP address from which the user was logged in, in human-readable format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ip_address")] - public string IpAddress { get; set; } + /// + /// IP address from which the user was logged in, in human-readable format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ip_address")] + public string IpAddress { get; set; } - /// - /// Human-readable description of a country and a region from which the user was logged in, based on the IP address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public string Location { get; set; } - } + /// + /// Human-readable description of a country and a region from which the user was logged in, based on the IP address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public string Location { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ConnectedWebsites.cs b/TdLib.Api/Objects/ConnectedWebsites.cs index 191b4e7c..cdf5a152 100644 --- a/TdLib.Api/Objects/ConnectedWebsites.cs +++ b/TdLib.Api/Objects/ConnectedWebsites.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of websites the current user is logged in with Telegram /// - public static partial class TdApi + public partial class ConnectedWebsites : Object { /// - /// Contains a list of websites the current user is logged in with Telegram + /// Data type for serialization /// - public partial class ConnectedWebsites : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectedWebsites"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectedWebsites"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of connected websites - /// - [JsonProperty("websites", ItemConverterType = typeof(Converter))] - public ConnectedWebsite[] Websites { get; set; } - } + /// + /// List of connected websites + /// + [JsonProperty("websites", ItemConverterType = typeof(Converter))] + public ConnectedWebsite[] Websites { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ConnectionStateConnecting.cs b/TdLib.Api/Objects/ConnectionStateConnecting.cs index 4b17b7b6..0b25c859 100644 --- a/TdLib.Api/Objects/ConnectionStateConnecting.cs +++ b/TdLib.Api/Objects/ConnectionStateConnecting.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ConnectionState : Object { - public partial class ConnectionState : Object + /// + /// Establishing a connection to the Telegram servers + /// + public class ConnectionStateConnecting : ConnectionState { /// - /// Establishing a connection to the Telegram servers + /// Data type for serialization /// - public class ConnectionStateConnecting : ConnectionState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectionStateConnecting"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectionStateConnecting"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ConnectionStateConnectingToProxy.cs b/TdLib.Api/Objects/ConnectionStateConnectingToProxy.cs index 01a7311f..efb92387 100644 --- a/TdLib.Api/Objects/ConnectionStateConnectingToProxy.cs +++ b/TdLib.Api/Objects/ConnectionStateConnectingToProxy.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ConnectionState : Object { - public partial class ConnectionState : Object + /// + /// Establishing a connection with a proxy server + /// + public class ConnectionStateConnectingToProxy : ConnectionState { /// - /// Establishing a connection with a proxy server + /// Data type for serialization /// - public class ConnectionStateConnectingToProxy : ConnectionState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectionStateConnectingToProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectionStateConnectingToProxy"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ConnectionStateReady.cs b/TdLib.Api/Objects/ConnectionStateReady.cs index 2d109026..984ee5dc 100644 --- a/TdLib.Api/Objects/ConnectionStateReady.cs +++ b/TdLib.Api/Objects/ConnectionStateReady.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ConnectionState : Object { - public partial class ConnectionState : Object + /// + /// There is a working connection to the Telegram servers + /// + public class ConnectionStateReady : ConnectionState { /// - /// There is a working connection to the Telegram servers + /// Data type for serialization /// - public class ConnectionStateReady : ConnectionState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectionStateReady"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectionStateReady"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ConnectionStateUpdating.cs b/TdLib.Api/Objects/ConnectionStateUpdating.cs index 2f575470..33f2b769 100644 --- a/TdLib.Api/Objects/ConnectionStateUpdating.cs +++ b/TdLib.Api/Objects/ConnectionStateUpdating.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ConnectionState : Object { - public partial class ConnectionState : Object + /// + /// Downloading data expected to be received while the application was offline + /// + public class ConnectionStateUpdating : ConnectionState { /// - /// Downloading data expected to be received while the application was offline + /// Data type for serialization /// - public class ConnectionStateUpdating : ConnectionState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectionStateUpdating"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectionStateUpdating"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ConnectionStateWaitingForNetwork.cs b/TdLib.Api/Objects/ConnectionStateWaitingForNetwork.cs index 0fdb5b19..7088115d 100644 --- a/TdLib.Api/Objects/ConnectionStateWaitingForNetwork.cs +++ b/TdLib.Api/Objects/ConnectionStateWaitingForNetwork.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ConnectionState : Object { - public partial class ConnectionState : Object + /// + /// Describes the current state of the connection to Telegram servers + /// + public class ConnectionStateWaitingForNetwork : ConnectionState { /// - /// Describes the current state of the connection to Telegram servers + /// Data type for serialization /// - public class ConnectionStateWaitingForNetwork : ConnectionState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "connectionStateWaitingForNetwork"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "connectionStateWaitingForNetwork"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Contact.cs b/TdLib.Api/Objects/Contact.cs index c122bdcd..74642c99 100644 --- a/TdLib.Api/Objects/Contact.cs +++ b/TdLib.Api/Objects/Contact.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a contact of a user /// - public static partial class TdApi + public partial class Contact : Object { /// - /// Describes a contact of a user + /// Data type for serialization /// - public partial class Contact : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "contact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "contact"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Phone number of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// Phone number of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } - /// - /// First name of the user; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } + /// + /// First name of the user; 1-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } - /// - /// Last name of the user; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } + /// + /// Last name of the user; 0-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } - /// - /// Additional data about the user in a form of vCard; 0-2048 bytes in length - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("vcard")] - public string Vcard { get; set; } + /// + /// Additional data about the user in a form of vCard; 0-2048 bytes in length + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("vcard")] + public string Vcard { get; set; } - /// - /// Identifier of the user, if known; 0 otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the user, if known; 0 otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Count.cs b/TdLib.Api/Objects/Count.cs index e57934b8..39c07db3 100644 --- a/TdLib.Api/Objects/Count.cs +++ b/TdLib.Api/Objects/Count.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a counter /// - public static partial class TdApi + public partial class Count : Object { /// - /// Contains a counter + /// Data type for serialization /// - public partial class Count : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "count"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "count"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Count - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public int Count_ { get; set; } - } + /// + /// Count + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public int Count_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Countries.cs b/TdLib.Api/Objects/Countries.cs index 430f58c6..24e0a767 100644 --- a/TdLib.Api/Objects/Countries.cs +++ b/TdLib.Api/Objects/Countries.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about countries /// - public static partial class TdApi + public partial class Countries : Object { /// - /// Contains information about countries + /// Data type for serialization /// - public partial class Countries : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "countries"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "countries"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of countries - /// - [JsonProperty("countries", ItemConverterType = typeof(Converter))] - public CountryInfo[] Countries_ { get; set; } - } + /// + /// The list of countries + /// + [JsonProperty("countries", ItemConverterType = typeof(Converter))] + public CountryInfo[] Countries_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CountryInfo.cs b/TdLib.Api/Objects/CountryInfo.cs index fedb43a8..7a506d35 100644 --- a/TdLib.Api/Objects/CountryInfo.cs +++ b/TdLib.Api/Objects/CountryInfo.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a country /// - public static partial class TdApi + public partial class CountryInfo : Object { /// - /// Contains information about a country + /// Data type for serialization /// - public partial class CountryInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "countryInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "countryInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } + /// + /// A two-letter ISO 3166-1 alpha-2 country code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } - /// - /// Native name of the country - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Native name of the country + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// English name of the country - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("english_name")] - public string EnglishName { get; set; } + /// + /// English name of the country + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("english_name")] + public string EnglishName { get; set; } - /// - /// An emoji for the flag of the country; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("flag_emoji")] - public string FlagEmoji { get; set; } + /// + /// An emoji for the flag of the country; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("flag_emoji")] + public string FlagEmoji { get; set; } - /// - /// True, if the country must be hidden from the list of all countries - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_hidden")] - public bool IsHidden { get; set; } + /// + /// True, if the country must be hidden from the list of all countries + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_hidden")] + public bool IsHidden { get; set; } - /// - /// List of country calling codes - /// - [JsonProperty("calling_codes", ItemConverterType = typeof(Converter))] - public string[] CallingCodes { get; set; } - } + /// + /// List of country calling codes + /// + [JsonProperty("calling_codes", ItemConverterType = typeof(Converter))] + public string[] CallingCodes { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CraftGiftResultFail.cs b/TdLib.Api/Objects/CraftGiftResultFail.cs index 6aafb2c7..f73c95c7 100644 --- a/TdLib.Api/Objects/CraftGiftResultFail.cs +++ b/TdLib.Api/Objects/CraftGiftResultFail.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CraftGiftResult : Object { - public partial class CraftGiftResult : Object + /// + /// Crafting has failed + /// + public class CraftGiftResultFail : CraftGiftResult { /// - /// Crafting has failed + /// Data type for serialization /// - public class CraftGiftResultFail : CraftGiftResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "craftGiftResultFail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "craftGiftResultFail"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CraftGiftResultInvalidGift.cs b/TdLib.Api/Objects/CraftGiftResultInvalidGift.cs index a2d43e40..e68973f5 100644 --- a/TdLib.Api/Objects/CraftGiftResultInvalidGift.cs +++ b/TdLib.Api/Objects/CraftGiftResultInvalidGift.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CraftGiftResult : Object { - public partial class CraftGiftResult : Object + /// + /// Crafting isn't possible because one of the gifts isn't suitable for crafting + /// + public class CraftGiftResultInvalidGift : CraftGiftResult { /// - /// Crafting isn't possible because one of the gifts isn't suitable for crafting + /// Data type for serialization /// - public class CraftGiftResultInvalidGift : CraftGiftResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "craftGiftResultInvalidGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "craftGiftResultInvalidGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/CraftGiftResultSuccess.cs b/TdLib.Api/Objects/CraftGiftResultSuccess.cs index 948a5d04..1194515b 100644 --- a/TdLib.Api/Objects/CraftGiftResultSuccess.cs +++ b/TdLib.Api/Objects/CraftGiftResultSuccess.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CraftGiftResult : Object { - public partial class CraftGiftResult : Object + /// + /// Contains result of gift crafting + /// + public class CraftGiftResultSuccess : CraftGiftResult { /// - /// Contains result of gift crafting + /// Data type for serialization /// - public class CraftGiftResultSuccess : CraftGiftResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "craftGiftResultSuccess"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "craftGiftResultSuccess"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The created gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The created gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// Unique identifier of the received gift for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - } + /// + /// Unique identifier of the received gift for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } } } } diff --git a/TdLib.Api/Objects/CraftGiftResultTooEarly.cs b/TdLib.Api/Objects/CraftGiftResultTooEarly.cs index 37218e8b..3396a543 100644 --- a/TdLib.Api/Objects/CraftGiftResultTooEarly.cs +++ b/TdLib.Api/Objects/CraftGiftResultTooEarly.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class CraftGiftResult : Object { - public partial class CraftGiftResult : Object + /// + /// Crafting isn't possible because one of the gifts can't be used for crafting yet + /// + public class CraftGiftResultTooEarly : CraftGiftResult { /// - /// Crafting isn't possible because one of the gifts can't be used for crafting yet + /// Data type for serialization /// - public class CraftGiftResultTooEarly : CraftGiftResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "craftGiftResultTooEarly"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "craftGiftResultTooEarly"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time left before the gift can be used for crafting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("retry_after")] - public int RetryAfter { get; set; } - } + /// + /// Time left before the gift can be used for crafting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("retry_after")] + public int RetryAfter { get; set; } } } } diff --git a/TdLib.Api/Objects/CreatedBasicGroupChat.cs b/TdLib.Api/Objects/CreatedBasicGroupChat.cs index 8f40b3fb..809f6831 100644 --- a/TdLib.Api/Objects/CreatedBasicGroupChat.cs +++ b/TdLib.Api/Objects/CreatedBasicGroupChat.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a newly created basic group chat /// - public static partial class TdApi + public partial class CreatedBasicGroupChat : Object { /// - /// Contains information about a newly created basic group chat + /// Data type for serialization /// - public partial class CreatedBasicGroupChat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "createdBasicGroupChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "createdBasicGroupChat"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Information about failed to add members - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("failed_to_add_members")] - public FailedToAddMembers FailedToAddMembers { get; set; } - } + /// + /// Information about failed to add members + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("failed_to_add_members")] + public FailedToAddMembers FailedToAddMembers { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Currencies.cs b/TdLib.Api/Objects/Currencies.cs new file mode 100644 index 00000000..f8d870d8 --- /dev/null +++ b/TdLib.Api/Objects/Currencies.cs @@ -0,0 +1,36 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a list of currencies + /// + public partial class Currencies : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "currencies"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// A list of ISO 4217 currency codes + /// + [JsonProperty("currencies", ItemConverterType = typeof(Converter))] + public string[] Currencies_ { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CurrencyExchangeRate.cs b/TdLib.Api/Objects/CurrencyExchangeRate.cs new file mode 100644 index 00000000..13835206 --- /dev/null +++ b/TdLib.Api/Objects/CurrencyExchangeRate.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes exchange rate of a currency to USD + /// + public partial class CurrencyExchangeRate : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "currencyExchangeRate"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } + + /// + /// Exchange rate of the currency to USD + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rate")] + public double? Rate { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CurrencyExchangeRates.cs b/TdLib.Api/Objects/CurrencyExchangeRates.cs new file mode 100644 index 00000000..d18cc342 --- /dev/null +++ b/TdLib.Api/Objects/CurrencyExchangeRates.cs @@ -0,0 +1,36 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a list of currency exchange rates + /// + public partial class CurrencyExchangeRates : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "currencyExchangeRates"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// A list of currency exchange rates + /// + [JsonProperty("rates", ItemConverterType = typeof(Converter))] + public CurrencyExchangeRate[] Rates { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CurrentWeather.cs b/TdLib.Api/Objects/CurrentWeather.cs index 55085e9c..d46bf94a 100644 --- a/TdLib.Api/Objects/CurrentWeather.cs +++ b/TdLib.Api/Objects/CurrentWeather.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes the current weather /// - public static partial class TdApi + public partial class CurrentWeather : Object { /// - /// Describes the current weather + /// Data type for serialization /// - public partial class CurrentWeather : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "currentWeather"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "currentWeather"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Temperature, in degree Celsius - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("temperature")] - public double? Temperature { get; set; } + /// + /// Temperature, in degree Celsius + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("temperature")] + public double? Temperature { get; set; } - /// - /// Emoji representing the weather - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } - } + /// + /// Emoji representing the weather + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/CustomRequestResult.cs b/TdLib.Api/Objects/CustomRequestResult.cs index 5ef69941..ed5b3178 100644 --- a/TdLib.Api/Objects/CustomRequestResult.cs +++ b/TdLib.Api/Objects/CustomRequestResult.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the result of a custom request /// - public static partial class TdApi + public partial class CustomRequestResult : Object { /// - /// Contains the result of a custom request + /// Data type for serialization /// - public partial class CustomRequestResult : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "customRequestResult"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "customRequestResult"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A JSON-serialized result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result")] - public string Result { get; set; } - } + /// + /// A JSON-serialized result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result")] + public string Result { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Data.cs b/TdLib.Api/Objects/Data.cs index e2e5dd74..5f112168 100644 --- a/TdLib.Api/Objects/Data.cs +++ b/TdLib.Api/Objects/Data.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains some binary data /// - public static partial class TdApi + public partial class Data : Object { /// - /// Contains some binary data + /// Data type for serialization /// - public partial class Data : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "data"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "data"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data_ { get; set; } - } + /// + /// Data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DatabaseStatistics.cs b/TdLib.Api/Objects/DatabaseStatistics.cs index e165d9a3..7b7e436e 100644 --- a/TdLib.Api/Objects/DatabaseStatistics.cs +++ b/TdLib.Api/Objects/DatabaseStatistics.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains database statistics /// - public static partial class TdApi + public partial class DatabaseStatistics : Object { /// - /// Contains database statistics + /// Data type for serialization /// - public partial class DatabaseStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "databaseStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "databaseStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Database statistics in an unspecified human-readable format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("statistics")] - public string Statistics { get; set; } - } + /// + /// Database statistics in an unspecified human-readable format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("statistics")] + public string Statistics { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Date.cs b/TdLib.Api/Objects/Date.cs index 37208a8b..5d58959c 100644 --- a/TdLib.Api/Objects/Date.cs +++ b/TdLib.Api/Objects/Date.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a date according to the Gregorian calendar /// - public static partial class TdApi + public partial class Date : Object { /// - /// Represents a date according to the Gregorian calendar + /// Data type for serialization /// - public partial class Date : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "date"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "date"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Day of the month; 1-31 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("day")] - public int Day { get; set; } + /// + /// Day of the month; 1-31 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("day")] + public int Day { get; set; } - /// - /// Month; 1-12 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month")] - public int Month { get; set; } + /// + /// Month; 1-12 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month")] + public int Month { get; set; } - /// - /// Year; 1-9999 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("year")] - public int Year { get; set; } - } + /// + /// Year; 1-9999 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("year")] + public int Year { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DateRange.cs b/TdLib.Api/Objects/DateRange.cs index 4e1a69d4..14b451a1 100644 --- a/TdLib.Api/Objects/DateRange.cs +++ b/TdLib.Api/Objects/DateRange.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a date range /// - public static partial class TdApi + public partial class DateRange : Object { /// - /// Represents a date range + /// Data type for serialization /// - public partial class DateRange : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "dateRange"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "dateRange"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) at which the date range begins - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } + /// + /// Point in time (Unix timestamp) at which the date range begins + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } - /// - /// Point in time (Unix timestamp) at which the date range ends - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_date")] - public int EndDate { get; set; } - } + /// + /// Point in time (Unix timestamp) at which the date range ends + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_date")] + public int EndDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DateTimeFormattingTypeAbsolute.cs b/TdLib.Api/Objects/DateTimeFormattingTypeAbsolute.cs index 974b0982..f8f571c2 100644 --- a/TdLib.Api/Objects/DateTimeFormattingTypeAbsolute.cs +++ b/TdLib.Api/Objects/DateTimeFormattingTypeAbsolute.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DateTimeFormattingType : Object { - public partial class DateTimeFormattingType : Object + /// + /// The date and time must be shown as absolute timestamps + /// + public class DateTimeFormattingTypeAbsolute : DateTimeFormattingType { /// - /// The date and time must be shown as absolute timestamps + /// Data type for serialization /// - public class DateTimeFormattingTypeAbsolute : DateTimeFormattingType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "dateTimeFormattingTypeAbsolute"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "dateTimeFormattingTypeAbsolute"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The precision with which hours, minutes and seconds are shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("time_precision")] - public DateTimePartPrecision TimePrecision { get; set; } + /// + /// The precision with which hours, minutes and seconds are shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("time_precision")] + public DateTimePartPrecision TimePrecision { get; set; } - /// - /// The precision with which the date is shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date_precision")] - public DateTimePartPrecision DatePrecision { get; set; } + /// + /// The precision with which the date is shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date_precision")] + public DateTimePartPrecision DatePrecision { get; set; } - /// - /// True, if the day of week must be shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_day_of_week")] - public bool ShowDayOfWeek { get; set; } - } + /// + /// True, if the day of week must be shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_day_of_week")] + public bool ShowDayOfWeek { get; set; } } } } diff --git a/TdLib.Api/Objects/DateTimeFormattingTypeRelative.cs b/TdLib.Api/Objects/DateTimeFormattingTypeRelative.cs index 7f4134d4..b7fcf7f8 100644 --- a/TdLib.Api/Objects/DateTimeFormattingTypeRelative.cs +++ b/TdLib.Api/Objects/DateTimeFormattingTypeRelative.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DateTimeFormattingType : Object { - public partial class DateTimeFormattingType : Object + /// + /// Describes date and time formatting + /// + public class DateTimeFormattingTypeRelative : DateTimeFormattingType { /// - /// Describes date and time formatting + /// Data type for serialization /// - public class DateTimeFormattingTypeRelative : DateTimeFormattingType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "dateTimeFormattingTypeRelative"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "dateTimeFormattingTypeRelative"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/DateTimePartPrecisionLong.cs b/TdLib.Api/Objects/DateTimePartPrecisionLong.cs index e4f9766e..809876c9 100644 --- a/TdLib.Api/Objects/DateTimePartPrecisionLong.cs +++ b/TdLib.Api/Objects/DateTimePartPrecisionLong.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DateTimePartPrecision : Object { - public partial class DateTimePartPrecision : Object + /// + /// Show the date or time in a long way (March 17, 2022 or 22:45:00) + /// + public class DateTimePartPrecisionLong : DateTimePartPrecision { /// - /// Show the date or time in a long way (March 17, 2022 or 22:45:00) + /// Data type for serialization /// - public class DateTimePartPrecisionLong : DateTimePartPrecision - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "dateTimePartPrecisionLong"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "dateTimePartPrecisionLong"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/DateTimePartPrecisionNone.cs b/TdLib.Api/Objects/DateTimePartPrecisionNone.cs index 2226095f..b87666e3 100644 --- a/TdLib.Api/Objects/DateTimePartPrecisionNone.cs +++ b/TdLib.Api/Objects/DateTimePartPrecisionNone.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DateTimePartPrecision : Object { - public partial class DateTimePartPrecision : Object + /// + /// Describes precision with which to show a date or a time + /// + public class DateTimePartPrecisionNone : DateTimePartPrecision { /// - /// Describes precision with which to show a date or a time + /// Data type for serialization /// - public class DateTimePartPrecisionNone : DateTimePartPrecision - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "dateTimePartPrecisionNone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "dateTimePartPrecisionNone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/DateTimePartPrecisionShort.cs b/TdLib.Api/Objects/DateTimePartPrecisionShort.cs index 6ff67ee2..3b53c104 100644 --- a/TdLib.Api/Objects/DateTimePartPrecisionShort.cs +++ b/TdLib.Api/Objects/DateTimePartPrecisionShort.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DateTimePartPrecision : Object { - public partial class DateTimePartPrecision : Object + /// + /// Show the date or time in a short way (17.03.22 or 22:45) + /// + public class DateTimePartPrecisionShort : DateTimePartPrecision { /// - /// Show the date or time in a short way (17.03.22 or 22:45) + /// Data type for serialization /// - public class DateTimePartPrecisionShort : DateTimePartPrecision - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "dateTimePartPrecisionShort"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "dateTimePartPrecisionShort"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/DatedFile.cs b/TdLib.Api/Objects/DatedFile.cs index 4103d79f..f4852458 100644 --- a/TdLib.Api/Objects/DatedFile.cs +++ b/TdLib.Api/Objects/DatedFile.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// File with the date it was uploaded /// - public static partial class TdApi + public partial class DatedFile : Object { /// - /// File with the date it was uploaded + /// Data type for serialization /// - public partial class DatedFile : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "datedFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "datedFile"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file")] - public File File { get; set; } + /// + /// The file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file")] + public File File { get; set; } - /// - /// Point in time (Unix timestamp) when the file was uploaded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Point in time (Unix timestamp) when the file was uploaded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DeepLinkInfo.cs b/TdLib.Api/Objects/DeepLinkInfo.cs index 6ed60823..c584d046 100644 --- a/TdLib.Api/Objects/DeepLinkInfo.cs +++ b/TdLib.Api/Objects/DeepLinkInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a tg: deep link /// - public static partial class TdApi + public partial class DeepLinkInfo : Object { /// - /// Contains information about a tg: deep link + /// Data type for serialization /// - public partial class DeepLinkInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deepLinkInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deepLinkInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text to be shown to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text to be shown to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// True, if the user must be asked to update the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_update_application")] - public bool NeedUpdateApplication { get; set; } - } + /// + /// True, if the user must be asked to update the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_update_application")] + public bool NeedUpdateApplication { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DeviceTokenApplePush.cs b/TdLib.Api/Objects/DeviceTokenApplePush.cs index d66cd61f..bac7cd4d 100644 --- a/TdLib.Api/Objects/DeviceTokenApplePush.cs +++ b/TdLib.Api/Objects/DeviceTokenApplePush.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Apple Push Notification service + /// + public class DeviceTokenApplePush : DeviceToken { /// - /// A token for Apple Push Notification service + /// Data type for serialization /// - public class DeviceTokenApplePush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenApplePush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenApplePush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Device token; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_token")] - public string DeviceToken { get; set; } + /// + /// Device token; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_token")] + public string DeviceToken { get; set; } - /// - /// True, if App Sandbox is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_app_sandbox")] - public bool IsAppSandbox { get; set; } - } + /// + /// True, if App Sandbox is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_app_sandbox")] + public bool IsAppSandbox { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenApplePushVoIP.cs b/TdLib.Api/Objects/DeviceTokenApplePushVoIP.cs index a93e52b0..84c052e1 100644 --- a/TdLib.Api/Objects/DeviceTokenApplePushVoIP.cs +++ b/TdLib.Api/Objects/DeviceTokenApplePushVoIP.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Apple Push Notification service VoIP notifications + /// + public class DeviceTokenApplePushVoIP : DeviceToken { /// - /// A token for Apple Push Notification service VoIP notifications + /// Data type for serialization /// - public class DeviceTokenApplePushVoIP : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenApplePushVoIP"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenApplePushVoIP"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Device token; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_token")] - public string DeviceToken { get; set; } + /// + /// Device token; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_token")] + public string DeviceToken { get; set; } - /// - /// True, if App Sandbox is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_app_sandbox")] - public bool IsAppSandbox { get; set; } + /// + /// True, if App Sandbox is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_app_sandbox")] + public bool IsAppSandbox { get; set; } - /// - /// True, if push notifications must be additionally encrypted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("encrypt")] - public bool Encrypt { get; set; } - } + /// + /// True, if push notifications must be additionally encrypted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("encrypt")] + public bool Encrypt { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenBlackBerryPush.cs b/TdLib.Api/Objects/DeviceTokenBlackBerryPush.cs index f3e2fc6e..9023b4d3 100644 --- a/TdLib.Api/Objects/DeviceTokenBlackBerryPush.cs +++ b/TdLib.Api/Objects/DeviceTokenBlackBerryPush.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for BlackBerry Push Service + /// + public class DeviceTokenBlackBerryPush : DeviceToken { /// - /// A token for BlackBerry Push Service + /// Data type for serialization /// - public class DeviceTokenBlackBerryPush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenBlackBerryPush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenBlackBerryPush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Token; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// Token; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenFirebaseCloudMessaging.cs b/TdLib.Api/Objects/DeviceTokenFirebaseCloudMessaging.cs index c4d944da..8e215819 100644 --- a/TdLib.Api/Objects/DeviceTokenFirebaseCloudMessaging.cs +++ b/TdLib.Api/Objects/DeviceTokenFirebaseCloudMessaging.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// Represents a data needed to subscribe for push notifications through registerDevice method. + /// To use specific push notification service, the correct application platform must be specified and a valid server authentication data must be uploaded at https://my.telegram.org + /// + public class DeviceTokenFirebaseCloudMessaging : DeviceToken { /// - /// Represents a data needed to subscribe for push notifications through registerDevice method. - /// To use specific push notification service, the correct application platform must be specified and a valid server authentication data must be uploaded at https://my.telegram.org + /// Data type for serialization /// - public class DeviceTokenFirebaseCloudMessaging : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenFirebaseCloudMessaging"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenFirebaseCloudMessaging"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Device registration token; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } + /// + /// Device registration token; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } - /// - /// True, if push notifications must be additionally encrypted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("encrypt")] - public bool Encrypt { get; set; } - } + /// + /// True, if push notifications must be additionally encrypted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("encrypt")] + public bool Encrypt { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenHuaweiPush.cs b/TdLib.Api/Objects/DeviceTokenHuaweiPush.cs index d5d1acc8..690b5bbf 100644 --- a/TdLib.Api/Objects/DeviceTokenHuaweiPush.cs +++ b/TdLib.Api/Objects/DeviceTokenHuaweiPush.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for HUAWEI Push Service + /// + public class DeviceTokenHuaweiPush : DeviceToken { /// - /// A token for HUAWEI Push Service + /// Data type for serialization /// - public class DeviceTokenHuaweiPush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenHuaweiPush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenHuaweiPush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Device registration token; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } + /// + /// Device registration token; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } - /// - /// True, if push notifications must be additionally encrypted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("encrypt")] - public bool Encrypt { get; set; } - } + /// + /// True, if push notifications must be additionally encrypted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("encrypt")] + public bool Encrypt { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenMicrosoftPush.cs b/TdLib.Api/Objects/DeviceTokenMicrosoftPush.cs index d3e63c0f..05fbbbd9 100644 --- a/TdLib.Api/Objects/DeviceTokenMicrosoftPush.cs +++ b/TdLib.Api/Objects/DeviceTokenMicrosoftPush.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Microsoft Push Notification Service + /// + public class DeviceTokenMicrosoftPush : DeviceToken { /// - /// A token for Microsoft Push Notification Service + /// Data type for serialization /// - public class DeviceTokenMicrosoftPush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenMicrosoftPush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenMicrosoftPush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Push notification channel URI; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("channel_uri")] - public string ChannelUri { get; set; } - } + /// + /// Push notification channel URI; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("channel_uri")] + public string ChannelUri { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenMicrosoftPushVoIP.cs b/TdLib.Api/Objects/DeviceTokenMicrosoftPushVoIP.cs index bb0e0a14..e102d1ed 100644 --- a/TdLib.Api/Objects/DeviceTokenMicrosoftPushVoIP.cs +++ b/TdLib.Api/Objects/DeviceTokenMicrosoftPushVoIP.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Microsoft Push Notification Service VoIP channel + /// + public class DeviceTokenMicrosoftPushVoIP : DeviceToken { /// - /// A token for Microsoft Push Notification Service VoIP channel + /// Data type for serialization /// - public class DeviceTokenMicrosoftPushVoIP : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenMicrosoftPushVoIP"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenMicrosoftPushVoIP"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Push notification channel URI; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("channel_uri")] - public string ChannelUri { get; set; } - } + /// + /// Push notification channel URI; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("channel_uri")] + public string ChannelUri { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenSimplePush.cs b/TdLib.Api/Objects/DeviceTokenSimplePush.cs index 9ab46e6c..ada26a18 100644 --- a/TdLib.Api/Objects/DeviceTokenSimplePush.cs +++ b/TdLib.Api/Objects/DeviceTokenSimplePush.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Simple Push API for Firefox OS + /// + public class DeviceTokenSimplePush : DeviceToken { /// - /// A token for Simple Push API for Firefox OS + /// Data type for serialization /// - public class DeviceTokenSimplePush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenSimplePush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenSimplePush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("endpoint")] - public string Endpoint { get; set; } - } + /// + /// Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("endpoint")] + public string Endpoint { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenTizenPush.cs b/TdLib.Api/Objects/DeviceTokenTizenPush.cs index 42d9f99e..1cf85c97 100644 --- a/TdLib.Api/Objects/DeviceTokenTizenPush.cs +++ b/TdLib.Api/Objects/DeviceTokenTizenPush.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Tizen Push Service + /// + public class DeviceTokenTizenPush : DeviceToken { /// - /// A token for Tizen Push Service + /// Data type for serialization /// - public class DeviceTokenTizenPush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenTizenPush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenTizenPush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Push service registration identifier; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reg_id")] - public string RegId { get; set; } - } + /// + /// Push service registration identifier; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reg_id")] + public string RegId { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenUbuntuPush.cs b/TdLib.Api/Objects/DeviceTokenUbuntuPush.cs index f40baeeb..c23fe369 100644 --- a/TdLib.Api/Objects/DeviceTokenUbuntuPush.cs +++ b/TdLib.Api/Objects/DeviceTokenUbuntuPush.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Ubuntu Push Client service + /// + public class DeviceTokenUbuntuPush : DeviceToken { /// - /// A token for Ubuntu Push Client service + /// Data type for serialization /// - public class DeviceTokenUbuntuPush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenUbuntuPush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenUbuntuPush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Token; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// Token; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenWebPush.cs b/TdLib.Api/Objects/DeviceTokenWebPush.cs index b3843c40..ceffaefb 100644 --- a/TdLib.Api/Objects/DeviceTokenWebPush.cs +++ b/TdLib.Api/Objects/DeviceTokenWebPush.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for web Push API + /// + public class DeviceTokenWebPush : DeviceToken { /// - /// A token for web Push API + /// Data type for serialization /// - public class DeviceTokenWebPush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenWebPush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenWebPush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("endpoint")] - public string Endpoint { get; set; } + /// + /// Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("endpoint")] + public string Endpoint { get; set; } - /// - /// Base64url-encoded P-256 elliptic curve Diffie-Hellman public key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("p256dh_base64url")] - public string P256dhBase64url { get; set; } + /// + /// Base64url-encoded P-256 elliptic curve Diffie-Hellman public key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("p256dh_base64url")] + public string P256dhBase64url { get; set; } - /// - /// Base64url-encoded authentication secret - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auth_base64url")] - public string AuthBase64url { get; set; } - } + /// + /// Base64url-encoded authentication secret + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("auth_base64url")] + public string AuthBase64url { get; set; } } } } diff --git a/TdLib.Api/Objects/DeviceTokenWindowsPush.cs b/TdLib.Api/Objects/DeviceTokenWindowsPush.cs index 0200297b..140c3dc9 100644 --- a/TdLib.Api/Objects/DeviceTokenWindowsPush.cs +++ b/TdLib.Api/Objects/DeviceTokenWindowsPush.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DeviceToken : Object { - public partial class DeviceToken : Object + /// + /// A token for Windows Push Notification Services + /// + public class DeviceTokenWindowsPush : DeviceToken { /// - /// A token for Windows Push Notification Services + /// Data type for serialization /// - public class DeviceTokenWindowsPush : DeviceToken - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "deviceTokenWindowsPush"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "deviceTokenWindowsPush"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The access token that will be used to send notifications; may be empty to deregister a device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("access_token")] - public string AccessToken { get; set; } - } + /// + /// The access token that will be used to send notifications; may be empty to deregister a device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("access_token")] + public string AccessToken { get; set; } } } } diff --git a/TdLib.Api/Objects/DiceStickersRegular.cs b/TdLib.Api/Objects/DiceStickersRegular.cs index 76c86d4e..eb6894ab 100644 --- a/TdLib.Api/Objects/DiceStickersRegular.cs +++ b/TdLib.Api/Objects/DiceStickersRegular.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DiceStickers : Object { - public partial class DiceStickers : Object + /// + /// Contains animated stickers which must be used for dice animation rendering + /// + public class DiceStickersRegular : DiceStickers { /// - /// Contains animated stickers which must be used for dice animation rendering + /// Data type for serialization /// - public class DiceStickersRegular : DiceStickers - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "diceStickersRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "diceStickersRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animated sticker with the dice animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// The animated sticker with the dice animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/DiceStickersSlotMachine.cs b/TdLib.Api/Objects/DiceStickersSlotMachine.cs index 6eb32d2e..09a54d7e 100644 --- a/TdLib.Api/Objects/DiceStickersSlotMachine.cs +++ b/TdLib.Api/Objects/DiceStickersSlotMachine.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DiceStickers : Object { - public partial class DiceStickers : Object + /// + /// Animated stickers to be combined into a slot machine + /// + public class DiceStickersSlotMachine : DiceStickers { /// - /// Animated stickers to be combined into a slot machine + /// Data type for serialization /// - public class DiceStickersSlotMachine : DiceStickers - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "diceStickersSlotMachine"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "diceStickersSlotMachine"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animated sticker with the slot machine background. The background animation must start playing after all reel animations finish - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public Sticker Background { get; set; } + /// + /// The animated sticker with the slot machine background. The background animation must start playing after all reel animations finish + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public Sticker Background { get; set; } - /// - /// The animated sticker with the lever animation. The lever animation must play once in the initial dice state - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("lever")] - public Sticker Lever { get; set; } + /// + /// The animated sticker with the lever animation. The lever animation must play once in the initial dice state + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("lever")] + public Sticker Lever { get; set; } - /// - /// The animated sticker with the left reel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("left_reel")] - public Sticker LeftReel { get; set; } + /// + /// The animated sticker with the left reel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("left_reel")] + public Sticker LeftReel { get; set; } - /// - /// The animated sticker with the center reel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("center_reel")] - public Sticker CenterReel { get; set; } + /// + /// The animated sticker with the center reel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("center_reel")] + public Sticker CenterReel { get; set; } - /// - /// The animated sticker with the right reel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("right_reel")] - public Sticker RightReel { get; set; } - } + /// + /// The animated sticker with the right reel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("right_reel")] + public Sticker RightReel { get; set; } } } } diff --git a/TdLib.Api/Objects/DiffEntity.cs b/TdLib.Api/Objects/DiffEntity.cs index 7e9c406a..96fe60c2 100644 --- a/TdLib.Api/Objects/DiffEntity.cs +++ b/TdLib.Api/Objects/DiffEntity.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a change of a text /// - public static partial class TdApi + public partial class DiffEntity : Object { /// - /// Represents a change of a text + /// Data type for serialization /// - public partial class DiffEntity : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "diffEntity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "diffEntity"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the entity, in UTF-16 code units - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Offset of the entity, in UTF-16 code units + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } - /// - /// Length of the entity, in UTF-16 code units - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } + /// + /// Length of the entity, in UTF-16 code units + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } - /// - /// Type of the entity - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public DiffEntityType Type { get; set; } - } + /// + /// Type of the entity + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public DiffEntityType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DiffEntityTypeDelete.cs b/TdLib.Api/Objects/DiffEntityTypeDelete.cs index e08ffadb..d936e20a 100644 --- a/TdLib.Api/Objects/DiffEntityTypeDelete.cs +++ b/TdLib.Api/Objects/DiffEntityTypeDelete.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DiffEntityType : Object { - public partial class DiffEntityType : Object + /// + /// Removal of some text + /// + public class DiffEntityTypeDelete : DiffEntityType { /// - /// Removal of some text + /// Data type for serialization /// - public class DiffEntityTypeDelete : DiffEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "diffEntityTypeDelete"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "diffEntityTypeDelete"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/DiffEntityTypeInsert.cs b/TdLib.Api/Objects/DiffEntityTypeInsert.cs index c24a3059..c0a6c175 100644 --- a/TdLib.Api/Objects/DiffEntityTypeInsert.cs +++ b/TdLib.Api/Objects/DiffEntityTypeInsert.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DiffEntityType : Object { - public partial class DiffEntityType : Object + /// + /// Represents a change of a text + /// + public class DiffEntityTypeInsert : DiffEntityType { /// - /// Represents a change of a text + /// Data type for serialization /// - public class DiffEntityTypeInsert : DiffEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "diffEntityTypeInsert"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "diffEntityTypeInsert"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/DiffEntityTypeReplace.cs b/TdLib.Api/Objects/DiffEntityTypeReplace.cs index 496c3d54..71a06805 100644 --- a/TdLib.Api/Objects/DiffEntityTypeReplace.cs +++ b/TdLib.Api/Objects/DiffEntityTypeReplace.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DiffEntityType : Object { - public partial class DiffEntityType : Object + /// + /// Change of some text + /// + public class DiffEntityTypeReplace : DiffEntityType { /// - /// Change of some text + /// Data type for serialization /// - public class DiffEntityTypeReplace : DiffEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "diffEntityTypeReplace"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "diffEntityTypeReplace"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The old text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_text")] - public string OldText { get; set; } - } + /// + /// The old text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_text")] + public string OldText { get; set; } } } } diff --git a/TdLib.Api/Objects/DiffText.cs b/TdLib.Api/Objects/DiffText.cs index 883eaeb7..9251fc45 100644 --- a/TdLib.Api/Objects/DiffText.cs +++ b/TdLib.Api/Objects/DiffText.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A text with some changes highlighted /// - public static partial class TdApi + public partial class DiffText : Object { /// - /// A text with some changes highlighted + /// Data type for serialization /// - public partial class DiffText : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "diffText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "diffText"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// The text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// Entities describing changes in the text. Entities don't mutually intersect with each other - /// - [JsonProperty("entities", ItemConverterType = typeof(Converter))] - public DiffEntity[] Entities { get; set; } - } + /// + /// Entities describing changes in the text. Entities don't mutually intersect with each other + /// + [JsonProperty("entities", ItemConverterType = typeof(Converter))] + public DiffEntity[] Entities { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DirectMessagesChatTopic.cs b/TdLib.Api/Objects/DirectMessagesChatTopic.cs index 5bc153d2..cf3b9f7c 100644 --- a/TdLib.Api/Objects/DirectMessagesChatTopic.cs +++ b/TdLib.Api/Objects/DirectMessagesChatTopic.cs @@ -2,114 +2,113 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a topic in a channel direct messages chat administered by the current user /// - public static partial class TdApi + public partial class DirectMessagesChatTopic : Object { /// - /// Contains information about a topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public partial class DirectMessagesChatTopic : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "directMessagesChatTopic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "directMessagesChatTopic"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat to which the topic belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat to which the topic belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the user or chat that sends the messages to the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the user or chat that sends the messages to the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("order")] - public long Order { get; set; } + /// + /// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("order")] + public long Order { get; set; } - /// - /// True, if the other party can send unpaid messages even if the chat has paid messages enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_unpaid_messages")] - public bool CanSendUnpaidMessages { get; set; } + /// + /// True, if the other party can send unpaid messages even if the chat has paid messages enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_unpaid_messages")] + public bool CanSendUnpaidMessages { get; set; } - /// - /// True, if the topic is marked as unread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_marked_as_unread")] - public bool IsMarkedAsUnread { get; set; } + /// + /// True, if the topic is marked as unread + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_marked_as_unread")] + public bool IsMarkedAsUnread { get; set; } - /// - /// Number of unread messages in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_count")] - public long UnreadCount { get; set; } + /// + /// Number of unread messages in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_count")] + public long UnreadCount { get; set; } - /// - /// Identifier of the last read incoming message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_inbox_message_id")] - public long LastReadInboxMessageId { get; set; } + /// + /// Identifier of the last read incoming message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_inbox_message_id")] + public long LastReadInboxMessageId { get; set; } - /// - /// Identifier of the last read outgoing message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_outbox_message_id")] - public long LastReadOutboxMessageId { get; set; } + /// + /// Identifier of the last read outgoing message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_outbox_message_id")] + public long LastReadOutboxMessageId { get; set; } - /// - /// Number of messages with unread reactions in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_reaction_count")] - public long UnreadReactionCount { get; set; } + /// + /// Number of messages with unread reactions in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_reaction_count")] + public long UnreadReactionCount { get; set; } - /// - /// Last message in the topic; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_message")] - public Message LastMessage { get; set; } + /// + /// Last message in the topic; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_message")] + public Message LastMessage { get; set; } - /// - /// A draft of a message in the topic; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } - } + /// + /// A draft of a message in the topic; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Document.cs b/TdLib.Api/Objects/Document.cs index 79922ddc..593c4d2e 100644 --- a/TdLib.Api/Objects/Document.cs +++ b/TdLib.Api/Objects/Document.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a document of any type /// - public static partial class TdApi + public partial class Document : Object { /// - /// Describes a document of any type + /// Data type for serialization /// - public partial class Document : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "document"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "document"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Original name of the file; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_name")] - public string FileName { get; set; } + /// + /// Original name of the file; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_name")] + public string FileName { get; set; } - /// - /// MIME type of the file; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the file; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// Document minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Document minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } + /// + /// Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } - /// - /// File containing the document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public File Document_ { get; set; } - } + /// + /// File containing the document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public File Document_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DownloadedFileCounts.cs b/TdLib.Api/Objects/DownloadedFileCounts.cs index f392d300..a2bad273 100644 --- a/TdLib.Api/Objects/DownloadedFileCounts.cs +++ b/TdLib.Api/Objects/DownloadedFileCounts.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains number of being downloaded and recently downloaded files found /// - public static partial class TdApi + public partial class DownloadedFileCounts : Object { /// - /// Contains number of being downloaded and recently downloaded files found + /// Data type for serialization /// - public partial class DownloadedFileCounts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "downloadedFileCounts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "downloadedFileCounts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of active file downloads found, including paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_count")] - public int ActiveCount { get; set; } + /// + /// Number of active file downloads found, including paused + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_count")] + public int ActiveCount { get; set; } - /// - /// Number of paused file downloads found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paused_count")] - public int PausedCount { get; set; } + /// + /// Number of paused file downloads found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paused_count")] + public int PausedCount { get; set; } - /// - /// Number of completed file downloads found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("completed_count")] - public int CompletedCount { get; set; } - } + /// + /// Number of completed file downloads found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("completed_count")] + public int CompletedCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DraftMessage.cs b/TdLib.Api/Objects/DraftMessage.cs index a4ca96c6..2daad00e 100644 --- a/TdLib.Api/Objects/DraftMessage.cs +++ b/TdLib.Api/Objects/DraftMessage.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a message draft /// - public static partial class TdApi + public partial class DraftMessage : Object { /// - /// Contains information about a message draft + /// Data type for serialization /// - public partial class DraftMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "draftMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "draftMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the message to be replied; inputMessageReplyToStory is unsupported; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public InputMessageReplyTo ReplyTo { get; set; } + /// + /// Information about the message to be replied; inputMessageReplyToStory is unsupported; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public InputMessageReplyTo ReplyTo { get; set; } - /// - /// Point in time (Unix timestamp) when the draft was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the draft was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Content of the message draft - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public DraftMessageContent Content { get; set; } + /// + /// Content of the message draft + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public DraftMessageContent Content { get; set; } - /// - /// Identifier of the effect to apply to the message when it is sent; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("effect_id")] - public long EffectId { get; set; } + /// + /// Identifier of the effect to apply to the message when it is sent; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("effect_id")] + public long EffectId { get; set; } - /// - /// Information about the suggested post; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_info")] - public InputSuggestedPostInfo SuggestedPostInfo { get; set; } - } + /// + /// Information about the suggested post; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_info")] + public InputSuggestedPostInfo SuggestedPostInfo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/DraftMessageContentInputRichMessage.cs b/TdLib.Api/Objects/DraftMessageContentInputRichMessage.cs index b886e78a..1db6529e 100644 --- a/TdLib.Api/Objects/DraftMessageContentInputRichMessage.cs +++ b/TdLib.Api/Objects/DraftMessageContentInputRichMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DraftMessageContent : Object { - public partial class DraftMessageContent : Object + /// + /// A rich message draft; only for setChatDraftMessage + /// + public class DraftMessageContentInputRichMessage : DraftMessageContent { /// - /// A rich message draft; only for setChatDraftMessage + /// Data type for serialization /// - public class DraftMessageContentInputRichMessage : DraftMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "draftMessageContentInputRichMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "draftMessageContentInputRichMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The rich message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public InputRichMessage Message { get; set; } - } + /// + /// The rich message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public InputRichMessage Message { get; set; } } } } diff --git a/TdLib.Api/Objects/DraftMessageContentRichMessage.cs b/TdLib.Api/Objects/DraftMessageContentRichMessage.cs index 7764169e..42ac83c9 100644 --- a/TdLib.Api/Objects/DraftMessageContentRichMessage.cs +++ b/TdLib.Api/Objects/DraftMessageContentRichMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DraftMessageContent : Object { - public partial class DraftMessageContent : Object + /// + /// A rich message draft; not supported in setChatDraftMessage + /// + public class DraftMessageContentRichMessage : DraftMessageContent { /// - /// A rich message draft; not supported in setChatDraftMessage + /// Data type for serialization /// - public class DraftMessageContentRichMessage : DraftMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "draftMessageContentRichMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "draftMessageContentRichMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The rich message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public RichMessage Message { get; set; } - } + /// + /// The rich message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public RichMessage Message { get; set; } } } } diff --git a/TdLib.Api/Objects/DraftMessageContentText.cs b/TdLib.Api/Objects/DraftMessageContentText.cs index 09b73c64..d2c49c8d 100644 --- a/TdLib.Api/Objects/DraftMessageContentText.cs +++ b/TdLib.Api/Objects/DraftMessageContentText.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DraftMessageContent : Object { - public partial class DraftMessageContent : Object + /// + /// Content of the message draft + /// + public class DraftMessageContentText : DraftMessageContent { /// - /// Content of the message draft + /// Data type for serialization /// - public class DraftMessageContentText : DraftMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "draftMessageContentText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "draftMessageContentText"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Formatted text to be saved as a draft; 0-getOption("message_text_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Formatted text to be saved as a draft; 0-getOption("message_text_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_preview_options")] - public LinkPreviewOptions LinkPreviewOptions { get; set; } - } + /// + /// Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link_preview_options")] + public LinkPreviewOptions LinkPreviewOptions { get; set; } } } } diff --git a/TdLib.Api/Objects/DraftMessageContentVideoNote.cs b/TdLib.Api/Objects/DraftMessageContentVideoNote.cs index a828a42f..48a2998b 100644 --- a/TdLib.Api/Objects/DraftMessageContentVideoNote.cs +++ b/TdLib.Api/Objects/DraftMessageContentVideoNote.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DraftMessageContent : Object { - public partial class DraftMessageContent : Object + /// + /// A video note message draft + /// + public class DraftMessageContentVideoNote : DraftMessageContent { /// - /// A video note message draft + /// Data type for serialization /// - public class DraftMessageContentVideoNote : DraftMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "draftMessageContentVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "draftMessageContentVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Path to the file with the video note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_path")] - public string FilePath { get; set; } + /// + /// Path to the file with the video note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_path")] + public string FilePath { get; set; } - /// - /// Duration of the video, in seconds; 0-60 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the video, in seconds; 0-60 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Video width and height; must be positive and not greater than 640 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } + /// + /// Video width and height; must be positive and not greater than 640 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } - /// - /// Video note self-destruct type; may be null if none; pass null if none; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_type")] - public MessageSelfDestructType SelfDestructType { get; set; } - } + /// + /// Video note self-destruct type; may be null if none; pass null if none; private chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_type")] + public MessageSelfDestructType SelfDestructType { get; set; } } } } diff --git a/TdLib.Api/Objects/DraftMessageContentVoiceNote.cs b/TdLib.Api/Objects/DraftMessageContentVoiceNote.cs index 2dc7e638..0ce1b89b 100644 --- a/TdLib.Api/Objects/DraftMessageContentVoiceNote.cs +++ b/TdLib.Api/Objects/DraftMessageContentVoiceNote.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class DraftMessageContent : Object { - public partial class DraftMessageContent : Object + /// + /// A voice note message draft + /// + public class DraftMessageContentVoiceNote : DraftMessageContent { /// - /// A voice note message draft + /// Data type for serialization /// - public class DraftMessageContentVoiceNote : DraftMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "draftMessageContentVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "draftMessageContentVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Path to the file with the voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_path")] - public string FilePath { get; set; } + /// + /// Path to the file with the voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_path")] + public string FilePath { get; set; } - /// - /// Duration of the voice note, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the voice note, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Waveform representation of the voice note in 5-bit format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("waveform")] - public byte[] Waveform { get; set; } + /// + /// Waveform representation of the voice note in 5-bit format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("waveform")] + public byte[] Waveform { get; set; } - /// - /// Voice note self-destruct type; may be null if none; pass null if none; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_type")] - public MessageSelfDestructType SelfDestructType { get; set; } - } + /// + /// Voice note self-destruct type; may be null if none; pass null if none; private chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_type")] + public MessageSelfDestructType SelfDestructType { get; set; } } } } diff --git a/TdLib.Api/Objects/EmailAddressAuthenticationAppleId.cs b/TdLib.Api/Objects/EmailAddressAuthenticationAppleId.cs index 4788609b..004191e3 100644 --- a/TdLib.Api/Objects/EmailAddressAuthenticationAppleId.cs +++ b/TdLib.Api/Objects/EmailAddressAuthenticationAppleId.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmailAddressAuthentication : Object { - public partial class EmailAddressAuthentication : Object + /// + /// An authentication token received through Apple ID + /// + public class EmailAddressAuthenticationAppleId : EmailAddressAuthentication { /// - /// An authentication token received through Apple ID + /// Data type for serialization /// - public class EmailAddressAuthenticationAppleId : EmailAddressAuthentication - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emailAddressAuthenticationAppleId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emailAddressAuthenticationAppleId"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The token - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// The token + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } } } } diff --git a/TdLib.Api/Objects/EmailAddressAuthenticationCode.cs b/TdLib.Api/Objects/EmailAddressAuthenticationCode.cs index c37f6fca..fb88df6a 100644 --- a/TdLib.Api/Objects/EmailAddressAuthenticationCode.cs +++ b/TdLib.Api/Objects/EmailAddressAuthenticationCode.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmailAddressAuthentication : Object { - public partial class EmailAddressAuthentication : Object + /// + /// Contains authentication data for an email address + /// + public class EmailAddressAuthenticationCode : EmailAddressAuthentication { /// - /// Contains authentication data for an email address + /// Data type for serialization /// - public class EmailAddressAuthenticationCode : EmailAddressAuthentication - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emailAddressAuthenticationCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emailAddressAuthenticationCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// The code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } } } } diff --git a/TdLib.Api/Objects/EmailAddressAuthenticationCodeInfo.cs b/TdLib.Api/Objects/EmailAddressAuthenticationCodeInfo.cs index aa4399f8..f8d01c02 100644 --- a/TdLib.Api/Objects/EmailAddressAuthenticationCodeInfo.cs +++ b/TdLib.Api/Objects/EmailAddressAuthenticationCodeInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Information about the email address authentication code that was sent /// - public static partial class TdApi + public partial class EmailAddressAuthenticationCodeInfo : Object { /// - /// Information about the email address authentication code that was sent + /// Data type for serialization /// - public partial class EmailAddressAuthenticationCodeInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emailAddressAuthenticationCodeInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emailAddressAuthenticationCodeInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pattern of the email address to which an authentication code was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address_pattern")] - public string EmailAddressPattern { get; set; } + /// + /// Pattern of the email address to which an authentication code was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address_pattern")] + public string EmailAddressPattern { get; set; } - /// - /// Length of the code; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Length of the code; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmailAddressAuthenticationGoogleId.cs b/TdLib.Api/Objects/EmailAddressAuthenticationGoogleId.cs index 0dcd0812..b4caa343 100644 --- a/TdLib.Api/Objects/EmailAddressAuthenticationGoogleId.cs +++ b/TdLib.Api/Objects/EmailAddressAuthenticationGoogleId.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmailAddressAuthentication : Object { - public partial class EmailAddressAuthentication : Object + /// + /// An authentication token received through Google ID + /// + public class EmailAddressAuthenticationGoogleId : EmailAddressAuthentication { /// - /// An authentication token received through Google ID + /// Data type for serialization /// - public class EmailAddressAuthenticationGoogleId : EmailAddressAuthentication - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emailAddressAuthenticationGoogleId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emailAddressAuthenticationGoogleId"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The token - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// The token + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } } } } diff --git a/TdLib.Api/Objects/EmailAddressResetStateAvailable.cs b/TdLib.Api/Objects/EmailAddressResetStateAvailable.cs index 55b31047..96cdd49e 100644 --- a/TdLib.Api/Objects/EmailAddressResetStateAvailable.cs +++ b/TdLib.Api/Objects/EmailAddressResetStateAvailable.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmailAddressResetState : Object { - public partial class EmailAddressResetState : Object + /// + /// Describes reset state of an email address + /// + public class EmailAddressResetStateAvailable : EmailAddressResetState { /// - /// Describes reset state of an email address + /// Data type for serialization /// - public class EmailAddressResetStateAvailable : EmailAddressResetState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emailAddressResetStateAvailable"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emailAddressResetStateAvailable"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time required to wait before the email address can be reset; 0 if the user is subscribed to Telegram Premium - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("wait_period")] - public int WaitPeriod { get; set; } - } + /// + /// Time required to wait before the email address can be reset; 0 if the user is subscribed to Telegram Premium + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("wait_period")] + public int WaitPeriod { get; set; } } } } diff --git a/TdLib.Api/Objects/EmailAddressResetStatePending.cs b/TdLib.Api/Objects/EmailAddressResetStatePending.cs index 9d2b6748..aaa84911 100644 --- a/TdLib.Api/Objects/EmailAddressResetStatePending.cs +++ b/TdLib.Api/Objects/EmailAddressResetStatePending.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmailAddressResetState : Object { - public partial class EmailAddressResetState : Object + /// + /// Email address reset has already been requested. Call resetAuthenticationEmailAddress to check whether immediate reset is possible + /// + public class EmailAddressResetStatePending : EmailAddressResetState { /// - /// Email address reset has already been requested. Call resetAuthenticationEmailAddress to check whether immediate reset is possible + /// Data type for serialization /// - public class EmailAddressResetStatePending : EmailAddressResetState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emailAddressResetStatePending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emailAddressResetStatePending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Left time before the email address will be reset, in seconds. updateAuthorizationState is not sent when this field changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reset_in")] - public int ResetIn { get; set; } - } + /// + /// Left time before the email address will be reset, in seconds. updateAuthorizationState is not sent when this field changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reset_in")] + public int ResetIn { get; set; } } } } diff --git a/TdLib.Api/Objects/EmojiCategories.cs b/TdLib.Api/Objects/EmojiCategories.cs index 3a710884..9ba7ba47 100644 --- a/TdLib.Api/Objects/EmojiCategories.cs +++ b/TdLib.Api/Objects/EmojiCategories.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of emoji categories /// - public static partial class TdApi + public partial class EmojiCategories : Object { /// - /// Represents a list of emoji categories + /// Data type for serialization /// - public partial class EmojiCategories : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategories"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of categories - /// - [JsonProperty("categories", ItemConverterType = typeof(Converter))] - public EmojiCategory[] Categories { get; set; } - } + /// + /// List of categories + /// + [JsonProperty("categories", ItemConverterType = typeof(Converter))] + public EmojiCategory[] Categories { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiCategory.cs b/TdLib.Api/Objects/EmojiCategory.cs index 02015c67..e1f2e399 100644 --- a/TdLib.Api/Objects/EmojiCategory.cs +++ b/TdLib.Api/Objects/EmojiCategory.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an emoji category /// - public static partial class TdApi + public partial class EmojiCategory : Object { /// - /// Describes an emoji category + /// Data type for serialization /// - public partial class EmojiCategory : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategory"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the category - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the category + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Custom emoji sticker, which represents icon of the category - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon")] - public Sticker Icon { get; set; } + /// + /// Custom emoji sticker, which represents icon of the category + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public Sticker Icon { get; set; } - /// - /// Source of stickers for the emoji category - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public EmojiCategorySource Source { get; set; } + /// + /// Source of stickers for the emoji category + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public EmojiCategorySource Source { get; set; } - /// - /// True, if the category must be shown first when choosing a sticker for the start page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_greeting")] - public bool IsGreeting { get; set; } - } + /// + /// True, if the category must be shown first when choosing a sticker for the start page + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_greeting")] + public bool IsGreeting { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiCategorySourcePremium.cs b/TdLib.Api/Objects/EmojiCategorySourcePremium.cs index f3147c99..d4daea90 100644 --- a/TdLib.Api/Objects/EmojiCategorySourcePremium.cs +++ b/TdLib.Api/Objects/EmojiCategorySourcePremium.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiCategorySource : Object { - public partial class EmojiCategorySource : Object + /// + /// The category contains premium stickers that must be found by getPremiumStickers + /// + public class EmojiCategorySourcePremium : EmojiCategorySource { /// - /// The category contains premium stickers that must be found by getPremiumStickers + /// Data type for serialization /// - public class EmojiCategorySourcePremium : EmojiCategorySource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategorySourcePremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategorySourcePremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/EmojiCategorySourceSearch.cs b/TdLib.Api/Objects/EmojiCategorySourceSearch.cs index d472c687..528b1a9d 100644 --- a/TdLib.Api/Objects/EmojiCategorySourceSearch.cs +++ b/TdLib.Api/Objects/EmojiCategorySourceSearch.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiCategorySource : Object { - public partial class EmojiCategorySource : Object + /// + /// Describes source of stickers for an emoji category + /// + public class EmojiCategorySourceSearch : EmojiCategorySource { /// - /// Describes source of stickers for an emoji category + /// Data type for serialization /// - public class EmojiCategorySourceSearch : EmojiCategorySource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategorySourceSearch"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategorySourceSearch"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of emojis to search for - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public string[] Emojis { get; set; } - } + /// + /// List of emojis to search for + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public string[] Emojis { get; set; } } } } diff --git a/TdLib.Api/Objects/EmojiCategoryTypeChatPhoto.cs b/TdLib.Api/Objects/EmojiCategoryTypeChatPhoto.cs index 0d973c11..0effe71c 100644 --- a/TdLib.Api/Objects/EmojiCategoryTypeChatPhoto.cs +++ b/TdLib.Api/Objects/EmojiCategoryTypeChatPhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiCategoryType : Object { - public partial class EmojiCategoryType : Object + /// + /// The category must be used for chat photo emoji selection + /// + public class EmojiCategoryTypeChatPhoto : EmojiCategoryType { /// - /// The category must be used for chat photo emoji selection + /// Data type for serialization /// - public class EmojiCategoryTypeChatPhoto : EmojiCategoryType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategoryTypeChatPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategoryTypeChatPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/EmojiCategoryTypeDefault.cs b/TdLib.Api/Objects/EmojiCategoryTypeDefault.cs index 38d10c37..998ad1b2 100644 --- a/TdLib.Api/Objects/EmojiCategoryTypeDefault.cs +++ b/TdLib.Api/Objects/EmojiCategoryTypeDefault.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiCategoryType : Object { - public partial class EmojiCategoryType : Object + /// + /// Describes type of emoji category + /// + public class EmojiCategoryTypeDefault : EmojiCategoryType { /// - /// Describes type of emoji category + /// Data type for serialization /// - public class EmojiCategoryTypeDefault : EmojiCategoryType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategoryTypeDefault"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategoryTypeDefault"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/EmojiCategoryTypeEmojiStatus.cs b/TdLib.Api/Objects/EmojiCategoryTypeEmojiStatus.cs index 0d4e91fd..d4be4bdf 100644 --- a/TdLib.Api/Objects/EmojiCategoryTypeEmojiStatus.cs +++ b/TdLib.Api/Objects/EmojiCategoryTypeEmojiStatus.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiCategoryType : Object { - public partial class EmojiCategoryType : Object + /// + /// The category must be used for emoji status selection + /// + public class EmojiCategoryTypeEmojiStatus : EmojiCategoryType { /// - /// The category must be used for emoji status selection + /// Data type for serialization /// - public class EmojiCategoryTypeEmojiStatus : EmojiCategoryType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategoryTypeEmojiStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategoryTypeEmojiStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/EmojiCategoryTypeRegularStickers.cs b/TdLib.Api/Objects/EmojiCategoryTypeRegularStickers.cs index f409a543..397d5da9 100644 --- a/TdLib.Api/Objects/EmojiCategoryTypeRegularStickers.cs +++ b/TdLib.Api/Objects/EmojiCategoryTypeRegularStickers.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiCategoryType : Object { - public partial class EmojiCategoryType : Object + /// + /// The category must be used by default for regular sticker selection. It may contain greeting emoji category and premium stickers + /// + public class EmojiCategoryTypeRegularStickers : EmojiCategoryType { /// - /// The category must be used by default for regular sticker selection. It may contain greeting emoji category and premium stickers + /// Data type for serialization /// - public class EmojiCategoryTypeRegularStickers : EmojiCategoryType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiCategoryTypeRegularStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiCategoryTypeRegularStickers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/EmojiChatTheme.cs b/TdLib.Api/Objects/EmojiChatTheme.cs index cf8dd500..f83239cc 100644 --- a/TdLib.Api/Objects/EmojiChatTheme.cs +++ b/TdLib.Api/Objects/EmojiChatTheme.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a chat theme based on an emoji /// - public static partial class TdApi + public partial class EmojiChatTheme : Object { /// - /// Describes a chat theme based on an emoji + /// Data type for serialization /// - public partial class EmojiChatTheme : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiChatTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiChatTheme"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Theme name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Theme name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Theme settings for a light chat theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("light_settings")] - public ThemeSettings LightSettings { get; set; } + /// + /// Theme settings for a light chat theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("light_settings")] + public ThemeSettings LightSettings { get; set; } - /// - /// Theme settings for a dark chat theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dark_settings")] - public ThemeSettings DarkSettings { get; set; } - } + /// + /// Theme settings for a dark chat theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dark_settings")] + public ThemeSettings DarkSettings { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiKeyword.cs b/TdLib.Api/Objects/EmojiKeyword.cs index acfdf0a3..5b7e0a11 100644 --- a/TdLib.Api/Objects/EmojiKeyword.cs +++ b/TdLib.Api/Objects/EmojiKeyword.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents an emoji with its keyword /// - public static partial class TdApi + public partial class EmojiKeyword : Object { /// - /// Represents an emoji with its keyword + /// Data type for serialization /// - public partial class EmojiKeyword : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiKeyword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiKeyword"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// The emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// The keyword - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("keyword")] - public string Keyword { get; set; } - } + /// + /// The keyword + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("keyword")] + public string Keyword { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiKeywords.cs b/TdLib.Api/Objects/EmojiKeywords.cs index 11ac0809..49482407 100644 --- a/TdLib.Api/Objects/EmojiKeywords.cs +++ b/TdLib.Api/Objects/EmojiKeywords.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of emojis with their keywords /// - public static partial class TdApi + public partial class EmojiKeywords : Object { /// - /// Represents a list of emojis with their keywords + /// Data type for serialization /// - public partial class EmojiKeywords : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiKeywords"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiKeywords"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of emojis with their keywords - /// - [JsonProperty("emoji_keywords", ItemConverterType = typeof(Converter))] - public EmojiKeyword[] EmojiKeywords_ { get; set; } - } + /// + /// List of emojis with their keywords + /// + [JsonProperty("emoji_keywords", ItemConverterType = typeof(Converter))] + public EmojiKeyword[] EmojiKeywords_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiReaction.cs b/TdLib.Api/Objects/EmojiReaction.cs index c463f9b3..ee538091 100644 --- a/TdLib.Api/Objects/EmojiReaction.cs +++ b/TdLib.Api/Objects/EmojiReaction.cs @@ -2,100 +2,99 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an emoji reaction /// - public static partial class TdApi + public partial class EmojiReaction : Object { /// - /// Contains information about an emoji reaction + /// Data type for serialization /// - public partial class EmojiReaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiReaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text representation of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Text representation of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// Reaction title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Reaction title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// True, if the reaction can be added to new messages and enabled in chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_active")] - public bool IsActive { get; set; } + /// + /// True, if the reaction can be added to new messages and enabled in chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_active")] + public bool IsActive { get; set; } - /// - /// Static icon for the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("static_icon")] - public Sticker StaticIcon { get; set; } + /// + /// Static icon for the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("static_icon")] + public Sticker StaticIcon { get; set; } - /// - /// Appear animation for the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("appear_animation")] - public Sticker AppearAnimation { get; set; } + /// + /// Appear animation for the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("appear_animation")] + public Sticker AppearAnimation { get; set; } - /// - /// Select animation for the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("select_animation")] - public Sticker SelectAnimation { get; set; } + /// + /// Select animation for the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("select_animation")] + public Sticker SelectAnimation { get; set; } - /// - /// Activate animation for the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("activate_animation")] - public Sticker ActivateAnimation { get; set; } + /// + /// Activate animation for the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("activate_animation")] + public Sticker ActivateAnimation { get; set; } - /// - /// Effect animation for the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("effect_animation")] - public Sticker EffectAnimation { get; set; } + /// + /// Effect animation for the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("effect_animation")] + public Sticker EffectAnimation { get; set; } - /// - /// Around animation for the reaction; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("around_animation")] - public Sticker AroundAnimation { get; set; } + /// + /// Around animation for the reaction; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("around_animation")] + public Sticker AroundAnimation { get; set; } - /// - /// Center animation for the reaction; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("center_animation")] - public Sticker CenterAnimation { get; set; } - } + /// + /// Center animation for the reaction; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("center_animation")] + public Sticker CenterAnimation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiStatus.cs b/TdLib.Api/Objects/EmojiStatus.cs index d7353c52..8601bac9 100644 --- a/TdLib.Api/Objects/EmojiStatus.cs +++ b/TdLib.Api/Objects/EmojiStatus.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an emoji to be shown instead of the Telegram Premium badge /// - public static partial class TdApi + public partial class EmojiStatus : Object { /// - /// Describes an emoji to be shown instead of the Telegram Premium badge + /// Data type for serialization /// - public partial class EmojiStatus : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiStatus"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the emoji status - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public EmojiStatusType Type { get; set; } + /// + /// Type of the emoji status + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public EmojiStatusType Type { get; set; } - /// - /// Point in time (Unix timestamp) when the status will expire; 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the status will expire; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiStatusCustomEmojis.cs b/TdLib.Api/Objects/EmojiStatusCustomEmojis.cs index 12495af3..dfc3628c 100644 --- a/TdLib.Api/Objects/EmojiStatusCustomEmojis.cs +++ b/TdLib.Api/Objects/EmojiStatusCustomEmojis.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of custom emoji identifiers for emoji statuses /// - public static partial class TdApi + public partial class EmojiStatusCustomEmojis : Object { /// - /// Contains a list of custom emoji identifiers for emoji statuses + /// Data type for serialization /// - public partial class EmojiStatusCustomEmojis : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiStatusCustomEmojis"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiStatusCustomEmojis"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of custom emoji identifiers - /// - [JsonProperty("custom_emoji_ids", ItemConverterType = typeof(Converter))] - public long[] CustomEmojiIds { get; set; } - } + /// + /// The list of custom emoji identifiers + /// + [JsonProperty("custom_emoji_ids", ItemConverterType = typeof(Converter))] + public long[] CustomEmojiIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EmojiStatusTypeCustomEmoji.cs b/TdLib.Api/Objects/EmojiStatusTypeCustomEmoji.cs index c11b8a78..8c11b0ec 100644 --- a/TdLib.Api/Objects/EmojiStatusTypeCustomEmoji.cs +++ b/TdLib.Api/Objects/EmojiStatusTypeCustomEmoji.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiStatusType : Object { - public partial class EmojiStatusType : Object + /// + /// Describes type of emoji status + /// + public class EmojiStatusTypeCustomEmoji : EmojiStatusType { /// - /// Describes type of emoji status + /// Data type for serialization /// - public class EmojiStatusTypeCustomEmoji : EmojiStatusType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiStatusTypeCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiStatusTypeCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the custom emoji in stickerFormatTgs format - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } - } + /// + /// Identifier of the custom emoji in stickerFormatTgs format + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/EmojiStatusTypeUpgradedGift.cs b/TdLib.Api/Objects/EmojiStatusTypeUpgradedGift.cs index c5eb9302..0db47aff 100644 --- a/TdLib.Api/Objects/EmojiStatusTypeUpgradedGift.cs +++ b/TdLib.Api/Objects/EmojiStatusTypeUpgradedGift.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class EmojiStatusType : Object { - public partial class EmojiStatusType : Object + /// + /// An upgraded gift set as emoji status + /// + public class EmojiStatusTypeUpgradedGift : EmojiStatusType { /// - /// An upgraded gift set as emoji status + /// Data type for serialization /// - public class EmojiStatusTypeUpgradedGift : EmojiStatusType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiStatusTypeUpgradedGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiStatusTypeUpgradedGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the upgraded gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("upgraded_gift_id")] - public long UpgradedGiftId { get; set; } + /// + /// Identifier of the upgraded gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("upgraded_gift_id")] + public long UpgradedGiftId { get; set; } - /// - /// The title of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_title")] - public string GiftTitle { get; set; } + /// + /// The title of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_title")] + public string GiftTitle { get; set; } - /// - /// Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_name")] - public string GiftName { get; set; } + /// + /// Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_name")] + public string GiftName { get; set; } - /// - /// Custom emoji identifier of the model of the upgraded gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("model_custom_emoji_id")] - public long ModelCustomEmojiId { get; set; } + /// + /// Custom emoji identifier of the model of the upgraded gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("model_custom_emoji_id")] + public long ModelCustomEmojiId { get; set; } - /// - /// Custom emoji identifier of the symbol of the upgraded gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("symbol_custom_emoji_id")] - public long SymbolCustomEmojiId { get; set; } + /// + /// Custom emoji identifier of the symbol of the upgraded gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("symbol_custom_emoji_id")] + public long SymbolCustomEmojiId { get; set; } - /// - /// Colors of the backdrop of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("backdrop_colors")] - public UpgradedGiftBackdropColors BackdropColors { get; set; } - } + /// + /// Colors of the backdrop of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("backdrop_colors")] + public UpgradedGiftBackdropColors BackdropColors { get; set; } } } } diff --git a/TdLib.Api/Objects/EmojiStatuses.cs b/TdLib.Api/Objects/EmojiStatuses.cs index adcc7975..24b008a4 100644 --- a/TdLib.Api/Objects/EmojiStatuses.cs +++ b/TdLib.Api/Objects/EmojiStatuses.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of emoji statuses /// - public static partial class TdApi + public partial class EmojiStatuses : Object { /// - /// Contains a list of emoji statuses + /// Data type for serialization /// - public partial class EmojiStatuses : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojiStatuses"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojiStatuses"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of emoji statuses identifiers - /// - [JsonProperty("emoji_statuses", ItemConverterType = typeof(Converter))] - public EmojiStatus[] EmojiStatuses_ { get; set; } - } + /// + /// The list of emoji statuses identifiers + /// + [JsonProperty("emoji_statuses", ItemConverterType = typeof(Converter))] + public EmojiStatus[] EmojiStatuses_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Emojis.cs b/TdLib.Api/Objects/Emojis.cs index 8cc1715e..400eb761 100644 --- a/TdLib.Api/Objects/Emojis.cs +++ b/TdLib.Api/Objects/Emojis.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of emojis /// - public static partial class TdApi + public partial class Emojis : Object { /// - /// Represents a list of emojis + /// Data type for serialization /// - public partial class Emojis : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "emojis"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "emojis"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of emojis - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public string[] Emojis_ { get; set; } - } + /// + /// List of emojis + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public string[] Emojis_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EncryptedCredentials.cs b/TdLib.Api/Objects/EncryptedCredentials.cs index bdca5fb8..ff7f41d3 100644 --- a/TdLib.Api/Objects/EncryptedCredentials.cs +++ b/TdLib.Api/Objects/EncryptedCredentials.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains encrypted Telegram Passport data credentials /// - public static partial class TdApi + public partial class EncryptedCredentials : Object { /// - /// Contains encrypted Telegram Passport data credentials + /// Data type for serialization /// - public partial class EncryptedCredentials : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "encryptedCredentials"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "encryptedCredentials"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The encrypted credentials - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } + /// + /// The encrypted credentials + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } - /// - /// The decrypted data hash - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hash")] - public byte[] Hash { get; set; } + /// + /// The decrypted data hash + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hash")] + public byte[] Hash { get; set; } - /// - /// Secret for data decryption, encrypted with the service's public key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secret")] - public byte[] Secret { get; set; } - } + /// + /// Secret for data decryption, encrypted with the service's public key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("secret")] + public byte[] Secret { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EncryptedPassportElement.cs b/TdLib.Api/Objects/EncryptedPassportElement.cs index 6b811f1a..b3a5f7dd 100644 --- a/TdLib.Api/Objects/EncryptedPassportElement.cs +++ b/TdLib.Api/Objects/EncryptedPassportElement.cs @@ -2,91 +2,90 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an encrypted Telegram Passport element; for bots only /// - public static partial class TdApi + public partial class EncryptedPassportElement : Object { /// - /// Contains information about an encrypted Telegram Passport element; for bots only + /// Data type for serialization /// - public partial class EncryptedPassportElement : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "encryptedPassportElement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "encryptedPassportElement"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of Telegram Passport element - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PassportElementType Type { get; set; } + /// + /// Type of Telegram Passport element + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PassportElementType Type { get; set; } - /// - /// Encrypted JSON-encoded data about the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } + /// + /// Encrypted JSON-encoded data about the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } - /// - /// The front side of an identity document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("front_side")] - public DatedFile FrontSide { get; set; } + /// + /// The front side of an identity document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("front_side")] + public DatedFile FrontSide { get; set; } - /// - /// The reverse side of an identity document; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reverse_side")] - public DatedFile ReverseSide { get; set; } + /// + /// The reverse side of an identity document; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reverse_side")] + public DatedFile ReverseSide { get; set; } - /// - /// Selfie with the document; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("selfie")] - public DatedFile Selfie { get; set; } + /// + /// Selfie with the document; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("selfie")] + public DatedFile Selfie { get; set; } - /// - /// List of files containing a certified English translation of the document - /// - [JsonProperty("translation", ItemConverterType = typeof(Converter))] - public DatedFile[] Translation { get; set; } + /// + /// List of files containing a certified English translation of the document + /// + [JsonProperty("translation", ItemConverterType = typeof(Converter))] + public DatedFile[] Translation { get; set; } - /// - /// List of attached files - /// - [JsonProperty("files", ItemConverterType = typeof(Converter))] - public DatedFile[] Files { get; set; } + /// + /// List of attached files + /// + [JsonProperty("files", ItemConverterType = typeof(Converter))] + public DatedFile[] Files { get; set; } - /// - /// Unencrypted data, phone number or email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public string Value { get; set; } + /// + /// Unencrypted data, phone number or email address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public string Value { get; set; } - /// - /// Hash of the entire element - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hash")] - public string Hash { get; set; } - } + /// + /// Hash of the entire element + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hash")] + public string Hash { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/EphemeralMessageContent.cs b/TdLib.Api/Objects/EphemeralMessageContent.cs index 4940ebe1..00e0114c 100644 --- a/TdLib.Api/Objects/EphemeralMessageContent.cs +++ b/TdLib.Api/Objects/EphemeralMessageContent.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an ephemeral content of a regular message, which must be shown instead of the regular content /// - public static partial class TdApi + public partial class EphemeralMessageContent : Object { /// - /// Describes an ephemeral content of a regular message, which must be shown instead of the regular content + /// Data type for serialization /// - public partial class EphemeralMessageContent : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "ephemeralMessageContent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "ephemeralMessageContent"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if content of the message can be saved locally - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_saved")] - public bool CanBeSaved { get; set; } + /// + /// True, if content of the message can be saved locally + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_saved")] + public bool CanBeSaved { get; set; } - /// - /// True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_timestamped_media")] - public bool HasTimestampedMedia { get; set; } + /// + /// True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_timestamped_media")] + public bool HasTimestampedMedia { get; set; } - /// - /// Content of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } + /// + /// Content of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } - /// - /// Reply markup for the message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// Reply markup for the message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Error.cs b/TdLib.Api/Objects/Error.cs index 0c1e7c73..0d1cdcdd 100644 --- a/TdLib.Api/Objects/Error.cs +++ b/TdLib.Api/Objects/Error.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// An object of this type can be returned on every function call, in case of an error /// - public static partial class TdApi + public partial class Error : Object { /// - /// An object of this type can be returned on every function call, in case of an error + /// Data type for serialization /// - public partial class Error : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "error"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "error"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public int Code { get; set; } + /// + /// Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public int Code { get; set; } - /// - /// Error message; subject to future changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public string Message { get; set; } - } + /// + /// Error message; subject to future changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public string Message { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FactCheck.cs b/TdLib.Api/Objects/FactCheck.cs index 06452cbe..fd4994e3 100644 --- a/TdLib.Api/Objects/FactCheck.cs +++ b/TdLib.Api/Objects/FactCheck.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a fact-check added to the message by an independent checker /// - public static partial class TdApi + public partial class FactCheck : Object { /// - /// Describes a fact-check added to the message by an independent checker + /// Data type for serialization /// - public partial class FactCheck : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "factCheck"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "factCheck"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the fact-check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text of the fact-check + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check is shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } - } + /// + /// A two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check is shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FailedToAddMember.cs b/TdLib.Api/Objects/FailedToAddMember.cs index 73b49f6e..4566b78b 100644 --- a/TdLib.Api/Objects/FailedToAddMember.cs +++ b/TdLib.Api/Objects/FailedToAddMember.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a user who has failed to be added to a chat /// - public static partial class TdApi + public partial class FailedToAddMember : Object { /// - /// Contains information about a user who has failed to be added to a chat + /// Data type for serialization /// - public partial class FailedToAddMember : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "failedToAddMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "failedToAddMember"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// True, if subscription to Telegram Premium would have allowed to add the user to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_would_allow_invite")] - public bool PremiumWouldAllowInvite { get; set; } + /// + /// True, if subscription to Telegram Premium would have allowed to add the user to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_would_allow_invite")] + public bool PremiumWouldAllowInvite { get; set; } - /// - /// True, if subscription to Telegram Premium is required to send the user chat invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_required_to_send_messages")] - public bool PremiumRequiredToSendMessages { get; set; } - } + /// + /// True, if subscription to Telegram Premium is required to send the user chat invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_required_to_send_messages")] + public bool PremiumRequiredToSendMessages { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FailedToAddMembers.cs b/TdLib.Api/Objects/FailedToAddMembers.cs index 03a0406d..58924378 100644 --- a/TdLib.Api/Objects/FailedToAddMembers.cs +++ b/TdLib.Api/Objects/FailedToAddMembers.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of users that has failed to be added to a chat /// - public static partial class TdApi + public partial class FailedToAddMembers : Object { /// - /// Represents a list of users that has failed to be added to a chat + /// Data type for serialization /// - public partial class FailedToAddMembers : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "failedToAddMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "failedToAddMembers"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about users that weren't added to the chat - /// - [JsonProperty("failed_to_add_members", ItemConverterType = typeof(Converter))] - public FailedToAddMember[] FailedToAddMembers_ { get; set; } - } + /// + /// Information about users that weren't added to the chat + /// + [JsonProperty("failed_to_add_members", ItemConverterType = typeof(Converter))] + public FailedToAddMember[] FailedToAddMembers_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/File.cs b/TdLib.Api/Objects/File.cs index 5565c80d..e879786b 100644 --- a/TdLib.Api/Objects/File.cs +++ b/TdLib.Api/Objects/File.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a file /// - public static partial class TdApi + public partial class File : Object { /// - /// Represents a file + /// Data type for serialization /// - public partial class File : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "file"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "file"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique file identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique file identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// File size, in bytes; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public long Size { get; set; } + /// + /// File size, in bytes; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public long Size { get; set; } - /// - /// Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expected_size")] - public long ExpectedSize { get; set; } + /// + /// Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expected_size")] + public long ExpectedSize { get; set; } - /// - /// Information about the local copy of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("local")] - public LocalFile Local { get; set; } + /// + /// Information about the local copy of the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("local")] + public LocalFile Local { get; set; } - /// - /// Information about the remote copy of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("remote")] - public RemoteFile Remote { get; set; } - } + /// + /// Information about the remote copy of the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("remote")] + public RemoteFile Remote { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FileDownload.cs b/TdLib.Api/Objects/FileDownload.cs index 556af96b..0f3654c8 100644 --- a/TdLib.Api/Objects/FileDownload.cs +++ b/TdLib.Api/Objects/FileDownload.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a file added to file download list /// - public static partial class TdApi + public partial class FileDownload : Object { /// - /// Describes a file added to file download list + /// Data type for serialization /// - public partial class FileDownload : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileDownload"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileDownload"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// File identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } - /// - /// The message with the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// The message with the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// Point in time (Unix timestamp) when the file was added to the download list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("add_date")] - public int AddDate { get; set; } + /// + /// Point in time (Unix timestamp) when the file was added to the download list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("add_date")] + public int AddDate { get; set; } - /// - /// Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("complete_date")] - public int CompleteDate { get; set; } + /// + /// Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("complete_date")] + public int CompleteDate { get; set; } - /// - /// True, if downloading of the file is paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paused")] - public bool IsPaused { get; set; } - } + /// + /// True, if downloading of the file is paused + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paused")] + public bool IsPaused { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FileDownloadedPrefixSize.cs b/TdLib.Api/Objects/FileDownloadedPrefixSize.cs index b658e4ae..73d55f15 100644 --- a/TdLib.Api/Objects/FileDownloadedPrefixSize.cs +++ b/TdLib.Api/Objects/FileDownloadedPrefixSize.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains size of downloaded prefix of a file /// - public static partial class TdApi + public partial class FileDownloadedPrefixSize : Object { /// - /// Contains size of downloaded prefix of a file + /// Data type for serialization /// - public partial class FileDownloadedPrefixSize : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileDownloadedPrefixSize"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileDownloadedPrefixSize"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The prefix size, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public long Size { get; set; } - } + /// + /// The prefix size, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public long Size { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FileTypeAnimation.cs b/TdLib.Api/Objects/FileTypeAnimation.cs index 81abe008..7aed2bf0 100644 --- a/TdLib.Api/Objects/FileTypeAnimation.cs +++ b/TdLib.Api/Objects/FileTypeAnimation.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is an animation + /// + public class FileTypeAnimation : FileType { /// - /// The file is an animation + /// Data type for serialization /// - public class FileTypeAnimation : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeAudio.cs b/TdLib.Api/Objects/FileTypeAudio.cs index 6ddad2cb..3b911891 100644 --- a/TdLib.Api/Objects/FileTypeAudio.cs +++ b/TdLib.Api/Objects/FileTypeAudio.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is an audio file + /// + public class FileTypeAudio : FileType { /// - /// The file is an audio file + /// Data type for serialization /// - public class FileTypeAudio : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeDocument.cs b/TdLib.Api/Objects/FileTypeDocument.cs index ca5e3b45..11aaaf1b 100644 --- a/TdLib.Api/Objects/FileTypeDocument.cs +++ b/TdLib.Api/Objects/FileTypeDocument.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a document + /// + public class FileTypeDocument : FileType { /// - /// The file is a document + /// Data type for serialization /// - public class FileTypeDocument : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeLivePhotoVideo.cs b/TdLib.Api/Objects/FileTypeLivePhotoVideo.cs index 6e8c54b5..8eac2912 100644 --- a/TdLib.Api/Objects/FileTypeLivePhotoVideo.cs +++ b/TdLib.Api/Objects/FileTypeLivePhotoVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a video for a live photo + /// + public class FileTypeLivePhotoVideo : FileType { /// - /// The file is a video for a live photo + /// Data type for serialization /// - public class FileTypeLivePhotoVideo : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeLivePhotoVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeLivePhotoVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeNone.cs b/TdLib.Api/Objects/FileTypeNone.cs index 642a87a2..9ef27eb3 100644 --- a/TdLib.Api/Objects/FileTypeNone.cs +++ b/TdLib.Api/Objects/FileTypeNone.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// Represents the type of file + /// + public class FileTypeNone : FileType { /// - /// Represents the type of file + /// Data type for serialization /// - public class FileTypeNone : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeNone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeNone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeNotificationSound.cs b/TdLib.Api/Objects/FileTypeNotificationSound.cs index d9496298..bb4ec43f 100644 --- a/TdLib.Api/Objects/FileTypeNotificationSound.cs +++ b/TdLib.Api/Objects/FileTypeNotificationSound.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a notification sound + /// + public class FileTypeNotificationSound : FileType { /// - /// The file is a notification sound + /// Data type for serialization /// - public class FileTypeNotificationSound : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeNotificationSound"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeNotificationSound"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypePhoto.cs b/TdLib.Api/Objects/FileTypePhoto.cs index 9bb916c4..cd7f8cd3 100644 --- a/TdLib.Api/Objects/FileTypePhoto.cs +++ b/TdLib.Api/Objects/FileTypePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a photo + /// + public class FileTypePhoto : FileType { /// - /// The file is a photo + /// Data type for serialization /// - public class FileTypePhoto : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypePhotoStory.cs b/TdLib.Api/Objects/FileTypePhotoStory.cs index 648aed6e..a0723dbd 100644 --- a/TdLib.Api/Objects/FileTypePhotoStory.cs +++ b/TdLib.Api/Objects/FileTypePhotoStory.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a photo published as a story + /// + public class FileTypePhotoStory : FileType { /// - /// The file is a photo published as a story + /// Data type for serialization /// - public class FileTypePhotoStory : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypePhotoStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypePhotoStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeProfilePhoto.cs b/TdLib.Api/Objects/FileTypeProfilePhoto.cs index 73038cdc..5d25d441 100644 --- a/TdLib.Api/Objects/FileTypeProfilePhoto.cs +++ b/TdLib.Api/Objects/FileTypeProfilePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a profile photo + /// + public class FileTypeProfilePhoto : FileType { /// - /// The file is a profile photo + /// Data type for serialization /// - public class FileTypeProfilePhoto : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeProfilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeProfilePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSecret.cs b/TdLib.Api/Objects/FileTypeSecret.cs index 12c1a2ea..a0ec0c3e 100644 --- a/TdLib.Api/Objects/FileTypeSecret.cs +++ b/TdLib.Api/Objects/FileTypeSecret.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file was sent to a secret chat (the file type is not known to the server) + /// + public class FileTypeSecret : FileType { /// - /// The file was sent to a secret chat (the file type is not known to the server) + /// Data type for serialization /// - public class FileTypeSecret : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSecret"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSecret"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSecretThumbnail.cs b/TdLib.Api/Objects/FileTypeSecretThumbnail.cs index 15dbf251..45318946 100644 --- a/TdLib.Api/Objects/FileTypeSecretThumbnail.cs +++ b/TdLib.Api/Objects/FileTypeSecretThumbnail.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a thumbnail of a file from a secret chat + /// + public class FileTypeSecretThumbnail : FileType { /// - /// The file is a thumbnail of a file from a secret chat + /// Data type for serialization /// - public class FileTypeSecretThumbnail : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSecretThumbnail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSecretThumbnail"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSecure.cs b/TdLib.Api/Objects/FileTypeSecure.cs index 945d979f..c93be9b8 100644 --- a/TdLib.Api/Objects/FileTypeSecure.cs +++ b/TdLib.Api/Objects/FileTypeSecure.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a file from Secure storage used for storing Telegram Passport files + /// + public class FileTypeSecure : FileType { /// - /// The file is a file from Secure storage used for storing Telegram Passport files + /// Data type for serialization /// - public class FileTypeSecure : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSecure"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSecure"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSelfDestructingLivePhotoVideo.cs b/TdLib.Api/Objects/FileTypeSelfDestructingLivePhotoVideo.cs index 5c647d03..c33c66cc 100644 --- a/TdLib.Api/Objects/FileTypeSelfDestructingLivePhotoVideo.cs +++ b/TdLib.Api/Objects/FileTypeSelfDestructingLivePhotoVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a self-destructing video for a live photo in a private chat + /// + public class FileTypeSelfDestructingLivePhotoVideo : FileType { /// - /// The file is a self-destructing video for a live photo in a private chat + /// Data type for serialization /// - public class FileTypeSelfDestructingLivePhotoVideo : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSelfDestructingLivePhotoVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSelfDestructingLivePhotoVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSelfDestructingPhoto.cs b/TdLib.Api/Objects/FileTypeSelfDestructingPhoto.cs index 21dc8b73..edc1bf14 100644 --- a/TdLib.Api/Objects/FileTypeSelfDestructingPhoto.cs +++ b/TdLib.Api/Objects/FileTypeSelfDestructingPhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a self-destructing photo in a private chat + /// + public class FileTypeSelfDestructingPhoto : FileType { /// - /// The file is a self-destructing photo in a private chat + /// Data type for serialization /// - public class FileTypeSelfDestructingPhoto : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSelfDestructingPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSelfDestructingPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSelfDestructingVideo.cs b/TdLib.Api/Objects/FileTypeSelfDestructingVideo.cs index 829a611c..e2620605 100644 --- a/TdLib.Api/Objects/FileTypeSelfDestructingVideo.cs +++ b/TdLib.Api/Objects/FileTypeSelfDestructingVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a self-destructing video in a private chat + /// + public class FileTypeSelfDestructingVideo : FileType { /// - /// The file is a self-destructing video in a private chat + /// Data type for serialization /// - public class FileTypeSelfDestructingVideo : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSelfDestructingVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSelfDestructingVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSelfDestructingVideoNote.cs b/TdLib.Api/Objects/FileTypeSelfDestructingVideoNote.cs index 20b7f6cf..3af196d7 100644 --- a/TdLib.Api/Objects/FileTypeSelfDestructingVideoNote.cs +++ b/TdLib.Api/Objects/FileTypeSelfDestructingVideoNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a self-destructing video note in a private chat + /// + public class FileTypeSelfDestructingVideoNote : FileType { /// - /// The file is a self-destructing video note in a private chat + /// Data type for serialization /// - public class FileTypeSelfDestructingVideoNote : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSelfDestructingVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSelfDestructingVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSelfDestructingVoiceNote.cs b/TdLib.Api/Objects/FileTypeSelfDestructingVoiceNote.cs index 1e75ec77..8a818523 100644 --- a/TdLib.Api/Objects/FileTypeSelfDestructingVoiceNote.cs +++ b/TdLib.Api/Objects/FileTypeSelfDestructingVoiceNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a self-destructing voice note in a private chat + /// + public class FileTypeSelfDestructingVoiceNote : FileType { /// - /// The file is a self-destructing voice note in a private chat + /// Data type for serialization /// - public class FileTypeSelfDestructingVoiceNote : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSelfDestructingVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSelfDestructingVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeSticker.cs b/TdLib.Api/Objects/FileTypeSticker.cs index 6a6345e7..03d72256 100644 --- a/TdLib.Api/Objects/FileTypeSticker.cs +++ b/TdLib.Api/Objects/FileTypeSticker.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a sticker + /// + public class FileTypeSticker : FileType { /// - /// The file is a sticker + /// Data type for serialization /// - public class FileTypeSticker : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeThumbnail.cs b/TdLib.Api/Objects/FileTypeThumbnail.cs index f570f56d..5aa06ec7 100644 --- a/TdLib.Api/Objects/FileTypeThumbnail.cs +++ b/TdLib.Api/Objects/FileTypeThumbnail.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a thumbnail of another file + /// + public class FileTypeThumbnail : FileType { /// - /// The file is a thumbnail of another file + /// Data type for serialization /// - public class FileTypeThumbnail : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeThumbnail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeThumbnail"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeUnknown.cs b/TdLib.Api/Objects/FileTypeUnknown.cs index 210b5f6f..5b30e607 100644 --- a/TdLib.Api/Objects/FileTypeUnknown.cs +++ b/TdLib.Api/Objects/FileTypeUnknown.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file type is not yet known + /// + public class FileTypeUnknown : FileType { /// - /// The file type is not yet known + /// Data type for serialization /// - public class FileTypeUnknown : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeUnknown"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeUnknown"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeVideo.cs b/TdLib.Api/Objects/FileTypeVideo.cs index 94b1abad..ee489d64 100644 --- a/TdLib.Api/Objects/FileTypeVideo.cs +++ b/TdLib.Api/Objects/FileTypeVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a video + /// + public class FileTypeVideo : FileType { /// - /// The file is a video + /// Data type for serialization /// - public class FileTypeVideo : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeVideoNote.cs b/TdLib.Api/Objects/FileTypeVideoNote.cs index ec389779..3216512a 100644 --- a/TdLib.Api/Objects/FileTypeVideoNote.cs +++ b/TdLib.Api/Objects/FileTypeVideoNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a video note + /// + public class FileTypeVideoNote : FileType { /// - /// The file is a video note + /// Data type for serialization /// - public class FileTypeVideoNote : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeVideoStory.cs b/TdLib.Api/Objects/FileTypeVideoStory.cs index 96da94ce..ecfca42d 100644 --- a/TdLib.Api/Objects/FileTypeVideoStory.cs +++ b/TdLib.Api/Objects/FileTypeVideoStory.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a video published as a story + /// + public class FileTypeVideoStory : FileType { /// - /// The file is a video published as a story + /// Data type for serialization /// - public class FileTypeVideoStory : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeVideoStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeVideoStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeVoiceNote.cs b/TdLib.Api/Objects/FileTypeVoiceNote.cs index 6a01fb99..321615c6 100644 --- a/TdLib.Api/Objects/FileTypeVoiceNote.cs +++ b/TdLib.Api/Objects/FileTypeVoiceNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a voice note + /// + public class FileTypeVoiceNote : FileType { /// - /// The file is a voice note + /// Data type for serialization /// - public class FileTypeVoiceNote : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FileTypeWallpaper.cs b/TdLib.Api/Objects/FileTypeWallpaper.cs index 26fa27c9..ecc3b118 100644 --- a/TdLib.Api/Objects/FileTypeWallpaper.cs +++ b/TdLib.Api/Objects/FileTypeWallpaper.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FileType : Object { - public partial class FileType : Object + /// + /// The file is a wallpaper or a background pattern + /// + public class FileTypeWallpaper : FileType { /// - /// The file is a wallpaper or a background pattern + /// Data type for serialization /// - public class FileTypeWallpaper : FileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fileTypeWallpaper"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fileTypeWallpaper"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FirebaseAuthenticationSettingsAndroid.cs b/TdLib.Api/Objects/FirebaseAuthenticationSettingsAndroid.cs index e66a0d4c..8798fdfe 100644 --- a/TdLib.Api/Objects/FirebaseAuthenticationSettingsAndroid.cs +++ b/TdLib.Api/Objects/FirebaseAuthenticationSettingsAndroid.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FirebaseAuthenticationSettings : Object { - public partial class FirebaseAuthenticationSettings : Object + /// + /// Contains settings for Firebase Authentication in the official applications + /// + public class FirebaseAuthenticationSettingsAndroid : FirebaseAuthenticationSettings { /// - /// Contains settings for Firebase Authentication in the official applications + /// Data type for serialization /// - public class FirebaseAuthenticationSettingsAndroid : FirebaseAuthenticationSettings - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "firebaseAuthenticationSettingsAndroid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "firebaseAuthenticationSettingsAndroid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/FirebaseAuthenticationSettingsIos.cs b/TdLib.Api/Objects/FirebaseAuthenticationSettingsIos.cs index 4fc52ae6..a26527c3 100644 --- a/TdLib.Api/Objects/FirebaseAuthenticationSettingsIos.cs +++ b/TdLib.Api/Objects/FirebaseAuthenticationSettingsIos.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FirebaseAuthenticationSettings : Object { - public partial class FirebaseAuthenticationSettings : Object + /// + /// Settings for Firebase Authentication in the official iOS application + /// + public class FirebaseAuthenticationSettingsIos : FirebaseAuthenticationSettings { /// - /// Settings for Firebase Authentication in the official iOS application + /// Data type for serialization /// - public class FirebaseAuthenticationSettingsIos : FirebaseAuthenticationSettings - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "firebaseAuthenticationSettingsIos"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "firebaseAuthenticationSettingsIos"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Device token from Apple Push Notification service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_token")] - public string DeviceToken { get; set; } + /// + /// Device token from Apple Push Notification service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_token")] + public string DeviceToken { get; set; } - /// - /// True, if App Sandbox is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_app_sandbox")] - public bool IsAppSandbox { get; set; } - } + /// + /// True, if App Sandbox is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_app_sandbox")] + public bool IsAppSandbox { get; set; } } } } diff --git a/TdLib.Api/Objects/FirebaseDeviceVerificationParametersPlayIntegrity.cs b/TdLib.Api/Objects/FirebaseDeviceVerificationParametersPlayIntegrity.cs index ed179c81..4b00c083 100644 --- a/TdLib.Api/Objects/FirebaseDeviceVerificationParametersPlayIntegrity.cs +++ b/TdLib.Api/Objects/FirebaseDeviceVerificationParametersPlayIntegrity.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FirebaseDeviceVerificationParameters : Object { - public partial class FirebaseDeviceVerificationParameters : Object + /// + /// Device verification must be performed with the classic Play Integrity verification (https://developer.android.com/google/play/integrity/classic) + /// + public class FirebaseDeviceVerificationParametersPlayIntegrity : FirebaseDeviceVerificationParameters { /// - /// Device verification must be performed with the classic Play Integrity verification (https://developer.android.com/google/play/integrity/classic) + /// Data type for serialization /// - public class FirebaseDeviceVerificationParametersPlayIntegrity : FirebaseDeviceVerificationParameters - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "firebaseDeviceVerificationParametersPlayIntegrity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "firebaseDeviceVerificationParametersPlayIntegrity"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Base64url-encoded nonce to pass to the Play Integrity API - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("nonce")] - public string Nonce { get; set; } + /// + /// Base64url-encoded nonce to pass to the Play Integrity API + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("nonce")] + public string Nonce { get; set; } - /// - /// Cloud project number to pass to the Play Integrity API - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("cloud_project_number")] - public long CloudProjectNumber { get; set; } - } + /// + /// Cloud project number to pass to the Play Integrity API + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("cloud_project_number")] + public long CloudProjectNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/FirebaseDeviceVerificationParametersSafetyNet.cs b/TdLib.Api/Objects/FirebaseDeviceVerificationParametersSafetyNet.cs index 013944f9..f277e398 100644 --- a/TdLib.Api/Objects/FirebaseDeviceVerificationParametersSafetyNet.cs +++ b/TdLib.Api/Objects/FirebaseDeviceVerificationParametersSafetyNet.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class FirebaseDeviceVerificationParameters : Object { - public partial class FirebaseDeviceVerificationParameters : Object + /// + /// Describes parameters to be used for device verification + /// + public class FirebaseDeviceVerificationParametersSafetyNet : FirebaseDeviceVerificationParameters { /// - /// Describes parameters to be used for device verification + /// Data type for serialization /// - public class FirebaseDeviceVerificationParametersSafetyNet : FirebaseDeviceVerificationParameters - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "firebaseDeviceVerificationParametersSafetyNet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "firebaseDeviceVerificationParametersSafetyNet"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Nonce to pass to the SafetyNet Attestation API - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("nonce")] - public byte[] Nonce { get; set; } - } + /// + /// Nonce to pass to the SafetyNet Attestation API + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("nonce")] + public byte[] Nonce { get; set; } } } } diff --git a/TdLib.Api/Objects/FixedText.cs b/TdLib.Api/Objects/FixedText.cs index 78f69e70..ee173c0a 100644 --- a/TdLib.Api/Objects/FixedText.cs +++ b/TdLib.Api/Objects/FixedText.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A text fixed using fixTextWithAi /// - public static partial class TdApi + public partial class FixedText : Object { /// - /// A text fixed using fixTextWithAi + /// Data type for serialization /// - public partial class FixedText : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "fixedText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "fixedText"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The resulting text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// The resulting text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Changes made to the original text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("diff_text")] - public DiffText DiffText { get; set; } - } + /// + /// Changes made to the original text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("diff_text")] + public DiffText DiffText { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FormattedText.cs b/TdLib.Api/Objects/FormattedText.cs index 448cf42b..29d574b9 100644 --- a/TdLib.Api/Objects/FormattedText.cs +++ b/TdLib.Api/Objects/FormattedText.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A text with some entities /// - public static partial class TdApi + public partial class FormattedText : Object { /// - /// A text with some entities + /// Data type for serialization /// - public partial class FormattedText : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "formattedText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "formattedText"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// The text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. - /// Pre, Code, PreCode, and DateTime entities can't contain other entities. BlockQuote entities can't contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other - /// - [JsonProperty("entities", ItemConverterType = typeof(Converter))] - public TextEntity[] Entities { get; set; } - } + /// + /// Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. + /// Pre, Code, PreCode, and DateTime entities can't contain other entities. BlockQuote entities can't contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other + /// + [JsonProperty("entities", ItemConverterType = typeof(Converter))] + public TextEntity[] Entities { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ForumTopic.cs b/TdLib.Api/Objects/ForumTopic.cs index a96855b9..ba933008 100644 --- a/TdLib.Api/Objects/ForumTopic.cs +++ b/TdLib.Api/Objects/ForumTopic.cs @@ -2,114 +2,113 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a forum topic /// - public static partial class TdApi + public partial class ForumTopic : Object { /// - /// Describes a forum topic + /// Data type for serialization /// - public partial class ForumTopic : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "forumTopic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "forumTopic"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Basic information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info")] - public ForumTopicInfo Info { get; set; } + /// + /// Basic information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public ForumTopicInfo Info { get; set; } - /// - /// Last message in the topic; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_message")] - public Message LastMessage { get; set; } + /// + /// Last message in the topic; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_message")] + public Message LastMessage { get; set; } - /// - /// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("order")] - public long Order { get; set; } + /// + /// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("order")] + public long Order { get; set; } - /// - /// True, if the topic is pinned in the topic list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } + /// + /// True, if the topic is pinned in the topic list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } - /// - /// Number of unread messages in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_count")] - public int UnreadCount { get; set; } + /// + /// Number of unread messages in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_count")] + public int UnreadCount { get; set; } - /// - /// Identifier of the last read incoming message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_inbox_message_id")] - public long LastReadInboxMessageId { get; set; } + /// + /// Identifier of the last read incoming message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_inbox_message_id")] + public long LastReadInboxMessageId { get; set; } - /// - /// Identifier of the last read outgoing message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_outbox_message_id")] - public long LastReadOutboxMessageId { get; set; } + /// + /// Identifier of the last read outgoing message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_outbox_message_id")] + public long LastReadOutboxMessageId { get; set; } - /// - /// Number of unread messages with a mention/reply in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_mention_count")] - public int UnreadMentionCount { get; set; } + /// + /// Number of unread messages with a mention/reply in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_mention_count")] + public int UnreadMentionCount { get; set; } - /// - /// Number of messages with unread reactions in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_reaction_count")] - public int UnreadReactionCount { get; set; } + /// + /// Number of messages with unread reactions in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_reaction_count")] + public int UnreadReactionCount { get; set; } - /// - /// Number of messages with unread poll votes in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_poll_vote_count")] - public int UnreadPollVoteCount { get; set; } + /// + /// Number of messages with unread poll votes in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_poll_vote_count")] + public int UnreadPollVoteCount { get; set; } - /// - /// Notification settings for the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ChatNotificationSettings NotificationSettings { get; set; } + /// + /// Notification settings for the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ChatNotificationSettings NotificationSettings { get; set; } - /// - /// A draft of a message in the topic; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } - } + /// + /// A draft of a message in the topic; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ForumTopicIcon.cs b/TdLib.Api/Objects/ForumTopicIcon.cs index fb631c17..4688f5ac 100644 --- a/TdLib.Api/Objects/ForumTopicIcon.cs +++ b/TdLib.Api/Objects/ForumTopicIcon.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a forum topic icon /// - public static partial class TdApi + public partial class ForumTopicIcon : Object { /// - /// Describes a forum topic icon + /// Data type for serialization /// - public partial class ForumTopicIcon : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "forumTopicIcon"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "forumTopicIcon"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Color of the topic icon in RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("color")] - public int Color { get; set; } + /// + /// Color of the topic icon in RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("color")] + public int Color { get; set; } - /// - /// Unique identifier of the custom emoji shown on the topic icon; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } - } + /// + /// Unique identifier of the custom emoji shown on the topic icon; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ForumTopicInfo.cs b/TdLib.Api/Objects/ForumTopicInfo.cs index 8b4095fa..ea604eff 100644 --- a/TdLib.Api/Objects/ForumTopicInfo.cs +++ b/TdLib.Api/Objects/ForumTopicInfo.cs @@ -2,107 +2,106 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains basic information about a forum topic /// - public static partial class TdApi + public partial class ForumTopicInfo : Object { /// - /// Contains basic information about a forum topic + /// Data type for serialization /// - public partial class ForumTopicInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "forumTopicInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "forumTopicInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a forum supergroup chat or a chat with a bot to which the topic belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of a forum supergroup chat or a chat with a bot to which the topic belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Forum topic identifier of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Forum topic identifier of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// Name of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Icon of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon")] - public ForumTopicIcon Icon { get; set; } + /// + /// Icon of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public ForumTopicIcon Icon { get; set; } - /// - /// Point in time (Unix timestamp) when the topic was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creation_date")] - public int CreationDate { get; set; } + /// + /// Point in time (Unix timestamp) when the topic was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creation_date")] + public int CreationDate { get; set; } - /// - /// Identifier of the creator of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_id")] - public MessageSender CreatorId { get; set; } + /// + /// Identifier of the creator of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_id")] + public MessageSender CreatorId { get; set; } - /// - /// True, if the topic is the General topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_general")] - public bool IsGeneral { get; set; } + /// + /// True, if the topic is the General topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_general")] + public bool IsGeneral { get; set; } - /// - /// True, if the topic was created by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_outgoing")] - public bool IsOutgoing { get; set; } + /// + /// True, if the topic was created by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outgoing")] + public bool IsOutgoing { get; set; } - /// - /// True, if the topic is closed. If the topic is closed, then the user must have can_manage_topics administrator right in the supergroup or must be the creator of the topic to send messages there - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_closed")] - public bool IsClosed { get; set; } + /// + /// True, if the topic is closed. If the topic is closed, then the user must have can_manage_topics administrator right in the supergroup or must be the creator of the topic to send messages there + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_closed")] + public bool IsClosed { get; set; } - /// - /// True, if the topic is hidden above the topic list and closed; for General topic only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_hidden")] - public bool IsHidden { get; set; } + /// + /// True, if the topic is hidden above the topic list and closed; for General topic only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_hidden")] + public bool IsHidden { get; set; } - /// - /// True, if the name of the topic wasn't added explicitly - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_name_implicit")] - public bool IsNameImplicit { get; set; } - } + /// + /// True, if the name of the topic wasn't added explicitly + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_name_implicit")] + public bool IsNameImplicit { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ForumTopics.cs b/TdLib.Api/Objects/ForumTopics.cs index 6ef151ce..319aeb12 100644 --- a/TdLib.Api/Objects/ForumTopics.cs +++ b/TdLib.Api/Objects/ForumTopics.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a list of forum topics /// - public static partial class TdApi + public partial class ForumTopics : Object { /// - /// Describes a list of forum topics + /// Data type for serialization /// - public partial class ForumTopics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "forumTopics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "forumTopics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of forum topics found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of forum topics found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of forum topics - /// - [JsonProperty("topics", ItemConverterType = typeof(Converter))] - public ForumTopic[] Topics { get; set; } + /// + /// List of forum topics + /// + [JsonProperty("topics", ItemConverterType = typeof(Converter))] + public ForumTopic[] Topics { get; set; } - /// - /// Offset date for the next getForumTopics request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset_date")] - public int NextOffsetDate { get; set; } + /// + /// Offset date for the next getForumTopics request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset_date")] + public int NextOffsetDate { get; set; } - /// - /// Offset message identifier for the next getForumTopics request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset_message_id")] - public long NextOffsetMessageId { get; set; } + /// + /// Offset message identifier for the next getForumTopics request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset_message_id")] + public long NextOffsetMessageId { get; set; } - /// - /// Offset forum topic identifier for the next getForumTopics request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset_forum_topic_id")] - public int NextOffsetForumTopicId { get; set; } - } + /// + /// Offset forum topic identifier for the next getForumTopics request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset_forum_topic_id")] + public int NextOffsetForumTopicId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ForwardSource.cs b/TdLib.Api/Objects/ForwardSource.cs index 5d2df6d5..bb9e3628 100644 --- a/TdLib.Api/Objects/ForwardSource.cs +++ b/TdLib.Api/Objects/ForwardSource.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about the last message from which a new message was forwarded last time /// - public static partial class TdApi + public partial class ForwardSource : Object { /// - /// Contains information about the last message from which a new message was forwarded last time + /// Data type for serialization /// - public partial class ForwardSource : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "forwardSource"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "forwardSource"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message; may be 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the message; may be 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Name of the sender of the message if the sender is hidden by their privacy settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_name")] - public string SenderName { get; set; } + /// + /// Name of the sender of the message if the sender is hidden by their privacy settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_name")] + public string SenderName { get; set; } - /// - /// Point in time (Unix timestamp) when the message is sent; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the message is sent; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// True, if the message that was forwarded is outgoing; always false if sender is unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_outgoing")] - public bool IsOutgoing { get; set; } - } + /// + /// True, if the message that was forwarded is outgoing; always false if sender is unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outgoing")] + public bool IsOutgoing { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundAffiliateProgram.cs b/TdLib.Api/Objects/FoundAffiliateProgram.cs index dc10a939..f574f4d6 100644 --- a/TdLib.Api/Objects/FoundAffiliateProgram.cs +++ b/TdLib.Api/Objects/FoundAffiliateProgram.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a found affiliate program /// - public static partial class TdApi + public partial class FoundAffiliateProgram : Object { /// - /// Describes a found affiliate program + /// Data type for serialization /// - public partial class FoundAffiliateProgram : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundAffiliateProgram"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundAffiliateProgram"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the bot created the program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of the bot created the program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Information about the affiliate program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info")] - public AffiliateProgramInfo Info { get; set; } - } + /// + /// Information about the affiliate program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public AffiliateProgramInfo Info { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundAffiliatePrograms.cs b/TdLib.Api/Objects/FoundAffiliatePrograms.cs index 363fea1c..e177d11b 100644 --- a/TdLib.Api/Objects/FoundAffiliatePrograms.cs +++ b/TdLib.Api/Objects/FoundAffiliatePrograms.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of found affiliate programs /// - public static partial class TdApi + public partial class FoundAffiliatePrograms : Object { /// - /// Represents a list of found affiliate programs + /// Data type for serialization /// - public partial class FoundAffiliatePrograms : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundAffiliatePrograms"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundAffiliatePrograms"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The total number of found affiliate programs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// The total number of found affiliate programs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The list of affiliate programs - /// - [JsonProperty("programs", ItemConverterType = typeof(Converter))] - public FoundAffiliateProgram[] Programs { get; set; } + /// + /// The list of affiliate programs + /// + [JsonProperty("programs", ItemConverterType = typeof(Converter))] + public FoundAffiliateProgram[] Programs { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundChatBoosts.cs b/TdLib.Api/Objects/FoundChatBoosts.cs index a8ce9cbe..f3fc207e 100644 --- a/TdLib.Api/Objects/FoundChatBoosts.cs +++ b/TdLib.Api/Objects/FoundChatBoosts.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of boosts applied to a chat /// - public static partial class TdApi + public partial class FoundChatBoosts : Object { /// - /// Contains a list of boosts applied to a chat + /// Data type for serialization /// - public partial class FoundChatBoosts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundChatBoosts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundChatBoosts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of boosts applied to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of boosts applied to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of boosts - /// - [JsonProperty("boosts", ItemConverterType = typeof(Converter))] - public ChatBoost[] Boosts { get; set; } + /// + /// List of boosts + /// + [JsonProperty("boosts", ItemConverterType = typeof(Converter))] + public ChatBoost[] Boosts { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundChatMessages.cs b/TdLib.Api/Objects/FoundChatMessages.cs index af2e0d2c..288c4819 100644 --- a/TdLib.Api/Objects/FoundChatMessages.cs +++ b/TdLib.Api/Objects/FoundChatMessages.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of messages found by a search in a given chat /// - public static partial class TdApi + public partial class FoundChatMessages : Object { /// - /// Contains a list of messages found by a search in a given chat + /// Data type for serialization /// - public partial class FoundChatMessages : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundChatMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundChatMessages"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of messages found; -1 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of messages found; -1 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of messages - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public Message[] Messages { get; set; } + /// + /// List of messages + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public Message[] Messages { get; set; } - /// - /// The offset for the next request. If 0, there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_from_message_id")] - public long NextFromMessageId { get; set; } - } + /// + /// The offset for the next request. If 0, there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_from_message_id")] + public long NextFromMessageId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundFileDownloads.cs b/TdLib.Api/Objects/FoundFileDownloads.cs index 15c8ca6c..34bd782b 100644 --- a/TdLib.Api/Objects/FoundFileDownloads.cs +++ b/TdLib.Api/Objects/FoundFileDownloads.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of downloaded files, found by a search /// - public static partial class TdApi + public partial class FoundFileDownloads : Object { /// - /// Contains a list of downloaded files, found by a search + /// Data type for serialization /// - public partial class FoundFileDownloads : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundFileDownloads"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundFileDownloads"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of suitable files, ignoring offset - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_counts")] - public DownloadedFileCounts TotalCounts { get; set; } + /// + /// Total number of suitable files, ignoring offset + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_counts")] + public DownloadedFileCounts TotalCounts { get; set; } - /// - /// The list of files - /// - [JsonProperty("files", ItemConverterType = typeof(Converter))] - public FileDownload[] Files { get; set; } + /// + /// The list of files + /// + [JsonProperty("files", ItemConverterType = typeof(Converter))] + public FileDownload[] Files { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundMessages.cs b/TdLib.Api/Objects/FoundMessages.cs index 7f92973f..d93356e0 100644 --- a/TdLib.Api/Objects/FoundMessages.cs +++ b/TdLib.Api/Objects/FoundMessages.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of messages found by a search /// - public static partial class TdApi + public partial class FoundMessages : Object { /// - /// Contains a list of messages found by a search + /// Data type for serialization /// - public partial class FoundMessages : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundMessages"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of messages found; -1 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of messages found; -1 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of messages - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public Message[] Messages { get; set; } + /// + /// List of messages + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public Message[] Messages { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundPosition.cs b/TdLib.Api/Objects/FoundPosition.cs index 59bd2ec5..d902e6ad 100644 --- a/TdLib.Api/Objects/FoundPosition.cs +++ b/TdLib.Api/Objects/FoundPosition.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains 0-based match position /// - public static partial class TdApi + public partial class FoundPosition : Object { /// - /// Contains 0-based match position + /// Data type for serialization /// - public partial class FoundPosition : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundPosition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundPosition"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The position of the match - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public int Position { get; set; } - } + /// + /// The position of the match + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public int Position { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundPositions.cs b/TdLib.Api/Objects/FoundPositions.cs index 8651cc0a..c51a55c1 100644 --- a/TdLib.Api/Objects/FoundPositions.cs +++ b/TdLib.Api/Objects/FoundPositions.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains 0-based positions of matched objects /// - public static partial class TdApi + public partial class FoundPositions : Object { /// - /// Contains 0-based positions of matched objects + /// Data type for serialization /// - public partial class FoundPositions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundPositions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundPositions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of matched objects - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of matched objects + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The positions of the matched objects - /// - [JsonProperty("positions", ItemConverterType = typeof(Converter))] - public int[] Positions { get; set; } - } + /// + /// The positions of the matched objects + /// + [JsonProperty("positions", ItemConverterType = typeof(Converter))] + public int[] Positions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundPublicPosts.cs b/TdLib.Api/Objects/FoundPublicPosts.cs index 7a3d5d9f..6e1be7f2 100644 --- a/TdLib.Api/Objects/FoundPublicPosts.cs +++ b/TdLib.Api/Objects/FoundPublicPosts.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of messages found by a public post search /// - public static partial class TdApi + public partial class FoundPublicPosts : Object { /// - /// Contains a list of messages found by a public post search + /// Data type for serialization /// - public partial class FoundPublicPosts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundPublicPosts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundPublicPosts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of found public posts - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public Message[] Messages { get; set; } + /// + /// List of found public posts + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public Message[] Messages { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } - /// - /// Updated public post search limits after the query; repeated requests with the same query will be free; may be null if they didn't change - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("search_limits")] - public PublicPostSearchLimits SearchLimits { get; set; } + /// + /// Updated public post search limits after the query; repeated requests with the same query will be free; may be null if they didn't change + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("search_limits")] + public PublicPostSearchLimits SearchLimits { get; set; } - /// - /// True, if the query has failed because search limits are exceeded. In this case search_limits.daily_free_query_count will be equal to 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_limits_exceeded")] - public bool AreLimitsExceeded { get; set; } - } + /// + /// True, if the query has failed because search limits are exceeded. In this case search_limits.daily_free_query_count will be equal to 0 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("are_limits_exceeded")] + public bool AreLimitsExceeded { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundStories.cs b/TdLib.Api/Objects/FoundStories.cs index e959c582..bff1aa56 100644 --- a/TdLib.Api/Objects/FoundStories.cs +++ b/TdLib.Api/Objects/FoundStories.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of stories found by a search /// - public static partial class TdApi + public partial class FoundStories : Object { /// - /// Contains a list of stories found by a search + /// Data type for serialization /// - public partial class FoundStories : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundStories"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of stories found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of stories found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of stories - /// - [JsonProperty("stories", ItemConverterType = typeof(Converter))] - public Story[] Stories { get; set; } + /// + /// List of stories + /// + [JsonProperty("stories", ItemConverterType = typeof(Converter))] + public Story[] Stories { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundUsers.cs b/TdLib.Api/Objects/FoundUsers.cs index 13507392..24fc2a25 100644 --- a/TdLib.Api/Objects/FoundUsers.cs +++ b/TdLib.Api/Objects/FoundUsers.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of found users /// - public static partial class TdApi + public partial class FoundUsers : Object { /// - /// Represents a list of found users + /// Data type for serialization /// - public partial class FoundUsers : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundUsers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundUsers"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the found users - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } + /// + /// Identifiers of the found users + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/FoundWebApp.cs b/TdLib.Api/Objects/FoundWebApp.cs index 92b87a7f..63470b7e 100644 --- a/TdLib.Api/Objects/FoundWebApp.cs +++ b/TdLib.Api/Objects/FoundWebApp.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Web App found by its short name /// - public static partial class TdApi + public partial class FoundWebApp : Object { /// - /// Contains information about a Web App found by its short name + /// Data type for serialization /// - public partial class FoundWebApp : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "foundWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "foundWebApp"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app")] - public WebApp WebApp { get; set; } + /// + /// The Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app")] + public WebApp WebApp { get; set; } - /// - /// True, if the user must be asked for the permission to the bot to send them messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_write_access")] - public bool RequestWriteAccess { get; set; } + /// + /// True, if the user must be asked for the permission to the bot to send them messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_write_access")] + public bool RequestWriteAccess { get; set; } - /// - /// True, if there is no need to show an ordinary open URL confirmation before opening the Web App. The field must be ignored and confirmation must be shown anyway if the Web App link was hidden - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("skip_confirmation")] - public bool SkipConfirmation { get; set; } - } + /// + /// True, if there is no need to show an ordinary open URL confirmation before opening the Web App. The field must be ignored and confirmation must be shown anyway if the Web App link was hidden + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("skip_confirmation")] + public bool SkipConfirmation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Game.cs b/TdLib.Api/Objects/Game.cs index 60be1357..d44f0841 100644 --- a/TdLib.Api/Objects/Game.cs +++ b/TdLib.Api/Objects/Game.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a game. Use getInternalLink with internalLinkTypeGame to share the game /// - public static partial class TdApi + public partial class Game : Object { /// - /// Describes a game. Use getInternalLink with internalLinkTypeGame to share the game + /// Data type for serialization /// - public partial class Game : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "game"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "game"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique game identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique game identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Game short name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("short_name")] - public string ShortName { get; set; } + /// + /// Game short name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("short_name")] + public string ShortName { get; set; } - /// - /// Game title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Game title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Game text, usually containing scoreboards for a game - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Game text, usually containing scoreboards for a game + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// Game photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Game photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// Game animation; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } - } + /// + /// Game animation; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GameHighScore.cs b/TdLib.Api/Objects/GameHighScore.cs index ca7d4b0b..d6ae82ce 100644 --- a/TdLib.Api/Objects/GameHighScore.cs +++ b/TdLib.Api/Objects/GameHighScore.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains one row of the game high score table /// - public static partial class TdApi + public partial class GameHighScore : Object { /// - /// Contains one row of the game high score table + /// Data type for serialization /// - public partial class GameHighScore : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "gameHighScore"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "gameHighScore"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Position in the high score table - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public int Position { get; set; } + /// + /// Position in the high score table + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public int Position { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// User score - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("score")] - public int Score { get; set; } - } + /// + /// User score + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("score")] + public int Score { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GameHighScores.cs b/TdLib.Api/Objects/GameHighScores.cs index 5619231d..0bd86c86 100644 --- a/TdLib.Api/Objects/GameHighScores.cs +++ b/TdLib.Api/Objects/GameHighScores.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of game high scores /// - public static partial class TdApi + public partial class GameHighScores : Object { /// - /// Contains a list of game high scores + /// Data type for serialization /// - public partial class GameHighScores : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "gameHighScores"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "gameHighScores"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of game high scores - /// - [JsonProperty("scores", ItemConverterType = typeof(Converter))] - public GameHighScore[] Scores { get; set; } - } + /// + /// A list of game high scores + /// + [JsonProperty("scores", ItemConverterType = typeof(Converter))] + public GameHighScore[] Scores { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Gift.cs b/TdLib.Api/Objects/Gift.cs index 77e63dc6..c91d2148 100644 --- a/TdLib.Api/Objects/Gift.cs +++ b/TdLib.Api/Objects/Gift.cs @@ -2,150 +2,149 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a gift that can be sent to another user or channel chat /// - public static partial class TdApi + public partial class Gift : Object { /// - /// Describes a gift that can be sent to another user or channel chat - /// - public partial class Gift : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "gift"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of the gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Identifier of the chat that published the gift; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("publisher_chat_id")] - public long PublisherChatId { get; set; } - - /// - /// The sticker representing the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - - /// - /// Number of Telegram Stars that must be paid for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - - /// - /// Number of Telegram Stars that can be claimed by the receiver instead of the regular gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_sell_star_count")] - public long DefaultSellStarCount { get; set; } - - /// - /// Number of Telegram Stars that must be paid to upgrade the gift; 0 if upgrade isn't possible - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgrade_star_count")] - public long UpgradeStarCount { get; set; } - - /// - /// Number of unique gift variants that are available for the upgraded gift; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgrade_variant_count")] - public int UpgradeVariantCount { get; set; } - - /// - /// True, if the gift can be used to customize the user's name, and backgrounds of profile photo, reply header, and link preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_colors")] - public bool HasColors { get; set; } - - /// - /// True, if the gift is a birthday gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_for_birthday")] - public bool IsForBirthday { get; set; } - - /// - /// True, if the gift can be bought only by Telegram Premium subscribers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_premium")] - public bool IsPremium { get; set; } - - /// - /// Information about the auction on which the gift can be purchased; may be null if the gift can be purchased directly - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auction_info")] - public GiftAuction AuctionInfo { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be sent next time by the current user; may be 0 or a date in the past. - /// If the date is in the future, then call canSendGift to get the reason, why the gift can't be sent now - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_send_date")] - public int NextSendDate { get; set; } - - /// - /// Number of times the gift can be purchased by the current user; may be null if not limited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_limits")] - public GiftPurchaseLimits UserLimits { get; set; } - - /// - /// Number of times the gift can be purchased by all users; may be null if not limited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("overall_limits")] - public GiftPurchaseLimits OverallLimits { get; set; } - - /// - /// Background of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public GiftBackground Background { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift was sent for the first time; for sold out gifts only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_send_date")] - public int FirstSendDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift was sent for the last time; for sold out gifts only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_send_date")] - public int LastSendDate { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "gift"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Identifier of the chat that published the gift; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("publisher_chat_id")] + public long PublisherChatId { get; set; } + + /// + /// The sticker representing the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } + + /// + /// Number of Telegram Stars that must be paid for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } + + /// + /// Number of Telegram Stars that can be claimed by the receiver instead of the regular gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_sell_star_count")] + public long DefaultSellStarCount { get; set; } + + /// + /// Number of Telegram Stars that must be paid to upgrade the gift; 0 if upgrade isn't possible + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgrade_star_count")] + public long UpgradeStarCount { get; set; } + + /// + /// Number of unique gift variants that are available for the upgraded gift; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgrade_variant_count")] + public int UpgradeVariantCount { get; set; } + + /// + /// True, if the gift can be used to customize the user's name, and backgrounds of profile photo, reply header, and link preview + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_colors")] + public bool HasColors { get; set; } + + /// + /// True, if the gift is a birthday gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_for_birthday")] + public bool IsForBirthday { get; set; } + + /// + /// True, if the gift can be bought only by Telegram Premium subscribers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_premium")] + public bool IsPremium { get; set; } + + /// + /// Information about the auction on which the gift can be purchased; may be null if the gift can be purchased directly + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("auction_info")] + public GiftAuction AuctionInfo { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be sent next time by the current user; may be 0 or a date in the past. + /// If the date is in the future, then call canSendGift to get the reason, why the gift can't be sent now + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_send_date")] + public int NextSendDate { get; set; } + + /// + /// Number of times the gift can be purchased by the current user; may be null if not limited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_limits")] + public GiftPurchaseLimits UserLimits { get; set; } + + /// + /// Number of times the gift can be purchased by all users; may be null if not limited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("overall_limits")] + public GiftPurchaseLimits OverallLimits { get; set; } + + /// + /// Background of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public GiftBackground Background { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift was sent for the first time; for sold out gifts only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_send_date")] + public int FirstSendDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift was sent for the last time; for sold out gifts only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_send_date")] + public int LastSendDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftAuction.cs b/TdLib.Api/Objects/GiftAuction.cs index 75d5cac0..bf6a262f 100644 --- a/TdLib.Api/Objects/GiftAuction.cs +++ b/TdLib.Api/Objects/GiftAuction.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an auction on which a gift can be purchased /// - public static partial class TdApi + public partial class GiftAuction : Object { /// - /// Describes an auction on which a gift can be purchased + /// Data type for serialization /// - public partial class GiftAuction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftAuction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftAuction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Identifier of the auction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Number of gifts distributed in each round - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gifts_per_round")] - public int GiftsPerRound { get; set; } + /// + /// Number of gifts distributed in each round + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gifts_per_round")] + public int GiftsPerRound { get; set; } - /// - /// Point in time (Unix timestamp) when the auction will start - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the auction will start + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftAuctionAcquiredGift.cs b/TdLib.Api/Objects/GiftAuctionAcquiredGift.cs index 5eb1033c..58ece624 100644 --- a/TdLib.Api/Objects/GiftAuctionAcquiredGift.cs +++ b/TdLib.Api/Objects/GiftAuctionAcquiredGift.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a gift that was acquired by the current user on an auction /// - public static partial class TdApi + public partial class GiftAuctionAcquiredGift : Object { /// - /// Represents a gift that was acquired by the current user on an auction + /// Data type for serialization /// - public partial class GiftAuctionAcquiredGift : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftAuctionAcquiredGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftAuctionAcquiredGift"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_id")] - public MessageSender ReceiverId { get; set; } + /// + /// Receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_id")] + public MessageSender ReceiverId { get; set; } - /// - /// Point in time (Unix timestamp) when the gift was acquired - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the gift was acquired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// The number of Telegram Stars that were paid for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// The number of Telegram Stars that were paid for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the auction round in which the gift was acquired - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auction_round_number")] - public int AuctionRoundNumber { get; set; } + /// + /// Identifier of the auction round in which the gift was acquired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("auction_round_number")] + public int AuctionRoundNumber { get; set; } - /// - /// Position of the user in the round among all auction participants - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auction_round_position")] - public int AuctionRoundPosition { get; set; } + /// + /// Position of the user in the round among all auction participants + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("auction_round_position")] + public int AuctionRoundPosition { get; set; } - /// - /// Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unique_gift_number")] - public int UniqueGiftNumber { get; set; } + /// + /// Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unique_gift_number")] + public int UniqueGiftNumber { get; set; } - /// - /// Message added to the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Message added to the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_private")] - public bool IsPrivate { get; set; } - } + /// + /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_private")] + public bool IsPrivate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftAuctionAcquiredGifts.cs b/TdLib.Api/Objects/GiftAuctionAcquiredGifts.cs index 16bea2f4..4b2ad724 100644 --- a/TdLib.Api/Objects/GiftAuctionAcquiredGifts.cs +++ b/TdLib.Api/Objects/GiftAuctionAcquiredGifts.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of gifts that were acquired by the current user on an auction /// - public static partial class TdApi + public partial class GiftAuctionAcquiredGifts : Object { /// - /// Represents a list of gifts that were acquired by the current user on an auction + /// Data type for serialization /// - public partial class GiftAuctionAcquiredGifts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftAuctionAcquiredGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftAuctionAcquiredGifts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of acquired gifts - /// - [JsonProperty("gifts", ItemConverterType = typeof(Converter))] - public GiftAuctionAcquiredGift[] Gifts { get; set; } - } + /// + /// The list of acquired gifts + /// + [JsonProperty("gifts", ItemConverterType = typeof(Converter))] + public GiftAuctionAcquiredGift[] Gifts { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftAuctionState.cs b/TdLib.Api/Objects/GiftAuctionState.cs index e0715a76..d204a770 100644 --- a/TdLib.Api/Objects/GiftAuctionState.cs +++ b/TdLib.Api/Objects/GiftAuctionState.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represent auction state of a gift /// - public static partial class TdApi + public partial class GiftAuctionState : Object { /// - /// Represent auction state of a gift + /// Data type for serialization /// - public partial class GiftAuctionState : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftAuctionState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftAuctionState"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } - /// - /// Auction state of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public AuctionState State { get; set; } - } + /// + /// Auction state of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public AuctionState State { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftBackground.cs b/TdLib.Api/Objects/GiftBackground.cs index 723ec52b..6dcad587 100644 --- a/TdLib.Api/Objects/GiftBackground.cs +++ b/TdLib.Api/Objects/GiftBackground.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes background of a gift /// - public static partial class TdApi + public partial class GiftBackground : Object { /// - /// Describes background of a gift + /// Data type for serialization /// - public partial class GiftBackground : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftBackground"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Center color in RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("center_color")] - public int CenterColor { get; set; } + /// + /// Center color in RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("center_color")] + public int CenterColor { get; set; } - /// - /// Edge color in RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edge_color")] - public int EdgeColor { get; set; } + /// + /// Edge color in RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edge_color")] + public int EdgeColor { get; set; } - /// - /// Text color in RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text_color")] - public int TextColor { get; set; } - } + /// + /// Text color in RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text_color")] + public int TextColor { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftChatTheme.cs b/TdLib.Api/Objects/GiftChatTheme.cs index 8ee4f9b3..469793f8 100644 --- a/TdLib.Api/Objects/GiftChatTheme.cs +++ b/TdLib.Api/Objects/GiftChatTheme.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a chat theme based on an upgraded gift /// - public static partial class TdApi + public partial class GiftChatTheme : Object { /// - /// Describes a chat theme based on an upgraded gift + /// Data type for serialization /// - public partial class GiftChatTheme : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftChatTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftChatTheme"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// Theme settings for a light chat theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("light_settings")] - public ThemeSettings LightSettings { get; set; } + /// + /// Theme settings for a light chat theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("light_settings")] + public ThemeSettings LightSettings { get; set; } - /// - /// Theme settings for a dark chat theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dark_settings")] - public ThemeSettings DarkSettings { get; set; } - } + /// + /// Theme settings for a dark chat theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dark_settings")] + public ThemeSettings DarkSettings { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftChatThemes.cs b/TdLib.Api/Objects/GiftChatThemes.cs index 1119d937..c9b8cb20 100644 --- a/TdLib.Api/Objects/GiftChatThemes.cs +++ b/TdLib.Api/Objects/GiftChatThemes.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of chat themes based on upgraded gifts /// - public static partial class TdApi + public partial class GiftChatThemes : Object { /// - /// Contains a list of chat themes based on upgraded gifts + /// Data type for serialization /// - public partial class GiftChatThemes : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftChatThemes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftChatThemes"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of chat themes - /// - [JsonProperty("themes", ItemConverterType = typeof(Converter))] - public GiftChatTheme[] Themes { get; set; } + /// + /// A list of chat themes + /// + [JsonProperty("themes", ItemConverterType = typeof(Converter))] + public GiftChatTheme[] Themes { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftCollection.cs b/TdLib.Api/Objects/GiftCollection.cs index bc76bf59..56459018 100644 --- a/TdLib.Api/Objects/GiftCollection.cs +++ b/TdLib.Api/Objects/GiftCollection.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes collection of gifts /// - public static partial class TdApi + public partial class GiftCollection : Object { /// - /// Describes collection of gifts + /// Data type for serialization /// - public partial class GiftCollection : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftCollection"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftCollection"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique identifier of the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Name of the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Icon of the collection; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon")] - public Sticker Icon { get; set; } + /// + /// Icon of the collection; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public Sticker Icon { get; set; } - /// - /// Total number of gifts in the collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_count")] - public int GiftCount { get; set; } - } + /// + /// Total number of gifts in the collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_count")] + public int GiftCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftCollections.cs b/TdLib.Api/Objects/GiftCollections.cs index 5eecc059..8562d70f 100644 --- a/TdLib.Api/Objects/GiftCollections.cs +++ b/TdLib.Api/Objects/GiftCollections.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of gift collections /// - public static partial class TdApi + public partial class GiftCollections : Object { /// - /// Contains a list of gift collections + /// Data type for serialization /// - public partial class GiftCollections : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftCollections"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftCollections"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of gift collections - /// - [JsonProperty("collections", ItemConverterType = typeof(Converter))] - public GiftCollection[] Collections { get; set; } - } + /// + /// List of gift collections + /// + [JsonProperty("collections", ItemConverterType = typeof(Converter))] + public GiftCollection[] Collections { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftForResale.cs b/TdLib.Api/Objects/GiftForResale.cs index 676ad745..44ee7687 100644 --- a/TdLib.Api/Objects/GiftForResale.cs +++ b/TdLib.Api/Objects/GiftForResale.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a gift available for resale /// - public static partial class TdApi + public partial class GiftForResale : Object { /// - /// Describes a gift available for resale + /// Data type for serialization /// - public partial class GiftForResale : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftForResale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftForResale"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// Unique identifier of the received gift for the current user; only for the gifts owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - } + /// + /// Unique identifier of the received gift for the current user; only for the gifts owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftForResaleOrderNumber.cs b/TdLib.Api/Objects/GiftForResaleOrderNumber.cs index dbbfee43..27a12534 100644 --- a/TdLib.Api/Objects/GiftForResaleOrderNumber.cs +++ b/TdLib.Api/Objects/GiftForResaleOrderNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftForResaleOrder : Object { - public partial class GiftForResaleOrder : Object + /// + /// The gifts will be sorted by their number from the smallest to the largest + /// + public class GiftForResaleOrderNumber : GiftForResaleOrder { /// - /// The gifts will be sorted by their number from the smallest to the largest + /// Data type for serialization /// - public class GiftForResaleOrderNumber : GiftForResaleOrder - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftForResaleOrderNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftForResaleOrderNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiftForResaleOrderPrice.cs b/TdLib.Api/Objects/GiftForResaleOrderPrice.cs index 5b426658..08392d92 100644 --- a/TdLib.Api/Objects/GiftForResaleOrderPrice.cs +++ b/TdLib.Api/Objects/GiftForResaleOrderPrice.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftForResaleOrder : Object { - public partial class GiftForResaleOrder : Object + /// + /// Describes order in which upgraded gifts for resale will be sorted + /// + public class GiftForResaleOrderPrice : GiftForResaleOrder { /// - /// Describes order in which upgraded gifts for resale will be sorted + /// Data type for serialization /// - public class GiftForResaleOrderPrice : GiftForResaleOrder - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftForResaleOrderPrice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftForResaleOrderPrice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiftForResaleOrderPriceChangeDate.cs b/TdLib.Api/Objects/GiftForResaleOrderPriceChangeDate.cs index a267b89f..c8164f10 100644 --- a/TdLib.Api/Objects/GiftForResaleOrderPriceChangeDate.cs +++ b/TdLib.Api/Objects/GiftForResaleOrderPriceChangeDate.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftForResaleOrder : Object { - public partial class GiftForResaleOrder : Object + /// + /// The gifts will be sorted by the last date when their price was changed from the newest to the oldest + /// + public class GiftForResaleOrderPriceChangeDate : GiftForResaleOrder { /// - /// The gifts will be sorted by the last date when their price was changed from the newest to the oldest + /// Data type for serialization /// - public class GiftForResaleOrderPriceChangeDate : GiftForResaleOrder - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftForResaleOrderPriceChangeDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftForResaleOrderPriceChangeDate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiftPurchaseLimits.cs b/TdLib.Api/Objects/GiftPurchaseLimits.cs index ac0045cb..3ab8d4a5 100644 --- a/TdLib.Api/Objects/GiftPurchaseLimits.cs +++ b/TdLib.Api/Objects/GiftPurchaseLimits.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes the maximum number of times that a specific gift can be purchased /// - public static partial class TdApi + public partial class GiftPurchaseLimits : Object { /// - /// Describes the maximum number of times that a specific gift can be purchased + /// Data type for serialization /// - public partial class GiftPurchaseLimits : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftPurchaseLimits"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftPurchaseLimits"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum number of times the gifts can be purchased - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// The maximum number of times the gifts can be purchased + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// Number of remaining times the gift can be purchased - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("remaining_count")] - public int RemainingCount { get; set; } - } + /// + /// Number of remaining times the gift can be purchased + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("remaining_count")] + public int RemainingCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftPurchaseOfferStateAccepted.cs b/TdLib.Api/Objects/GiftPurchaseOfferStateAccepted.cs index e6158fd5..c263ea54 100644 --- a/TdLib.Api/Objects/GiftPurchaseOfferStateAccepted.cs +++ b/TdLib.Api/Objects/GiftPurchaseOfferStateAccepted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftPurchaseOfferState : Object { - public partial class GiftPurchaseOfferState : Object + /// + /// The offer was accepted + /// + public class GiftPurchaseOfferStateAccepted : GiftPurchaseOfferState { /// - /// The offer was accepted + /// Data type for serialization /// - public class GiftPurchaseOfferStateAccepted : GiftPurchaseOfferState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftPurchaseOfferStateAccepted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftPurchaseOfferStateAccepted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiftPurchaseOfferStatePending.cs b/TdLib.Api/Objects/GiftPurchaseOfferStatePending.cs index fb99b042..b1e3aaad 100644 --- a/TdLib.Api/Objects/GiftPurchaseOfferStatePending.cs +++ b/TdLib.Api/Objects/GiftPurchaseOfferStatePending.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftPurchaseOfferState : Object { - public partial class GiftPurchaseOfferState : Object + /// + /// Describes state of a gift purchase offer + /// + public class GiftPurchaseOfferStatePending : GiftPurchaseOfferState { /// - /// Describes state of a gift purchase offer + /// Data type for serialization /// - public class GiftPurchaseOfferStatePending : GiftPurchaseOfferState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftPurchaseOfferStatePending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftPurchaseOfferStatePending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiftPurchaseOfferStateRejected.cs b/TdLib.Api/Objects/GiftPurchaseOfferStateRejected.cs index fa860a0e..6d2a3a6e 100644 --- a/TdLib.Api/Objects/GiftPurchaseOfferStateRejected.cs +++ b/TdLib.Api/Objects/GiftPurchaseOfferStateRejected.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftPurchaseOfferState : Object { - public partial class GiftPurchaseOfferState : Object + /// + /// The offer was rejected + /// + public class GiftPurchaseOfferStateRejected : GiftPurchaseOfferState { /// - /// The offer was rejected + /// Data type for serialization /// - public class GiftPurchaseOfferStateRejected : GiftPurchaseOfferState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftPurchaseOfferStateRejected"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftPurchaseOfferStateRejected"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiftResaleParameters.cs b/TdLib.Api/Objects/GiftResaleParameters.cs index 7655acea..27fe73b6 100644 --- a/TdLib.Api/Objects/GiftResaleParameters.cs +++ b/TdLib.Api/Objects/GiftResaleParameters.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes parameters of a unique gift available for resale /// - public static partial class TdApi + public partial class GiftResaleParameters : Object { /// - /// Describes parameters of a unique gift available for resale + /// Data type for serialization /// - public partial class GiftResaleParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftResaleParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftResaleParameters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Resale price of the gift in Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Resale price of the gift in Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Resale price of the gift in 1/100 of TON Gram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_cent_count")] - public long GramCentCount { get; set; } + /// + /// Resale price of the gift in 1/100 of TON Gram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_cent_count")] + public long GramCentCount { get; set; } - /// - /// True, if the gift can be bought only using Grams - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_only")] - public bool GramOnly { get; set; } - } + /// + /// True, if the gift can be bought only using Grams + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_only")] + public bool GramOnly { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftResalePriceGram.cs b/TdLib.Api/Objects/GiftResalePriceGram.cs index 1b6cbd2f..c255fe1b 100644 --- a/TdLib.Api/Objects/GiftResalePriceGram.cs +++ b/TdLib.Api/Objects/GiftResalePriceGram.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftResalePrice : Object { - public partial class GiftResalePrice : Object + /// + /// Describes price of a resold gift in TON Grams + /// + public class GiftResalePriceGram : GiftResalePrice { /// - /// Describes price of a resold gift in TON Grams + /// Data type for serialization /// - public class GiftResalePriceGram : GiftResalePrice - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftResalePriceGram"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftResalePriceGram"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The amount of 1/100 of Gram expected to be paid for the gift. Must be in the range - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_cent_count")] - public long GramCentCount { get; set; } - } + /// + /// The amount of 1/100 of Gram expected to be paid for the gift. Must be in the range + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_cent_count")] + public long GramCentCount { get; set; } } } } diff --git a/TdLib.Api/Objects/GiftResalePriceStar.cs b/TdLib.Api/Objects/GiftResalePriceStar.cs index 47ae0598..35790967 100644 --- a/TdLib.Api/Objects/GiftResalePriceStar.cs +++ b/TdLib.Api/Objects/GiftResalePriceStar.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftResalePrice : Object { - public partial class GiftResalePrice : Object + /// + /// Describes price of a resold gift + /// + public class GiftResalePriceStar : GiftResalePrice { /// - /// Describes price of a resold gift + /// Data type for serialization /// - public class GiftResalePriceStar : GiftResalePrice - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftResalePriceStar"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftResalePriceStar"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The Telegram Star amount expected to be paid for the gift. Must be in the range - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The Telegram Star amount expected to be paid for the gift. Must be in the range + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/GiftResaleResultOk.cs b/TdLib.Api/Objects/GiftResaleResultOk.cs index a3be6895..49bfa221 100644 --- a/TdLib.Api/Objects/GiftResaleResultOk.cs +++ b/TdLib.Api/Objects/GiftResaleResultOk.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftResaleResult : Object { - public partial class GiftResaleResult : Object + /// + /// Describes result of sending a resold gift + /// + public class GiftResaleResultOk : GiftResaleResult { /// - /// Describes result of sending a resold gift + /// Data type for serialization /// - public class GiftResaleResultOk : GiftResaleResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftResaleResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftResaleResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the received gift; only for the gifts sent to the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - } + /// + /// Unique identifier of the received gift; only for the gifts sent to the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } } } } diff --git a/TdLib.Api/Objects/GiftResaleResultPriceIncreased.cs b/TdLib.Api/Objects/GiftResaleResultPriceIncreased.cs index 1092ae22..e2ef7ebf 100644 --- a/TdLib.Api/Objects/GiftResaleResultPriceIncreased.cs +++ b/TdLib.Api/Objects/GiftResaleResultPriceIncreased.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiftResaleResult : Object { - public partial class GiftResaleResult : Object + /// + /// Operation has failed, because price has increased. If the price has decreased, then the buying will succeed anyway + /// + public class GiftResaleResultPriceIncreased : GiftResaleResult { /// - /// Operation has failed, because price has increased. If the price has decreased, then the buying will succeed anyway + /// Data type for serialization /// - public class GiftResaleResultPriceIncreased : GiftResaleResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftResaleResultPriceIncreased"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftResaleResultPriceIncreased"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New price for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } - } + /// + /// New price for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } } } } diff --git a/TdLib.Api/Objects/GiftSettings.cs b/TdLib.Api/Objects/GiftSettings.cs index 9d1d1500..0acb9c96 100644 --- a/TdLib.Api/Objects/GiftSettings.cs +++ b/TdLib.Api/Objects/GiftSettings.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains settings for gift receiving for a user /// - public static partial class TdApi + public partial class GiftSettings : Object { /// - /// Contains settings for gift receiving for a user + /// Data type for serialization /// - public partial class GiftSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if a button for sending a gift to the user or by the user must always be shown in the input field - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_gift_button")] - public bool ShowGiftButton { get; set; } + /// + /// True, if a button for sending a gift to the user or by the user must always be shown in the input field + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_gift_button")] + public bool ShowGiftButton { get; set; } - /// - /// Types of gifts accepted by the user; for Telegram Premium users only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accepted_gift_types")] - public AcceptedGiftTypes AcceptedGiftTypes { get; set; } - } + /// + /// Types of gifts accepted by the user; for Telegram Premium users only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accepted_gift_types")] + public AcceptedGiftTypes AcceptedGiftTypes { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftUpgradePreview.cs b/TdLib.Api/Objects/GiftUpgradePreview.cs index 6e37e755..88f15602 100644 --- a/TdLib.Api/Objects/GiftUpgradePreview.cs +++ b/TdLib.Api/Objects/GiftUpgradePreview.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains examples of possible upgraded gifts for the given regular gift /// - public static partial class TdApi + public partial class GiftUpgradePreview : Object { /// - /// Contains examples of possible upgraded gifts for the given regular gift + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftUpgradePreview"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Examples of possible models that can be chosen for the gift after upgrade + /// + [JsonProperty("models", ItemConverterType = typeof(Converter))] + public UpgradedGiftModel[] Models { get; set; } + + /// + /// Examples of possible symbols that can be chosen for the gift after upgrade + /// + [JsonProperty("symbols", ItemConverterType = typeof(Converter))] + public UpgradedGiftSymbol[] Symbols { get; set; } + + /// + /// Examples of possible backdrops that can be chosen for the gift after upgrade + /// + [JsonProperty("backdrops", ItemConverterType = typeof(Converter))] + public UpgradedGiftBackdrop[] Backdrops { get; set; } + + /// + /// Examples of price for gift upgrade from the maximum price to the minimum price + /// + [JsonProperty("prices", ItemConverterType = typeof(Converter))] + public GiftUpgradePrice[] Prices { get; set; } + + /// + /// Next changes for the price for gift upgrade with more granularity than in prices /// - public partial class GiftUpgradePreview : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftUpgradePreview"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Examples of possible models that can be chosen for the gift after upgrade - /// - [JsonProperty("models", ItemConverterType = typeof(Converter))] - public UpgradedGiftModel[] Models { get; set; } - - /// - /// Examples of possible symbols that can be chosen for the gift after upgrade - /// - [JsonProperty("symbols", ItemConverterType = typeof(Converter))] - public UpgradedGiftSymbol[] Symbols { get; set; } - - /// - /// Examples of possible backdrops that can be chosen for the gift after upgrade - /// - [JsonProperty("backdrops", ItemConverterType = typeof(Converter))] - public UpgradedGiftBackdrop[] Backdrops { get; set; } - - /// - /// Examples of price for gift upgrade from the maximum price to the minimum price - /// - [JsonProperty("prices", ItemConverterType = typeof(Converter))] - public GiftUpgradePrice[] Prices { get; set; } - - /// - /// Next changes for the price for gift upgrade with more granularity than in prices - /// - [JsonProperty("next_prices", ItemConverterType = typeof(Converter))] - public GiftUpgradePrice[] NextPrices { get; set; } - } + [JsonProperty("next_prices", ItemConverterType = typeof(Converter))] + public GiftUpgradePrice[] NextPrices { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftUpgradePrice.cs b/TdLib.Api/Objects/GiftUpgradePrice.cs index 6d982d46..576f3a25 100644 --- a/TdLib.Api/Objects/GiftUpgradePrice.cs +++ b/TdLib.Api/Objects/GiftUpgradePrice.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a price required to pay to upgrade a gift /// - public static partial class TdApi + public partial class GiftUpgradePrice : Object { /// - /// Describes a price required to pay to upgrade a gift + /// Data type for serialization /// - public partial class GiftUpgradePrice : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftUpgradePrice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftUpgradePrice"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the price will be in effect - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the price will be in effect + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// The Telegram Star amount required to pay to upgrade the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The Telegram Star amount required to pay to upgrade the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftUpgradeVariants.cs b/TdLib.Api/Objects/GiftUpgradeVariants.cs index 2ddd8746..58bfc028 100644 --- a/TdLib.Api/Objects/GiftUpgradeVariants.cs +++ b/TdLib.Api/Objects/GiftUpgradeVariants.cs @@ -2,48 +2,47 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains all possible variants of upgraded gifts for the given regular gift /// - public static partial class TdApi + public partial class GiftUpgradeVariants : Object { /// - /// Contains all possible variants of upgraded gifts for the given regular gift + /// Data type for serialization /// - public partial class GiftUpgradeVariants : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftUpgradeVariants"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftUpgradeVariants"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Models that can be chosen for the gift after upgrade - /// - [JsonProperty("models", ItemConverterType = typeof(Converter))] - public UpgradedGiftModel[] Models { get; set; } + /// + /// Models that can be chosen for the gift after upgrade + /// + [JsonProperty("models", ItemConverterType = typeof(Converter))] + public UpgradedGiftModel[] Models { get; set; } - /// - /// Symbols that can be chosen for the gift after upgrade - /// - [JsonProperty("symbols", ItemConverterType = typeof(Converter))] - public UpgradedGiftSymbol[] Symbols { get; set; } + /// + /// Symbols that can be chosen for the gift after upgrade + /// + [JsonProperty("symbols", ItemConverterType = typeof(Converter))] + public UpgradedGiftSymbol[] Symbols { get; set; } - /// - /// Backdrops that can be chosen for the gift after upgrade - /// - [JsonProperty("backdrops", ItemConverterType = typeof(Converter))] - public UpgradedGiftBackdrop[] Backdrops { get; set; } - } + /// + /// Backdrops that can be chosen for the gift after upgrade + /// + [JsonProperty("backdrops", ItemConverterType = typeof(Converter))] + public UpgradedGiftBackdrop[] Backdrops { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftsForCrafting.cs b/TdLib.Api/Objects/GiftsForCrafting.cs index 699a2aea..b9c2e4d6 100644 --- a/TdLib.Api/Objects/GiftsForCrafting.cs +++ b/TdLib.Api/Objects/GiftsForCrafting.cs @@ -2,56 +2,55 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of gifts received by a user or a chat /// - public static partial class TdApi + public partial class GiftsForCrafting : Object { /// - /// Represents a list of gifts received by a user or a chat + /// Data type for serialization /// - public partial class GiftsForCrafting : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftsForCrafting"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftsForCrafting"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The total number of received gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// The total number of received gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The list of gifts - /// - [JsonProperty("gifts", ItemConverterType = typeof(Converter))] - public ReceivedGift[] Gifts { get; set; } + /// + /// The list of gifts + /// + [JsonProperty("gifts", ItemConverterType = typeof(Converter))] + public ReceivedGift[] Gifts { get; set; } - /// - /// The 4 objects that describe probabilities of the crafted gift to have the backdrop or symbol of one of the original gifts - /// - [JsonProperty("attribute_persistence_probabilities", ItemConverterType = typeof(Converter))] - public AttributeCraftPersistenceProbability[] AttributePersistenceProbabilities { get; set; } + /// + /// The 4 objects that describe probabilities of the crafted gift to have the backdrop or symbol of one of the original gifts + /// + [JsonProperty("attribute_persistence_probabilities", ItemConverterType = typeof(Converter))] + public AttributeCraftPersistenceProbability[] AttributePersistenceProbabilities { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiftsForResale.cs b/TdLib.Api/Objects/GiftsForResale.cs index 479db827..aee46da6 100644 --- a/TdLib.Api/Objects/GiftsForResale.cs +++ b/TdLib.Api/Objects/GiftsForResale.cs @@ -2,68 +2,67 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes gifts available for resale /// - public static partial class TdApi + public partial class GiftsForResale : Object { /// - /// Describes gifts available for resale + /// Data type for serialization /// - public partial class GiftsForResale : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giftsForResale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giftsForResale"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of gifts found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of gifts found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The gifts - /// - [JsonProperty("gifts", ItemConverterType = typeof(Converter))] - public GiftForResale[] Gifts { get; set; } + /// + /// The gifts + /// + [JsonProperty("gifts", ItemConverterType = typeof(Converter))] + public GiftForResale[] Gifts { get; set; } - /// - /// Available models; for searchGiftsForResale requests without offset and attributes only - /// - [JsonProperty("models", ItemConverterType = typeof(Converter))] - public UpgradedGiftModelCount[] Models { get; set; } + /// + /// Available models; for searchGiftsForResale requests without offset and attributes only + /// + [JsonProperty("models", ItemConverterType = typeof(Converter))] + public UpgradedGiftModelCount[] Models { get; set; } - /// - /// Available symbols; for searchGiftsForResale requests without offset and attributes only - /// - [JsonProperty("symbols", ItemConverterType = typeof(Converter))] - public UpgradedGiftSymbolCount[] Symbols { get; set; } + /// + /// Available symbols; for searchGiftsForResale requests without offset and attributes only + /// + [JsonProperty("symbols", ItemConverterType = typeof(Converter))] + public UpgradedGiftSymbolCount[] Symbols { get; set; } - /// - /// Available backdrops; for searchGiftsForResale requests without offset and attributes only - /// - [JsonProperty("backdrops", ItemConverterType = typeof(Converter))] - public UpgradedGiftBackdropCount[] Backdrops { get; set; } + /// + /// Available backdrops; for searchGiftsForResale requests without offset and attributes only + /// + [JsonProperty("backdrops", ItemConverterType = typeof(Converter))] + public UpgradedGiftBackdropCount[] Backdrops { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiveawayInfoCompleted.cs b/TdLib.Api/Objects/GiveawayInfoCompleted.cs index ba7892ce..36404706 100644 --- a/TdLib.Api/Objects/GiveawayInfoCompleted.cs +++ b/TdLib.Api/Objects/GiveawayInfoCompleted.cs @@ -2,88 +2,87 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayInfo : Object { - public partial class GiveawayInfo : Object + /// + /// Describes a completed giveaway + /// + public class GiveawayInfoCompleted : GiveawayInfo { /// - /// Describes a completed giveaway + /// Data type for serialization /// - public class GiveawayInfoCompleted : GiveawayInfo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayInfoCompleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayInfoCompleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the giveaway was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creation_date")] - public int CreationDate { get; set; } + /// + /// Point in time (Unix timestamp) when the giveaway was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creation_date")] + public int CreationDate { get; set; } - /// - /// Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("actual_winners_selection_date")] - public int ActualWinnersSelectionDate { get; set; } + /// + /// Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("actual_winners_selection_date")] + public int ActualWinnersSelectionDate { get; set; } - /// - /// True, if the giveaway was canceled and was fully refunded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_refunded")] - public bool WasRefunded { get; set; } + /// + /// True, if the giveaway was canceled and was fully refunded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_refunded")] + public bool WasRefunded { get; set; } - /// - /// True, if the current user is a winner of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_winner")] - public bool IsWinner { get; set; } + /// + /// True, if the current user is a winner of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_winner")] + public bool IsWinner { get; set; } - /// - /// Number of winners in the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Number of winners in the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// Number of winners, which activated their gift codes; for Telegram Premium giveaways only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("activation_count")] - public int ActivationCount { get; set; } + /// + /// Number of winners, which activated their gift codes; for Telegram Premium giveaways only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("activation_count")] + public int ActivationCount { get; set; } - /// - /// Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_code")] - public string GiftCode { get; set; } + /// + /// Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_code")] + public string GiftCode { get; set; } - /// - /// The Telegram Star amount won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("won_star_count")] - public long WonStarCount { get; set; } - } + /// + /// The Telegram Star amount won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("won_star_count")] + public long WonStarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/GiveawayInfoOngoing.cs b/TdLib.Api/Objects/GiveawayInfoOngoing.cs index 32f98fa8..d32e422c 100644 --- a/TdLib.Api/Objects/GiveawayInfoOngoing.cs +++ b/TdLib.Api/Objects/GiveawayInfoOngoing.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayInfo : Object { - public partial class GiveawayInfo : Object + /// + /// Contains information about a giveaway + /// + public class GiveawayInfoOngoing : GiveawayInfo { /// - /// Contains information about a giveaway + /// Data type for serialization /// - public class GiveawayInfoOngoing : GiveawayInfo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayInfoOngoing"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayInfoOngoing"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the giveaway was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creation_date")] - public int CreationDate { get; set; } + /// + /// Point in time (Unix timestamp) when the giveaway was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creation_date")] + public int CreationDate { get; set; } - /// - /// Status of the current user in the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public GiveawayParticipantStatus Status { get; set; } + /// + /// Status of the current user in the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public GiveawayParticipantStatus Status { get; set; } - /// - /// True, if the giveaway has ended and results are being prepared - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_ended")] - public bool IsEnded { get; set; } - } + /// + /// True, if the giveaway has ended and results are being prepared + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_ended")] + public bool IsEnded { get; set; } } } } diff --git a/TdLib.Api/Objects/GiveawayParameters.cs b/TdLib.Api/Objects/GiveawayParameters.cs index c3c4e3ff..67b2393a 100644 --- a/TdLib.Api/Objects/GiveawayParameters.cs +++ b/TdLib.Api/Objects/GiveawayParameters.cs @@ -2,77 +2,76 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes parameters of a giveaway /// - public static partial class TdApi + public partial class GiveawayParameters : Object { /// - /// Describes parameters of a giveaway + /// Data type for serialization /// - public partial class GiveawayParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayParameters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the supergroup or channel chat, which will be automatically boosted by the winners of the giveaway for duration of the Telegram Premium subscription, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boosted_chat_id")] - public long BoostedChatId { get; set; } + /// + /// Identifier of the supergroup or channel chat, which will be automatically boosted by the winners of the giveaway for duration of the Telegram Premium subscription, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boosted_chat_id")] + public long BoostedChatId { get; set; } - /// - /// Identifiers of other supergroup or channel chats that must be subscribed by the users to be eligible for the giveaway. There can be up to getOption("giveaway_additional_chat_count_max") additional chats - /// - [JsonProperty("additional_chat_ids", ItemConverterType = typeof(Converter))] - public long[] AdditionalChatIds { get; set; } + /// + /// Identifiers of other supergroup or channel chats that must be subscribed by the users to be eligible for the giveaway. There can be up to getOption("giveaway_additional_chat_count_max") additional chats + /// + [JsonProperty("additional_chat_ids", ItemConverterType = typeof(Converter))] + public long[] AdditionalChatIds { get; set; } - /// - /// Point in time (Unix timestamp) when the giveaway is expected to be performed; must be 60-getOption("giveaway_duration_max") seconds in the future in scheduled giveaways - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winners_selection_date")] - public int WinnersSelectionDate { get; set; } + /// + /// Point in time (Unix timestamp) when the giveaway is expected to be performed; must be 60-getOption("giveaway_duration_max") seconds in the future in scheduled giveaways + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winners_selection_date")] + public int WinnersSelectionDate { get; set; } - /// - /// True, if only new members of the chats will be eligible for the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_new_members")] - public bool OnlyNewMembers { get; set; } + /// + /// True, if only new members of the chats will be eligible for the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_new_members")] + public bool OnlyNewMembers { get; set; } - /// - /// True, if the list of winners of the giveaway will be available to everyone - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_public_winners")] - public bool HasPublicWinners { get; set; } + /// + /// True, if the list of winners of the giveaway will be available to everyone + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_public_winners")] + public bool HasPublicWinners { get; set; } - /// - /// The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be eligible for the giveaway. If empty, then all users can participate in the giveaway. - /// - [JsonProperty("country_codes", ItemConverterType = typeof(Converter))] - public string[] CountryCodes { get; set; } + /// + /// The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be eligible for the giveaway. If empty, then all users can participate in the giveaway. + /// + [JsonProperty("country_codes", ItemConverterType = typeof(Converter))] + public string[] CountryCodes { get; set; } - /// - /// Additional description of the giveaway prize; 0-128 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prize_description")] - public string PrizeDescription { get; set; } - } + /// + /// Additional description of the giveaway prize; 0-128 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prize_description")] + public string PrizeDescription { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GiveawayParticipantStatusAdministrator.cs b/TdLib.Api/Objects/GiveawayParticipantStatusAdministrator.cs index 98a32119..97ab1d79 100644 --- a/TdLib.Api/Objects/GiveawayParticipantStatusAdministrator.cs +++ b/TdLib.Api/Objects/GiveawayParticipantStatusAdministrator.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayParticipantStatus : Object { - public partial class GiveawayParticipantStatus : Object + /// + /// The user can't participate in the giveaway, because they are an administrator in one of the chats that created the giveaway + /// + public class GiveawayParticipantStatusAdministrator : GiveawayParticipantStatus { /// - /// The user can't participate in the giveaway, because they are an administrator in one of the chats that created the giveaway + /// Data type for serialization /// - public class GiveawayParticipantStatusAdministrator : GiveawayParticipantStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayParticipantStatusAdministrator"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayParticipantStatusAdministrator"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat administered by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat administered by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/GiveawayParticipantStatusAlreadyWasMember.cs b/TdLib.Api/Objects/GiveawayParticipantStatusAlreadyWasMember.cs index 103481c8..bb8f21fb 100644 --- a/TdLib.Api/Objects/GiveawayParticipantStatusAlreadyWasMember.cs +++ b/TdLib.Api/Objects/GiveawayParticipantStatusAlreadyWasMember.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayParticipantStatus : Object { - public partial class GiveawayParticipantStatus : Object + /// + /// The user can't participate in the giveaway, because they have already been member of the chat + /// + public class GiveawayParticipantStatusAlreadyWasMember : GiveawayParticipantStatus { /// - /// The user can't participate in the giveaway, because they have already been member of the chat + /// Data type for serialization /// - public class GiveawayParticipantStatusAlreadyWasMember : GiveawayParticipantStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayParticipantStatusAlreadyWasMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayParticipantStatusAlreadyWasMember"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the user joined the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("joined_chat_date")] - public int JoinedChatDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the user joined the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("joined_chat_date")] + public int JoinedChatDate { get; set; } } } } diff --git a/TdLib.Api/Objects/GiveawayParticipantStatusDisallowedCountry.cs b/TdLib.Api/Objects/GiveawayParticipantStatusDisallowedCountry.cs index 153ee35d..38094e96 100644 --- a/TdLib.Api/Objects/GiveawayParticipantStatusDisallowedCountry.cs +++ b/TdLib.Api/Objects/GiveawayParticipantStatusDisallowedCountry.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayParticipantStatus : Object { - public partial class GiveawayParticipantStatus : Object + /// + /// The user can't participate in the giveaway, because their phone number is from a disallowed country + /// + public class GiveawayParticipantStatusDisallowedCountry : GiveawayParticipantStatus { /// - /// The user can't participate in the giveaway, because their phone number is from a disallowed country + /// Data type for serialization /// - public class GiveawayParticipantStatusDisallowedCountry : GiveawayParticipantStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayParticipantStatusDisallowedCountry"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayParticipantStatusDisallowedCountry"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code of the user's country - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_country_code")] - public string UserCountryCode { get; set; } - } + /// + /// A two-letter ISO 3166-1 alpha-2 country code of the user's country + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_country_code")] + public string UserCountryCode { get; set; } } } } diff --git a/TdLib.Api/Objects/GiveawayParticipantStatusEligible.cs b/TdLib.Api/Objects/GiveawayParticipantStatusEligible.cs index 3ebb51ea..3ab085c6 100644 --- a/TdLib.Api/Objects/GiveawayParticipantStatusEligible.cs +++ b/TdLib.Api/Objects/GiveawayParticipantStatusEligible.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayParticipantStatus : Object { - public partial class GiveawayParticipantStatus : Object + /// + /// Contains information about status of a user in a giveaway + /// + public class GiveawayParticipantStatusEligible : GiveawayParticipantStatus { /// - /// Contains information about status of a user in a giveaway + /// Data type for serialization /// - public class GiveawayParticipantStatusEligible : GiveawayParticipantStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayParticipantStatusEligible"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayParticipantStatusEligible"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiveawayParticipantStatusParticipating.cs b/TdLib.Api/Objects/GiveawayParticipantStatusParticipating.cs index 0093291d..7f6be0aa 100644 --- a/TdLib.Api/Objects/GiveawayParticipantStatusParticipating.cs +++ b/TdLib.Api/Objects/GiveawayParticipantStatusParticipating.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayParticipantStatus : Object { - public partial class GiveawayParticipantStatus : Object + /// + /// The user participates in the giveaway + /// + public class GiveawayParticipantStatusParticipating : GiveawayParticipantStatus { /// - /// The user participates in the giveaway + /// Data type for serialization /// - public class GiveawayParticipantStatusParticipating : GiveawayParticipantStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayParticipantStatusParticipating"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayParticipantStatusParticipating"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GiveawayPrizePremium.cs b/TdLib.Api/Objects/GiveawayPrizePremium.cs index 278f8ec7..4c964837 100644 --- a/TdLib.Api/Objects/GiveawayPrizePremium.cs +++ b/TdLib.Api/Objects/GiveawayPrizePremium.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayPrize : Object { - public partial class GiveawayPrize : Object + /// + /// Contains information about a giveaway prize + /// + public class GiveawayPrizePremium : GiveawayPrize { /// - /// Contains information about a giveaway prize + /// Data type for serialization /// - public class GiveawayPrizePremium : GiveawayPrize - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayPrizePremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayPrizePremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active after code activation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } - } + /// + /// Number of months the Telegram Premium subscription will be active after code activation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } } } } diff --git a/TdLib.Api/Objects/GiveawayPrizeStars.cs b/TdLib.Api/Objects/GiveawayPrizeStars.cs index d79d10c9..4f86f6b9 100644 --- a/TdLib.Api/Objects/GiveawayPrizeStars.cs +++ b/TdLib.Api/Objects/GiveawayPrizeStars.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GiveawayPrize : Object { - public partial class GiveawayPrize : Object + /// + /// The giveaway sends Telegram Stars to the winners + /// + public class GiveawayPrizeStars : GiveawayPrize { /// - /// The giveaway sends Telegram Stars to the winners + /// Data type for serialization /// - public class GiveawayPrizeStars : GiveawayPrize - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "giveawayPrizeStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "giveawayPrizeStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars that will be shared by all winners - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Number of Telegram Stars that will be shared by all winners + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/GramRevenueStatistics.cs b/TdLib.Api/Objects/GramRevenueStatistics.cs index 961ca963..022fb1cd 100644 --- a/TdLib.Api/Objects/GramRevenueStatistics.cs +++ b/TdLib.Api/Objects/GramRevenueStatistics.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A detailed statistics about TON Grams earned by the current user /// - public static partial class TdApi + public partial class GramRevenueStatistics : Object { /// - /// A detailed statistics about TON Grams earned by the current user + /// Data type for serialization /// - public partial class GramRevenueStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "gramRevenueStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "gramRevenueStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A graph containing amount of revenue in a given day - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revenue_by_day_graph")] - public StatisticalGraph RevenueByDayGraph { get; set; } + /// + /// A graph containing amount of revenue in a given day + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revenue_by_day_graph")] + public StatisticalGraph RevenueByDayGraph { get; set; } - /// - /// Amount of earned revenue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public GramRevenueStatus Status { get; set; } + /// + /// Amount of earned revenue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public GramRevenueStatus Status { get; set; } - /// - /// Current conversion rate of nanogram to USD cents - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("usd_rate")] - public double? UsdRate { get; set; } - } + /// + /// Current exchange rate of nanogram to USD cents + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("usd_rate")] + public double? UsdRate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GramRevenueStatus.cs b/TdLib.Api/Objects/GramRevenueStatus.cs index 4d838fc8..316aadfc 100644 --- a/TdLib.Api/Objects/GramRevenueStatus.cs +++ b/TdLib.Api/Objects/GramRevenueStatus.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about TON Grams earned by the current user /// - public static partial class TdApi + public partial class GramRevenueStatus : Object { /// - /// Contains information about TON Grams earned by the current user + /// Data type for serialization /// - public partial class GramRevenueStatus : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "gramRevenueStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "gramRevenueStatus"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total Gram amount earned; in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("total_amount")] - public long TotalAmount { get; set; } + /// + /// Total Gram amount earned; in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("total_amount")] + public long TotalAmount { get; set; } - /// - /// The Gram amount that isn't withdrawn yet; in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("balance_amount")] - public long BalanceAmount { get; set; } + /// + /// The Gram amount that isn't withdrawn yet; in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("balance_amount")] + public long BalanceAmount { get; set; } - /// - /// The Gram amount that is available for withdrawal; in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("available_amount")] - public long AvailableAmount { get; set; } + /// + /// The Gram amount that is available for withdrawal; in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("available_amount")] + public long AvailableAmount { get; set; } - /// - /// True, if Grams can be withdrawn - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("withdrawal_enabled")] - public bool WithdrawalEnabled { get; set; } - } + /// + /// True, if Grams can be withdrawn + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("withdrawal_enabled")] + public bool WithdrawalEnabled { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCall.cs b/TdLib.Api/Objects/GroupCall.cs index 9ff36ddf..ed39f636 100644 --- a/TdLib.Api/Objects/GroupCall.cs +++ b/TdLib.Api/Objects/GroupCall.cs @@ -2,254 +2,253 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a group call /// - public static partial class TdApi + public partial class GroupCall : Object { /// - /// Describes a group call - /// - public partial class GroupCall : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCall"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } - - /// - /// Persistent unique group call identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("unique_id")] - public long UniqueId { get; set; } - - /// - /// Group call title; for video chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// Invite link for the group call; for group calls that aren't bound to a chat. For video chats call getVideoChatInviteLink to get the link. - /// For live stories in chats with username call getInternalLink with internalLinkTypeLiveStory - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - - /// - /// The minimum number of Telegram Stars that must be paid by general participant for each sent message to the call; for live stories only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - - /// - /// Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 if it is already active or was ended; for video chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scheduled_start_date")] - public int ScheduledStartDate { get; set; } - - /// - /// True, if the group call is scheduled and the current user will receive a notification when the group call starts; for video chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("enabled_start_notification")] - public bool EnabledStartNotification { get; set; } - - /// - /// True, if the call is active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_active")] - public bool IsActive { get; set; } - - /// - /// True, if the call is bound to a chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video_chat")] - public bool IsVideoChat { get; set; } - - /// - /// True, if the call is a live story of a chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_live_story")] - public bool IsLiveStory { get; set; } - - /// - /// True, if the call is an RTMP stream instead of an ordinary video chat; for video chats and live stories only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtmp_stream")] - public bool IsRtmpStream { get; set; } - - /// - /// True, if the call is joined - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_joined")] - public bool IsJoined { get; set; } - - /// - /// True, if user was kicked from the call because of network loss and the call needs to be rejoined - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_rejoin")] - public bool NeedRejoin { get; set; } - - /// - /// True, if the user is the owner of the call and can end the call, change volume level of other users, or ban users there; for group calls that aren't bound to a chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_owned")] - public bool IsOwned { get; set; } - - /// - /// True, if the current user can manage the group call; for video chats and live stories only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_managed")] - public bool CanBeManaged { get; set; } - - /// - /// Number of participants in the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_count")] - public int ParticipantCount { get; set; } - - /// - /// True, if group call participants, which are muted, aren't returned in participant list; for video chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_hidden_listeners")] - public bool HasHiddenListeners { get; set; } - - /// - /// True, if all group call participants are loaded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("loaded_all_participants")] - public bool LoadedAllParticipants { get; set; } - - /// - /// Message sender chosen to send messages to the group call; for live stories only; may be null if the call isn't a live story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_sender_id")] - public MessageSender MessageSenderId { get; set; } - - /// - /// At most 3 recently speaking users in the group call - /// - [JsonProperty("recent_speakers", ItemConverterType = typeof(Converter))] - public GroupCallRecentSpeaker[] RecentSpeakers { get; set; } - - /// - /// True, if the current user's video is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_my_video_enabled")] - public bool IsMyVideoEnabled { get; set; } - - /// - /// True, if the current user's video is paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_my_video_paused")] - public bool IsMyVideoPaused { get; set; } - - /// - /// True, if the current user can broadcast video or share screen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_enable_video")] - public bool CanEnableVideo { get; set; } - - /// - /// True, if only group call administrators can unmute new participants; for video chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_new_participants")] - public bool MuteNewParticipants { get; set; } - - /// - /// True, if the current user can enable or disable mute_new_participants setting; for video chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_toggle_mute_new_participants")] - public bool CanToggleMuteNewParticipants { get; set; } - - /// - /// True, if the current user can send messages to the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_messages")] - public bool CanSendMessages { get; set; } - - /// - /// True, if sending of messages is allowed in the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_messages_allowed")] - public bool AreMessagesAllowed { get; set; } - - /// - /// True, if the current user can enable or disable sending of messages in the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_toggle_are_messages_allowed")] - public bool CanToggleAreMessagesAllowed { get; set; } - - /// - /// True, if the user can delete messages in the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_delete_messages")] - public bool CanDeleteMessages { get; set; } - - /// - /// Duration of the ongoing group call recording, in seconds; 0 if none. An updateGroupCall update is not triggered when value of this field changes, but the same recording goes on - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("record_duration")] - public int RecordDuration { get; set; } - - /// - /// True, if a video file is being recorded for the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video_recorded")] - public bool IsVideoRecorded { get; set; } - - /// - /// Call duration, in seconds; for ended calls only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCall"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } + + /// + /// Persistent unique group call identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("unique_id")] + public long UniqueId { get; set; } + + /// + /// Group call title; for video chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// Invite link for the group call; for group calls that aren't bound to a chat. For video chats call getVideoChatInviteLink to get the link. + /// For live stories in chats with username call getInternalLink with internalLinkTypeLiveStory + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } + + /// + /// The minimum number of Telegram Stars that must be paid by general participant for each sent message to the call; for live stories only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + + /// + /// Point in time (Unix timestamp) when the group call is expected to be started by an administrator; 0 if it is already active or was ended; for video chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scheduled_start_date")] + public int ScheduledStartDate { get; set; } + + /// + /// True, if the group call is scheduled and the current user will receive a notification when the group call starts; for video chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("enabled_start_notification")] + public bool EnabledStartNotification { get; set; } + + /// + /// True, if the call is active + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_active")] + public bool IsActive { get; set; } + + /// + /// True, if the call is bound to a chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video_chat")] + public bool IsVideoChat { get; set; } + + /// + /// True, if the call is a live story of a chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_live_story")] + public bool IsLiveStory { get; set; } + + /// + /// True, if the call is an RTMP stream instead of an ordinary video chat; for video chats and live stories only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtmp_stream")] + public bool IsRtmpStream { get; set; } + + /// + /// True, if the call is joined + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_joined")] + public bool IsJoined { get; set; } + + /// + /// True, if user was kicked from the call because of network loss and the call needs to be rejoined + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_rejoin")] + public bool NeedRejoin { get; set; } + + /// + /// True, if the user is the owner of the call and can end the call, change volume level of other users, or ban users there; for group calls that aren't bound to a chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_owned")] + public bool IsOwned { get; set; } + + /// + /// True, if the current user can manage the group call; for video chats and live stories only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_managed")] + public bool CanBeManaged { get; set; } + + /// + /// Number of participants in the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_count")] + public int ParticipantCount { get; set; } + + /// + /// True, if group call participants, which are muted, aren't returned in participant list; for video chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_hidden_listeners")] + public bool HasHiddenListeners { get; set; } + + /// + /// True, if all group call participants are loaded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("loaded_all_participants")] + public bool LoadedAllParticipants { get; set; } + + /// + /// Message sender chosen to send messages to the group call; for live stories only; may be null if the call isn't a live story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_sender_id")] + public MessageSender MessageSenderId { get; set; } + + /// + /// At most 3 recently speaking users in the group call + /// + [JsonProperty("recent_speakers", ItemConverterType = typeof(Converter))] + public GroupCallRecentSpeaker[] RecentSpeakers { get; set; } + + /// + /// True, if the current user's video is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_my_video_enabled")] + public bool IsMyVideoEnabled { get; set; } + + /// + /// True, if the current user's video is paused + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_my_video_paused")] + public bool IsMyVideoPaused { get; set; } + + /// + /// True, if the current user can broadcast video or share screen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_enable_video")] + public bool CanEnableVideo { get; set; } + + /// + /// True, if only group call administrators can unmute new participants; for video chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_new_participants")] + public bool MuteNewParticipants { get; set; } + + /// + /// True, if the current user can enable or disable mute_new_participants setting; for video chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_toggle_mute_new_participants")] + public bool CanToggleMuteNewParticipants { get; set; } + + /// + /// True, if the current user can send messages to the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_messages")] + public bool CanSendMessages { get; set; } + + /// + /// True, if sending of messages is allowed in the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("are_messages_allowed")] + public bool AreMessagesAllowed { get; set; } + + /// + /// True, if the current user can enable or disable sending of messages in the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_toggle_are_messages_allowed")] + public bool CanToggleAreMessagesAllowed { get; set; } + + /// + /// True, if the user can delete messages in the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_delete_messages")] + public bool CanDeleteMessages { get; set; } + + /// + /// Duration of the ongoing group call recording, in seconds; 0 if none. An updateGroupCall update is not triggered when value of this field changes, but the same recording goes on + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("record_duration")] + public int RecordDuration { get; set; } + + /// + /// True, if a video file is being recorded for the call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video_recorded")] + public bool IsVideoRecorded { get; set; } + + /// + /// Call duration, in seconds; for ended calls only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallDataChannelMain.cs b/TdLib.Api/Objects/GroupCallDataChannelMain.cs index 13d08a4d..1f596ca9 100644 --- a/TdLib.Api/Objects/GroupCallDataChannelMain.cs +++ b/TdLib.Api/Objects/GroupCallDataChannelMain.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GroupCallDataChannel : Object { - public partial class GroupCallDataChannel : Object + /// + /// Describes data channel for a group call + /// + public class GroupCallDataChannelMain : GroupCallDataChannel { /// - /// Describes data channel for a group call + /// Data type for serialization /// - public class GroupCallDataChannelMain : GroupCallDataChannel - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallDataChannelMain"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallDataChannelMain"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GroupCallDataChannelScreenSharing.cs b/TdLib.Api/Objects/GroupCallDataChannelScreenSharing.cs index c85de2eb..ba92f0bb 100644 --- a/TdLib.Api/Objects/GroupCallDataChannelScreenSharing.cs +++ b/TdLib.Api/Objects/GroupCallDataChannelScreenSharing.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GroupCallDataChannel : Object { - public partial class GroupCallDataChannel : Object + /// + /// The data channel for screen sharing + /// + public class GroupCallDataChannelScreenSharing : GroupCallDataChannel { /// - /// The data channel for screen sharing + /// Data type for serialization /// - public class GroupCallDataChannelScreenSharing : GroupCallDataChannel - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallDataChannelScreenSharing"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallDataChannelScreenSharing"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GroupCallId.cs b/TdLib.Api/Objects/GroupCallId.cs index 0d383fd1..d7cbd64f 100644 --- a/TdLib.Api/Objects/GroupCallId.cs +++ b/TdLib.Api/Objects/GroupCallId.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the group call identifier /// - public static partial class TdApi + public partial class GroupCallId : Object { /// - /// Contains the group call identifier + /// Data type for serialization /// - public partial class GroupCallId : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallId"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Group call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } - } + /// + /// Group call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallInfo.cs b/TdLib.Api/Objects/GroupCallInfo.cs index 3ea9c95c..b1aac85b 100644 --- a/TdLib.Api/Objects/GroupCallInfo.cs +++ b/TdLib.Api/Objects/GroupCallInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a just created or just joined group call /// - public static partial class TdApi + public partial class GroupCallInfo : Object { /// - /// Contains information about a just created or just joined group call + /// Data type for serialization /// - public partial class GroupCallInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Join response payload for tgcalls; empty if the call isn't joined - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_payload")] - public string JoinPayload { get; set; } - } + /// + /// Join response payload for tgcalls; empty if the call isn't joined + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_payload")] + public string JoinPayload { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallJoinParameters.cs b/TdLib.Api/Objects/GroupCallJoinParameters.cs index af395143..403caa5b 100644 --- a/TdLib.Api/Objects/GroupCallJoinParameters.cs +++ b/TdLib.Api/Objects/GroupCallJoinParameters.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes parameters used to join a group call /// - public static partial class TdApi + public partial class GroupCallJoinParameters : Object { /// - /// Describes parameters used to join a group call + /// Data type for serialization /// - public partial class GroupCallJoinParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallJoinParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallJoinParameters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Audio channel synchronization source identifier; received from tgcalls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio_source_id")] - public int AudioSourceId { get; set; } + /// + /// Audio channel synchronization source identifier; received from tgcalls + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio_source_id")] + public int AudioSourceId { get; set; } - /// - /// Group call join payload; received from tgcalls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } + /// + /// Group call join payload; received from tgcalls + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } - /// - /// Pass true to join the call with muted microphone - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_muted")] - public bool IsMuted { get; set; } + /// + /// Pass true to join the call with muted microphone + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_muted")] + public bool IsMuted { get; set; } - /// - /// Pass true if the user's video is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_my_video_enabled")] - public bool IsMyVideoEnabled { get; set; } - } + /// + /// Pass true if the user's video is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_my_video_enabled")] + public bool IsMyVideoEnabled { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallMessage.cs b/TdLib.Api/Objects/GroupCallMessage.cs index 72c57458..864f1da8 100644 --- a/TdLib.Api/Objects/GroupCallMessage.cs +++ b/TdLib.Api/Objects/GroupCallMessage.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a message sent in a group call /// - public static partial class TdApi + public partial class GroupCallMessage : Object { /// - /// Represents a message sent in a group call + /// Data type for serialization /// - public partial class GroupCallMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique message identifier within the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public int MessageId { get; set; } + /// + /// Unique message identifier within the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public int MessageId { get; set; } - /// - /// Identifier of the sender of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Point in time (Unix timestamp) when the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Text of the message. If empty, then the message is a paid reaction in a live story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text of the message. If empty, then the message is a paid reaction in a live story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// The number of Telegram Stars that were paid to send the message; for live stories only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } + /// + /// The number of Telegram Stars that were paid to send the message; for live stories only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } - /// - /// True, if the message is sent by the owner of the call and must be treated as a message of the maximum level; for live stories only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_from_owner")] - public bool IsFromOwner { get; set; } + /// + /// True, if the message is sent by the owner of the call and must be treated as a message of the maximum level; for live stories only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_from_owner")] + public bool IsFromOwner { get; set; } - /// - /// True, if the message can be deleted by the current user; for live stories only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted")] - public bool CanBeDeleted { get; set; } - } + /// + /// True, if the message can be deleted by the current user; for live stories only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted")] + public bool CanBeDeleted { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallMessageLevel.cs b/TdLib.Api/Objects/GroupCallMessageLevel.cs index 2f1ce21a..65920481 100644 --- a/TdLib.Api/Objects/GroupCallMessageLevel.cs +++ b/TdLib.Api/Objects/GroupCallMessageLevel.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a level of features for a message sent in a live story group call /// - public static partial class TdApi + public partial class GroupCallMessageLevel : Object { /// - /// Represents a level of features for a message sent in a live story group call + /// Data type for serialization /// - public partial class GroupCallMessageLevel : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallMessageLevel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallMessageLevel"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The minimum number of Telegram Stars required to get features of the level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_star_count")] - public long MinStarCount { get; set; } + /// + /// The minimum number of Telegram Stars required to get features of the level + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_star_count")] + public long MinStarCount { get; set; } - /// - /// The amount of time the message of this level will be pinned, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pin_duration")] - public int PinDuration { get; set; } + /// + /// The amount of time the message of this level will be pinned, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pin_duration")] + public int PinDuration { get; set; } - /// - /// The maximum allowed length of the message text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_text_length")] - public int MaxTextLength { get; set; } + /// + /// The maximum allowed length of the message text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_text_length")] + public int MaxTextLength { get; set; } - /// - /// The maximum allowed number of custom emoji in the message text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_custom_emoji_count")] - public int MaxCustomEmojiCount { get; set; } + /// + /// The maximum allowed number of custom emoji in the message text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_custom_emoji_count")] + public int MaxCustomEmojiCount { get; set; } - /// - /// The first color used to show the message text in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_color")] - public int FirstColor { get; set; } + /// + /// The first color used to show the message text in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_color")] + public int FirstColor { get; set; } - /// - /// The second color used to show the message text in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("second_color")] - public int SecondColor { get; set; } + /// + /// The second color used to show the message text in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("second_color")] + public int SecondColor { get; set; } - /// - /// Background color for the message the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background_color")] - public int BackgroundColor { get; set; } - } + /// + /// Background color for the message the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background_color")] + public int BackgroundColor { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallParticipant.cs b/TdLib.Api/Objects/GroupCallParticipant.cs index 9cbcc26a..441085aa 100644 --- a/TdLib.Api/Objects/GroupCallParticipant.cs +++ b/TdLib.Api/Objects/GroupCallParticipant.cs @@ -2,156 +2,155 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a group call participant /// - public static partial class TdApi + public partial class GroupCallParticipant : Object { /// - /// Represents a group call participant - /// - public partial class GroupCallParticipant : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallParticipant"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the group call participant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } - - /// - /// User's audio channel synchronization source identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio_source_id")] - public int AudioSourceId { get; set; } - - /// - /// User's screen sharing audio channel synchronization source identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("screen_sharing_audio_source_id")] - public int ScreenSharingAudioSourceId { get; set; } - - /// - /// Information about user's video channel; may be null if there is no active video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_info")] - public GroupCallParticipantVideoInfo VideoInfo { get; set; } - - /// - /// Information about user's screen sharing video channel; may be null if there is no active screen sharing video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("screen_sharing_video_info")] - public GroupCallParticipantVideoInfo ScreenSharingVideoInfo { get; set; } - - /// - /// The participant user's bio or the participant chat's description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bio")] - public string Bio { get; set; } - - /// - /// True, if the participant is the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current_user")] - public bool IsCurrentUser { get; set; } - - /// - /// True, if the participant is speaking as set by setGroupCallParticipantIsSpeaking - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_speaking")] - public bool IsSpeaking { get; set; } - - /// - /// True, if the participant hand is raised - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_hand_raised")] - public bool IsHandRaised { get; set; } - - /// - /// True, if the current user can mute the participant for all other group call participants - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_muted_for_all_users")] - public bool CanBeMutedForAllUsers { get; set; } - - /// - /// True, if the current user can allow the participant to unmute themselves or unmute the participant (if the participant is the current user) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_unmuted_for_all_users")] - public bool CanBeUnmutedForAllUsers { get; set; } - - /// - /// True, if the current user can mute the participant only for self - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_muted_for_current_user")] - public bool CanBeMutedForCurrentUser { get; set; } - - /// - /// True, if the current user can unmute the participant for self - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_unmuted_for_current_user")] - public bool CanBeUnmutedForCurrentUser { get; set; } - - /// - /// True, if the participant is muted for all users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_muted_for_all_users")] - public bool IsMutedForAllUsers { get; set; } - - /// - /// True, if the participant is muted for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_muted_for_current_user")] - public bool IsMutedForCurrentUser { get; set; } - - /// - /// True, if the participant is muted for all users, but can unmute themselves - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_unmute_self")] - public bool CanUnmuteSelf { get; set; } - - /// - /// Participant's volume level; 1-20000 in hundreds of percents - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("volume_level")] - public int VolumeLevel { get; set; } - - /// - /// User's order in the group call participant list. Orders must be compared lexicographically. The bigger is order, the higher is user in the list. If order is empty, the user must be removed from the participant list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order")] - public string Order { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallParticipant"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the group call participant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } + + /// + /// User's audio channel synchronization source identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio_source_id")] + public int AudioSourceId { get; set; } + + /// + /// User's screen sharing audio channel synchronization source identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("screen_sharing_audio_source_id")] + public int ScreenSharingAudioSourceId { get; set; } + + /// + /// Information about user's video channel; may be null if there is no active video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_info")] + public GroupCallParticipantVideoInfo VideoInfo { get; set; } + + /// + /// Information about user's screen sharing video channel; may be null if there is no active screen sharing video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("screen_sharing_video_info")] + public GroupCallParticipantVideoInfo ScreenSharingVideoInfo { get; set; } + + /// + /// The participant user's bio or the participant chat's description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bio")] + public string Bio { get; set; } + + /// + /// True, if the participant is the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current_user")] + public bool IsCurrentUser { get; set; } + + /// + /// True, if the participant is speaking as set by setGroupCallParticipantIsSpeaking + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_speaking")] + public bool IsSpeaking { get; set; } + + /// + /// True, if the participant hand is raised + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_hand_raised")] + public bool IsHandRaised { get; set; } + + /// + /// True, if the current user can mute the participant for all other group call participants + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_muted_for_all_users")] + public bool CanBeMutedForAllUsers { get; set; } + + /// + /// True, if the current user can allow the participant to unmute themselves or unmute the participant (if the participant is the current user) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_unmuted_for_all_users")] + public bool CanBeUnmutedForAllUsers { get; set; } + + /// + /// True, if the current user can mute the participant only for self + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_muted_for_current_user")] + public bool CanBeMutedForCurrentUser { get; set; } + + /// + /// True, if the current user can unmute the participant for self + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_unmuted_for_current_user")] + public bool CanBeUnmutedForCurrentUser { get; set; } + + /// + /// True, if the participant is muted for all users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_muted_for_all_users")] + public bool IsMutedForAllUsers { get; set; } + + /// + /// True, if the participant is muted for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_muted_for_current_user")] + public bool IsMutedForCurrentUser { get; set; } + + /// + /// True, if the participant is muted for all users, but can unmute themselves + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_unmute_self")] + public bool CanUnmuteSelf { get; set; } + + /// + /// Participant's volume level; 1-20000 in hundreds of percents + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("volume_level")] + public int VolumeLevel { get; set; } + + /// + /// User's order in the group call participant list. Orders must be compared lexicographically. The bigger is order, the higher is user in the list. If order is empty, the user must be removed from the participant list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order")] + public string Order { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallParticipantVideoInfo.cs b/TdLib.Api/Objects/GroupCallParticipantVideoInfo.cs index cee2d407..7b1d189b 100644 --- a/TdLib.Api/Objects/GroupCallParticipantVideoInfo.cs +++ b/TdLib.Api/Objects/GroupCallParticipantVideoInfo.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a group call participant's video channel /// - public static partial class TdApi + public partial class GroupCallParticipantVideoInfo : Object { /// - /// Contains information about a group call participant's video channel + /// Data type for serialization /// - public partial class GroupCallParticipantVideoInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallParticipantVideoInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallParticipantVideoInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of synchronization source groups of the video - /// - [JsonProperty("source_groups", ItemConverterType = typeof(Converter))] - public GroupCallVideoSourceGroup[] SourceGroups { get; set; } + /// + /// List of synchronization source groups of the video + /// + [JsonProperty("source_groups", ItemConverterType = typeof(Converter))] + public GroupCallVideoSourceGroup[] SourceGroups { get; set; } - /// - /// Video channel endpoint identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("endpoint_id")] - public string EndpointId { get; set; } + /// + /// Video channel endpoint identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("endpoint_id")] + public string EndpointId { get; set; } - /// - /// True, if the video is paused. This flag needs to be ignored, if new video frames are received - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paused")] - public bool IsPaused { get; set; } - } + /// + /// True, if the video is paused. This flag needs to be ignored, if new video frames are received + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paused")] + public bool IsPaused { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallParticipants.cs b/TdLib.Api/Objects/GroupCallParticipants.cs index 1164361d..7499213b 100644 --- a/TdLib.Api/Objects/GroupCallParticipants.cs +++ b/TdLib.Api/Objects/GroupCallParticipants.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains identifiers of group call participants /// - public static partial class TdApi + public partial class GroupCallParticipants : Object { /// - /// Contains identifiers of group call participants + /// Data type for serialization /// - public partial class GroupCallParticipants : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallParticipants"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallParticipants"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of group call participants - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of group call participants + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// Identifiers of the participants - /// - [JsonProperty("participant_ids", ItemConverterType = typeof(Converter))] - public MessageSender[] ParticipantIds { get; set; } - } + /// + /// Identifiers of the participants + /// + [JsonProperty("participant_ids", ItemConverterType = typeof(Converter))] + public MessageSender[] ParticipantIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallRecentSpeaker.cs b/TdLib.Api/Objects/GroupCallRecentSpeaker.cs index 6974c6c4..6b567a63 100644 --- a/TdLib.Api/Objects/GroupCallRecentSpeaker.cs +++ b/TdLib.Api/Objects/GroupCallRecentSpeaker.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a recently speaking participant in a group call /// - public static partial class TdApi + public partial class GroupCallRecentSpeaker : Object { /// - /// Describes a recently speaking participant in a group call + /// Data type for serialization /// - public partial class GroupCallRecentSpeaker : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallRecentSpeaker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallRecentSpeaker"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Group call participant identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant_id")] - public MessageSender ParticipantId { get; set; } + /// + /// Group call participant identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant_id")] + public MessageSender ParticipantId { get; set; } - /// - /// True, is the user has spoken recently - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_speaking")] - public bool IsSpeaking { get; set; } - } + /// + /// True, is the user has spoken recently + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_speaking")] + public bool IsSpeaking { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallStream.cs b/TdLib.Api/Objects/GroupCallStream.cs index 9f33158d..ee15cc45 100644 --- a/TdLib.Api/Objects/GroupCallStream.cs +++ b/TdLib.Api/Objects/GroupCallStream.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an available stream in a video chat or a live story /// - public static partial class TdApi + public partial class GroupCallStream : Object { /// - /// Describes an available stream in a video chat or a live story + /// Data type for serialization /// - public partial class GroupCallStream : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallStream"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallStream"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of an audio/video channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("channel_id")] - public int ChannelId { get; set; } + /// + /// Identifier of an audio/video channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("channel_id")] + public int ChannelId { get; set; } - /// - /// Scale of segment durations in the stream. The duration is 1000/(2**scale) milliseconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scale")] - public int Scale { get; set; } + /// + /// Scale of segment durations in the stream. The duration is 1000/(2**scale) milliseconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scale")] + public int Scale { get; set; } - /// - /// Point in time when the stream currently ends; Unix timestamp in milliseconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("time_offset")] - public long TimeOffset { get; set; } - } + /// + /// Point in time when the stream currently ends; Unix timestamp in milliseconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("time_offset")] + public long TimeOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallStreams.cs b/TdLib.Api/Objects/GroupCallStreams.cs index 9a83cc1d..14badee7 100644 --- a/TdLib.Api/Objects/GroupCallStreams.cs +++ b/TdLib.Api/Objects/GroupCallStreams.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of group call streams /// - public static partial class TdApi + public partial class GroupCallStreams : Object { /// - /// Represents a list of group call streams + /// Data type for serialization /// - public partial class GroupCallStreams : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallStreams"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallStreams"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of group call streams - /// - [JsonProperty("streams", ItemConverterType = typeof(Converter))] - public GroupCallStream[] Streams { get; set; } - } + /// + /// A list of group call streams + /// + [JsonProperty("streams", ItemConverterType = typeof(Converter))] + public GroupCallStream[] Streams { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/GroupCallVideoQualityFull.cs b/TdLib.Api/Objects/GroupCallVideoQualityFull.cs index 3a9be165..00969408 100644 --- a/TdLib.Api/Objects/GroupCallVideoQualityFull.cs +++ b/TdLib.Api/Objects/GroupCallVideoQualityFull.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GroupCallVideoQuality : Object { - public partial class GroupCallVideoQuality : Object + /// + /// The best available video quality + /// + public class GroupCallVideoQualityFull : GroupCallVideoQuality { /// - /// The best available video quality + /// Data type for serialization /// - public class GroupCallVideoQualityFull : GroupCallVideoQuality - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallVideoQualityFull"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallVideoQualityFull"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GroupCallVideoQualityMedium.cs b/TdLib.Api/Objects/GroupCallVideoQualityMedium.cs index 8692ad88..9e7a1364 100644 --- a/TdLib.Api/Objects/GroupCallVideoQualityMedium.cs +++ b/TdLib.Api/Objects/GroupCallVideoQualityMedium.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GroupCallVideoQuality : Object { - public partial class GroupCallVideoQuality : Object + /// + /// The medium video quality + /// + public class GroupCallVideoQualityMedium : GroupCallVideoQuality { /// - /// The medium video quality + /// Data type for serialization /// - public class GroupCallVideoQualityMedium : GroupCallVideoQuality - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallVideoQualityMedium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallVideoQualityMedium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GroupCallVideoQualityThumbnail.cs b/TdLib.Api/Objects/GroupCallVideoQualityThumbnail.cs index f42aa21f..36c914ed 100644 --- a/TdLib.Api/Objects/GroupCallVideoQualityThumbnail.cs +++ b/TdLib.Api/Objects/GroupCallVideoQualityThumbnail.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class GroupCallVideoQuality : Object { - public partial class GroupCallVideoQuality : Object + /// + /// Describes the quality of a group call video + /// + public class GroupCallVideoQualityThumbnail : GroupCallVideoQuality { /// - /// Describes the quality of a group call video + /// Data type for serialization /// - public class GroupCallVideoQualityThumbnail : GroupCallVideoQuality - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallVideoQualityThumbnail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallVideoQualityThumbnail"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/GroupCallVideoSourceGroup.cs b/TdLib.Api/Objects/GroupCallVideoSourceGroup.cs index 4dc96aaf..dafed2aa 100644 --- a/TdLib.Api/Objects/GroupCallVideoSourceGroup.cs +++ b/TdLib.Api/Objects/GroupCallVideoSourceGroup.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a group of video synchronization source identifiers /// - public static partial class TdApi + public partial class GroupCallVideoSourceGroup : Object { /// - /// Describes a group of video synchronization source identifiers + /// Data type for serialization /// - public partial class GroupCallVideoSourceGroup : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "groupCallVideoSourceGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "groupCallVideoSourceGroup"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The semantics of sources, one of "SIM" or "FID" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("semantics")] - public string Semantics { get; set; } + /// + /// The semantics of sources, one of "SIM" or "FID" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("semantics")] + public string Semantics { get; set; } - /// - /// The list of synchronization source identifiers - /// - [JsonProperty("source_ids", ItemConverterType = typeof(Converter))] - public int[] SourceIds { get; set; } - } + /// + /// The list of synchronization source identifiers + /// + [JsonProperty("source_ids", ItemConverterType = typeof(Converter))] + public int[] SourceIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Hashtags.cs b/TdLib.Api/Objects/Hashtags.cs index 67a81d49..7ae32076 100644 --- a/TdLib.Api/Objects/Hashtags.cs +++ b/TdLib.Api/Objects/Hashtags.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of hashtags /// - public static partial class TdApi + public partial class Hashtags : Object { /// - /// Contains a list of hashtags + /// Data type for serialization /// - public partial class Hashtags : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "hashtags"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "hashtags"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of hashtags - /// - [JsonProperty("hashtags", ItemConverterType = typeof(Converter))] - public string[] Hashtags_ { get; set; } - } + /// + /// A list of hashtags + /// + [JsonProperty("hashtags", ItemConverterType = typeof(Converter))] + public string[] Hashtags_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/HttpUrl.cs b/TdLib.Api/Objects/HttpUrl.cs index 79d9134c..6d78d1fb 100644 --- a/TdLib.Api/Objects/HttpUrl.cs +++ b/TdLib.Api/Objects/HttpUrl.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains an HTTP URL /// - public static partial class TdApi + public partial class HttpUrl : Object { /// - /// Contains an HTTP URL + /// Data type for serialization /// - public partial class HttpUrl : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "httpUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "httpUrl"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// The URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/IdentityDocument.cs b/TdLib.Api/Objects/IdentityDocument.cs index f70eabcb..0d01b13c 100644 --- a/TdLib.Api/Objects/IdentityDocument.cs +++ b/TdLib.Api/Objects/IdentityDocument.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// An identity document /// - public static partial class TdApi + public partial class IdentityDocument : Object { /// - /// An identity document + /// Data type for serialization /// - public partial class IdentityDocument : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "identityDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "identityDocument"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Document number; 1-24 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("number")] - public string Number { get; set; } + /// + /// Document number; 1-24 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("number")] + public string Number { get; set; } - /// - /// Document expiration date; may be null if not applicable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public Date ExpirationDate { get; set; } + /// + /// Document expiration date; may be null if not applicable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public Date ExpirationDate { get; set; } - /// - /// Front side of the document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("front_side")] - public DatedFile FrontSide { get; set; } + /// + /// Front side of the document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("front_side")] + public DatedFile FrontSide { get; set; } - /// - /// Reverse side of the document; only for driver license and identity card; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reverse_side")] - public DatedFile ReverseSide { get; set; } + /// + /// Reverse side of the document; only for driver license and identity card; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reverse_side")] + public DatedFile ReverseSide { get; set; } - /// - /// Selfie with the document; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("selfie")] - public DatedFile Selfie { get; set; } + /// + /// Selfie with the document; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("selfie")] + public DatedFile Selfie { get; set; } - /// - /// List of files containing a certified English translation of the document - /// - [JsonProperty("translation", ItemConverterType = typeof(Converter))] - public DatedFile[] Translation { get; set; } - } + /// + /// List of files containing a certified English translation of the document + /// + [JsonProperty("translation", ItemConverterType = typeof(Converter))] + public DatedFile[] Translation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ImportedContact.cs b/TdLib.Api/Objects/ImportedContact.cs index 71e302ca..02de0f5b 100644 --- a/TdLib.Api/Objects/ImportedContact.cs +++ b/TdLib.Api/Objects/ImportedContact.cs @@ -2,59 +2,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a contact to import /// - public static partial class TdApi + public partial class ImportedContact : Object { /// - /// Describes a contact to import + /// Data type for serialization /// - public partial class ImportedContact : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "importedContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "importedContact"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Phone number of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// Phone number of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } - /// - /// First name of the user; 1-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } + /// + /// First name of the user; 1-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } - /// - /// Last name of the user; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } + /// + /// Last name of the user; 0-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } - /// - /// Note to add about the user; 0-getOption("user_note_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed; - /// pass null to keep the current user's note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("note")] - public FormattedText Note { get; set; } - } + /// + /// Note to add about the user; 0-getOption("user_note_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed; + /// pass null to keep the current user's note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("note")] + public FormattedText Note { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ImportedContacts.cs b/TdLib.Api/Objects/ImportedContacts.cs index 56e05699..1bc00576 100644 --- a/TdLib.Api/Objects/ImportedContacts.cs +++ b/TdLib.Api/Objects/ImportedContacts.cs @@ -2,42 +2,41 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents the result of an importContacts request /// - public static partial class TdApi + public partial class ImportedContacts : Object { /// - /// Represents the result of an importContacts request + /// Data type for serialization /// - public partial class ImportedContacts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "importedContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "importedContacts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifiers of the imported contacts in the same order as they were specified in the request; 0 if the contact is not yet a registered user - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } + /// + /// User identifiers of the imported contacts in the same order as they were specified in the request; 0 if the contact is not yet a registered user + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } - /// - /// The number of users that imported the corresponding contact; 0 for already registered users or if unavailable - /// - [JsonProperty("importer_count", ItemConverterType = typeof(Converter))] - public int[] ImporterCount { get; set; } - } + /// + /// The number of users that imported the corresponding contact; 0 for already registered users or if unavailable + /// + [JsonProperty("importer_count", ItemConverterType = typeof(Converter))] + public int[] ImporterCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InlineButton.cs b/TdLib.Api/Objects/InlineButton.cs index ec6ce30f..36b900f6 100644 --- a/TdLib.Api/Objects/InlineButton.cs +++ b/TdLib.Api/Objects/InlineButton.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a button inside a rich message /// - public static partial class TdApi + public partial class InlineButton : Object { /// - /// Represents a button inside a rich message + /// Data type for serialization /// - public partial class InlineButton : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineButton"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineButton"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the button; only richTexts, richTextPlain, and richTextCustomEmoji are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text of the button; only richTexts, richTextPlain, and richTextCustomEmoji are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Style of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("style")] - public ButtonStyle Style { get; set; } + /// + /// Style of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("style")] + public ButtonStyle Style { get; set; } - /// - /// Type of the button; must be one of inlineKeyboardButtonTypeUrl, inlineKeyboardButtonTypeLoginUrl, inlineKeyboardButtonTypeWebApp, inlineKeyboardButtonTypeCallback, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InlineKeyboardButtonType Type { get; set; } - } + /// + /// Type of the button; must be one of inlineKeyboardButtonTypeUrl, inlineKeyboardButtonTypeLoginUrl, inlineKeyboardButtonTypeWebApp, inlineKeyboardButtonTypeCallback, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InlineKeyboardButtonType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InlineKeyboardButton.cs b/TdLib.Api/Objects/InlineKeyboardButton.cs index 47577d10..b499418c 100644 --- a/TdLib.Api/Objects/InlineKeyboardButton.cs +++ b/TdLib.Api/Objects/InlineKeyboardButton.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a single button in an inline keyboard /// - public static partial class TdApi + public partial class InlineKeyboardButton : Object { /// - /// Represents a single button in an inline keyboard + /// Data type for serialization /// - public partial class InlineKeyboardButton : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButton"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButton"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Text of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// Identifier of the custom emoji that must be shown on the button; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("icon_custom_emoji_id")] - public long IconCustomEmojiId { get; set; } + /// + /// Identifier of the custom emoji that must be shown on the button; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("icon_custom_emoji_id")] + public long IconCustomEmojiId { get; set; } - /// - /// Style of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("style")] - public ButtonStyle Style { get; set; } + /// + /// Style of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("style")] + public ButtonStyle Style { get; set; } - /// - /// Type of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InlineKeyboardButtonType Type { get; set; } - } + /// + /// Type of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InlineKeyboardButtonType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeBuy.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeBuy.cs index 35f7f00b..3fa0832a 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeBuy.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeBuy.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice + /// + public class InlineKeyboardButtonTypeBuy : InlineKeyboardButtonType { /// - /// A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice + /// Data type for serialization /// - public class InlineKeyboardButtonTypeBuy : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeBuy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeBuy"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeCallback.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeCallback.cs index b979a649..57cf4d45 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeCallback.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeCallback.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button that sends a callback query to a bot + /// + public class InlineKeyboardButtonTypeCallback : InlineKeyboardButtonType { /// - /// A button that sends a callback query to a bot + /// Data type for serialization /// - public class InlineKeyboardButtonTypeCallback : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeCallback"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeCallback"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Data to be sent to the bot via a callback query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// Data to be sent to the bot via a callback query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackGame.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackGame.cs index 218cd01e..4291ca9e 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackGame.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackGame.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame + /// + public class InlineKeyboardButtonTypeCallbackGame : InlineKeyboardButtonType { /// - /// A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame + /// Data type for serialization /// - public class InlineKeyboardButtonTypeCallbackGame : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeCallbackGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeCallbackGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackWithPassword.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackWithPassword.cs index 0a5a0788..35b797e0 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackWithPassword.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeCallbackWithPassword.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button that asks for the 2-step verification password of the current user and then sends a callback query to a bot + /// + public class InlineKeyboardButtonTypeCallbackWithPassword : InlineKeyboardButtonType { /// - /// A button that asks for the 2-step verification password of the current user and then sends a callback query to a bot + /// Data type for serialization /// - public class InlineKeyboardButtonTypeCallbackWithPassword : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeCallbackWithPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeCallbackWithPassword"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Data to be sent to the bot via a callback query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// Data to be sent to the bot via a callback query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeCopyText.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeCopyText.cs index 53fdfdcc..4b3a8dfb 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeCopyText.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeCopyText.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button that copies specified text to clipboard + /// + public class InlineKeyboardButtonTypeCopyText : InlineKeyboardButtonType { /// - /// A button that copies specified text to clipboard + /// Data type for serialization /// - public class InlineKeyboardButtonTypeCopyText : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeCopyText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeCopyText"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The text to copy to clipboard - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// The text to copy to clipboard + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeDisabled.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeDisabled.cs index eb54cef5..ea8fc775 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeDisabled.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeDisabled.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A disabled button + /// + public class InlineKeyboardButtonTypeDisabled : InlineKeyboardButtonType { /// - /// A disabled button + /// Data type for serialization /// - public class InlineKeyboardButtonTypeDisabled : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeDisabled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeDisabled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeLoginUrl.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeLoginUrl.cs index 942433dc..f7773656 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeLoginUrl.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeLoginUrl.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo; not supported in ephemeral messages + /// + public class InlineKeyboardButtonTypeLoginUrl : InlineKeyboardButtonType { /// - /// A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo; not supported in ephemeral messages + /// Data type for serialization /// - public class InlineKeyboardButtonTypeLoginUrl : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeLoginUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeLoginUrl"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An HTTP URL to pass to getLoginUrlInfo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// An HTTP URL to pass to getLoginUrlInfo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Unique button identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique button identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// If non-empty, new text of the button in forwarded messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forward_text")] - public string ForwardText { get; set; } - } + /// + /// If non-empty, new text of the button in forwarded messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forward_text")] + public string ForwardText { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeSwitchInline.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeSwitchInline.cs index 26c1febd..f7c75c3e 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeSwitchInline.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeSwitchInline.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button that forces an inline query to the bot to be inserted in the input field + /// + public class InlineKeyboardButtonTypeSwitchInline : InlineKeyboardButtonType { /// - /// A button that forces an inline query to the bot to be inserted in the input field + /// Data type for serialization /// - public class InlineKeyboardButtonTypeSwitchInline : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeSwitchInline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeSwitchInline"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Inline query to be sent to the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Inline query to be sent to the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Target chat from which to send the inline query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("target_chat")] - public TargetChat TargetChat { get; set; } - } + /// + /// Target chat from which to send the inline query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("target_chat")] + public TargetChat TargetChat { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeUrl.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeUrl.cs index c7d12822..a27567ca 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeUrl.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeUrl.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// Describes the type of inline keyboard button + /// + public class InlineKeyboardButtonTypeUrl : InlineKeyboardButtonType { /// - /// Describes the type of inline keyboard button + /// Data type for serialization /// - public class InlineKeyboardButtonTypeUrl : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeUrl"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeUser.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeUser.cs index 150136c2..d09ea18c 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeUser.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeUser.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button with a user reference to be handled in the same way as textEntityTypeMentionName entities + /// + public class InlineKeyboardButtonTypeUser : InlineKeyboardButtonType { /// - /// A button with a user reference to be handled in the same way as textEntityTypeMentionName entities + /// Data type for serialization /// - public class InlineKeyboardButtonTypeUser : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineKeyboardButtonTypeWebApp.cs b/TdLib.Api/Objects/InlineKeyboardButtonTypeWebApp.cs index f6c052b4..b98e2d99 100644 --- a/TdLib.Api/Objects/InlineKeyboardButtonTypeWebApp.cs +++ b/TdLib.Api/Objects/InlineKeyboardButtonTypeWebApp.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineKeyboardButtonType : Object { - public partial class InlineKeyboardButtonType : Object + /// + /// A button that opens a Web App by calling openWebApp + /// + public class InlineKeyboardButtonTypeWebApp : InlineKeyboardButtonType { /// - /// A button that opens a Web App by calling openWebApp + /// Data type for serialization /// - public class InlineKeyboardButtonTypeWebApp : InlineKeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineKeyboardButtonTypeWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineKeyboardButtonTypeWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An HTTP URL to pass to openWebApp - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// An HTTP URL to pass to openWebApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineMessageId.cs b/TdLib.Api/Objects/InlineMessageId.cs index 2276c901..de0284c9 100644 --- a/TdLib.Api/Objects/InlineMessageId.cs +++ b/TdLib.Api/Objects/InlineMessageId.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains identifier of a sent guest message /// - public static partial class TdApi + public partial class InlineMessageId : Object { /// - /// Contains identifier of a sent guest message + /// Data type for serialization /// - public partial class InlineMessageId : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineMessageId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineMessageId"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } - } + /// + /// Unique identifier for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InlineQueryResultAnimation.cs b/TdLib.Api/Objects/InlineQueryResultAnimation.cs index 90154787..bb1d929d 100644 --- a/TdLib.Api/Objects/InlineQueryResultAnimation.cs +++ b/TdLib.Api/Objects/InlineQueryResultAnimation.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents an animation file + /// + public class InlineQueryResultAnimation : InlineQueryResult { /// - /// Represents an animation file + /// Data type for serialization /// - public class InlineQueryResultAnimation : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Animation file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } + /// + /// Animation file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } - /// - /// Animation title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Animation title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultArticle.cs b/TdLib.Api/Objects/InlineQueryResultArticle.cs index bfb1b4e6..7ea19c02 100644 --- a/TdLib.Api/Objects/InlineQueryResultArticle.cs +++ b/TdLib.Api/Objects/InlineQueryResultArticle.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a single result of an inline query + /// + public class InlineQueryResultArticle : InlineQueryResult { /// - /// Represents a single result of an inline query + /// Data type for serialization /// - public class InlineQueryResultArticle : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultArticle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultArticle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// URL of the result, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the result, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Title of the result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// Result thumbnail in JPEG format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } - } + /// + /// Result thumbnail in JPEG format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultAudio.cs b/TdLib.Api/Objects/InlineQueryResultAudio.cs index 86253fdd..b9161720 100644 --- a/TdLib.Api/Objects/InlineQueryResultAudio.cs +++ b/TdLib.Api/Objects/InlineQueryResultAudio.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents an audio file + /// + public class InlineQueryResultAudio : InlineQueryResult { /// - /// Represents an audio file + /// Data type for serialization /// - public class InlineQueryResultAudio : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public Audio Audio { get; set; } - } + /// + /// Audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public Audio Audio { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultContact.cs b/TdLib.Api/Objects/InlineQueryResultContact.cs index ffd480a6..a39e0e29 100644 --- a/TdLib.Api/Objects/InlineQueryResultContact.cs +++ b/TdLib.Api/Objects/InlineQueryResultContact.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a user contact + /// + public class InlineQueryResultContact : InlineQueryResult { /// - /// Represents a user contact + /// Data type for serialization /// - public class InlineQueryResultContact : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultContact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// A user contact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contact")] - public Contact Contact { get; set; } + /// + /// A user contact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contact")] + public Contact Contact { get; set; } - /// - /// Result thumbnail in JPEG format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } - } + /// + /// Result thumbnail in JPEG format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultDocument.cs b/TdLib.Api/Objects/InlineQueryResultDocument.cs index 301aecb2..abbf257d 100644 --- a/TdLib.Api/Objects/InlineQueryResultDocument.cs +++ b/TdLib.Api/Objects/InlineQueryResultDocument.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a document + /// + public class InlineQueryResultDocument : InlineQueryResult { /// - /// Represents a document + /// Data type for serialization /// - public class InlineQueryResultDocument : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } + /// + /// Document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } - /// - /// Document title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Document title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultGame.cs b/TdLib.Api/Objects/InlineQueryResultGame.cs index aaf2aed8..6874c78a 100644 --- a/TdLib.Api/Objects/InlineQueryResultGame.cs +++ b/TdLib.Api/Objects/InlineQueryResultGame.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents information about a game + /// + public class InlineQueryResultGame : InlineQueryResult { /// - /// Represents information about a game + /// Data type for serialization /// - public class InlineQueryResultGame : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Game result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("game")] - public Game Game { get; set; } - } + /// + /// Game result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("game")] + public Game Game { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultLocation.cs b/TdLib.Api/Objects/InlineQueryResultLocation.cs index c9fa2687..ef95d6b9 100644 --- a/TdLib.Api/Objects/InlineQueryResultLocation.cs +++ b/TdLib.Api/Objects/InlineQueryResultLocation.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a point on the map + /// + public class InlineQueryResultLocation : InlineQueryResult { /// - /// Represents a point on the map + /// Data type for serialization /// - public class InlineQueryResultLocation : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Location result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// Location result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Title of the result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Result thumbnail in JPEG format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } - } + /// + /// Result thumbnail in JPEG format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultPhoto.cs b/TdLib.Api/Objects/InlineQueryResultPhoto.cs index 172c2647..91e67d54 100644 --- a/TdLib.Api/Objects/InlineQueryResultPhoto.cs +++ b/TdLib.Api/Objects/InlineQueryResultPhoto.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a photo + /// + public class InlineQueryResultPhoto : InlineQueryResult { /// - /// Represents a photo + /// Data type for serialization /// - public class InlineQueryResultPhoto : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// Title of the result, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the result, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultSticker.cs b/TdLib.Api/Objects/InlineQueryResultSticker.cs index b9bba6d3..8479fa4b 100644 --- a/TdLib.Api/Objects/InlineQueryResultSticker.cs +++ b/TdLib.Api/Objects/InlineQueryResultSticker.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a sticker + /// + public class InlineQueryResultSticker : InlineQueryResult { /// - /// Represents a sticker + /// Data type for serialization /// - public class InlineQueryResultSticker : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// Sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultVenue.cs b/TdLib.Api/Objects/InlineQueryResultVenue.cs index 9f736d22..8797c71a 100644 --- a/TdLib.Api/Objects/InlineQueryResultVenue.cs +++ b/TdLib.Api/Objects/InlineQueryResultVenue.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents information about a venue + /// + public class InlineQueryResultVenue : InlineQueryResult { /// - /// Represents information about a venue + /// Data type for serialization /// - public class InlineQueryResultVenue : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Venue result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue")] - public Venue Venue { get; set; } + /// + /// Venue result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue")] + public Venue Venue { get; set; } - /// - /// Result thumbnail in JPEG format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } - } + /// + /// Result thumbnail in JPEG format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultVideo.cs b/TdLib.Api/Objects/InlineQueryResultVideo.cs index 8bb1f673..12667ac8 100644 --- a/TdLib.Api/Objects/InlineQueryResultVideo.cs +++ b/TdLib.Api/Objects/InlineQueryResultVideo.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a video + /// + public class InlineQueryResultVideo : InlineQueryResult { /// - /// Represents a video + /// Data type for serialization /// - public class InlineQueryResultVideo : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// Video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Title of the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultVoiceNote.cs b/TdLib.Api/Objects/InlineQueryResultVoiceNote.cs index 15d6574f..ee60fe65 100644 --- a/TdLib.Api/Objects/InlineQueryResultVoiceNote.cs +++ b/TdLib.Api/Objects/InlineQueryResultVoiceNote.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResult : Object { - public partial class InlineQueryResult : Object + /// + /// Represents a voice note + /// + public class InlineQueryResultVoiceNote : InlineQueryResult { /// - /// Represents a voice note + /// Data type for serialization /// - public class InlineQueryResultVoiceNote : InlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public VoiceNote VoiceNote { get; set; } + /// + /// Voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public VoiceNote VoiceNote { get; set; } - /// - /// Title of the voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Title of the voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResults.cs b/TdLib.Api/Objects/InlineQueryResults.cs index 9614a81f..e0d6ffde 100644 --- a/TdLib.Api/Objects/InlineQueryResults.cs +++ b/TdLib.Api/Objects/InlineQueryResults.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query /// - public static partial class TdApi + public partial class InlineQueryResults : Object { /// - /// Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query + /// Data type for serialization /// - public partial class InlineQueryResults : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResults"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResults"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the inline query - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("inline_query_id")] - public long InlineQueryId { get; set; } + /// + /// Unique identifier of the inline query + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("inline_query_id")] + public long InlineQueryId { get; set; } - /// - /// Button to be shown above inline query results; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button")] - public InlineQueryResultsButton Button { get; set; } + /// + /// Button to be shown above inline query results; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button")] + public InlineQueryResultsButton Button { get; set; } - /// - /// Results of the query - /// - [JsonProperty("results", ItemConverterType = typeof(Converter))] - public InlineQueryResult[] Results { get; set; } + /// + /// Results of the query + /// + [JsonProperty("results", ItemConverterType = typeof(Converter))] + public InlineQueryResult[] Results { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InlineQueryResultsButton.cs b/TdLib.Api/Objects/InlineQueryResultsButton.cs index 86e1075d..70b886f6 100644 --- a/TdLib.Api/Objects/InlineQueryResultsButton.cs +++ b/TdLib.Api/Objects/InlineQueryResultsButton.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a button to be shown above inline query results /// - public static partial class TdApi + public partial class InlineQueryResultsButton : Object { /// - /// Represents a button to be shown above inline query results + /// Data type for serialization /// - public partial class InlineQueryResultsButton : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultsButton"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultsButton"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The text of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// The text of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// Type of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InlineQueryResultsButtonType Type { get; set; } - } + /// + /// Type of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InlineQueryResultsButtonType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InlineQueryResultsButtonTypeStartBot.cs b/TdLib.Api/Objects/InlineQueryResultsButtonTypeStartBot.cs index 91712b48..c236476e 100644 --- a/TdLib.Api/Objects/InlineQueryResultsButtonTypeStartBot.cs +++ b/TdLib.Api/Objects/InlineQueryResultsButtonTypeStartBot.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResultsButtonType : Object { - public partial class InlineQueryResultsButtonType : Object + /// + /// Represents type of button in results of inline query + /// + public class InlineQueryResultsButtonTypeStartBot : InlineQueryResultsButtonType { /// - /// Represents type of button in results of inline query + /// Data type for serialization /// - public class InlineQueryResultsButtonTypeStartBot : InlineQueryResultsButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultsButtonTypeStartBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultsButtonTypeStartBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The parameter for the bot start message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameter")] - public string Parameter { get; set; } - } + /// + /// The parameter for the bot start message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameter")] + public string Parameter { get; set; } } } } diff --git a/TdLib.Api/Objects/InlineQueryResultsButtonTypeWebApp.cs b/TdLib.Api/Objects/InlineQueryResultsButtonTypeWebApp.cs index c015f0a1..e52f5d83 100644 --- a/TdLib.Api/Objects/InlineQueryResultsButtonTypeWebApp.cs +++ b/TdLib.Api/Objects/InlineQueryResultsButtonTypeWebApp.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InlineQueryResultsButtonType : Object { - public partial class InlineQueryResultsButtonType : Object + /// + /// Describes the button that opens a Web App by calling getWebAppUrl + /// + public class InlineQueryResultsButtonTypeWebApp : InlineQueryResultsButtonType { /// - /// Describes the button that opens a Web App by calling getWebAppUrl + /// Data type for serialization /// - public class InlineQueryResultsButtonTypeWebApp : InlineQueryResultsButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inlineQueryResultsButtonTypeWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inlineQueryResultsButtonTypeWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An HTTP URL to pass to getWebAppUrl - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// An HTTP URL to pass to getWebAppUrl + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InputAnimation.cs b/TdLib.Api/Objects/InputAnimation.cs index 9f5eb790..c8eba30a 100644 --- a/TdLib.Api/Objects/InputAnimation.cs +++ b/TdLib.Api/Objects/InputAnimation.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// An animation to be sent /// - public static partial class TdApi + public partial class InputAnimation : Object { /// - /// An animation to be sent + /// Data type for serialization /// - public partial class InputAnimation : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputAnimation"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Animation file to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public InputFile Animation { get; set; } + /// + /// Animation file to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public InputFile Animation { get; set; } - /// - /// Animation thumbnail; pass null to skip thumbnail uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputThumbnail Thumbnail { get; set; } + /// + /// Animation thumbnail; pass null to skip thumbnail uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputThumbnail Thumbnail { get; set; } - /// - /// File identifiers of the stickers added to the animation, if applicable - /// - [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] - public int[] AddedStickerFileIds { get; set; } + /// + /// File identifiers of the stickers added to the animation, if applicable + /// + [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] + public int[] AddedStickerFileIds { get; set; } - /// - /// Duration of the animation, in seconds; may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the animation, in seconds; may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Width of the animation; may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Width of the animation; may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Height of the animation; may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Height of the animation; may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputAudio.cs b/TdLib.Api/Objects/InputAudio.cs index 07ba75a3..87f88690 100644 --- a/TdLib.Api/Objects/InputAudio.cs +++ b/TdLib.Api/Objects/InputAudio.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// An audio to be sent /// - public static partial class TdApi + public partial class InputAudio : Object { /// - /// An audio to be sent + /// Data type for serialization /// - public partial class InputAudio : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputAudio"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Audio file to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public InputFile Audio { get; set; } + /// + /// Audio file to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public InputFile Audio { get; set; } - /// - /// Thumbnail of the cover for the album; pass null to skip thumbnail uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("album_cover_thumbnail")] - public InputThumbnail AlbumCoverThumbnail { get; set; } + /// + /// Thumbnail of the cover for the album; pass null to skip thumbnail uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("album_cover_thumbnail")] + public InputThumbnail AlbumCoverThumbnail { get; set; } - /// - /// Duration of the audio, in seconds; may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the audio, in seconds; may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Title of the audio; 0-64 characters; may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the audio; 0-64 characters; may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Performer of the audio; 0-64 characters, may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("performer")] - public string Performer { get; set; } - } + /// + /// Performer of the audio; 0-64 characters, may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("performer")] + public string Performer { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputBackgroundLocal.cs b/TdLib.Api/Objects/InputBackgroundLocal.cs index 0c84a97e..d103738d 100644 --- a/TdLib.Api/Objects/InputBackgroundLocal.cs +++ b/TdLib.Api/Objects/InputBackgroundLocal.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputBackground : Object { - public partial class InputBackground : Object + /// + /// Contains information about background to set + /// + public class InputBackgroundLocal : InputBackground { /// - /// Contains information about background to set + /// Data type for serialization /// - public class InputBackgroundLocal : InputBackground - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputBackgroundLocal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputBackgroundLocal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Background file to use. Only inputFileLocal and inputFileGenerated are supported. The file must be in JPEG format for wallpapers and in PNG format for patterns - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public InputFile Background { get; set; } - } + /// + /// Background file to use. Only inputFileLocal and inputFileGenerated are supported. The file must be in JPEG format for wallpapers and in PNG format for patterns + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public InputFile Background { get; set; } } } } diff --git a/TdLib.Api/Objects/InputBackgroundPrevious.cs b/TdLib.Api/Objects/InputBackgroundPrevious.cs index d4d08da0..b637ea9d 100644 --- a/TdLib.Api/Objects/InputBackgroundPrevious.cs +++ b/TdLib.Api/Objects/InputBackgroundPrevious.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputBackground : Object { - public partial class InputBackground : Object + /// + /// A background previously set in the chat; for chat backgrounds only + /// + public class InputBackgroundPrevious : InputBackground { /// - /// A background previously set in the chat; for chat backgrounds only + /// Data type for serialization /// - public class InputBackgroundPrevious : InputBackground - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputBackgroundPrevious"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputBackgroundPrevious"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the message with the background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputBackgroundRemote.cs b/TdLib.Api/Objects/InputBackgroundRemote.cs index 3686dd20..52c8f7c9 100644 --- a/TdLib.Api/Objects/InputBackgroundRemote.cs +++ b/TdLib.Api/Objects/InputBackgroundRemote.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputBackground : Object { - public partial class InputBackground : Object + /// + /// A background from the server + /// + public class InputBackgroundRemote : InputBackground { /// - /// A background from the server + /// Data type for serialization /// - public class InputBackgroundRemote : InputBackground - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputBackgroundRemote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputBackgroundRemote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The background identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_id")] - public long BackgroundId { get; set; } - } + /// + /// The background identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_id")] + public long BackgroundId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputBusinessChatLink.cs b/TdLib.Api/Objects/InputBusinessChatLink.cs index ed5331ba..31919407 100644 --- a/TdLib.Api/Objects/InputBusinessChatLink.cs +++ b/TdLib.Api/Objects/InputBusinessChatLink.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a business chat link to create or edit /// - public static partial class TdApi + public partial class InputBusinessChatLink : Object { /// - /// Describes a business chat link to create or edit + /// Data type for serialization /// - public partial class InputBusinessChatLink : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputBusinessChatLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputBusinessChatLink"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message draft text that will be added to the input field - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Message draft text that will be added to the input field + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Link title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Link title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputBusinessStartPage.cs b/TdLib.Api/Objects/InputBusinessStartPage.cs index f64afbab..91a851ac 100644 --- a/TdLib.Api/Objects/InputBusinessStartPage.cs +++ b/TdLib.Api/Objects/InputBusinessStartPage.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes settings for a business account start page to set /// - public static partial class TdApi + public partial class InputBusinessStartPage : Object { /// - /// Describes settings for a business account start page to set + /// Data type for serialization /// - public partial class InputBusinessStartPage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputBusinessStartPage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputBusinessStartPage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title text of the start page; 0-getOption("business_start_page_title_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title text of the start page; 0-getOption("business_start_page_title_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Message text of the start page; 0-getOption("business_start_page_message_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public string Message { get; set; } + /// + /// Message text of the start page; 0-getOption("business_start_page_message_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public string Message { get; set; } - /// - /// Greeting sticker of the start page; pass null if none. The sticker must belong to a sticker set and must not be a custom emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } - } + /// + /// Greeting sticker of the start page; pass null if none. The sticker must belong to a sticker set and must not be a custom emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputCallDiscarded.cs b/TdLib.Api/Objects/InputCallDiscarded.cs index 03313c73..544732e5 100644 --- a/TdLib.Api/Objects/InputCallDiscarded.cs +++ b/TdLib.Api/Objects/InputCallDiscarded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputCall : Object { - public partial class InputCall : Object + /// + /// Describes a call + /// + public class InputCallDiscarded : InputCall { /// - /// Describes a call + /// Data type for serialization /// - public class InputCallDiscarded : InputCall - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputCallDiscarded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputCallDiscarded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public int CallId { get; set; } - } + /// + /// Identifier of the call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public int CallId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputCallFromMessage.cs b/TdLib.Api/Objects/InputCallFromMessage.cs index cc97b3f9..8de3d7c1 100644 --- a/TdLib.Api/Objects/InputCallFromMessage.cs +++ b/TdLib.Api/Objects/InputCallFromMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputCall : Object { - public partial class InputCall : Object + /// + /// A call from a message of the type messageCall with non-zero messageCall.unique_id + /// + public class InputCallFromMessage : InputCall { /// - /// A call from a message of the type messageCall with non-zero messageCall.unique_id + /// Data type for serialization /// - public class InputCallFromMessage : InputCall - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputCallFromMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputCallFromMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputChatPhotoAnimation.cs b/TdLib.Api/Objects/InputChatPhotoAnimation.cs index 71a97c34..1cdbffbc 100644 --- a/TdLib.Api/Objects/InputChatPhotoAnimation.cs +++ b/TdLib.Api/Objects/InputChatPhotoAnimation.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputChatPhoto : Object { - public partial class InputChatPhoto : Object + /// + /// An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size + /// + public class InputChatPhotoAnimation : InputChatPhoto { /// - /// An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size + /// Data type for serialization /// - public class InputChatPhotoAnimation : InputChatPhoto - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChatPhotoAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChatPhotoAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public InputFile Animation { get; set; } + /// + /// Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public InputFile Animation { get; set; } - /// - /// Timestamp of the frame, which will be used as static chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_frame_timestamp")] - public double? MainFrameTimestamp { get; set; } - } + /// + /// Timestamp of the frame, which will be used as static chat photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("main_frame_timestamp")] + public double? MainFrameTimestamp { get; set; } } } } diff --git a/TdLib.Api/Objects/InputChatPhotoPrevious.cs b/TdLib.Api/Objects/InputChatPhotoPrevious.cs index 06533871..f35b19ff 100644 --- a/TdLib.Api/Objects/InputChatPhotoPrevious.cs +++ b/TdLib.Api/Objects/InputChatPhotoPrevious.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputChatPhoto : Object { - public partial class InputChatPhoto : Object + /// + /// Describes a photo to be set as a user profile or chat photo + /// + public class InputChatPhotoPrevious : InputChatPhoto { /// - /// Describes a photo to be set as a user profile or chat photo + /// Data type for serialization /// - public class InputChatPhotoPrevious : InputChatPhoto - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChatPhotoPrevious"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChatPhotoPrevious"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the current user's profile photo to reuse - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("chat_photo_id")] - public long ChatPhotoId { get; set; } - } + /// + /// Identifier of the current user's profile photo to reuse + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("chat_photo_id")] + public long ChatPhotoId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputChatPhotoStatic.cs b/TdLib.Api/Objects/InputChatPhotoStatic.cs index 0fc79b0b..f8f24632 100644 --- a/TdLib.Api/Objects/InputChatPhotoStatic.cs +++ b/TdLib.Api/Objects/InputChatPhotoStatic.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputChatPhoto : Object { - public partial class InputChatPhoto : Object + /// + /// A static photo in JPEG format + /// + public class InputChatPhotoStatic : InputChatPhoto { /// - /// A static photo in JPEG format + /// Data type for serialization /// - public class InputChatPhotoStatic : InputChatPhoto - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChatPhotoStatic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChatPhotoStatic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputFile Photo { get; set; } - } + /// + /// Photo to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputFile Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/InputChatPhotoSticker.cs b/TdLib.Api/Objects/InputChatPhotoSticker.cs index ec5b7c05..46da08de 100644 --- a/TdLib.Api/Objects/InputChatPhotoSticker.cs +++ b/TdLib.Api/Objects/InputChatPhotoSticker.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputChatPhoto : Object { - public partial class InputChatPhoto : Object + /// + /// A sticker on a custom background + /// + public class InputChatPhotoSticker : InputChatPhoto { /// - /// A sticker on a custom background + /// Data type for serialization /// - public class InputChatPhotoSticker : InputChatPhoto - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChatPhotoSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChatPhotoSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public ChatPhotoSticker Sticker { get; set; } - } + /// + /// Information about the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public ChatPhotoSticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/InputChatThemeEmoji.cs b/TdLib.Api/Objects/InputChatThemeEmoji.cs index eccdcead..7180cc43 100644 --- a/TdLib.Api/Objects/InputChatThemeEmoji.cs +++ b/TdLib.Api/Objects/InputChatThemeEmoji.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputChatTheme : Object { - public partial class InputChatTheme : Object + /// + /// Describes a chat theme to set + /// + public class InputChatThemeEmoji : InputChatTheme { /// - /// Describes a chat theme to set + /// Data type for serialization /// - public class InputChatThemeEmoji : InputChatTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChatThemeEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChatThemeEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/InputChatThemeGift.cs b/TdLib.Api/Objects/InputChatThemeGift.cs index 86da9fc2..65f974d7 100644 --- a/TdLib.Api/Objects/InputChatThemeGift.cs +++ b/TdLib.Api/Objects/InputChatThemeGift.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputChatTheme : Object { - public partial class InputChatTheme : Object + /// + /// A theme based on an upgraded gift + /// + public class InputChatThemeGift : InputChatTheme { /// - /// A theme based on an upgraded gift + /// Data type for serialization /// - public class InputChatThemeGift : InputChatTheme - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChatThemeGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChatThemeGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the upgraded gift. A gift can be used only in one chat in a time. - /// When the same gift is used in another chat, theme in the previous chat is reset to default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the upgraded gift. A gift can be used only in one chat in a time. + /// When the same gift is used in another chat, theme in the previous chat is reset to default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/InputChecklist.cs b/TdLib.Api/Objects/InputChecklist.cs index ab9b9377..54495d14 100644 --- a/TdLib.Api/Objects/InputChecklist.cs +++ b/TdLib.Api/Objects/InputChecklist.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a checklist to be sent /// - public static partial class TdApi + public partial class InputChecklist : Object { /// - /// Describes a checklist to be sent + /// Data type for serialization /// - public partial class InputChecklist : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChecklist"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChecklist"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the checklist; 1-getOption("checklist_title_length_max") characters. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public FormattedText Title { get; set; } + /// + /// Title of the checklist; 1-getOption("checklist_title_length_max") characters. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public FormattedText Title { get; set; } - /// - /// List of tasks in the checklist; 1-getOption("checklist_task_count_max") tasks - /// - [JsonProperty("tasks", ItemConverterType = typeof(Converter))] - public InputChecklistTask[] Tasks { get; set; } + /// + /// List of tasks in the checklist; 1-getOption("checklist_task_count_max") tasks + /// + [JsonProperty("tasks", ItemConverterType = typeof(Converter))] + public InputChecklistTask[] Tasks { get; set; } - /// - /// True, if other users can add tasks to the list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("others_can_add_tasks")] - public bool OthersCanAddTasks { get; set; } + /// + /// True, if other users can add tasks to the list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("others_can_add_tasks")] + public bool OthersCanAddTasks { get; set; } - /// - /// True, if other users can mark tasks as done or not done - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("others_can_mark_tasks_as_done")] - public bool OthersCanMarkTasksAsDone { get; set; } - } + /// + /// True, if other users can mark tasks as done or not done + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("others_can_mark_tasks_as_done")] + public bool OthersCanMarkTasksAsDone { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputChecklistTask.cs b/TdLib.Api/Objects/InputChecklistTask.cs index 81b480b7..a24247fb 100644 --- a/TdLib.Api/Objects/InputChecklistTask.cs +++ b/TdLib.Api/Objects/InputChecklistTask.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a task in a checklist to be sent /// - public static partial class TdApi + public partial class InputChecklistTask : Object { /// - /// Describes a task in a checklist to be sent + /// Data type for serialization /// - public partial class InputChecklistTask : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputChecklistTask"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputChecklistTask"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the task; must be positive - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique identifier of the task; must be positive + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Text of the task; 1-getOption("checklist_task_text_length_max") characters without line feeds. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Text of the task; 1-getOption("checklist_task_text_length_max") characters without line feeds. May contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputCredentialsApplePay.cs b/TdLib.Api/Objects/InputCredentialsApplePay.cs index 5f1a425e..c22f9437 100644 --- a/TdLib.Api/Objects/InputCredentialsApplePay.cs +++ b/TdLib.Api/Objects/InputCredentialsApplePay.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputCredentials : Object { - public partial class InputCredentials : Object + /// + /// Applies if a user enters new credentials using Apple Pay + /// + public class InputCredentialsApplePay : InputCredentials { /// - /// Applies if a user enters new credentials using Apple Pay + /// Data type for serialization /// - public class InputCredentialsApplePay : InputCredentials - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputCredentialsApplePay"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputCredentialsApplePay"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// JSON-encoded data with the credential identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } - } + /// + /// JSON-encoded data with the credential identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } } } } diff --git a/TdLib.Api/Objects/InputCredentialsGooglePay.cs b/TdLib.Api/Objects/InputCredentialsGooglePay.cs index 7f883773..cdff6573 100644 --- a/TdLib.Api/Objects/InputCredentialsGooglePay.cs +++ b/TdLib.Api/Objects/InputCredentialsGooglePay.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputCredentials : Object { - public partial class InputCredentials : Object + /// + /// Applies if a user enters new credentials using Google Pay + /// + public class InputCredentialsGooglePay : InputCredentials { /// - /// Applies if a user enters new credentials using Google Pay + /// Data type for serialization /// - public class InputCredentialsGooglePay : InputCredentials - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputCredentialsGooglePay"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputCredentialsGooglePay"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// JSON-encoded data with the credential identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } - } + /// + /// JSON-encoded data with the credential identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } } } } diff --git a/TdLib.Api/Objects/InputCredentialsNew.cs b/TdLib.Api/Objects/InputCredentialsNew.cs index 7290648c..068ba49e 100644 --- a/TdLib.Api/Objects/InputCredentialsNew.cs +++ b/TdLib.Api/Objects/InputCredentialsNew.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputCredentials : Object { - public partial class InputCredentials : Object + /// + /// Applies if a user enters new credentials on a payment provider website + /// + public class InputCredentialsNew : InputCredentials { /// - /// Applies if a user enters new credentials on a payment provider website + /// Data type for serialization /// - public class InputCredentialsNew : InputCredentials - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputCredentialsNew"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputCredentialsNew"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// JSON-encoded data with the credential identifier from the payment provider - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } + /// + /// JSON-encoded data with the credential identifier from the payment provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } - /// - /// True, if the credential identifier can be saved on the server side - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_save")] - public bool AllowSave { get; set; } - } + /// + /// True, if the credential identifier can be saved on the server side + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_save")] + public bool AllowSave { get; set; } } } } diff --git a/TdLib.Api/Objects/InputCredentialsSaved.cs b/TdLib.Api/Objects/InputCredentialsSaved.cs index 3accdcb7..93d7f5ff 100644 --- a/TdLib.Api/Objects/InputCredentialsSaved.cs +++ b/TdLib.Api/Objects/InputCredentialsSaved.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputCredentials : Object { - public partial class InputCredentials : Object + /// + /// Contains information about the payment method chosen by the user + /// + public class InputCredentialsSaved : InputCredentials { /// - /// Contains information about the payment method chosen by the user + /// Data type for serialization /// - public class InputCredentialsSaved : InputCredentials - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputCredentialsSaved"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputCredentialsSaved"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the saved credentials - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_credentials_id")] - public string SavedCredentialsId { get; set; } - } + /// + /// Identifier of the saved credentials + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_credentials_id")] + public string SavedCredentialsId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputDocument.cs b/TdLib.Api/Objects/InputDocument.cs index 3ba99b52..548491a2 100644 --- a/TdLib.Api/Objects/InputDocument.cs +++ b/TdLib.Api/Objects/InputDocument.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A document (general file) to be sent /// - public static partial class TdApi + public partial class InputDocument : Object { /// - /// A document (general file) to be sent + /// Data type for serialization /// - public partial class InputDocument : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputDocument"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public InputFile Document { get; set; } + /// + /// File to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public InputFile Document { get; set; } - /// - /// Document thumbnail; pass null to skip thumbnail uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputThumbnail Thumbnail { get; set; } + /// + /// Document thumbnail; pass null to skip thumbnail uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputThumbnail Thumbnail { get; set; } - /// - /// Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_content_type_detection")] - public bool DisableContentTypeDetection { get; set; } - } + /// + /// Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_content_type_detection")] + public bool DisableContentTypeDetection { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputFileGenerated.cs b/TdLib.Api/Objects/InputFileGenerated.cs index 3b272c0e..6d62bdbe 100644 --- a/TdLib.Api/Objects/InputFileGenerated.cs +++ b/TdLib.Api/Objects/InputFileGenerated.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputFile : Object { - public partial class InputFile : Object + /// + /// A file generated by the application. The application must handle updates updateFileGenerationStart and updateFileGenerationStop to generate the file when asked by TDLib + /// + public class InputFileGenerated : InputFile { /// - /// A file generated by the application. The application must handle updates updateFileGenerationStart and updateFileGenerationStop to generate the file when asked by TDLib + /// Data type for serialization /// - public class InputFileGenerated : InputFile - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputFileGenerated"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputFileGenerated"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Local path to a file from which the file is generated. The path doesn't have to be a valid path and is used by TDLib only to detect name and MIME type of the generated file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("original_path")] - public string OriginalPath { get; set; } + /// + /// Local path to a file from which the file is generated. The path doesn't have to be a valid path and is used by TDLib only to detect name and MIME type of the generated file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("original_path")] + public string OriginalPath { get; set; } - /// - /// String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with '#' are reserved for internal TDLib usage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("conversion")] - public string Conversion { get; set; } + /// + /// String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with '#' are reserved for internal TDLib usage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("conversion")] + public string Conversion { get; set; } - /// - /// Expected size of the generated file, in bytes; pass 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expected_size")] - public long ExpectedSize { get; set; } - } + /// + /// Expected size of the generated file, in bytes; pass 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expected_size")] + public long ExpectedSize { get; set; } } } } diff --git a/TdLib.Api/Objects/InputFileId.cs b/TdLib.Api/Objects/InputFileId.cs index 4191c05b..c4f4eeb2 100644 --- a/TdLib.Api/Objects/InputFileId.cs +++ b/TdLib.Api/Objects/InputFileId.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputFile : Object { - public partial class InputFile : Object + /// + /// Points to a file + /// + public class InputFileId : InputFile { /// - /// Points to a file + /// Data type for serialization /// - public class InputFileId : InputFile - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputFileId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputFileId"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique file identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } - } + /// + /// Unique file identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } } } } diff --git a/TdLib.Api/Objects/InputFileLocal.cs b/TdLib.Api/Objects/InputFileLocal.cs index f92e13cd..7de02d00 100644 --- a/TdLib.Api/Objects/InputFileLocal.cs +++ b/TdLib.Api/Objects/InputFileLocal.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputFile : Object { - public partial class InputFile : Object + /// + /// A file defined by a local path + /// + public class InputFileLocal : InputFile { /// - /// A file defined by a local path + /// Data type for serialization /// - public class InputFileLocal : InputFile - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputFileLocal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputFileLocal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Local path to the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("path")] - public string Path { get; set; } - } + /// + /// Local path to the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("path")] + public string Path { get; set; } } } } diff --git a/TdLib.Api/Objects/InputFileRemote.cs b/TdLib.Api/Objects/InputFileRemote.cs index 8f850723..1f6bbfee 100644 --- a/TdLib.Api/Objects/InputFileRemote.cs +++ b/TdLib.Api/Objects/InputFileRemote.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputFile : Object { - public partial class InputFile : Object + /// + /// A file defined by its remote identifier. The remote identifier is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. + /// For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application + /// + public class InputFileRemote : InputFile { /// - /// A file defined by its remote identifier. The remote identifier is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. - /// For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application + /// Data type for serialization /// - public class InputFileRemote : InputFile - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputFileRemote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputFileRemote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Remote file identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } - } + /// + /// Remote file identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } } } } diff --git a/TdLib.Api/Objects/InputGroupCallLink.cs b/TdLib.Api/Objects/InputGroupCallLink.cs index 8e67b9b3..4f31dbfb 100644 --- a/TdLib.Api/Objects/InputGroupCallLink.cs +++ b/TdLib.Api/Objects/InputGroupCallLink.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputGroupCall : Object { - public partial class InputGroupCall : Object + /// + /// Describes a non-joined group call that isn't bound to a chat + /// + public class InputGroupCallLink : InputGroupCall { /// - /// Describes a non-joined group call that isn't bound to a chat + /// Data type for serialization /// - public class InputGroupCallLink : InputGroupCall - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputGroupCallLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputGroupCallLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The link for the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// The link for the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } } } } diff --git a/TdLib.Api/Objects/InputGroupCallMessage.cs b/TdLib.Api/Objects/InputGroupCallMessage.cs index 33e8dbeb..1a955871 100644 --- a/TdLib.Api/Objects/InputGroupCallMessage.cs +++ b/TdLib.Api/Objects/InputGroupCallMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputGroupCall : Object { - public partial class InputGroupCall : Object + /// + /// The group call is accessible through a message of the type messageGroupCall + /// + public class InputGroupCallMessage : InputGroupCall { /// - /// The group call is accessible through a message of the type messageGroupCall + /// Data type for serialization /// - public class InputGroupCallMessage : InputGroupCall - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputGroupCallMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputGroupCallMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message of the type messageGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the message of the type messageGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputIdentityDocument.cs b/TdLib.Api/Objects/InputIdentityDocument.cs index 93b3b94c..93de1d7a 100644 --- a/TdLib.Api/Objects/InputIdentityDocument.cs +++ b/TdLib.Api/Objects/InputIdentityDocument.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// An identity document to be saved to Telegram Passport /// - public static partial class TdApi + public partial class InputIdentityDocument : Object { /// - /// An identity document to be saved to Telegram Passport + /// Data type for serialization /// - public partial class InputIdentityDocument : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputIdentityDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputIdentityDocument"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Document number; 1-24 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("number")] - public string Number { get; set; } + /// + /// Document number; 1-24 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("number")] + public string Number { get; set; } - /// - /// Document expiration date; pass null if not applicable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public Date ExpirationDate { get; set; } + /// + /// Document expiration date; pass null if not applicable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public Date ExpirationDate { get; set; } - /// - /// Front side of the document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("front_side")] - public InputFile FrontSide { get; set; } + /// + /// Front side of the document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("front_side")] + public InputFile FrontSide { get; set; } - /// - /// Reverse side of the document; only for driver license and identity card; pass null otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reverse_side")] - public InputFile ReverseSide { get; set; } + /// + /// Reverse side of the document; only for driver license and identity card; pass null otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reverse_side")] + public InputFile ReverseSide { get; set; } - /// - /// Selfie with the document; pass null if unavailable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("selfie")] - public InputFile Selfie { get; set; } + /// + /// Selfie with the document; pass null if unavailable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("selfie")] + public InputFile Selfie { get; set; } - /// - /// List of files containing a certified English translation of the document - /// - [JsonProperty("translation", ItemConverterType = typeof(Converter))] - public InputFile[] Translation { get; set; } - } + /// + /// List of files containing a certified English translation of the document + /// + [JsonProperty("translation", ItemConverterType = typeof(Converter))] + public InputFile[] Translation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputInlineQueryResultAnimation.cs b/TdLib.Api/Objects/InputInlineQueryResultAnimation.cs index 559657da..6010090a 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultAnimation.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultAnimation.cs @@ -2,109 +2,108 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a single result of an inline query; for bots only + /// + public class InputInlineQueryResultAnimation : InputInlineQueryResult { /// - /// Represents a single result of an inline query; for bots only + /// Data type for serialization /// - public class InputInlineQueryResultAnimation : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Title of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// MIME type of the video thumbnail. If non-empty, must be one of "image/jpeg", "image/gif" and "video/mp4" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_mime_type")] - public string ThumbnailMimeType { get; set; } + /// + /// MIME type of the video thumbnail. If non-empty, must be one of "image/jpeg", "image/gif" and "video/mp4" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_mime_type")] + public string ThumbnailMimeType { get; set; } - /// - /// The URL of the video file (file size must not exceed 1MB) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_url")] - public string VideoUrl { get; set; } + /// + /// The URL of the video file (file size must not exceed 1MB) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_url")] + public string VideoUrl { get; set; } - /// - /// MIME type of the video file. Must be one of "image/gif" and "video/mp4" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_mime_type")] - public string VideoMimeType { get; set; } + /// + /// MIME type of the video file. Must be one of "image/gif" and "video/mp4" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_mime_type")] + public string VideoMimeType { get; set; } - /// - /// Duration of the video, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_duration")] - public int VideoDuration { get; set; } + /// + /// Duration of the video, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_duration")] + public int VideoDuration { get; set; } - /// - /// Width of the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_width")] - public int VideoWidth { get; set; } + /// + /// Width of the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_width")] + public int VideoWidth { get; set; } - /// - /// Height of the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_height")] - public int VideoHeight { get; set; } + /// + /// Height of the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_height")] + public int VideoHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageAnimation, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageAnimation, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultArticle.cs b/TdLib.Api/Objects/InputInlineQueryResultArticle.cs index cf030128..5e2cfb16 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultArticle.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultArticle.cs @@ -2,95 +2,94 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a link to an article or web page + /// + public class InputInlineQueryResultArticle : InputInlineQueryResult { /// - /// Represents a link to an article or web page + /// Data type for serialization /// - public class InputInlineQueryResultArticle : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultArticle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultArticle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// URL of the result, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the result, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Title of the result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// URL of the result thumbnail, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// URL of the result thumbnail, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// Thumbnail width, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_width")] - public int ThumbnailWidth { get; set; } + /// + /// Thumbnail width, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_width")] + public int ThumbnailWidth { get; set; } - /// - /// Thumbnail height, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_height")] - public int ThumbnailHeight { get; set; } + /// + /// Thumbnail height, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_height")] + public int ThumbnailHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultAudio.cs b/TdLib.Api/Objects/InputInlineQueryResultAudio.cs index 9c2fe21e..2bf5e30f 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultAudio.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultAudio.cs @@ -2,81 +2,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a link to an MP3 audio file + /// + public class InputInlineQueryResultAudio : InputInlineQueryResult { /// - /// Represents a link to an MP3 audio file + /// Data type for serialization /// - public class InputInlineQueryResultAudio : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Title of the audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Performer of the audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("performer")] - public string Performer { get; set; } + /// + /// Performer of the audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("performer")] + public string Performer { get; set; } - /// - /// The URL of the audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio_url")] - public string AudioUrl { get; set; } + /// + /// The URL of the audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio_url")] + public string AudioUrl { get; set; } - /// - /// Audio file duration, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio_duration")] - public int AudioDuration { get; set; } + /// + /// Audio file duration, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio_duration")] + public int AudioDuration { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageAudio, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageAudio, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultContact.cs b/TdLib.Api/Objects/InputInlineQueryResultContact.cs index 27d4f40d..9972cecb 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultContact.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultContact.cs @@ -2,81 +2,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a user contact + /// + public class InputInlineQueryResultContact : InputInlineQueryResult { /// - /// Represents a user contact + /// Data type for serialization /// - public class InputInlineQueryResultContact : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultContact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// User contact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contact")] - public Contact Contact { get; set; } + /// + /// User contact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contact")] + public Contact Contact { get; set; } - /// - /// URL of the result thumbnail, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// URL of the result thumbnail, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// Thumbnail width, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_width")] - public int ThumbnailWidth { get; set; } + /// + /// Thumbnail width, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_width")] + public int ThumbnailWidth { get; set; } - /// - /// Thumbnail height, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_height")] - public int ThumbnailHeight { get; set; } + /// + /// Thumbnail height, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_height")] + public int ThumbnailHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultDocument.cs b/TdLib.Api/Objects/InputInlineQueryResultDocument.cs index a6d8ee35..cc9e4cfd 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultDocument.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultDocument.cs @@ -2,102 +2,101 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a link to a file + /// + public class InputInlineQueryResultDocument : InputInlineQueryResult { /// - /// Represents a link to a file + /// Data type for serialization /// - public class InputInlineQueryResultDocument : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Title of the resulting file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the resulting file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// URL of the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document_url")] - public string DocumentUrl { get; set; } + /// + /// URL of the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document_url")] + public string DocumentUrl { get; set; } - /// - /// MIME type of the file content; only "application/pdf" and "application/zip" are currently allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the file content; only "application/pdf" and "application/zip" are currently allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// The URL of the file thumbnail, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// The URL of the file thumbnail, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// Width of the thumbnail - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_width")] - public int ThumbnailWidth { get; set; } + /// + /// Width of the thumbnail + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_width")] + public int ThumbnailWidth { get; set; } - /// - /// Height of the thumbnail - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_height")] - public int ThumbnailHeight { get; set; } + /// + /// Height of the thumbnail + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_height")] + public int ThumbnailHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageDocument, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageDocument, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultGame.cs b/TdLib.Api/Objects/InputInlineQueryResultGame.cs index 1efbcfb5..1c1a01a1 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultGame.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultGame.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a game + /// + public class InputInlineQueryResultGame : InputInlineQueryResult { /// - /// Represents a game + /// Data type for serialization /// - public class InputInlineQueryResultGame : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Short name of the game - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("game_short_name")] - public string GameShortName { get; set; } + /// + /// Short name of the game + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("game_short_name")] + public string GameShortName { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultLocation.cs b/TdLib.Api/Objects/InputInlineQueryResultLocation.cs index d12b31ed..a808e9e3 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultLocation.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultLocation.cs @@ -2,95 +2,94 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a point on the map + /// + public class InputInlineQueryResultLocation : InputInlineQueryResult { /// - /// Represents a point on the map + /// Data type for serialization /// - public class InputInlineQueryResultLocation : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Location result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// Location result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Amount of time relative to the message sent time until the location can be updated, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("live_period")] - public int LivePeriod { get; set; } + /// + /// Amount of time relative to the message sent time until the location can be updated, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("live_period")] + public int LivePeriod { get; set; } - /// - /// Title of the result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// URL of the result thumbnail, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// URL of the result thumbnail, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// Thumbnail width, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_width")] - public int ThumbnailWidth { get; set; } + /// + /// Thumbnail width, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_width")] + public int ThumbnailWidth { get; set; } - /// - /// Thumbnail height, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_height")] - public int ThumbnailHeight { get; set; } + /// + /// Thumbnail height, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_height")] + public int ThumbnailHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultPhoto.cs b/TdLib.Api/Objects/InputInlineQueryResultPhoto.cs index 39b8d244..4f607ace 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultPhoto.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultPhoto.cs @@ -2,95 +2,94 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents link to a JPEG image + /// + public class InputInlineQueryResultPhoto : InputInlineQueryResult { /// - /// Represents link to a JPEG image + /// Data type for serialization /// - public class InputInlineQueryResultPhoto : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Title of the result, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the result, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// URL of the photo thumbnail, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// URL of the photo thumbnail, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// The URL of the JPEG photo (photo size must not exceed 5MB) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_url")] - public string PhotoUrl { get; set; } + /// + /// The URL of the JPEG photo (photo size must not exceed 5MB) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_url")] + public string PhotoUrl { get; set; } - /// - /// Width of the photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_width")] - public int PhotoWidth { get; set; } + /// + /// Width of the photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_width")] + public int PhotoWidth { get; set; } - /// - /// Height of the photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_height")] - public int PhotoHeight { get; set; } + /// + /// Height of the photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_height")] + public int PhotoHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessagePhoto, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessagePhoto, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultSticker.cs b/TdLib.Api/Objects/InputInlineQueryResultSticker.cs index 3adfb5b1..250089d6 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultSticker.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultSticker.cs @@ -2,81 +2,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a link to a WEBP, TGS, or WEBM sticker + /// + public class InputInlineQueryResultSticker : InputInlineQueryResult { /// - /// Represents a link to a WEBP, TGS, or WEBM sticker + /// Data type for serialization /// - public class InputInlineQueryResultSticker : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// URL of the sticker thumbnail, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// URL of the sticker thumbnail, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// The URL of the WEBP, TGS, or WEBM sticker (sticker file size must not exceed 5MB) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_url")] - public string StickerUrl { get; set; } + /// + /// The URL of the WEBP, TGS, or WEBM sticker (sticker file size must not exceed 5MB) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_url")] + public string StickerUrl { get; set; } - /// - /// Width of the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_width")] - public int StickerWidth { get; set; } + /// + /// Width of the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_width")] + public int StickerWidth { get; set; } - /// - /// Height of the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_height")] - public int StickerHeight { get; set; } + /// + /// Height of the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_height")] + public int StickerHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageSticker, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageSticker, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultVenue.cs b/TdLib.Api/Objects/InputInlineQueryResultVenue.cs index 7834cd61..6520d53d 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultVenue.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultVenue.cs @@ -2,81 +2,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents information about a venue + /// + public class InputInlineQueryResultVenue : InputInlineQueryResult { /// - /// Represents information about a venue + /// Data type for serialization /// - public class InputInlineQueryResultVenue : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Venue result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue")] - public Venue Venue { get; set; } + /// + /// Venue result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue")] + public Venue Venue { get; set; } - /// - /// URL of the result thumbnail, if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// URL of the result thumbnail, if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// Thumbnail width, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_width")] - public int ThumbnailWidth { get; set; } + /// + /// Thumbnail width, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_width")] + public int ThumbnailWidth { get; set; } - /// - /// Thumbnail height, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_height")] - public int ThumbnailHeight { get; set; } + /// + /// Thumbnail height, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_height")] + public int ThumbnailHeight { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultVideo.cs b/TdLib.Api/Objects/InputInlineQueryResultVideo.cs index c2ceab0b..368081a7 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultVideo.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultVideo.cs @@ -2,109 +2,108 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a link to a page containing an embedded video player or a video file + /// + public class InputInlineQueryResultVideo : InputInlineQueryResult { /// - /// Represents a link to a page containing an embedded video player or a video file + /// Data type for serialization /// - public class InputInlineQueryResultVideo : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Title of the result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// The URL of the video thumbnail (JPEG), if it exists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_url")] - public string ThumbnailUrl { get; set; } + /// + /// The URL of the video thumbnail (JPEG), if it exists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_url")] + public string ThumbnailUrl { get; set; } - /// - /// URL of the embedded video player or video file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_url")] - public string VideoUrl { get; set; } + /// + /// URL of the embedded video player or video file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_url")] + public string VideoUrl { get; set; } - /// - /// MIME type of the content of the video URL, only "text/html" or "video/mp4" are currently supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the content of the video URL, only "text/html" or "video/mp4" are currently supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// Width of the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_width")] - public int VideoWidth { get; set; } + /// + /// Width of the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_width")] + public int VideoWidth { get; set; } - /// - /// Height of the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_height")] - public int VideoHeight { get; set; } + /// + /// Height of the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_height")] + public int VideoHeight { get; set; } - /// - /// Video duration, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_duration")] - public int VideoDuration { get; set; } + /// + /// Video duration, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_duration")] + public int VideoDuration { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageVideo, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageVideo, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInlineQueryResultVoiceNote.cs b/TdLib.Api/Objects/InputInlineQueryResultVoiceNote.cs index f7c53bfa..582f1584 100644 --- a/TdLib.Api/Objects/InputInlineQueryResultVoiceNote.cs +++ b/TdLib.Api/Objects/InputInlineQueryResultVoiceNote.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInlineQueryResult : Object { - public partial class InputInlineQueryResult : Object + /// + /// Represents a link to an opus-encoded audio file within an OGG container, single channel audio + /// + public class InputInlineQueryResultVoiceNote : InputInlineQueryResult { /// - /// Represents a link to an opus-encoded audio file within an OGG container, single channel audio + /// Data type for serialization /// - public class InputInlineQueryResultVoiceNote : InputInlineQueryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInlineQueryResultVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInlineQueryResultVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Title of the voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// The URL of the voice note file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note_url")] - public string VoiceNoteUrl { get; set; } + /// + /// The URL of the voice note file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note_url")] + public string VoiceNoteUrl { get; set; } - /// - /// Duration of the voice note, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note_duration")] - public int VoiceNoteDuration { get; set; } + /// + /// Duration of the voice note, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note_duration")] + public int VoiceNoteDuration { get; set; } - /// - /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } + /// + /// The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } - /// - /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageVoiceNote, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_message_content")] - public InputMessageContent InputMessageContent { get; set; } - } + /// + /// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageRichMessage, inputMessageVoiceNote, inputMessageInvoice, inputMessageLiveLocation, inputMessageLocation, inputMessageVenue or inputMessageContact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_message_content")] + public InputMessageContent InputMessageContent { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInvoiceMessage.cs b/TdLib.Api/Objects/InputInvoiceMessage.cs index 4e06cc6c..6267be09 100644 --- a/TdLib.Api/Objects/InputInvoiceMessage.cs +++ b/TdLib.Api/Objects/InputInvoiceMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInvoice : Object { - public partial class InputInvoice : Object + /// + /// Describes an invoice to process + /// + public class InputInvoiceMessage : InputInvoice { /// - /// Describes an invoice to process + /// Data type for serialization /// - public class InputInvoiceMessage : InputInvoice - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInvoiceMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInvoiceMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier. Use messageProperties.can_be_paid to check whether the message can be used in the method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Message identifier. Use messageProperties.can_be_paid to check whether the message can be used in the method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInvoiceName.cs b/TdLib.Api/Objects/InputInvoiceName.cs index caf14439..c336f982 100644 --- a/TdLib.Api/Objects/InputInvoiceName.cs +++ b/TdLib.Api/Objects/InputInvoiceName.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInvoice : Object { - public partial class InputInvoice : Object + /// + /// An invoice from a link of the type internalLinkTypeInvoice + /// + public class InputInvoiceName : InputInvoice { /// - /// An invoice from a link of the type internalLinkTypeInvoice + /// Data type for serialization /// - public class InputInvoiceName : InputInvoice - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInvoiceName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInvoiceName"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/InputInvoiceTelegram.cs b/TdLib.Api/Objects/InputInvoiceTelegram.cs index 3fc1a39b..e28b4c8d 100644 --- a/TdLib.Api/Objects/InputInvoiceTelegram.cs +++ b/TdLib.Api/Objects/InputInvoiceTelegram.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputInvoice : Object { - public partial class InputInvoice : Object + /// + /// An invoice for a payment toward Telegram; must not be used in the in-store apps + /// + public class InputInvoiceTelegram : InputInvoice { /// - /// An invoice for a payment toward Telegram; must not be used in the in-store apps + /// Data type for serialization /// - public class InputInvoiceTelegram : InputInvoice - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputInvoiceTelegram"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputInvoiceTelegram"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Transaction purpose - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("purpose")] - public TelegramPaymentPurpose Purpose { get; set; } - } + /// + /// Transaction purpose + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("purpose")] + public TelegramPaymentPurpose Purpose { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageAnimation.cs b/TdLib.Api/Objects/InputMessageAnimation.cs index a03bc510..dbd6bb11 100644 --- a/TdLib.Api/Objects/InputMessageAnimation.cs +++ b/TdLib.Api/Objects/InputMessageAnimation.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// An animation message (GIF-style). + /// + public class InputMessageAnimation : InputMessageContent { /// - /// An animation message (GIF-style). + /// Data type for serialization /// - public class InputMessageAnimation : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animation to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public InputAnimation Animation { get; set; } + /// + /// The animation to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public InputAnimation Animation { get; set; } - /// - /// Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } + /// + /// True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } - /// - /// True, if the animation preview must be covered by a spoiler animation; not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the animation preview must be covered by a spoiler animation; not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageAudio.cs b/TdLib.Api/Objects/InputMessageAudio.cs index ea7100ee..35828530 100644 --- a/TdLib.Api/Objects/InputMessageAudio.cs +++ b/TdLib.Api/Objects/InputMessageAudio.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// An audio message + /// + public class InputMessageAudio : InputMessageContent { /// - /// An audio message + /// Data type for serialization /// - public class InputMessageAudio : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Audio to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public InputAudio Audio { get; set; } + /// + /// Audio to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public InputAudio Audio { get; set; } - /// - /// Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } - } + /// + /// Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageChecklist.cs b/TdLib.Api/Objects/InputMessageChecklist.cs index 32e0100a..db7013b0 100644 --- a/TdLib.Api/Objects/InputMessageChecklist.cs +++ b/TdLib.Api/Objects/InputMessageChecklist.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with a checklist. Checklists can't be sent to secret chats, channel chats and channel direct messages chats; for Telegram Premium users only + /// + public class InputMessageChecklist : InputMessageContent { /// - /// A message with a checklist. Checklists can't be sent to secret chats, channel chats and channel direct messages chats; for Telegram Premium users only + /// Data type for serialization /// - public class InputMessageChecklist : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageChecklist"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageChecklist"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The checklist to send - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist")] - public InputChecklist Checklist { get; set; } - } + /// + /// The checklist to send + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist")] + public InputChecklist Checklist { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageContact.cs b/TdLib.Api/Objects/InputMessageContact.cs index f39dc07f..e00e55f0 100644 --- a/TdLib.Api/Objects/InputMessageContact.cs +++ b/TdLib.Api/Objects/InputMessageContact.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message containing a user contact + /// + public class InputMessageContact : InputMessageContent { /// - /// A message containing a user contact + /// Data type for serialization /// - public class InputMessageContact : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageContact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Contact to send - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contact")] - public Contact Contact { get; set; } - } + /// + /// Contact to send + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contact")] + public Contact Contact { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageDice.cs b/TdLib.Api/Objects/InputMessageDice.cs index 2f8b342d..9c1f84a7 100644 --- a/TdLib.Api/Objects/InputMessageDice.cs +++ b/TdLib.Api/Objects/InputMessageDice.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A dice message + /// + public class InputMessageDice : InputMessageContent { /// - /// A dice message + /// Data type for serialization /// - public class InputMessageDice : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageDice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageDice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Emoji on which the dice throw animation is based - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Emoji on which the dice throw animation is based + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// Pass true to delete message draft in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("clear_draft")] - public bool ClearDraft { get; set; } - } + /// + /// Pass true to delete message draft in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("clear_draft")] + public bool ClearDraft { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageDocument.cs b/TdLib.Api/Objects/InputMessageDocument.cs index 024b9c4d..c70eb6dd 100644 --- a/TdLib.Api/Objects/InputMessageDocument.cs +++ b/TdLib.Api/Objects/InputMessageDocument.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A document message (general file) + /// + public class InputMessageDocument : InputMessageContent { /// - /// A document message (general file) + /// Data type for serialization /// - public class InputMessageDocument : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Document to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public InputDocument Document { get; set; } + /// + /// Document to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public InputDocument Document { get; set; } - /// - /// Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } - } + /// + /// Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageForwarded.cs b/TdLib.Api/Objects/InputMessageForwarded.cs index 4b059824..bb081375 100644 --- a/TdLib.Api/Objects/InputMessageForwarded.cs +++ b/TdLib.Api/Objects/InputMessageForwarded.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A forwarded message + /// + public class InputMessageForwarded : InputMessageContent { /// - /// A forwarded message + /// Data type for serialization /// - public class InputMessageForwarded : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageForwarded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageForwarded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier for the chat this forwarded message came from - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_chat_id")] - public long FromChatId { get; set; } + /// + /// Identifier for the chat this forwarded message came from + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_chat_id")] + public long FromChatId { get; set; } - /// - /// Identifier of the message to forward. A message can be forwarded only if messageProperties.can_be_forwarded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the message to forward. A message can be forwarded only if messageProperties.can_be_forwarded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Pass true if a game message is being shared from a launched game; applies only to game messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("in_game_share")] - public bool InGameShare { get; set; } + /// + /// Pass true if a game message is being shared from a launched game; applies only to game messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("in_game_share")] + public bool InGameShare { get; set; } - /// - /// Pass true to replace video start timestamp in the forwarded message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("replace_video_start_timestamp")] - public bool ReplaceVideoStartTimestamp { get; set; } + /// + /// Pass true to replace video start timestamp in the forwarded message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("replace_video_start_timestamp")] + public bool ReplaceVideoStartTimestamp { get; set; } - /// - /// The new video start timestamp; ignored if replace_video_start_timestamp == false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_video_start_timestamp")] - public int NewVideoStartTimestamp { get; set; } + /// + /// The new video start timestamp; ignored if replace_video_start_timestamp == false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_video_start_timestamp")] + public int NewVideoStartTimestamp { get; set; } - /// - /// Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("copy_options")] - public MessageCopyOptions CopyOptions { get; set; } - } + /// + /// Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("copy_options")] + public MessageCopyOptions CopyOptions { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageGame.cs b/TdLib.Api/Objects/InputMessageGame.cs index 6f0ba9d2..f22de49a 100644 --- a/TdLib.Api/Objects/InputMessageGame.cs +++ b/TdLib.Api/Objects/InputMessageGame.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with a game; not supported for channels or secret chats + /// + public class InputMessageGame : InputMessageContent { /// - /// A message with a game; not supported for channels or secret chats + /// Data type for serialization /// - public class InputMessageGame : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the bot that owns the game - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of the bot that owns the game + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Short name of the game - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("game_short_name")] - public string GameShortName { get; set; } - } + /// + /// Short name of the game + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("game_short_name")] + public string GameShortName { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageInvoice.cs b/TdLib.Api/Objects/InputMessageInvoice.cs index 2dcdb5e9..e7ba55f1 100644 --- a/TdLib.Api/Objects/InputMessageInvoice.cs +++ b/TdLib.Api/Objects/InputMessageInvoice.cs @@ -2,123 +2,122 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with an invoice; can be used only by bots + /// + public class InputMessageInvoice : InputMessageContent { /// - /// A message with an invoice; can be used only by bots + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageInvoice"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice")] + public Invoice Invoice { get; set; } + + /// + /// Product title; 1-32 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } + + /// + /// Product photo URL; optional + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_url")] + public string PhotoUrl { get; set; } + + /// + /// Product photo size + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_size")] + public int PhotoSize { get; set; } + + /// + /// Product photo width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_width")] + public int PhotoWidth { get; set; } + + /// + /// Product photo height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_height")] + public int PhotoHeight { get; set; } + + /// + /// The invoice payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public byte[] Payload { get; set; } + + /// + /// Payment provider token; may be empty for payments in Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_token")] + public string ProviderToken { get; set; } + + /// + /// JSON-encoded data about the invoice, which will be shared with the payment provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_data")] + public string ProviderData { get; set; } + + /// + /// Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } + + /// + /// The content of paid media attached to the invoice; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_media")] + public InputPaidMedia PaidMedia { get; set; } + + /// + /// Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters /// - public class InputMessageInvoice : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageInvoice"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice")] - public Invoice Invoice { get; set; } - - /// - /// Product title; 1-32 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - - /// - /// Product photo URL; optional - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_url")] - public string PhotoUrl { get; set; } - - /// - /// Product photo size - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_size")] - public int PhotoSize { get; set; } - - /// - /// Product photo width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_width")] - public int PhotoWidth { get; set; } - - /// - /// Product photo height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_height")] - public int PhotoHeight { get; set; } - - /// - /// The invoice payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public byte[] Payload { get; set; } - - /// - /// Payment provider token; may be empty for payments in Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("provider_token")] - public string ProviderToken { get; set; } - - /// - /// JSON-encoded data about the invoice, which will be shared with the payment provider - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("provider_data")] - public string ProviderData { get; set; } - - /// - /// Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } - - /// - /// The content of paid media attached to the invoice; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_media")] - public InputPaidMedia PaidMedia { get; set; } - - /// - /// Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_media_caption")] - public FormattedText PaidMediaCaption { get; set; } - } + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_media_caption")] + public FormattedText PaidMediaCaption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageLiveLocation.cs b/TdLib.Api/Objects/InputMessageLiveLocation.cs index f93b999d..5eba478b 100644 --- a/TdLib.Api/Objects/InputMessageLiveLocation.cs +++ b/TdLib.Api/Objects/InputMessageLiveLocation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with a live location + /// + public class InputMessageLiveLocation : InputMessageContent { /// - /// A message with a live location + /// Data type for serialization /// - public class InputMessageLiveLocation : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageLiveLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageLiveLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Initial state of the live location to be sent. Live period must be equal to 0x7FFFFFFF for permanent live locations, or between 60 and 86400 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public LiveLocation Location { get; set; } - } + /// + /// Initial state of the live location to be sent. Live period must be equal to 0x7FFFFFFF for permanent live locations, or between 60 and 86400 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public LiveLocation Location { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageLocation.cs b/TdLib.Api/Objects/InputMessageLocation.cs index 540ab4f6..f3d36d19 100644 --- a/TdLib.Api/Objects/InputMessageLocation.cs +++ b/TdLib.Api/Objects/InputMessageLocation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with a location + /// + public class InputMessageLocation : InputMessageContent { /// - /// A message with a location + /// Data type for serialization /// - public class InputMessageLocation : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Location to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } - } + /// + /// Location to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessagePaidMedia.cs b/TdLib.Api/Objects/InputMessagePaidMedia.cs index ecc93aff..85c10baf 100644 --- a/TdLib.Api/Objects/InputMessagePaidMedia.cs +++ b/TdLib.Api/Objects/InputMessagePaidMedia.cs @@ -2,66 +2,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed + /// + public class InputMessagePaidMedia : InputMessageContent { /// - /// A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed + /// Data type for serialization /// - public class InputMessagePaidMedia : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessagePaidMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessagePaidMedia"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// The content of the paid media - /// - [JsonProperty("paid_media", ItemConverterType = typeof(Converter))] - public InputPaidMedia[] PaidMedia { get; set; } + /// + /// The content of the paid media + /// + [JsonProperty("paid_media", ItemConverterType = typeof(Converter))] + public InputPaidMedia[] PaidMedia { get; set; } - /// - /// Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } + /// + /// True, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } - /// - /// Bot-provided data for the paid media; bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } - } + /// + /// Bot-provided data for the paid media; bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessagePhoto.cs b/TdLib.Api/Objects/InputMessagePhoto.cs index 2b9be2e9..6a0c73df 100644 --- a/TdLib.Api/Objects/InputMessagePhoto.cs +++ b/TdLib.Api/Objects/InputMessagePhoto.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A photo message + /// + public class InputMessagePhoto : InputMessageContent { /// - /// A photo message + /// Data type for serialization /// - public class InputMessagePhoto : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessagePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessagePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputPhoto Photo { get; set; } + /// + /// Photo to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputPhoto Photo { get; set; } - /// - /// Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo; not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } + /// + /// True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo; not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } - /// - /// Photo self-destruct type; pass null if none; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_type")] - public MessageSelfDestructType SelfDestructType { get; set; } + /// + /// Photo self-destruct type; pass null if none; private chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_type")] + public MessageSelfDestructType SelfDestructType { get; set; } - /// - /// True, if the photo preview must be covered by a spoiler animation; not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the photo preview must be covered by a spoiler animation; not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessagePoll.cs b/TdLib.Api/Objects/InputMessagePoll.cs index 1162797b..be5037f7 100644 --- a/TdLib.Api/Objects/InputMessagePoll.cs +++ b/TdLib.Api/Objects/InputMessagePoll.cs @@ -2,136 +2,135 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with a poll. Polls can't be sent to secret chats and channel direct messages chats. Polls can be sent to a private chat only if the chat is a chat with a bot or the Saved Messages chat + /// + public class InputMessagePoll : InputMessageContent { /// - /// A message with a poll. Polls can't be sent to secret chats and channel direct messages chats. Polls can be sent to a private chat only if the chat is a chat with a bot or the Saved Messages chat - /// - public class InputMessagePoll : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessagePoll"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Poll question; 1-255 characters (up to 300 characters for bots). Only custom emoji entities are allowed to be added and only by Premium users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("question")] - public FormattedText Question { get; set; } - - /// - /// List of poll answer options; 1-getOption("poll_answer_count_max") options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public InputPollOption[] Options { get; set; } - - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public FormattedText Description { get; set; } - - /// - /// Media attached to the poll; pass null if none. Must be one of the following types: inputPollMediaAnimation, inputPollMediaAudio, inputPollMediaDocument, inputPollMediaLocation, - /// inputPollMediaPhoto, inputPollMediaVenue, or inputPollMediaVideo without caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media")] - public InputPollMedia Media { get; set; } - - /// - /// True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_anonymous")] - public bool IsAnonymous { get; set; } - - /// - /// True, if multiple answer options can be chosen simultaneously - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allows_multiple_answers")] - public bool AllowsMultipleAnswers { get; set; } - - /// - /// True, if the poll can be answered multiple times - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allows_revoting")] - public bool AllowsRevoting { get; set; } - - /// - /// True, if only the users that are members of the chat for more than a day will be able to vote; for channel chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("members_only")] - public bool MembersOnly { get; set; } - - /// - /// The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be able to vote; for channel chats only. If empty, then all users can participate in the poll. - /// - [JsonProperty("country_codes", ItemConverterType = typeof(Converter))] - public string[] CountryCodes { get; set; } - - /// - /// True, if poll options must be shown in a fixed random order - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shuffle_options")] - public bool ShuffleOptions { get; set; } - - /// - /// True, if the poll results will appear only after the poll closes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hide_results_until_closes")] - public bool HideResultsUntilCloses { get; set; } - - /// - /// Type of the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InputPollType Type { get; set; } - - /// - /// Amount of time the poll will be active after creation, in seconds; 0-getOption("poll_open_period_max"); pass 0 if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("open_period")] - public int OpenPeriod { get; set; } - - /// - /// Point in time (Unix timestamp) when the poll will automatically be closed; must be 0-getOption("poll_open_period_max") seconds in the future; pass 0 if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("close_date")] - public int CloseDate { get; set; } - - /// - /// True, if the poll needs to be sent already closed; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_closed")] - public bool IsClosed { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessagePoll"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Poll question; 1-255 characters (up to 300 characters for bots). Only custom emoji entities are allowed to be added and only by Premium users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("question")] + public FormattedText Question { get; set; } + + /// + /// List of poll answer options; 1-getOption("poll_answer_count_max") options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public InputPollOption[] Options { get; set; } + + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public FormattedText Description { get; set; } + + /// + /// Media attached to the poll; pass null if none. Must be one of the following types: inputPollMediaAnimation, inputPollMediaAudio, inputPollMediaDocument, inputPollMediaLocation, + /// inputPollMediaPhoto, inputPollMediaVenue, or inputPollMediaVideo without caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media")] + public InputPollMedia Media { get; set; } + + /// + /// True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_anonymous")] + public bool IsAnonymous { get; set; } + + /// + /// True, if multiple answer options can be chosen simultaneously + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allows_multiple_answers")] + public bool AllowsMultipleAnswers { get; set; } + + /// + /// True, if the poll can be answered multiple times + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allows_revoting")] + public bool AllowsRevoting { get; set; } + + /// + /// True, if only the users that are members of the chat for more than a day will be able to vote; for channel chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("members_only")] + public bool MembersOnly { get; set; } + + /// + /// The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be able to vote; for channel chats only. If empty, then all users can participate in the poll. + /// + [JsonProperty("country_codes", ItemConverterType = typeof(Converter))] + public string[] CountryCodes { get; set; } + + /// + /// True, if poll options must be shown in a fixed random order + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shuffle_options")] + public bool ShuffleOptions { get; set; } + + /// + /// True, if the poll results will appear only after the poll closes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hide_results_until_closes")] + public bool HideResultsUntilCloses { get; set; } + + /// + /// Type of the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InputPollType Type { get; set; } + + /// + /// Amount of time the poll will be active after creation, in seconds; 0-getOption("poll_open_period_max"); pass 0 if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("open_period")] + public int OpenPeriod { get; set; } + + /// + /// Point in time (Unix timestamp) when the poll will automatically be closed; must be 0-getOption("poll_open_period_max") seconds in the future; pass 0 if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("close_date")] + public int CloseDate { get; set; } + + /// + /// True, if the poll needs to be sent already closed; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_closed")] + public bool IsClosed { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageReplyToEphemeralMessage.cs b/TdLib.Api/Objects/InputMessageReplyToEphemeralMessage.cs index 07ec2adf..2952ed71 100644 --- a/TdLib.Api/Objects/InputMessageReplyToEphemeralMessage.cs +++ b/TdLib.Api/Objects/InputMessageReplyToEphemeralMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageReplyTo : Object { - public partial class InputMessageReplyTo : Object + /// + /// Describes an ephemeral message to be replied; for bots only + /// + public class InputMessageReplyToEphemeralMessage : InputMessageReplyTo { /// - /// Describes an ephemeral message to be replied; for bots only + /// Data type for serialization /// - public class InputMessageReplyToEphemeralMessage : InputMessageReplyTo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageReplyToEphemeralMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageReplyToEphemeralMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the ephemeral message to be replied - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ephemeral_message_id")] - public int EphemeralMessageId { get; set; } - } + /// + /// The identifier of the ephemeral message to be replied + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ephemeral_message_id")] + public int EphemeralMessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageReplyToExternalMessage.cs b/TdLib.Api/Objects/InputMessageReplyToExternalMessage.cs index 0c376edb..376e6770 100644 --- a/TdLib.Api/Objects/InputMessageReplyToExternalMessage.cs +++ b/TdLib.Api/Objects/InputMessageReplyToExternalMessage.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageReplyTo : Object { - public partial class InputMessageReplyTo : Object + /// + /// Describes a message to be replied that is from a different chat or a forum topic; not supported in secret chats + /// + public class InputMessageReplyToExternalMessage : InputMessageReplyTo { /// - /// Describes a message to be replied that is from a different chat or a forum topic; not supported in secret chats + /// Data type for serialization /// - public class InputMessageReplyToExternalMessage : InputMessageReplyTo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageReplyToExternalMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageReplyToExternalMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the chat to which the message to be replied belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// The identifier of the chat to which the message to be replied belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The identifier of the message to be replied in the specified chat. A message can be replied in another chat or forum topic only if messageProperties.can_be_replied_in_another_chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The identifier of the message to be replied in the specified chat. A message can be replied in another chat or forum topic only if messageProperties.can_be_replied_in_another_chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Quote from the message to be replied; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("quote")] - public InputTextQuote Quote { get; set; } + /// + /// Quote from the message to be replied; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("quote")] + public InputTextQuote Quote { get; set; } - /// - /// Identifier of the checklist task in the message to be replied; pass 0 to reply to the whole message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist_task_id")] - public int ChecklistTaskId { get; set; } + /// + /// Identifier of the checklist task in the message to be replied; pass 0 to reply to the whole message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist_task_id")] + public int ChecklistTaskId { get; set; } - /// - /// Identifier of the poll option in the message to be replied; pass an empty string if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_option_id")] - public string PollOptionId { get; set; } - } + /// + /// Identifier of the poll option in the message to be replied; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_option_id")] + public string PollOptionId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageReplyToMessage.cs b/TdLib.Api/Objects/InputMessageReplyToMessage.cs index 3c24f245..27995455 100644 --- a/TdLib.Api/Objects/InputMessageReplyToMessage.cs +++ b/TdLib.Api/Objects/InputMessageReplyToMessage.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageReplyTo : Object { - public partial class InputMessageReplyTo : Object + /// + /// Contains information about the message or the story to be replied + /// + public class InputMessageReplyToMessage : InputMessageReplyTo { /// - /// Contains information about the message or the story to be replied + /// Data type for serialization /// - public class InputMessageReplyToMessage : InputMessageReplyTo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageReplyToMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageReplyToMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the message to be replied in the same chat and forum topic. A message can be replied in the same chat and forum topic only if messageProperties.can_be_replied - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The identifier of the message to be replied in the same chat and forum topic. A message can be replied in the same chat and forum topic only if messageProperties.can_be_replied + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Quote from the message to be replied; pass null if none. Must always be null for replies in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("quote")] - public InputTextQuote Quote { get; set; } + /// + /// Quote from the message to be replied; pass null if none. Must always be null for replies in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("quote")] + public InputTextQuote Quote { get; set; } - /// - /// Identifier of the checklist task in the message to be replied; pass 0 to reply to the whole message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist_task_id")] - public int ChecklistTaskId { get; set; } + /// + /// Identifier of the checklist task in the message to be replied; pass 0 to reply to the whole message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist_task_id")] + public int ChecklistTaskId { get; set; } - /// - /// Identifier of the poll option in the message to be replied; pass an empty string if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_option_id")] - public string PollOptionId { get; set; } - } + /// + /// Identifier of the poll option in the message to be replied; pass an empty string if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_option_id")] + public string PollOptionId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageReplyToStory.cs b/TdLib.Api/Objects/InputMessageReplyToStory.cs index 6cb23653..a8fde289 100644 --- a/TdLib.Api/Objects/InputMessageReplyToStory.cs +++ b/TdLib.Api/Objects/InputMessageReplyToStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageReplyTo : Object { - public partial class InputMessageReplyTo : Object + /// + /// Describes a story to be replied + /// + public class InputMessageReplyToStory : InputMessageReplyTo { /// - /// Describes a story to be replied + /// Data type for serialization /// - public class InputMessageReplyToStory : InputMessageReplyTo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageReplyToStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageReplyToStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the poster of the story. Currently, stories can be replied only in the chat that posted the story; channel stories can't be replied - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// The identifier of the poster of the story. Currently, stories can be replied only in the chat that posted the story; channel stories can't be replied + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// The identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// The identifier of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageRichMessage.cs b/TdLib.Api/Objects/InputMessageRichMessage.cs index 9d1cfd74..c1fa6937 100644 --- a/TdLib.Api/Objects/InputMessageRichMessage.cs +++ b/TdLib.Api/Objects/InputMessageRichMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A rich message + /// + public class InputMessageRichMessage : InputMessageContent { /// - /// A rich message + /// Data type for serialization /// - public class InputMessageRichMessage : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageRichMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageRichMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The rich message to send - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public InputRichMessage Message { get; set; } + /// + /// The rich message to send + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public InputRichMessage Message { get; set; } - /// - /// Pass true to delete message draft in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("clear_draft")] - public bool ClearDraft { get; set; } - } + /// + /// Pass true to delete message draft in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("clear_draft")] + public bool ClearDraft { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageStakeDice.cs b/TdLib.Api/Objects/InputMessageStakeDice.cs index 27320c0f..66c435fe 100644 --- a/TdLib.Api/Objects/InputMessageStakeDice.cs +++ b/TdLib.Api/Objects/InputMessageStakeDice.cs @@ -2,54 +2,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A stake dice message + /// + public class InputMessageStakeDice : InputMessageContent { /// - /// A stake dice message + /// Data type for serialization /// - public class InputMessageStakeDice : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageStakeDice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageStakeDice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state_hash")] - public string StateHash { get; set; } + /// + /// Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state_hash")] + public string StateHash { get; set; } - /// - /// The TON Gram amount that will be staked; in the smallest units of the currency. Must be in the range - /// getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("stake_gram_amount")] - public long StakeGramAmount { get; set; } + /// + /// The TON Gram amount that will be staked; in the smallest units of the currency. Must be in the range + /// getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("stake_gram_amount")] + public long StakeGramAmount { get; set; } - /// - /// Pass true to delete message draft in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("clear_draft")] - public bool ClearDraft { get; set; } - } + /// + /// Pass true to delete message draft in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("clear_draft")] + public bool ClearDraft { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageSticker.cs b/TdLib.Api/Objects/InputMessageSticker.cs index 023aef5f..0c763e91 100644 --- a/TdLib.Api/Objects/InputMessageSticker.cs +++ b/TdLib.Api/Objects/InputMessageSticker.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A sticker message + /// + public class InputMessageSticker : InputMessageContent { /// - /// A sticker message + /// Data type for serialization /// - public class InputMessageSticker : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputSticker Sticker { get; set; } + /// + /// Sticker to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputSticker Sticker { get; set; } - /// - /// Emoji used to choose the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } - } + /// + /// Emoji used to choose the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageStory.cs b/TdLib.Api/Objects/InputMessageStory.cs index e1368ab1..d8270fc4 100644 --- a/TdLib.Api/Objects/InputMessageStory.cs +++ b/TdLib.Api/Objects/InputMessageStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with a forwarded story. Stories can't be forwarded to secret chats. A story can be forwarded only if story.can_be_forwarded + /// + public class InputMessageStory : InputMessageContent { /// - /// A message with a forwarded story. Stories can't be forwarded to secret chats. A story can be forwarded only if story.can_be_forwarded + /// Data type for serialization /// - public class InputMessageStory : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageText.cs b/TdLib.Api/Objects/InputMessageText.cs index d586b327..ecd0e842 100644 --- a/TdLib.Api/Objects/InputMessageText.cs +++ b/TdLib.Api/Objects/InputMessageText.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// The content of a message to send + /// + public class InputMessageText : InputMessageContent { /// - /// The content of a message to send + /// Data type for serialization /// - public class InputMessageText : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageText"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Formatted text to be sent; 0-getOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Formatted text to be sent; 0-getOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_preview_options")] - public LinkPreviewOptions LinkPreviewOptions { get; set; } + /// + /// Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link_preview_options")] + public LinkPreviewOptions LinkPreviewOptions { get; set; } - /// - /// Pass true to delete message draft in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("clear_draft")] - public bool ClearDraft { get; set; } - } + /// + /// Pass true to delete message draft in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("clear_draft")] + public bool ClearDraft { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageVenue.cs b/TdLib.Api/Objects/InputMessageVenue.cs index 1ddddba8..ae60baa7 100644 --- a/TdLib.Api/Objects/InputMessageVenue.cs +++ b/TdLib.Api/Objects/InputMessageVenue.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A message with information about a venue + /// + public class InputMessageVenue : InputMessageContent { /// - /// A message with information about a venue + /// Data type for serialization /// - public class InputMessageVenue : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Venue to send - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue")] - public Venue Venue { get; set; } - } + /// + /// Venue to send + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue")] + public Venue Venue { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageVideo.cs b/TdLib.Api/Objects/InputMessageVideo.cs index 12f63582..b532dc9f 100644 --- a/TdLib.Api/Objects/InputMessageVideo.cs +++ b/TdLib.Api/Objects/InputMessageVideo.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A video message + /// + public class InputMessageVideo : InputMessageContent { /// - /// A video message + /// Data type for serialization /// - public class InputMessageVideo : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public InputVideo Video { get; set; } + /// + /// Video to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public InputVideo Video { get; set; } - /// - /// Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } + /// + /// True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } - /// - /// Video self-destruct type; pass null if none; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_type")] - public MessageSelfDestructType SelfDestructType { get; set; } + /// + /// Video self-destruct type; pass null if none; private chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_type")] + public MessageSelfDestructType SelfDestructType { get; set; } - /// - /// True, if the video preview must be covered by a spoiler animation; not supported in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the video preview must be covered by a spoiler animation; not supported in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageVideoNote.cs b/TdLib.Api/Objects/InputMessageVideoNote.cs index 3923c480..55a8ad81 100644 --- a/TdLib.Api/Objects/InputMessageVideoNote.cs +++ b/TdLib.Api/Objects/InputMessageVideoNote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A video note message + /// + public class InputMessageVideoNote : InputMessageContent { /// - /// A video note message + /// Data type for serialization /// - public class InputMessageVideoNote : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video note to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_note")] - public InputVideoNote VideoNote { get; set; } + /// + /// Video note to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_note")] + public InputVideoNote VideoNote { get; set; } - /// - /// Video note self-destruct type; may be null if none; pass null if none; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_type")] - public MessageSelfDestructType SelfDestructType { get; set; } - } + /// + /// Video note self-destruct type; may be null if none; pass null if none; private chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_type")] + public MessageSelfDestructType SelfDestructType { get; set; } } } } diff --git a/TdLib.Api/Objects/InputMessageVoiceNote.cs b/TdLib.Api/Objects/InputMessageVoiceNote.cs index 023df2fd..91e36f0f 100644 --- a/TdLib.Api/Objects/InputMessageVoiceNote.cs +++ b/TdLib.Api/Objects/InputMessageVoiceNote.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputMessageContent : Object { - public partial class InputMessageContent : Object + /// + /// A voice note message + /// + public class InputMessageVoiceNote : InputMessageContent { /// - /// A voice note message + /// Data type for serialization /// - public class InputMessageVoiceNote : InputMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputMessageVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputMessageVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Voice note to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public InputVoiceNote VoiceNote { get; set; } + /// + /// Voice note to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public InputVoiceNote VoiceNote { get; set; } - /// - /// Voice note caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Voice note caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// Voice note self-destruct type; may be null if none; pass null if none; private chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_type")] - public MessageSelfDestructType SelfDestructType { get; set; } - } + /// + /// Voice note self-destruct type; may be null if none; pass null if none; private chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_type")] + public MessageSelfDestructType SelfDestructType { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockAnchor.cs b/TdLib.Api/Objects/InputPageBlockAnchor.cs index 9691125c..3d2ac9c7 100644 --- a/TdLib.Api/Objects/InputPageBlockAnchor.cs +++ b/TdLib.Api/Objects/InputPageBlockAnchor.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// An invisible anchor + /// + public class InputPageBlockAnchor : InputPageBlock { /// - /// An invisible anchor + /// Data type for serialization /// - public class InputPageBlockAnchor : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockAnchor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockAnchor"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the anchor - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the anchor + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockAnimation.cs b/TdLib.Api/Objects/InputPageBlockAnimation.cs index 872033b7..c7cf8270 100644 --- a/TdLib.Api/Objects/InputPageBlockAnimation.cs +++ b/TdLib.Api/Objects/InputPageBlockAnimation.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// An animation + /// + public class InputPageBlockAnimation : InputPageBlock { /// - /// An animation + /// Data type for serialization /// - public class InputPageBlockAnimation : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animation to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public InputAnimation Animation { get; set; } + /// + /// The animation to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public InputAnimation Animation { get; set; } - /// - /// Animation caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } + /// + /// Animation caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } - /// - /// True, if the animation preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the animation preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockAudio.cs b/TdLib.Api/Objects/InputPageBlockAudio.cs index 7c6612f3..a8ca353a 100644 --- a/TdLib.Api/Objects/InputPageBlockAudio.cs +++ b/TdLib.Api/Objects/InputPageBlockAudio.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// An audio file + /// + public class InputPageBlockAudio : InputPageBlock { /// - /// An audio file + /// Data type for serialization /// - public class InputPageBlockAudio : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The audio to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public InputAudio Audio { get; set; } + /// + /// The audio to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public InputAudio Audio { get; set; } - /// - /// Audio file caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Audio file caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockBlockQuote.cs b/TdLib.Api/Objects/InputPageBlockBlockQuote.cs index 0af38fce..46a979a0 100644 --- a/TdLib.Api/Objects/InputPageBlockBlockQuote.cs +++ b/TdLib.Api/Objects/InputPageBlockBlockQuote.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A block quote + /// + public class InputPageBlockBlockQuote : InputPageBlock { /// - /// A block quote + /// Data type for serialization /// - public class InputPageBlockBlockQuote : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockBlockQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockBlockQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Quote blocks - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public InputPageBlock[] Blocks { get; set; } + /// + /// Quote blocks + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public InputPageBlock[] Blocks { get; set; } - /// - /// Quote credit; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credit")] - public RichText Credit { get; set; } - } + /// + /// Quote credit; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credit")] + public RichText Credit { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockButtonRow.cs b/TdLib.Api/Objects/InputPageBlockButtonRow.cs index 2ceb382a..903a2bf9 100644 --- a/TdLib.Api/Objects/InputPageBlockButtonRow.cs +++ b/TdLib.Api/Objects/InputPageBlockButtonRow.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A list of buttons shown in a row + /// + public class InputPageBlockButtonRow : InputPageBlock { /// - /// A list of buttons shown in a row + /// Data type for serialization /// - public class InputPageBlockButtonRow : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockButtonRow"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockButtonRow"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The buttons - /// - [JsonProperty("buttons", ItemConverterType = typeof(Converter))] - public InlineButton[] Buttons { get; set; } + /// + /// The buttons + /// + [JsonProperty("buttons", ItemConverterType = typeof(Converter))] + public InlineButton[] Buttons { get; set; } - /// - /// Horizontal alignment of the buttons; pass null if the buttons must be shown full-width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("align")] - public PageBlockHorizontalAlignment Align { get; set; } - } + /// + /// Horizontal alignment of the buttons; pass null if the buttons must be shown full-width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("align")] + public PageBlockHorizontalAlignment Align { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockCollage.cs b/TdLib.Api/Objects/InputPageBlockCollage.cs index dd346d12..0ca1bf34 100644 --- a/TdLib.Api/Objects/InputPageBlockCollage.cs +++ b/TdLib.Api/Objects/InputPageBlockCollage.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A collage + /// + public class InputPageBlockCollage : InputPageBlock { /// - /// A collage + /// Data type for serialization /// - public class InputPageBlockCollage : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockCollage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockCollage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Collage item contents - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public InputPageBlock[] Blocks { get; set; } + /// + /// Collage item contents + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public InputPageBlock[] Blocks { get; set; } - /// - /// Block caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Block caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockDetails.cs b/TdLib.Api/Objects/InputPageBlockDetails.cs index c49b9285..5fc57279 100644 --- a/TdLib.Api/Objects/InputPageBlockDetails.cs +++ b/TdLib.Api/Objects/InputPageBlockDetails.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A collapsible block + /// + public class InputPageBlockDetails : InputPageBlock { /// - /// A collapsible block + /// Data type for serialization /// - public class InputPageBlockDetails : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockDetails"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Always visible heading for the block - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("header")] - public RichText Header { get; set; } + /// + /// Always visible heading for the block + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("header")] + public RichText Header { get; set; } - /// - /// Block contents - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public InputPageBlock[] Blocks { get; set; } + /// + /// Block contents + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public InputPageBlock[] Blocks { get; set; } - /// - /// True, if the block is open by default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_open")] - public bool IsOpen { get; set; } - } + /// + /// True, if the block is open by default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_open")] + public bool IsOpen { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockDivider.cs b/TdLib.Api/Objects/InputPageBlockDivider.cs index 552c96ba..c177e6a3 100644 --- a/TdLib.Api/Objects/InputPageBlockDivider.cs +++ b/TdLib.Api/Objects/InputPageBlockDivider.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// An empty block separating the page + /// + public class InputPageBlockDivider : InputPageBlock { /// - /// An empty block separating the page + /// Data type for serialization /// - public class InputPageBlockDivider : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockDivider"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockDivider"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InputPageBlockDocument.cs b/TdLib.Api/Objects/InputPageBlockDocument.cs index 409b0e64..b0fad693 100644 --- a/TdLib.Api/Objects/InputPageBlockDocument.cs +++ b/TdLib.Api/Objects/InputPageBlockDocument.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A general file + /// + public class InputPageBlockDocument : InputPageBlock { /// - /// A general file + /// Data type for serialization /// - public class InputPageBlockDocument : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The file to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public InputDocument Document { get; set; } + /// + /// The file to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public InputDocument Document { get; set; } - /// - /// File caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// File caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockExpandableBlockQuote.cs b/TdLib.Api/Objects/InputPageBlockExpandableBlockQuote.cs index ac56664d..e2c669a8 100644 --- a/TdLib.Api/Objects/InputPageBlockExpandableBlockQuote.cs +++ b/TdLib.Api/Objects/InputPageBlockExpandableBlockQuote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// An expandable block quote + /// + public class InputPageBlockExpandableBlockQuote : InputPageBlock { /// - /// An expandable block quote + /// Data type for serialization /// - public class InputPageBlockExpandableBlockQuote : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockExpandableBlockQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockExpandableBlockQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Quote text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Quote text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Quote credit; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credit")] - public RichText Credit { get; set; } - } + /// + /// Quote credit; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credit")] + public RichText Credit { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockFooter.cs b/TdLib.Api/Objects/InputPageBlockFooter.cs index f0ac4e14..e4cff1fb 100644 --- a/TdLib.Api/Objects/InputPageBlockFooter.cs +++ b/TdLib.Api/Objects/InputPageBlockFooter.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// The footer of the page + /// + public class InputPageBlockFooter : InputPageBlock { /// - /// The footer of the page + /// Data type for serialization /// - public class InputPageBlockFooter : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockFooter"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockFooter"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Footer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("footer")] - public RichText Footer { get; set; } - } + /// + /// Footer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("footer")] + public RichText Footer { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockList.cs b/TdLib.Api/Objects/InputPageBlockList.cs index 01057e03..bcbd309f 100644 --- a/TdLib.Api/Objects/InputPageBlockList.cs +++ b/TdLib.Api/Objects/InputPageBlockList.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A list of data blocks + /// + public class InputPageBlockList : InputPageBlock { /// - /// A list of data blocks + /// Data type for serialization /// - public class InputPageBlockList : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockList"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockList"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The items of the list - /// - [JsonProperty("items", ItemConverterType = typeof(Converter))] - public InputPageBlockListItem[] Items { get; set; } - } + /// + /// The items of the list + /// + [JsonProperty("items", ItemConverterType = typeof(Converter))] + public InputPageBlockListItem[] Items { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockListItem.cs b/TdLib.Api/Objects/InputPageBlockListItem.cs index 816cec66..368ae20b 100644 --- a/TdLib.Api/Objects/InputPageBlockListItem.cs +++ b/TdLib.Api/Objects/InputPageBlockListItem.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an item of a list page block to be sent /// - public static partial class TdApi + public partial class InputPageBlockListItem : Object { /// - /// Describes an item of a list page block to be sent + /// Data type for serialization /// - public partial class InputPageBlockListItem : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockListItem"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockListItem"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Item blocks - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public InputPageBlock[] Blocks { get; set; } + /// + /// Item blocks + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public InputPageBlock[] Blocks { get; set; } - /// - /// True, if the item has a checkbox - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_checkbox")] - public bool HasCheckbox { get; set; } + /// + /// True, if the item has a checkbox + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_checkbox")] + public bool HasCheckbox { get; set; } - /// - /// True, if the item is checked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_checked")] - public bool IsChecked { get; set; } + /// + /// True, if the item is checked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_checked")] + public bool IsChecked { get; set; } - /// - /// Value of the item; pass 0 for unordered lists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public int Value { get; set; } + /// + /// Value of the item; pass 0 for unordered lists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public int Value { get; set; } - /// - /// Type of the item numbering type; must be one of "a" for a lowercase letter, "A" for an uppercase letter, "i" for lowercase Roman numerals, "I" for uppercase Roman numerals, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public string Type { get; set; } - } + /// + /// Type of the item numbering type; must be one of "a" for a lowercase letter, "A" for an uppercase letter, "i" for lowercase Roman numerals, "I" for uppercase Roman numerals, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public string Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputPageBlockMap.cs b/TdLib.Api/Objects/InputPageBlockMap.cs index 806ca0be..c25f4762 100644 --- a/TdLib.Api/Objects/InputPageBlockMap.cs +++ b/TdLib.Api/Objects/InputPageBlockMap.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A map. The map's width and height must not exceed 10000 in total. Width and height ratio must be at most 20 + /// + public class InputPageBlockMap : InputPageBlock { /// - /// A map. The map's width and height must not exceed 10000 in total. Width and height ratio must be at most 20 + /// Data type for serialization /// - public class InputPageBlockMap : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockMap"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockMap"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Location of the map center - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// Location of the map center + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Map zoom level; 0-24 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("zoom")] - public int Zoom { get; set; } + /// + /// Map zoom level; 0-24 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("zoom")] + public int Zoom { get; set; } - /// - /// Map width; 0-10000 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Map width; 0-10000 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Map height; 0-10000 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Map height; 0-10000 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Block caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Block caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockMathematicalExpression.cs b/TdLib.Api/Objects/InputPageBlockMathematicalExpression.cs index dc983dfc..359046ba 100644 --- a/TdLib.Api/Objects/InputPageBlockMathematicalExpression.cs +++ b/TdLib.Api/Objects/InputPageBlockMathematicalExpression.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A mathematical expression + /// + public class InputPageBlockMathematicalExpression : InputPageBlock { /// - /// A mathematical expression + /// Data type for serialization /// - public class InputPageBlockMathematicalExpression : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockMathematicalExpression"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockMathematicalExpression"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The expression in LaTeX format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expression")] - public string Expression { get; set; } - } + /// + /// The expression in LaTeX format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expression")] + public string Expression { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockParagraph.cs b/TdLib.Api/Objects/InputPageBlockParagraph.cs index 4eb6fd94..753bc0fe 100644 --- a/TdLib.Api/Objects/InputPageBlockParagraph.cs +++ b/TdLib.Api/Objects/InputPageBlockParagraph.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A text paragraph + /// + public class InputPageBlockParagraph : InputPageBlock { /// - /// A text paragraph + /// Data type for serialization /// - public class InputPageBlockParagraph : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockParagraph"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockParagraph"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Paragraph text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Paragraph text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockPhoto.cs b/TdLib.Api/Objects/InputPageBlockPhoto.cs index 5a606f16..ca4458cf 100644 --- a/TdLib.Api/Objects/InputPageBlockPhoto.cs +++ b/TdLib.Api/Objects/InputPageBlockPhoto.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A photo + /// + public class InputPageBlockPhoto : InputPageBlock { /// - /// A photo + /// Data type for serialization /// - public class InputPageBlockPhoto : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The photo to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputPhoto Photo { get; set; } + /// + /// The photo to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputPhoto Photo { get; set; } - /// - /// Photo caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } + /// + /// Photo caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } - /// - /// True, if the photo preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the photo preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockPreformatted.cs b/TdLib.Api/Objects/InputPageBlockPreformatted.cs index c3633a04..1851a04d 100644 --- a/TdLib.Api/Objects/InputPageBlockPreformatted.cs +++ b/TdLib.Api/Objects/InputPageBlockPreformatted.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A preformatted text paragraph + /// + public class InputPageBlockPreformatted : InputPageBlock { /// - /// A preformatted text paragraph + /// Data type for serialization /// - public class InputPageBlockPreformatted : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockPreformatted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockPreformatted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Paragraph text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Paragraph text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Programming language for which the text needs to be formatted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language")] - public string Language { get; set; } - } + /// + /// Programming language for which the text needs to be formatted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language")] + public string Language { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockPullQuote.cs b/TdLib.Api/Objects/InputPageBlockPullQuote.cs index 62185858..53209847 100644 --- a/TdLib.Api/Objects/InputPageBlockPullQuote.cs +++ b/TdLib.Api/Objects/InputPageBlockPullQuote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A pull quote + /// + public class InputPageBlockPullQuote : InputPageBlock { /// - /// A pull quote + /// Data type for serialization /// - public class InputPageBlockPullQuote : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockPullQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockPullQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Quote text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Quote text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Quote credit; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credit")] - public RichText Credit { get; set; } - } + /// + /// Quote credit; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credit")] + public RichText Credit { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockSectionHeading.cs b/TdLib.Api/Objects/InputPageBlockSectionHeading.cs index 390ac424..3d01d752 100644 --- a/TdLib.Api/Objects/InputPageBlockSectionHeading.cs +++ b/TdLib.Api/Objects/InputPageBlockSectionHeading.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// Describes a block of a rich message to send + /// + public class InputPageBlockSectionHeading : InputPageBlock { /// - /// Describes a block of a rich message to send + /// Data type for serialization /// - public class InputPageBlockSectionHeading : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockSectionHeading"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockSectionHeading"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the section heading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text of the section heading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public int Size { get; set; } - } + /// + /// Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public int Size { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockSlideshow.cs b/TdLib.Api/Objects/InputPageBlockSlideshow.cs index c868c00c..ad8f4f17 100644 --- a/TdLib.Api/Objects/InputPageBlockSlideshow.cs +++ b/TdLib.Api/Objects/InputPageBlockSlideshow.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A slideshow + /// + public class InputPageBlockSlideshow : InputPageBlock { /// - /// A slideshow + /// Data type for serialization /// - public class InputPageBlockSlideshow : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockSlideshow"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockSlideshow"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Slideshow item contents - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public InputPageBlock[] Blocks { get; set; } + /// + /// Slideshow item contents + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public InputPageBlock[] Blocks { get; set; } - /// - /// Block caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Block caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockTable.cs b/TdLib.Api/Objects/InputPageBlockTable.cs index e0a31326..d1a8c8a5 100644 --- a/TdLib.Api/Objects/InputPageBlockTable.cs +++ b/TdLib.Api/Objects/InputPageBlockTable.cs @@ -2,66 +2,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A table + /// + public class InputPageBlockTable : InputPageBlock { /// - /// A table + /// Data type for serialization /// - public class InputPageBlockTable : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockTable"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockTable"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Table caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public RichText Caption { get; set; } + /// + /// Table caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public RichText Caption { get; set; } - /// - /// Table cells - /// - [JsonProperty("cells", ItemConverterType = typeof(Converter))] - public PageBlockTableCell[][] Cells { get; set; } + /// + /// Table cells + /// + [JsonProperty("cells", ItemConverterType = typeof(Converter))] + public PageBlockTableCell[][] Cells { get; set; } - /// - /// Pass true if the table is bordered - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_bordered")] - public bool IsBordered { get; set; } + /// + /// Pass true if the table is bordered + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_bordered")] + public bool IsBordered { get; set; } - /// - /// Pass true if the table is striped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_striped")] - public bool IsStriped { get; set; } + /// + /// Pass true if the table is striped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_striped")] + public bool IsStriped { get; set; } - /// - /// Pass true if table cells must have smaller indents - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_compact")] - public bool IsCompact { get; set; } - } + /// + /// Pass true if table cells must have smaller indents + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_compact")] + public bool IsCompact { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockThinking.cs b/TdLib.Api/Objects/InputPageBlockThinking.cs index 3e2e9215..d6987c78 100644 --- a/TdLib.Api/Objects/InputPageBlockThinking.cs +++ b/TdLib.Api/Objects/InputPageBlockThinking.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A "Thinking..." placeholder; for pending rich messages only; for bots only + /// + public class InputPageBlockThinking : InputPageBlock { /// - /// A "Thinking..." placeholder; for pending rich messages only; for bots only + /// Data type for serialization /// - public class InputPageBlockThinking : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockThinking"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockThinking"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the placeholder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text of the placeholder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockVideo.cs b/TdLib.Api/Objects/InputPageBlockVideo.cs index 455ef7ff..a2923a67 100644 --- a/TdLib.Api/Objects/InputPageBlockVideo.cs +++ b/TdLib.Api/Objects/InputPageBlockVideo.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A video + /// + public class InputPageBlockVideo : InputPageBlock { /// - /// A video + /// Data type for serialization /// - public class InputPageBlockVideo : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public InputVideo Video { get; set; } + /// + /// The video to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public InputVideo Video { get; set; } - /// - /// Video caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } + /// + /// Video caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } - /// - /// True, if the video preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the video preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPageBlockVoiceNote.cs b/TdLib.Api/Objects/InputPageBlockVoiceNote.cs index ddc83286..34889aa7 100644 --- a/TdLib.Api/Objects/InputPageBlockVoiceNote.cs +++ b/TdLib.Api/Objects/InputPageBlockVoiceNote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPageBlock : Object { - public partial class InputPageBlock : Object + /// + /// A voice note + /// + public class InputPageBlockVoiceNote : InputPageBlock { /// - /// A voice note + /// Data type for serialization /// - public class InputPageBlockVoiceNote : InputPageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPageBlockVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPageBlockVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The voice note to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public InputVoiceNote VoiceNote { get; set; } + /// + /// The voice note to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public InputVoiceNote VoiceNote { get; set; } - /// - /// Voice note caption; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Voice note caption; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPaidMedia.cs b/TdLib.Api/Objects/InputPaidMedia.cs index c4f3923a..de0e2ea4 100644 --- a/TdLib.Api/Objects/InputPaidMedia.cs +++ b/TdLib.Api/Objects/InputPaidMedia.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a paid media to be sent /// - public static partial class TdApi + public partial class InputPaidMedia : Object { /// - /// Describes a paid media to be sent + /// Data type for serialization /// - public partial class InputPaidMedia : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPaidMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPaidMedia"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InputPaidMediaType Type { get; set; } + /// + /// Type of the media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InputPaidMediaType Type { get; set; } - /// - /// Photo or video to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media")] - public InputFile Media { get; set; } + /// + /// Photo or video to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media")] + public InputFile Media { get; set; } - /// - /// Media thumbnail; pass null to skip thumbnail uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputThumbnail Thumbnail { get; set; } + /// + /// Media thumbnail; pass null to skip thumbnail uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputThumbnail Thumbnail { get; set; } - /// - /// File identifiers of the stickers added to the media, if applicable - /// - [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] - public int[] AddedStickerFileIds { get; set; } + /// + /// File identifiers of the stickers added to the media, if applicable + /// + [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] + public int[] AddedStickerFileIds { get; set; } - /// - /// Media width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Media width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Media height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Media height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputPaidMediaTypePhoto.cs b/TdLib.Api/Objects/InputPaidMediaTypePhoto.cs index b5663e72..29c7f1d1 100644 --- a/TdLib.Api/Objects/InputPaidMediaTypePhoto.cs +++ b/TdLib.Api/Objects/InputPaidMediaTypePhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPaidMediaType : Object { - public partial class InputPaidMediaType : Object + /// + /// Describes type of paid media to send + /// + public class InputPaidMediaTypePhoto : InputPaidMediaType { /// - /// Describes type of paid media to send + /// Data type for serialization /// - public class InputPaidMediaTypePhoto : InputPaidMediaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPaidMediaTypePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPaidMediaTypePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video of the live photo; pass null if the photo isn't a live photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public InputFile Video { get; set; } - } + /// + /// Video of the live photo; pass null if the photo isn't a live photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public InputFile Video { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPaidMediaTypeVideo.cs b/TdLib.Api/Objects/InputPaidMediaTypeVideo.cs index 6a23bb41..b24965c1 100644 --- a/TdLib.Api/Objects/InputPaidMediaTypeVideo.cs +++ b/TdLib.Api/Objects/InputPaidMediaTypeVideo.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPaidMediaType : Object { - public partial class InputPaidMediaType : Object + /// + /// The media is a video + /// + public class InputPaidMediaTypeVideo : InputPaidMediaType { /// - /// The media is a video + /// Data type for serialization /// - public class InputPaidMediaTypeVideo : InputPaidMediaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPaidMediaTypeVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPaidMediaTypeVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Cover of the video; pass null to skip cover uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover")] - public InputFile Cover { get; set; } + /// + /// Cover of the video; pass null to skip cover uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover")] + public InputFile Cover { get; set; } - /// - /// Timestamp from which the video playing must start, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_timestamp")] - public int StartTimestamp { get; set; } + /// + /// Timestamp from which the video playing must start, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_timestamp")] + public int StartTimestamp { get; set; } - /// - /// Duration of the video, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the video, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// True, if the video is expected to be streamed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_streaming")] - public bool SupportsStreaming { get; set; } - } + /// + /// True, if the video is expected to be streamed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_streaming")] + public bool SupportsStreaming { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementAddress.cs b/TdLib.Api/Objects/InputPassportElementAddress.cs index 6fd65c00..c845a8ba 100644 --- a/TdLib.Api/Objects/InputPassportElementAddress.cs +++ b/TdLib.Api/Objects/InputPassportElementAddress.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's address + /// + public class InputPassportElementAddress : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's address + /// Data type for serialization /// - public class InputPassportElementAddress : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The address to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public Address Address { get; set; } - } + /// + /// The address to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public Address Address { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementBankStatement.cs b/TdLib.Api/Objects/InputPassportElementBankStatement.cs index 32b2e555..9e0039d0 100644 --- a/TdLib.Api/Objects/InputPassportElementBankStatement.cs +++ b/TdLib.Api/Objects/InputPassportElementBankStatement.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's bank statement + /// + public class InputPassportElementBankStatement : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's bank statement + /// Data type for serialization /// - public class InputPassportElementBankStatement : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementBankStatement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementBankStatement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The bank statement to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bank_statement")] - public InputPersonalDocument BankStatement { get; set; } - } + /// + /// The bank statement to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bank_statement")] + public InputPersonalDocument BankStatement { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementDriverLicense.cs b/TdLib.Api/Objects/InputPassportElementDriverLicense.cs index a8efae0c..68769d91 100644 --- a/TdLib.Api/Objects/InputPassportElementDriverLicense.cs +++ b/TdLib.Api/Objects/InputPassportElementDriverLicense.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's driver license + /// + public class InputPassportElementDriverLicense : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's driver license + /// Data type for serialization /// - public class InputPassportElementDriverLicense : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementDriverLicense"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementDriverLicense"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The driver license to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("driver_license")] - public InputIdentityDocument DriverLicense { get; set; } - } + /// + /// The driver license to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("driver_license")] + public InputIdentityDocument DriverLicense { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementEmailAddress.cs b/TdLib.Api/Objects/InputPassportElementEmailAddress.cs index f8a36f58..79db6412 100644 --- a/TdLib.Api/Objects/InputPassportElementEmailAddress.cs +++ b/TdLib.Api/Objects/InputPassportElementEmailAddress.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's email address + /// + public class InputPassportElementEmailAddress : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's email address + /// Data type for serialization /// - public class InputPassportElementEmailAddress : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementEmailAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The email address to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address")] - public string EmailAddress { get; set; } - } + /// + /// The email address to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address")] + public string EmailAddress { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementError.cs b/TdLib.Api/Objects/InputPassportElementError.cs index b577a4dc..37303b2b 100644 --- a/TdLib.Api/Objects/InputPassportElementError.cs +++ b/TdLib.Api/Objects/InputPassportElementError.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the description of an error in a Telegram Passport element; for bots only /// - public static partial class TdApi + public partial class InputPassportElementError : Object { /// - /// Contains the description of an error in a Telegram Passport element; for bots only + /// Data type for serialization /// - public partial class InputPassportElementError : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementError"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementError"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of Telegram Passport element that has the error - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PassportElementType Type { get; set; } + /// + /// Type of Telegram Passport element that has the error + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PassportElementType Type { get; set; } - /// - /// Error message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public string Message { get; set; } + /// + /// Error message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public string Message { get; set; } - /// - /// Error source - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public InputPassportElementErrorSource Source { get; set; } - } + /// + /// Error source + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public InputPassportElementErrorSource Source { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceDataField.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceDataField.cs index d48c1fda..788cc607 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceDataField.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceDataField.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// A data field contains an error. The error is considered resolved when the field's value changes + /// + public class InputPassportElementErrorSourceDataField : InputPassportElementErrorSource { /// - /// A data field contains an error. The error is considered resolved when the field's value changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceDataField : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceDataField"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceDataField"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Field name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("field_name")] - public string FieldName { get; set; } + /// + /// Field name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("field_name")] + public string FieldName { get; set; } - /// - /// Current data hash - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data_hash")] - public byte[] DataHash { get; set; } - } + /// + /// Current data hash + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data_hash")] + public byte[] DataHash { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceFile.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceFile.cs index 9396a2e9..06e5c4d5 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceFile.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceFile.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// The file contains an error. The error is considered resolved when the file changes + /// + public class InputPassportElementErrorSourceFile : InputPassportElementErrorSource { /// - /// The file contains an error. The error is considered resolved when the file changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceFile : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceFile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hash of the file which has the error - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_hash")] - public byte[] FileHash { get; set; } - } + /// + /// Current hash of the file which has the error + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_hash")] + public byte[] FileHash { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceFiles.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceFiles.cs index de4514dc..922989b5 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceFiles.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceFiles.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// The list of attached files contains an error. The error is considered resolved when the file list changes + /// + public class InputPassportElementErrorSourceFiles : InputPassportElementErrorSource { /// - /// The list of attached files contains an error. The error is considered resolved when the file list changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceFiles : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceFiles"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceFiles"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hashes of all attached files - /// - [JsonProperty("file_hashes", ItemConverterType = typeof(Converter))] - public byte[][] FileHashes { get; set; } - } + /// + /// Current hashes of all attached files + /// + [JsonProperty("file_hashes", ItemConverterType = typeof(Converter))] + public byte[][] FileHashes { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceFrontSide.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceFrontSide.cs index 4547f6c8..d0c50977 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceFrontSide.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceFrontSide.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes + /// + public class InputPassportElementErrorSourceFrontSide : InputPassportElementErrorSource { /// - /// The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceFrontSide : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceFrontSide"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceFrontSide"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hash of the file containing the front side - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_hash")] - public byte[] FileHash { get; set; } - } + /// + /// Current hash of the file containing the front side + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_hash")] + public byte[] FileHash { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceReverseSide.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceReverseSide.cs index afe6c912..b6b544e9 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceReverseSide.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceReverseSide.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes + /// + public class InputPassportElementErrorSourceReverseSide : InputPassportElementErrorSource { /// - /// The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceReverseSide : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceReverseSide"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceReverseSide"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hash of the file containing the reverse side - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_hash")] - public byte[] FileHash { get; set; } - } + /// + /// Current hash of the file containing the reverse side + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_hash")] + public byte[] FileHash { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceSelfie.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceSelfie.cs index 245840ae..54e10f08 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceSelfie.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceSelfie.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// The selfie contains an error. The error is considered resolved when the file with the selfie changes + /// + public class InputPassportElementErrorSourceSelfie : InputPassportElementErrorSource { /// - /// The selfie contains an error. The error is considered resolved when the file with the selfie changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceSelfie : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceSelfie"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceSelfie"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hash of the file containing the selfie - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_hash")] - public byte[] FileHash { get; set; } - } + /// + /// Current hash of the file containing the selfie + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_hash")] + public byte[] FileHash { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFile.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFile.cs index 7e8d70f7..60d41883 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFile.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFile.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes + /// + public class InputPassportElementErrorSourceTranslationFile : InputPassportElementErrorSource { /// - /// One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceTranslationFile : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceTranslationFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceTranslationFile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hash of the file containing the translation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_hash")] - public byte[] FileHash { get; set; } - } + /// + /// Current hash of the file containing the translation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_hash")] + public byte[] FileHash { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFiles.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFiles.cs index af4bdbd2..fd3029a8 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFiles.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceTranslationFiles.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// The translation of the document contains an error. The error is considered resolved when the list of files changes + /// + public class InputPassportElementErrorSourceTranslationFiles : InputPassportElementErrorSource { /// - /// The translation of the document contains an error. The error is considered resolved when the list of files changes + /// Data type for serialization /// - public class InputPassportElementErrorSourceTranslationFiles : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceTranslationFiles"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceTranslationFiles"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hashes of all files with the translation - /// - [JsonProperty("file_hashes", ItemConverterType = typeof(Converter))] - public byte[][] FileHashes { get; set; } - } + /// + /// Current hashes of all files with the translation + /// + [JsonProperty("file_hashes", ItemConverterType = typeof(Converter))] + public byte[][] FileHashes { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementErrorSourceUnspecified.cs b/TdLib.Api/Objects/InputPassportElementErrorSourceUnspecified.cs index b8adfd66..72c580a2 100644 --- a/TdLib.Api/Objects/InputPassportElementErrorSourceUnspecified.cs +++ b/TdLib.Api/Objects/InputPassportElementErrorSourceUnspecified.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElementErrorSource : Object { - public partial class InputPassportElementErrorSource : Object + /// + /// Contains the description of an error in a Telegram Passport element; for bots only + /// + public class InputPassportElementErrorSourceUnspecified : InputPassportElementErrorSource { /// - /// Contains the description of an error in a Telegram Passport element; for bots only + /// Data type for serialization /// - public class InputPassportElementErrorSourceUnspecified : InputPassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementErrorSourceUnspecified"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementErrorSourceUnspecified"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Current hash of the entire element - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("element_hash")] - public byte[] ElementHash { get; set; } - } + /// + /// Current hash of the entire element + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("element_hash")] + public byte[] ElementHash { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementIdentityCard.cs b/TdLib.Api/Objects/InputPassportElementIdentityCard.cs index ebe12230..0a82b13c 100644 --- a/TdLib.Api/Objects/InputPassportElementIdentityCard.cs +++ b/TdLib.Api/Objects/InputPassportElementIdentityCard.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's identity card + /// + public class InputPassportElementIdentityCard : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's identity card + /// Data type for serialization /// - public class InputPassportElementIdentityCard : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementIdentityCard"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementIdentityCard"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identity card to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("identity_card")] - public InputIdentityDocument IdentityCard { get; set; } - } + /// + /// The identity card to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("identity_card")] + public InputIdentityDocument IdentityCard { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementInternalPassport.cs b/TdLib.Api/Objects/InputPassportElementInternalPassport.cs index 9b257890..9d4c0330 100644 --- a/TdLib.Api/Objects/InputPassportElementInternalPassport.cs +++ b/TdLib.Api/Objects/InputPassportElementInternalPassport.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's internal passport + /// + public class InputPassportElementInternalPassport : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's internal passport + /// Data type for serialization /// - public class InputPassportElementInternalPassport : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementInternalPassport"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementInternalPassport"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The internal passport to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("internal_passport")] - public InputIdentityDocument InternalPassport { get; set; } - } + /// + /// The internal passport to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("internal_passport")] + public InputIdentityDocument InternalPassport { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementPassport.cs b/TdLib.Api/Objects/InputPassportElementPassport.cs index 39bef54c..f89e1529 100644 --- a/TdLib.Api/Objects/InputPassportElementPassport.cs +++ b/TdLib.Api/Objects/InputPassportElementPassport.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's passport + /// + public class InputPassportElementPassport : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's passport + /// Data type for serialization /// - public class InputPassportElementPassport : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementPassport"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementPassport"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The passport to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("passport")] - public InputIdentityDocument Passport { get; set; } - } + /// + /// The passport to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("passport")] + public InputIdentityDocument Passport { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementPassportRegistration.cs b/TdLib.Api/Objects/InputPassportElementPassportRegistration.cs index cf078696..941eb23d 100644 --- a/TdLib.Api/Objects/InputPassportElementPassportRegistration.cs +++ b/TdLib.Api/Objects/InputPassportElementPassportRegistration.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's passport registration + /// + public class InputPassportElementPassportRegistration : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's passport registration + /// Data type for serialization /// - public class InputPassportElementPassportRegistration : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementPassportRegistration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementPassportRegistration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The passport registration page to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("passport_registration")] - public InputPersonalDocument PassportRegistration { get; set; } - } + /// + /// The passport registration page to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("passport_registration")] + public InputPersonalDocument PassportRegistration { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementPersonalDetails.cs b/TdLib.Api/Objects/InputPassportElementPersonalDetails.cs index e88ca88e..9eb955a3 100644 --- a/TdLib.Api/Objects/InputPassportElementPersonalDetails.cs +++ b/TdLib.Api/Objects/InputPassportElementPersonalDetails.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// Contains information about a Telegram Passport element to be saved + /// + public class InputPassportElementPersonalDetails : InputPassportElement { /// - /// Contains information about a Telegram Passport element to be saved + /// Data type for serialization /// - public class InputPassportElementPersonalDetails : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementPersonalDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementPersonalDetails"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Personal details of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("personal_details")] - public PersonalDetails PersonalDetails { get; set; } - } + /// + /// Personal details of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("personal_details")] + public PersonalDetails PersonalDetails { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementPhoneNumber.cs b/TdLib.Api/Objects/InputPassportElementPhoneNumber.cs index 1aa9e376..d362ae96 100644 --- a/TdLib.Api/Objects/InputPassportElementPhoneNumber.cs +++ b/TdLib.Api/Objects/InputPassportElementPhoneNumber.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's phone number + /// + public class InputPassportElementPhoneNumber : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's phone number + /// Data type for serialization /// - public class InputPassportElementPhoneNumber : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The phone number to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } - } + /// + /// The phone number to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementRentalAgreement.cs b/TdLib.Api/Objects/InputPassportElementRentalAgreement.cs index e528e443..6a3d1f08 100644 --- a/TdLib.Api/Objects/InputPassportElementRentalAgreement.cs +++ b/TdLib.Api/Objects/InputPassportElementRentalAgreement.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's rental agreement + /// + public class InputPassportElementRentalAgreement : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's rental agreement + /// Data type for serialization /// - public class InputPassportElementRentalAgreement : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementRentalAgreement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementRentalAgreement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The rental agreement to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rental_agreement")] - public InputPersonalDocument RentalAgreement { get; set; } - } + /// + /// The rental agreement to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rental_agreement")] + public InputPersonalDocument RentalAgreement { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementTemporaryRegistration.cs b/TdLib.Api/Objects/InputPassportElementTemporaryRegistration.cs index c42ef3ea..384183e3 100644 --- a/TdLib.Api/Objects/InputPassportElementTemporaryRegistration.cs +++ b/TdLib.Api/Objects/InputPassportElementTemporaryRegistration.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's temporary registration + /// + public class InputPassportElementTemporaryRegistration : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's temporary registration + /// Data type for serialization /// - public class InputPassportElementTemporaryRegistration : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementTemporaryRegistration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementTemporaryRegistration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The temporary registration document to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("temporary_registration")] - public InputPersonalDocument TemporaryRegistration { get; set; } - } + /// + /// The temporary registration document to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("temporary_registration")] + public InputPersonalDocument TemporaryRegistration { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPassportElementUtilityBill.cs b/TdLib.Api/Objects/InputPassportElementUtilityBill.cs index 5cf0f2b2..b95488b7 100644 --- a/TdLib.Api/Objects/InputPassportElementUtilityBill.cs +++ b/TdLib.Api/Objects/InputPassportElementUtilityBill.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPassportElement : Object { - public partial class InputPassportElement : Object + /// + /// A Telegram Passport element to be saved containing the user's utility bill + /// + public class InputPassportElementUtilityBill : InputPassportElement { /// - /// A Telegram Passport element to be saved containing the user's utility bill + /// Data type for serialization /// - public class InputPassportElementUtilityBill : InputPassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPassportElementUtilityBill"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPassportElementUtilityBill"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The utility bill to be saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("utility_bill")] - public InputPersonalDocument UtilityBill { get; set; } - } + /// + /// The utility bill to be saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("utility_bill")] + public InputPersonalDocument UtilityBill { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPersonalDocument.cs b/TdLib.Api/Objects/InputPersonalDocument.cs index 60441e6b..f64e89e5 100644 --- a/TdLib.Api/Objects/InputPersonalDocument.cs +++ b/TdLib.Api/Objects/InputPersonalDocument.cs @@ -2,42 +2,41 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A personal document to be saved to Telegram Passport /// - public static partial class TdApi + public partial class InputPersonalDocument : Object { /// - /// A personal document to be saved to Telegram Passport + /// Data type for serialization /// - public partial class InputPersonalDocument : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPersonalDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPersonalDocument"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of files containing the pages of the document - /// - [JsonProperty("files", ItemConverterType = typeof(Converter))] - public InputFile[] Files { get; set; } + /// + /// List of files containing the pages of the document + /// + [JsonProperty("files", ItemConverterType = typeof(Converter))] + public InputFile[] Files { get; set; } - /// - /// List of files containing a certified English translation of the document - /// - [JsonProperty("translation", ItemConverterType = typeof(Converter))] - public InputFile[] Translation { get; set; } - } + /// + /// List of files containing a certified English translation of the document + /// + [JsonProperty("translation", ItemConverterType = typeof(Converter))] + public InputFile[] Translation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputPhoto.cs b/TdLib.Api/Objects/InputPhoto.cs index 08e4eb69..31927c17 100644 --- a/TdLib.Api/Objects/InputPhoto.cs +++ b/TdLib.Api/Objects/InputPhoto.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A photo to be sent /// - public static partial class TdApi + public partial class InputPhoto : Object { /// - /// A photo to be sent + /// Data type for serialization /// - public partial class InputPhoto : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPhoto"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo to be sent. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputFile Photo { get; set; } + /// + /// Photo to be sent. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputFile Photo { get; set; } - /// - /// Photo thumbnail; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputThumbnail Thumbnail { get; set; } + /// + /// Photo thumbnail; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputThumbnail Thumbnail { get; set; } - /// - /// Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public InputFile Video { get; set; } + /// + /// Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public InputFile Video { get; set; } - /// - /// File identifiers of the stickers added to the photo, if applicable - /// - [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] - public int[] AddedStickerFileIds { get; set; } + /// + /// File identifiers of the stickers added to the photo, if applicable + /// + [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] + public int[] AddedStickerFileIds { get; set; } - /// - /// Photo width; may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Photo width; may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Photo height; may be replaced by the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Photo height; may be replaced by the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputPollMediaAnimation.cs b/TdLib.Api/Objects/InputPollMediaAnimation.cs index e52447ce..d4470100 100644 --- a/TdLib.Api/Objects/InputPollMediaAnimation.cs +++ b/TdLib.Api/Objects/InputPollMediaAnimation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// The content of a poll media to send + /// + public class InputPollMediaAnimation : InputPollMedia { /// - /// The content of a poll media to send + /// Data type for serialization /// - public class InputPollMediaAnimation : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animation to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public InputAnimation Animation { get; set; } - } + /// + /// The animation to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public InputAnimation Animation { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaAudio.cs b/TdLib.Api/Objects/InputPollMediaAudio.cs index 323e8aae..34749091 100644 --- a/TdLib.Api/Objects/InputPollMediaAudio.cs +++ b/TdLib.Api/Objects/InputPollMediaAudio.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// An audio + /// + public class InputPollMediaAudio : InputPollMedia { /// - /// An audio + /// Data type for serialization /// - public class InputPollMediaAudio : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The audio to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public InputAudio Audio { get; set; } - } + /// + /// The audio to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public InputAudio Audio { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaDocument.cs b/TdLib.Api/Objects/InputPollMediaDocument.cs index 8d8c9a99..3772559e 100644 --- a/TdLib.Api/Objects/InputPollMediaDocument.cs +++ b/TdLib.Api/Objects/InputPollMediaDocument.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// A document (general file) + /// + public class InputPollMediaDocument : InputPollMedia { /// - /// A document (general file) + /// Data type for serialization /// - public class InputPollMediaDocument : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The document to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public InputDocument Document { get; set; } - } + /// + /// The document to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public InputDocument Document { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaLink.cs b/TdLib.Api/Objects/InputPollMediaLink.cs index 88bbaed1..3be2a5d8 100644 --- a/TdLib.Api/Objects/InputPollMediaLink.cs +++ b/TdLib.Api/Objects/InputPollMediaLink.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// A link + /// + public class InputPollMediaLink : InputPollMedia { /// - /// A link + /// Data type for serialization /// - public class InputPollMediaLink : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// URL of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaLocation.cs b/TdLib.Api/Objects/InputPollMediaLocation.cs index 2f04da5c..01f53e28 100644 --- a/TdLib.Api/Objects/InputPollMediaLocation.cs +++ b/TdLib.Api/Objects/InputPollMediaLocation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// A location + /// + public class InputPollMediaLocation : InputPollMedia { /// - /// A location + /// Data type for serialization /// - public class InputPollMediaLocation : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Location to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } - } + /// + /// Location to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaPhoto.cs b/TdLib.Api/Objects/InputPollMediaPhoto.cs index 9325c390..f284c8cd 100644 --- a/TdLib.Api/Objects/InputPollMediaPhoto.cs +++ b/TdLib.Api/Objects/InputPollMediaPhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// A photo + /// + public class InputPollMediaPhoto : InputPollMedia { /// - /// A photo + /// Data type for serialization /// - public class InputPollMediaPhoto : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputPhoto Photo { get; set; } - } + /// + /// Photo to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputPhoto Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaSticker.cs b/TdLib.Api/Objects/InputPollMediaSticker.cs index 9dd73847..a1d1e409 100644 --- a/TdLib.Api/Objects/InputPollMediaSticker.cs +++ b/TdLib.Api/Objects/InputPollMediaSticker.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// A sticker + /// + public class InputPollMediaSticker : InputPollMedia { /// - /// A sticker + /// Data type for serialization /// - public class InputPollMediaSticker : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputSticker Sticker { get; set; } - } + /// + /// Sticker to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputSticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaVenue.cs b/TdLib.Api/Objects/InputPollMediaVenue.cs index 0c202317..3a3164e6 100644 --- a/TdLib.Api/Objects/InputPollMediaVenue.cs +++ b/TdLib.Api/Objects/InputPollMediaVenue.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// A venue + /// + public class InputPollMediaVenue : InputPollMedia { /// - /// A venue + /// Data type for serialization /// - public class InputPollMediaVenue : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Venue to send - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue")] - public Venue Venue { get; set; } - } + /// + /// Venue to send + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue")] + public Venue Venue { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollMediaVideo.cs b/TdLib.Api/Objects/InputPollMediaVideo.cs index f162448a..c2ca796e 100644 --- a/TdLib.Api/Objects/InputPollMediaVideo.cs +++ b/TdLib.Api/Objects/InputPollMediaVideo.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollMedia : Object { - public partial class InputPollMedia : Object + /// + /// A video + /// + public class InputPollMediaVideo : InputPollMedia { /// - /// A video + /// Data type for serialization /// - public class InputPollMediaVideo : InputPollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollMediaVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollMediaVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public InputVideo Video { get; set; } - } + /// + /// The video to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public InputVideo Video { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollOption.cs b/TdLib.Api/Objects/InputPollOption.cs index 5768d8f8..4a487e09 100644 --- a/TdLib.Api/Objects/InputPollOption.cs +++ b/TdLib.Api/Objects/InputPollOption.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes one answer option of a poll to be created /// - public static partial class TdApi + public partial class InputPollOption : Object { /// - /// Describes one answer option of a poll to be created + /// Data type for serialization /// - public partial class InputPollOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Option media; pass null if none. Must be one of the following types: - /// inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media")] - public InputPollMedia Media { get; set; } - } + /// + /// Option media; pass null if none. Must be one of the following types: + /// inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media")] + public InputPollMedia Media { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputPollTypeQuiz.cs b/TdLib.Api/Objects/InputPollTypeQuiz.cs index 35c6525e..5ac2e8c6 100644 --- a/TdLib.Api/Objects/InputPollTypeQuiz.cs +++ b/TdLib.Api/Objects/InputPollTypeQuiz.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollType : Object { - public partial class InputPollType : Object + /// + /// A poll in quiz mode, which has predefined correct answers + /// + public class InputPollTypeQuiz : InputPollType { /// - /// A poll in quiz mode, which has predefined correct answers + /// Data type for serialization /// - public class InputPollTypeQuiz : InputPollType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollTypeQuiz"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollTypeQuiz"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Increasing list of 0-based identifiers of the correct answer options; must be non-empty - /// - [JsonProperty("correct_option_ids", ItemConverterType = typeof(Converter))] - public int[] CorrectOptionIds { get; set; } + /// + /// Increasing list of 0-based identifiers of the correct answer options; must be non-empty + /// + [JsonProperty("correct_option_ids", ItemConverterType = typeof(Converter))] + public int[] CorrectOptionIds { get; set; } - /// - /// Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("explanation")] - public FormattedText Explanation { get; set; } + /// + /// Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("explanation")] + public FormattedText Explanation { get; set; } - /// - /// Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; pass null if none. Must be one of the following types: - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("explanation_media")] - public InputPollMedia ExplanationMedia { get; set; } - } + /// + /// Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; pass null if none. Must be one of the following types: + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("explanation_media")] + public InputPollMedia ExplanationMedia { get; set; } } } } diff --git a/TdLib.Api/Objects/InputPollTypeRegular.cs b/TdLib.Api/Objects/InputPollTypeRegular.cs index ea84add9..2a1d915e 100644 --- a/TdLib.Api/Objects/InputPollTypeRegular.cs +++ b/TdLib.Api/Objects/InputPollTypeRegular.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputPollType : Object { - public partial class InputPollType : Object + /// + /// Describes the type of poll to send + /// + public class InputPollTypeRegular : InputPollType { /// - /// Describes the type of poll to send + /// Data type for serialization /// - public class InputPollTypeRegular : InputPollType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputPollTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputPollTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if answer options can be added to the poll after creation; not supported in channel chats and for anonymous polls - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_adding_options")] - public bool AllowAddingOptions { get; set; } - } + /// + /// True, if answer options can be added to the poll after creation; not supported in channel chats and for anonymous polls + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_adding_options")] + public bool AllowAddingOptions { get; set; } } } } diff --git a/TdLib.Api/Objects/InputRichMessage.cs b/TdLib.Api/Objects/InputRichMessage.cs index be461938..7bda329e 100644 --- a/TdLib.Api/Objects/InputRichMessage.cs +++ b/TdLib.Api/Objects/InputRichMessage.cs @@ -2,55 +2,54 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A rich message to send. Total length of all texts, including custom emoji alternative text and formula source, must not exceed getOption("rich_message_text_length_max"). + /// The total number of all blocks, list items and table rows must not exceed getOption("rich_message_block_count_max"). + /// The maximum allowed depth of nested blocks and rich texts is getOption("rich_message_depth_max"). + /// The total number of media in all blocks must not exceed getOption("rich_message_media_count_max"). + /// The maximum allowed number of table columns is getOption("rich_message_table_column_count_max") /// - public static partial class TdApi + public partial class InputRichMessage : Object { /// - /// A rich message to send. Total length of all texts, including custom emoji alternative text and formula source, must not exceed getOption("rich_message_text_length_max"). - /// The total number of all blocks, list items and table rows must not exceed getOption("rich_message_block_count_max"). - /// The maximum allowed depth of nested blocks and rich texts is getOption("rich_message_depth_max"). - /// The total number of media in all blocks must not exceed getOption("rich_message_media_count_max"). - /// The maximum allowed number of table columns is getOption("rich_message_table_column_count_max") + /// Data type for serialization /// - public partial class InputRichMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputRichMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputRichMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Source of the rich message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public RichMessageSource Source { get; set; } + /// + /// Source of the rich message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public RichMessageSource Source { get; set; } - /// - /// Pass true if the message must be shown from right to left - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtl")] - public bool IsRtl { get; set; } + /// + /// Pass true if the message must be shown from right to left + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtl")] + public bool IsRtl { get; set; } - /// - /// Pass true to enable detection of URLs, email addresses and other automatic blocks - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("detect_automatic_blocks")] - public bool DetectAutomaticBlocks { get; set; } - } + /// + /// Pass true to enable detection of URLs, email addresses and other automatic blocks + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("detect_automatic_blocks")] + public bool DetectAutomaticBlocks { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputRichMessageMedia.cs b/TdLib.Api/Objects/InputRichMessageMedia.cs index 9f59d6c1..953730d8 100644 --- a/TdLib.Api/Objects/InputRichMessageMedia.cs +++ b/TdLib.Api/Objects/InputRichMessageMedia.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a media to be used in a sent rich message /// - public static partial class TdApi + public partial class InputRichMessageMedia : Object { /// - /// Describes a media to be used in a sent rich message + /// Data type for serialization /// - public partial class InputRichMessageMedia : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputRichMessageMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputRichMessageMedia"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the media; 1-64 base64url characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the media; 1-64 base64url characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// The media to send. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessagePhoto, inputMessageVideo, or inputMessageVoiceNote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media")] - public InputMessageContent Media { get; set; } - } + /// + /// The media to send. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessagePhoto, inputMessageVideo, or inputMessageVoiceNote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media")] + public InputMessageContent Media { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputSticker.cs b/TdLib.Api/Objects/InputSticker.cs index e40e3176..b62e20c8 100644 --- a/TdLib.Api/Objects/InputSticker.cs +++ b/TdLib.Api/Objects/InputSticker.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A sticker to be sent /// - public static partial class TdApi + public partial class InputSticker : Object { /// - /// A sticker to be sent + /// Data type for serialization /// - public partial class InputSticker : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputSticker"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Sticker to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } + /// + /// Sticker to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } - /// - /// Sticker thumbnail; pass null to skip thumbnail uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputThumbnail Thumbnail { get; set; } + /// + /// Sticker thumbnail; pass null to skip thumbnail uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputThumbnail Thumbnail { get; set; } - /// - /// Sticker width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Sticker width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Sticker height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Sticker height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputStoryArea.cs b/TdLib.Api/Objects/InputStoryArea.cs index bd5bdea0..5868b6f9 100644 --- a/TdLib.Api/Objects/InputStoryArea.cs +++ b/TdLib.Api/Objects/InputStoryArea.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a clickable rectangle area on a story media to be added /// - public static partial class TdApi + public partial class InputStoryArea : Object { /// - /// Describes a clickable rectangle area on a story media to be added + /// Data type for serialization /// - public partial class InputStoryArea : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryArea"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryArea"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Position of the area - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public StoryAreaPosition Position { get; set; } + /// + /// Position of the area + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public StoryAreaPosition Position { get; set; } - /// - /// Type of the area - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InputStoryAreaType Type { get; set; } - } + /// + /// Type of the area + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InputStoryAreaType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputStoryAreaTypeFoundVenue.cs b/TdLib.Api/Objects/InputStoryAreaTypeFoundVenue.cs index fd044b98..3a1c0a73 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypeFoundVenue.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypeFoundVenue.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// An area pointing to a venue found by the bot getOption("venue_search_bot_username") + /// + public class InputStoryAreaTypeFoundVenue : InputStoryAreaType { /// - /// An area pointing to a venue found by the bot getOption("venue_search_bot_username") + /// Data type for serialization /// - public class InputStoryAreaTypeFoundVenue : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypeFoundVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypeFoundVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the inline query, used to found the venue - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } + /// + /// Identifier of the inline query, used to found the venue + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } - /// - /// Identifier of the inline query result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result_id")] - public string ResultId { get; set; } - } + /// + /// Identifier of the inline query result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result_id")] + public string ResultId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreaTypeLink.cs b/TdLib.Api/Objects/InputStoryAreaTypeLink.cs index 4cb91e44..f416bbcd 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypeLink.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypeLink.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// An area pointing to a HTTP or tg:// link + /// + public class InputStoryAreaTypeLink : InputStoryAreaType { /// - /// An area pointing to a HTTP or tg:// link + /// Data type for serialization /// - public class InputStoryAreaTypeLink : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypeLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypeLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// HTTP or tg:// URL to be opened when the area is clicked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// HTTP or tg:// URL to be opened when the area is clicked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreaTypeLocation.cs b/TdLib.Api/Objects/InputStoryAreaTypeLocation.cs index 2fda4955..9483eb51 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypeLocation.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypeLocation.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// Describes type of clickable area on a story media to be added + /// + public class InputStoryAreaTypeLocation : InputStoryAreaType { /// - /// Describes type of clickable area on a story media to be added + /// Data type for serialization /// - public class InputStoryAreaTypeLocation : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypeLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypeLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// The location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Address of the location; pass null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public LocationAddress Address { get; set; } - } + /// + /// Address of the location; pass null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public LocationAddress Address { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreaTypeMessage.cs b/TdLib.Api/Objects/InputStoryAreaTypeMessage.cs index 026bf66a..6f9ab306 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypeMessage.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypeMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// An area pointing to a message + /// + public class InputStoryAreaTypeMessage : InputStoryAreaType { /// - /// An area pointing to a message + /// Data type for serialization /// - public class InputStoryAreaTypeMessage : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypeMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat with the message. Currently, the chat must be a supergroup or a channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat with the message. Currently, the chat must be a supergroup or a channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message. Use messageProperties.can_be_shared_in_story to check whether the message is suitable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the message. Use messageProperties.can_be_shared_in_story to check whether the message is suitable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreaTypePreviousVenue.cs b/TdLib.Api/Objects/InputStoryAreaTypePreviousVenue.cs index 857024c5..cdcf1044 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypePreviousVenue.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypePreviousVenue.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// An area pointing to a venue already added to the story + /// + public class InputStoryAreaTypePreviousVenue : InputStoryAreaType { /// - /// An area pointing to a venue already added to the story + /// Data type for serialization /// - public class InputStoryAreaTypePreviousVenue : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypePreviousVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypePreviousVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Provider of the venue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue_provider")] - public string VenueProvider { get; set; } + /// + /// Provider of the venue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue_provider")] + public string VenueProvider { get; set; } - /// - /// Identifier of the venue in the provider database - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue_id")] - public string VenueId { get; set; } - } + /// + /// Identifier of the venue in the provider database + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue_id")] + public string VenueId { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreaTypeSuggestedReaction.cs b/TdLib.Api/Objects/InputStoryAreaTypeSuggestedReaction.cs index 71199d1f..12e9e049 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypeSuggestedReaction.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypeSuggestedReaction.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// An area pointing to a suggested reaction + /// + public class InputStoryAreaTypeSuggestedReaction : InputStoryAreaType { /// - /// An area pointing to a suggested reaction + /// Data type for serialization /// - public class InputStoryAreaTypeSuggestedReaction : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypeSuggestedReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypeSuggestedReaction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } + /// + /// Type of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } - /// - /// True, if reaction has a dark background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } + /// + /// True, if reaction has a dark background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } - /// - /// True, if reaction corner is flipped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_flipped")] - public bool IsFlipped { get; set; } - } + /// + /// True, if reaction corner is flipped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_flipped")] + public bool IsFlipped { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreaTypeUpgradedGift.cs b/TdLib.Api/Objects/InputStoryAreaTypeUpgradedGift.cs index 1b800edf..c8f893e5 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypeUpgradedGift.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypeUpgradedGift.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// An area with an upgraded gift + /// + public class InputStoryAreaTypeUpgradedGift : InputStoryAreaType { /// - /// An area with an upgraded gift + /// Data type for serialization /// - public class InputStoryAreaTypeUpgradedGift : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypeUpgradedGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypeUpgradedGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique name of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_name")] - public string GiftName { get; set; } - } + /// + /// Unique name of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_name")] + public string GiftName { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreaTypeWeather.cs b/TdLib.Api/Objects/InputStoryAreaTypeWeather.cs index 26abbb4f..03da5587 100644 --- a/TdLib.Api/Objects/InputStoryAreaTypeWeather.cs +++ b/TdLib.Api/Objects/InputStoryAreaTypeWeather.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryAreaType : Object { - public partial class InputStoryAreaType : Object + /// + /// An area with information about weather + /// + public class InputStoryAreaTypeWeather : InputStoryAreaType { /// - /// An area with information about weather + /// Data type for serialization /// - public class InputStoryAreaTypeWeather : InputStoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreaTypeWeather"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreaTypeWeather"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Temperature, in degree Celsius - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("temperature")] - public double? Temperature { get; set; } + /// + /// Temperature, in degree Celsius + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("temperature")] + public double? Temperature { get; set; } - /// - /// Emoji representing the weather - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Emoji representing the weather + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// A color of the area background in the ARGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background_color")] - public int BackgroundColor { get; set; } - } + /// + /// A color of the area background in the ARGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background_color")] + public int BackgroundColor { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryAreas.cs b/TdLib.Api/Objects/InputStoryAreas.cs index 98be0055..6c105ada 100644 --- a/TdLib.Api/Objects/InputStoryAreas.cs +++ b/TdLib.Api/Objects/InputStoryAreas.cs @@ -2,42 +2,41 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of story areas to be added /// - public static partial class TdApi + public partial class InputStoryAreas : Object { /// - /// Contains a list of story areas to be added + /// Data type for serialization /// - public partial class InputStoryAreas : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryAreas"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryAreas"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of input story areas. Currently, a story can have - /// up to 10 inputStoryAreaTypeLocation, inputStoryAreaTypeFoundVenue, and inputStoryAreaTypePreviousVenue areas, - /// up to getOption("story_suggested_reaction_area_count_max") inputStoryAreaTypeSuggestedReaction areas, - /// up to 1 inputStoryAreaTypeMessage area, - /// up to getOption("story_link_area_count_max") inputStoryAreaTypeLink areas if the current user is a Telegram Premium user, - /// up to 3 inputStoryAreaTypeWeather areas, and - /// up to 1 inputStoryAreaTypeUpgradedGift area - /// - [JsonProperty("areas", ItemConverterType = typeof(Converter))] - public InputStoryArea[] Areas { get; set; } - } + /// + /// List of input story areas. Currently, a story can have + /// up to 10 inputStoryAreaTypeLocation, inputStoryAreaTypeFoundVenue, and inputStoryAreaTypePreviousVenue areas, + /// up to getOption("story_suggested_reaction_area_count_max") inputStoryAreaTypeSuggestedReaction areas, + /// up to 1 inputStoryAreaTypeMessage area, + /// up to getOption("story_link_area_count_max") inputStoryAreaTypeLink areas if the current user is a Telegram Premium user, + /// up to 3 inputStoryAreaTypeWeather areas, and + /// up to 1 inputStoryAreaTypeUpgradedGift area + /// + [JsonProperty("areas", ItemConverterType = typeof(Converter))] + public InputStoryArea[] Areas { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputStoryContentPhoto.cs b/TdLib.Api/Objects/InputStoryContentPhoto.cs index ad149ad1..c8f62c7b 100644 --- a/TdLib.Api/Objects/InputStoryContentPhoto.cs +++ b/TdLib.Api/Objects/InputStoryContentPhoto.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryContent : Object { - public partial class InputStoryContent : Object + /// + /// The content of a story to post + /// + public class InputStoryContentPhoto : InputStoryContent { /// - /// The content of a story to post + /// Data type for serialization /// - public class InputStoryContentPhoto : InputStoryContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryContentPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryContentPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo to send. The photo must be at most 10 MB in size. The photo size must be 1080x1920 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public InputFile Photo { get; set; } + /// + /// Photo to send. The photo must be at most 10 MB in size. The photo size must be 1080x1920 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public InputFile Photo { get; set; } - /// - /// File identifiers of the stickers added to the photo, if applicable - /// - [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] - public int[] AddedStickerFileIds { get; set; } - } + /// + /// File identifiers of the stickers added to the photo, if applicable + /// + [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] + public int[] AddedStickerFileIds { get; set; } } } } diff --git a/TdLib.Api/Objects/InputStoryContentVideo.cs b/TdLib.Api/Objects/InputStoryContentVideo.cs index ae6a2503..6456107f 100644 --- a/TdLib.Api/Objects/InputStoryContentVideo.cs +++ b/TdLib.Api/Objects/InputStoryContentVideo.cs @@ -2,66 +2,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InputStoryContent : Object { - public partial class InputStoryContent : Object + /// + /// A video story + /// + public class InputStoryContentVideo : InputStoryContent { /// - /// A video story + /// Data type for serialization /// - public class InputStoryContentVideo : InputStoryContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputStoryContentVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputStoryContentVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after encoding with H.265 codec and key frames added each second - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public InputFile Video { get; set; } + /// + /// Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after encoding with H.265 codec and key frames added each second + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public InputFile Video { get; set; } - /// - /// File identifiers of the stickers added to the video, if applicable - /// - [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] - public int[] AddedStickerFileIds { get; set; } + /// + /// File identifiers of the stickers added to the video, if applicable + /// + [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] + public int[] AddedStickerFileIds { get; set; } - /// - /// Precise duration of the video, in seconds; 0-60 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public double? Duration { get; set; } + /// + /// Precise duration of the video, in seconds; 0-60 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public double? Duration { get; set; } - /// - /// Timestamp of the frame, which will be used as video thumbnail - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover_frame_timestamp")] - public double? CoverFrameTimestamp { get; set; } + /// + /// Timestamp of the frame, which will be used as video thumbnail + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover_frame_timestamp")] + public double? CoverFrameTimestamp { get; set; } - /// - /// True, if the video has no sound - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_animation")] - public bool IsAnimation { get; set; } - } + /// + /// True, if the video has no sound + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_animation")] + public bool IsAnimation { get; set; } } } } diff --git a/TdLib.Api/Objects/InputSuggestedPostInfo.cs b/TdLib.Api/Objects/InputSuggestedPostInfo.cs index d48e8ef6..91158e32 100644 --- a/TdLib.Api/Objects/InputSuggestedPostInfo.cs +++ b/TdLib.Api/Objects/InputSuggestedPostInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a post to suggest /// - public static partial class TdApi + public partial class InputSuggestedPostInfo : Object { /// - /// Contains information about a post to suggest + /// Data type for serialization /// - public partial class InputSuggestedPostInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputSuggestedPostInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputSuggestedPostInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Price of the suggested post; pass null to suggest a post without payment. If the current user isn't an administrator of the channel direct messages chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public SuggestedPostPrice Price { get; set; } + /// + /// Price of the suggested post; pass null to suggest a post without payment. If the current user isn't an administrator of the channel direct messages chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public SuggestedPostPrice Price { get; set; } - /// - /// Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date isn't restricted. If specified, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_date")] - public int SendDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date isn't restricted. If specified, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_date")] + public int SendDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputTextQuote.cs b/TdLib.Api/Objects/InputTextQuote.cs index b21c9189..914f0ab0 100644 --- a/TdLib.Api/Objects/InputTextQuote.cs +++ b/TdLib.Api/Objects/InputTextQuote.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes manually chosen quote from another message /// - public static partial class TdApi + public partial class InputTextQuote : Object { /// - /// Describes manually chosen quote from another message + /// Data type for serialization /// - public partial class InputTextQuote : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputTextQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputTextQuote"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the quote; 0-getOption("message_reply_quote_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed to be kept and must be kept in the quote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text of the quote; 0-getOption("message_reply_quote_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed to be kept and must be kept in the quote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Quote position in the original message in UTF-16 code units - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public int Position { get; set; } - } + /// + /// Quote position in the original message in UTF-16 code units + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public int Position { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputThumbnail.cs b/TdLib.Api/Objects/InputThumbnail.cs index 29feb06d..2d676804 100644 --- a/TdLib.Api/Objects/InputThumbnail.cs +++ b/TdLib.Api/Objects/InputThumbnail.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size /// - public static partial class TdApi + public partial class InputThumbnail : Object { /// - /// A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size + /// Data type for serialization /// - public partial class InputThumbnail : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputThumbnail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputThumbnail"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Thumbnail file to send. Sending thumbnails by file_id is currently not supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputFile Thumbnail { get; set; } + /// + /// Thumbnail file to send. Sending thumbnails by file_id is currently not supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputFile Thumbnail { get; set; } - /// - /// Thumbnail width, usually shouldn't exceed 320. Use 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Thumbnail width, usually shouldn't exceed 320. Use 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Thumbnail height, usually shouldn't exceed 320. Use 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Thumbnail height, usually shouldn't exceed 320. Use 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputVideo.cs b/TdLib.Api/Objects/InputVideo.cs index 12ccfb10..3d6034c9 100644 --- a/TdLib.Api/Objects/InputVideo.cs +++ b/TdLib.Api/Objects/InputVideo.cs @@ -2,92 +2,91 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A video to be sent /// - public static partial class TdApi + public partial class InputVideo : Object { /// - /// A video to be sent + /// Data type for serialization /// - public partial class InputVideo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputVideo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video file to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public InputFile Video { get; set; } + /// + /// Video file to be sent. The video is expected to be re-encoded to MPEG4 format with H.264 codec by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public InputFile Video { get; set; } - /// - /// Video thumbnail; pass null to skip thumbnail uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputThumbnail Thumbnail { get; set; } + /// + /// Video thumbnail; pass null to skip thumbnail uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputThumbnail Thumbnail { get; set; } - /// - /// Cover of the video; pass null to skip cover uploading; not supported in secret chats and for self-destructing messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover")] - public InputFile Cover { get; set; } + /// + /// Cover of the video; pass null to skip cover uploading; not supported in secret chats and for self-destructing messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover")] + public InputFile Cover { get; set; } - /// - /// Timestamp from which the video playing must start, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_timestamp")] - public int StartTimestamp { get; set; } + /// + /// Timestamp from which the video playing must start, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_timestamp")] + public int StartTimestamp { get; set; } - /// - /// File identifiers of the stickers added to the video, if applicable - /// - [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] - public int[] AddedStickerFileIds { get; set; } + /// + /// File identifiers of the stickers added to the video, if applicable + /// + [JsonProperty("added_sticker_file_ids", ItemConverterType = typeof(Converter))] + public int[] AddedStickerFileIds { get; set; } - /// - /// Duration of the video, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the video, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Video width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Video width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Video height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Video height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// True, if the video is expected to be streamed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_streaming")] - public bool SupportsStreaming { get; set; } - } + /// + /// True, if the video is expected to be streamed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_streaming")] + public bool SupportsStreaming { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputVideoNote.cs b/TdLib.Api/Objects/InputVideoNote.cs index 8430c6ee..a22a3fe7 100644 --- a/TdLib.Api/Objects/InputVideoNote.cs +++ b/TdLib.Api/Objects/InputVideoNote.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A video note to be sent /// - public static partial class TdApi + public partial class InputVideoNote : Object { /// - /// A video note to be sent + /// Data type for serialization /// - public partial class InputVideoNote : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputVideoNote"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video note file to be sent. The video is expected to be encoded to MPEG4 format with H.264 codec and have no data outside of the visible circle - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_note")] - public InputFile VideoNote { get; set; } + /// + /// Video note file to be sent. The video is expected to be encoded to MPEG4 format with H.264 codec and have no data outside of the visible circle + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_note")] + public InputFile VideoNote { get; set; } - /// - /// Video thumbnail; may be null if empty; pass null to skip thumbnail uploading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public InputThumbnail Thumbnail { get; set; } + /// + /// Video thumbnail; may be null if empty; pass null to skip thumbnail uploading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public InputThumbnail Thumbnail { get; set; } - /// - /// Duration of the video, in seconds; 0-60 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the video, in seconds; 0-60 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Video width and height; must be positive and not greater than 640 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } - } + /// + /// Video width and height; must be positive and not greater than 640 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InputVoiceNote.cs b/TdLib.Api/Objects/InputVoiceNote.cs index c76f8ad0..de880309 100644 --- a/TdLib.Api/Objects/InputVoiceNote.cs +++ b/TdLib.Api/Objects/InputVoiceNote.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A video note to be sent /// - public static partial class TdApi + public partial class InputVoiceNote : Object { /// - /// A video note to be sent + /// Data type for serialization /// - public partial class InputVoiceNote : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inputVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inputVoiceNote"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Voice note file to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public InputFile VoiceNote { get; set; } + /// + /// Voice note file to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public InputFile VoiceNote { get; set; } - /// - /// Duration of the voice note, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the voice note, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Waveform representation of the voice note in 5-bit format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("waveform")] - public byte[] Waveform { get; set; } - } + /// + /// Waveform representation of the voice note in 5-bit format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("waveform")] + public byte[] Waveform { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InternalLinkTypeAttachmentMenuBot.cs b/TdLib.Api/Objects/InternalLinkTypeAttachmentMenuBot.cs index 8c1336c6..1e0160df 100644 --- a/TdLib.Api/Objects/InternalLinkTypeAttachmentMenuBot.cs +++ b/TdLib.Api/Objects/InternalLinkTypeAttachmentMenuBot.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// Describes an internal https://t.me or tg: link, which must be processed by the application in a special way + /// + public class InternalLinkTypeAttachmentMenuBot : InternalLinkType { /// - /// Describes an internal https://t.me or tg: link, which must be processed by the application in a special way + /// Data type for serialization /// - public class InternalLinkTypeAttachmentMenuBot : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeAttachmentMenuBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeAttachmentMenuBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Target chat to be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("target_chat")] - public TargetChat TargetChat { get; set; } + /// + /// Target chat to be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("target_chat")] + public TargetChat TargetChat { get; set; } - /// - /// Username of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_username")] - public string BotUsername { get; set; } + /// + /// Username of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_username")] + public string BotUsername { get; set; } - /// - /// URL to be passed to openWebApp - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// URL to be passed to openWebApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeAuthenticationCode.cs b/TdLib.Api/Objects/InternalLinkTypeAuthenticationCode.cs index e8d7561e..81e997f0 100644 --- a/TdLib.Api/Objects/InternalLinkTypeAuthenticationCode.cs +++ b/TdLib.Api/Objects/InternalLinkTypeAuthenticationCode.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link contains an authentication code. Call checkAuthenticationCode with the code if the current authorization state is authorizationStateWaitCode + /// + public class InternalLinkTypeAuthenticationCode : InternalLinkType { /// - /// The link contains an authentication code. Call checkAuthenticationCode with the code if the current authorization state is authorizationStateWaitCode + /// Data type for serialization /// - public class InternalLinkTypeAuthenticationCode : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeAuthenticationCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeAuthenticationCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The authentication code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// The authentication code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeBackground.cs b/TdLib.Api/Objects/InternalLinkTypeBackground.cs index 1ab2b613..2da1656e 100644 --- a/TdLib.Api/Objects/InternalLinkTypeBackground.cs +++ b/TdLib.Api/Objects/InternalLinkTypeBackground.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a background. Call searchBackground with the given background name to process the link. + /// If background is found and the user wants to apply it, then call setDefaultBackground + /// + public class InternalLinkTypeBackground : InternalLinkType { /// - /// The link is a link to a background. Call searchBackground with the given background name to process the link. - /// If background is found and the user wants to apply it, then call setDefaultBackground + /// Data type for serialization /// - public class InternalLinkTypeBackground : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeBackground"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background_name")] - public string BackgroundName { get; set; } - } + /// + /// Name of the background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background_name")] + public string BackgroundName { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeBotAddToChannel.cs b/TdLib.Api/Objects/InternalLinkTypeBotAddToChannel.cs index f80d490c..01d71abc 100644 --- a/TdLib.Api/Objects/InternalLinkTypeBotAddToChannel.cs +++ b/TdLib.Api/Objects/InternalLinkTypeBotAddToChannel.cs @@ -2,48 +2,47 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a Telegram bot, which is expected to be added to a channel chat as an administrator. Call searchPublicChat with the given bot username and check that the user is a bot, + /// ask the current user to select a channel chat to add the bot to as an administrator. Then, call getChatMember to receive the current bot rights in the chat and if the bot already is an administrator, + /// check that the current user can edit its administrator rights and combine received rights with the requested administrator rights. Then, show confirmation box to the user, and call setChatMemberStatus with the chosen chat and confirmed rights + /// + public class InternalLinkTypeBotAddToChannel : InternalLinkType { /// - /// The link is a link to a Telegram bot, which is expected to be added to a channel chat as an administrator. Call searchPublicChat with the given bot username and check that the user is a bot, - /// ask the current user to select a channel chat to add the bot to as an administrator. Then, call getChatMember to receive the current bot rights in the chat and if the bot already is an administrator, - /// check that the current user can edit its administrator rights and combine received rights with the requested administrator rights. Then, show confirmation box to the user, and call setChatMemberStatus with the chosen chat and confirmed rights + /// Data type for serialization /// - public class InternalLinkTypeBotAddToChannel : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeBotAddToChannel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeBotAddToChannel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_username")] - public string BotUsername { get; set; } + /// + /// Username of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_username")] + public string BotUsername { get; set; } - /// - /// Expected administrator rights for the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("administrator_rights")] - public ChatAdministratorRights AdministratorRights { get; set; } - } + /// + /// Expected administrator rights for the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("administrator_rights")] + public ChatAdministratorRights AdministratorRights { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeBotStart.cs b/TdLib.Api/Objects/InternalLinkTypeBotStart.cs index 578af261..2dd6a2e1 100644 --- a/TdLib.Api/Objects/InternalLinkTypeBotStart.cs +++ b/TdLib.Api/Objects/InternalLinkTypeBotStart.cs @@ -2,54 +2,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot, + /// and then call sendBotStartMessage with the given start parameter after the button is pressed + /// + public class InternalLinkTypeBotStart : InternalLinkType { /// - /// The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot, - /// and then call sendBotStartMessage with the given start parameter after the button is pressed + /// Data type for serialization /// - public class InternalLinkTypeBotStart : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeBotStart"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeBotStart"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_username")] - public string BotUsername { get; set; } + /// + /// Username of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_username")] + public string BotUsername { get; set; } - /// - /// The parameter to be passed to sendBotStartMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } + /// + /// The parameter to be passed to sendBotStartMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } - /// - /// True, if sendBotStartMessage must be called automatically without showing the START button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("autostart")] - public bool Autostart { get; set; } - } + /// + /// True, if sendBotStartMessage must be called automatically without showing the START button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("autostart")] + public bool Autostart { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeBotStartInGroup.cs b/TdLib.Api/Objects/InternalLinkTypeBotStartInGroup.cs index 616c0c70..e1f00d1b 100644 --- a/TdLib.Api/Objects/InternalLinkTypeBotStartInGroup.cs +++ b/TdLib.Api/Objects/InternalLinkTypeBotStartInGroup.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a Telegram bot, which is expected to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, + /// ask the current user to select a basic group or a supergroup chat to add the bot to, taking into account that bots can be added to a public supergroup only by administrators of the supergroup. + /// If administrator rights are provided by the link, call getChatMember to receive the current bot rights in the chat and if the bot already is an administrator, + /// check that the current user can edit its administrator rights, combine received rights with the requested administrator rights, show confirmation box to the user, + /// and call setChatMemberStatus with the chosen chat and confirmed administrator rights. Before call to setChatMemberStatus it may be required to upgrade the chosen basic group chat to a supergroup chat. + /// Then, if start_parameter isn't empty, call sendBotStartMessage with the given start parameter and the chosen chat; otherwise, just send /start message with bot's username added to the chat + /// + public class InternalLinkTypeBotStartInGroup : InternalLinkType { /// - /// The link is a link to a Telegram bot, which is expected to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, - /// ask the current user to select a basic group or a supergroup chat to add the bot to, taking into account that bots can be added to a public supergroup only by administrators of the supergroup. - /// If administrator rights are provided by the link, call getChatMember to receive the current bot rights in the chat and if the bot already is an administrator, - /// check that the current user can edit its administrator rights, combine received rights with the requested administrator rights, show confirmation box to the user, - /// and call setChatMemberStatus with the chosen chat and confirmed administrator rights. Before call to setChatMemberStatus it may be required to upgrade the chosen basic group chat to a supergroup chat. - /// Then, if start_parameter isn't empty, call sendBotStartMessage with the given start parameter and the chosen chat; otherwise, just send /start message with bot's username added to the chat + /// Data type for serialization /// - public class InternalLinkTypeBotStartInGroup : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeBotStartInGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeBotStartInGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_username")] - public string BotUsername { get; set; } + /// + /// Username of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_username")] + public string BotUsername { get; set; } - /// - /// The parameter to be passed to sendBotStartMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } + /// + /// The parameter to be passed to sendBotStartMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } - /// - /// Expected administrator rights for the bot; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("administrator_rights")] - public ChatAdministratorRights AdministratorRights { get; set; } - } + /// + /// Expected administrator rights for the bot; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("administrator_rights")] + public ChatAdministratorRights AdministratorRights { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeBusinessChat.cs b/TdLib.Api/Objects/InternalLinkTypeBusinessChat.cs index 14ba49d7..740edd47 100644 --- a/TdLib.Api/Objects/InternalLinkTypeBusinessChat.cs +++ b/TdLib.Api/Objects/InternalLinkTypeBusinessChat.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a business chat. Use getBusinessChatLinkInfo with the provided link name to get information about the link, + /// then open received private chat and replace chat draft with the provided text + /// + public class InternalLinkTypeBusinessChat : InternalLinkType { /// - /// The link is a link to a business chat. Use getBusinessChatLinkInfo with the provided link name to get information about the link, - /// then open received private chat and replace chat draft with the provided text + /// Data type for serialization /// - public class InternalLinkTypeBusinessChat : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeBusinessChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeBusinessChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_name")] - public string LinkName { get; set; } - } + /// + /// Name of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link_name")] + public string LinkName { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeCallsPage.cs b/TdLib.Api/Objects/InternalLinkTypeCallsPage.cs index ca90f543..9fd12b14 100644 --- a/TdLib.Api/Objects/InternalLinkTypeCallsPage.cs +++ b/TdLib.Api/Objects/InternalLinkTypeCallsPage.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the Call tab or page + /// + public class InternalLinkTypeCallsPage : InternalLinkType { /// - /// The link is a link to the Call tab or page + /// Data type for serialization /// - public class InternalLinkTypeCallsPage : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeCallsPage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeCallsPage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Section of the page; may be one of - /// "", "all", "missed", "edit", "show-tab", "start-call" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("section")] - public string Section { get; set; } - } + /// + /// Section of the page; may be one of + /// "", "all", "missed", "edit", "show-tab", "start-call" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("section")] + public string Section { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeChatAffiliateProgram.cs b/TdLib.Api/Objects/InternalLinkTypeChatAffiliateProgram.cs index abea4e0e..fd8ac15c 100644 --- a/TdLib.Api/Objects/InternalLinkTypeChatAffiliateProgram.cs +++ b/TdLib.Api/Objects/InternalLinkTypeChatAffiliateProgram.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is an affiliate program link. Call searchChatAffiliateProgram with the given username and referrer to process the link + /// + public class InternalLinkTypeChatAffiliateProgram : InternalLinkType { /// - /// The link is an affiliate program link. Call searchChatAffiliateProgram with the given username and referrer to process the link + /// Data type for serialization /// - public class InternalLinkTypeChatAffiliateProgram : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeChatAffiliateProgram"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeChatAffiliateProgram"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username to be passed to searchChatAffiliateProgram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Username to be passed to searchChatAffiliateProgram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } - /// - /// Referrer to be passed to searchChatAffiliateProgram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("referrer")] - public string Referrer { get; set; } - } + /// + /// Referrer to be passed to searchChatAffiliateProgram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("referrer")] + public string Referrer { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeChatBoost.cs b/TdLib.Api/Objects/InternalLinkTypeChatBoost.cs index 4930ca76..0696fcc4 100644 --- a/TdLib.Api/Objects/InternalLinkTypeChatBoost.cs +++ b/TdLib.Api/Objects/InternalLinkTypeChatBoost.cs @@ -2,41 +2,40 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to boost a Telegram chat. Call getChatBoostLinkInfo with the given URL to process the link. + /// If the chat is found, then call getChatBoostStatus and getAvailableChatBoostSlots to get the current boost status and check whether the chat can be boosted. + /// If the user wants to boost the chat and the chat can be boosted, then call boostChat + /// + public class InternalLinkTypeChatBoost : InternalLinkType { /// - /// The link is a link to boost a Telegram chat. Call getChatBoostLinkInfo with the given URL to process the link. - /// If the chat is found, then call getChatBoostStatus and getAvailableChatBoostSlots to get the current boost status and check whether the chat can be boosted. - /// If the user wants to boost the chat and the chat can be boosted, then call boostChat + /// Data type for serialization /// - public class InternalLinkTypeChatBoost : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeChatBoost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeChatBoost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL to be passed to getChatBoostLinkInfo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// URL to be passed to getChatBoostLinkInfo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeChatFolderInvite.cs b/TdLib.Api/Objects/InternalLinkTypeChatFolderInvite.cs index b0609354..d2ff8a20 100644 --- a/TdLib.Api/Objects/InternalLinkTypeChatFolderInvite.cs +++ b/TdLib.Api/Objects/InternalLinkTypeChatFolderInvite.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is an invite link to a chat folder. Call checkChatFolderInviteLink with the given invite link to process the link. + /// If the link is valid and the user wants to join the chat folder, then call addChatFolderByInviteLink + /// + public class InternalLinkTypeChatFolderInvite : InternalLinkType { /// - /// The link is an invite link to a chat folder. Call checkChatFolderInviteLink with the given invite link to process the link. - /// If the link is valid and the user wants to join the chat folder, then call addChatFolderByInviteLink + /// Data type for serialization /// - public class InternalLinkTypeChatFolderInvite : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeChatFolderInvite"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeChatFolderInvite"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Internal representation of the invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Internal representation of the invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeChatInvite.cs b/TdLib.Api/Objects/InternalLinkTypeChatInvite.cs index 0ddf1a9b..f003fd4a 100644 --- a/TdLib.Api/Objects/InternalLinkTypeChatInvite.cs +++ b/TdLib.Api/Objects/InternalLinkTypeChatInvite.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link. + /// If the link is valid and the user wants to join the chat, then call joinChatByInviteLink + /// + public class InternalLinkTypeChatInvite : InternalLinkType { /// - /// The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link. - /// If the link is valid and the user wants to join the chat, then call joinChatByInviteLink + /// Data type for serialization /// - public class InternalLinkTypeChatInvite : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeChatInvite"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeChatInvite"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Internal representation of the invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Internal representation of the invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeChatSelection.cs b/TdLib.Api/Objects/InternalLinkTypeChatSelection.cs index 614780eb..2601640d 100644 --- a/TdLib.Api/Objects/InternalLinkTypeChatSelection.cs +++ b/TdLib.Api/Objects/InternalLinkTypeChatSelection.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link that allows to select some chats + /// + public class InternalLinkTypeChatSelection : InternalLinkType { /// - /// The link is a link that allows to select some chats + /// Data type for serialization /// - public class InternalLinkTypeChatSelection : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeChatSelection"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeChatSelection"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeContactsPage.cs b/TdLib.Api/Objects/InternalLinkTypeContactsPage.cs index 6803c29c..8f524448 100644 --- a/TdLib.Api/Objects/InternalLinkTypeContactsPage.cs +++ b/TdLib.Api/Objects/InternalLinkTypeContactsPage.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the Contacts tab or page + /// + public class InternalLinkTypeContactsPage : InternalLinkType { /// - /// The link is a link to the Contacts tab or page + /// Data type for serialization /// - public class InternalLinkTypeContactsPage : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeContactsPage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeContactsPage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Section of the page; may be one of - /// "", "search", "sort", "new", "invite", "manage" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("section")] - public string Section { get; set; } - } + /// + /// Section of the page; may be one of + /// "", "search", "sort", "new", "invite", "manage" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("section")] + public string Section { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeDirectMessagesChat.cs b/TdLib.Api/Objects/InternalLinkTypeDirectMessagesChat.cs index ad3b6295..3d37b8f6 100644 --- a/TdLib.Api/Objects/InternalLinkTypeDirectMessagesChat.cs +++ b/TdLib.Api/Objects/InternalLinkTypeDirectMessagesChat.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a channel direct messages chat by username of the channel. Call searchPublicChat with the given chat username to process the link. + /// If the chat is found and is channel, open the direct messages chat of the channel + /// + public class InternalLinkTypeDirectMessagesChat : InternalLinkType { /// - /// The link is a link to a channel direct messages chat by username of the channel. Call searchPublicChat with the given chat username to process the link. - /// If the chat is found and is channel, open the direct messages chat of the channel + /// Data type for serialization /// - public class InternalLinkTypeDirectMessagesChat : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeDirectMessagesChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeDirectMessagesChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("channel_username")] - public string ChannelUsername { get; set; } - } + /// + /// Username of the channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("channel_username")] + public string ChannelUsername { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeGame.cs b/TdLib.Api/Objects/InternalLinkTypeGame.cs index 36a97970..82f1cc14 100644 --- a/TdLib.Api/Objects/InternalLinkTypeGame.cs +++ b/TdLib.Api/Objects/InternalLinkTypeGame.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, + /// ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame + /// + public class InternalLinkTypeGame : InternalLinkType { /// - /// The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, - /// ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame + /// Data type for serialization /// - public class InternalLinkTypeGame : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the bot that owns the game - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_username")] - public string BotUsername { get; set; } + /// + /// Username of the bot that owns the game + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_username")] + public string BotUsername { get; set; } - /// - /// Short name of the game - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("game_short_name")] - public string GameShortName { get; set; } - } + /// + /// Short name of the game + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("game_short_name")] + public string GameShortName { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeGiftAuction.cs b/TdLib.Api/Objects/InternalLinkTypeGiftAuction.cs index e275445f..a0842f34 100644 --- a/TdLib.Api/Objects/InternalLinkTypeGiftAuction.cs +++ b/TdLib.Api/Objects/InternalLinkTypeGiftAuction.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a gift auction. Call getGiftAuctionState with the given auction identifier to process the link + /// + public class InternalLinkTypeGiftAuction : InternalLinkType { /// - /// The link is a link to a gift auction. Call getGiftAuctionState with the given auction identifier to process the link + /// Data type for serialization /// - public class InternalLinkTypeGiftAuction : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeGiftAuction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeGiftAuction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auction_id")] - public string AuctionId { get; set; } - } + /// + /// Unique identifier of the auction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("auction_id")] + public string AuctionId { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeGiftCollection.cs b/TdLib.Api/Objects/InternalLinkTypeGiftCollection.cs index efc02465..b5ec23db 100644 --- a/TdLib.Api/Objects/InternalLinkTypeGiftCollection.cs +++ b/TdLib.Api/Objects/InternalLinkTypeGiftCollection.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a gift collection. Call searchPublicChat with the given username, then call getReceivedGifts with the received gift owner identifier + /// and the given collection identifier, then show the collection if received + /// + public class InternalLinkTypeGiftCollection : InternalLinkType { /// - /// The link is a link to a gift collection. Call searchPublicChat with the given username, then call getReceivedGifts with the received gift owner identifier - /// and the given collection identifier, then show the collection if received + /// Data type for serialization /// - public class InternalLinkTypeGiftCollection : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeGiftCollection"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeGiftCollection"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the owner of the gift collection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_owner_username")] - public string GiftOwnerUsername { get; set; } + /// + /// Username of the owner of the gift collection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_owner_username")] + public string GiftOwnerUsername { get; set; } - /// - /// Gift collection identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("collection_id")] - public int CollectionId { get; set; } - } + /// + /// Gift collection identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_id")] + public int CollectionId { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeGroupCall.cs b/TdLib.Api/Objects/InternalLinkTypeGroupCall.cs index 0af9fbe7..3c73dad6 100644 --- a/TdLib.Api/Objects/InternalLinkTypeGroupCall.cs +++ b/TdLib.Api/Objects/InternalLinkTypeGroupCall.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a group call that isn't bound to a chat. Use getGroupCallParticipants to get the list of group call participants and show them on the join group call screen. + /// Call joinGroupCall with the given invite_link to join the call + /// + public class InternalLinkTypeGroupCall : InternalLinkType { /// - /// The link is a link to a group call that isn't bound to a chat. Use getGroupCallParticipants to get the list of group call participants and show them on the join group call screen. - /// Call joinGroupCall with the given invite_link to join the call + /// Data type for serialization /// - public class InternalLinkTypeGroupCall : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeGroupCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeGroupCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Internal representation of the invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Internal representation of the invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeInstantView.cs b/TdLib.Api/Objects/InternalLinkTypeInstantView.cs index 04ec0f73..2c43c343 100644 --- a/TdLib.Api/Objects/InternalLinkTypeInstantView.cs +++ b/TdLib.Api/Objects/InternalLinkTypeInstantView.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link must be opened in an Instant View. Call getWebPageInstantView with the given URL to process the link. + /// If Instant View is found, then show it, otherwise, open the fallback URL in an external browser + /// + public class InternalLinkTypeInstantView : InternalLinkType { /// - /// The link must be opened in an Instant View. Call getWebPageInstantView with the given URL to process the link. - /// If Instant View is found, then show it, otherwise, open the fallback URL in an external browser + /// Data type for serialization /// - public class InternalLinkTypeInstantView : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeInstantView"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeInstantView"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL to be passed to getWebPageInstantView - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL to be passed to getWebPageInstantView + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// An URL to open if getWebPageInstantView fails - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fallback_url")] - public string FallbackUrl { get; set; } - } + /// + /// An URL to open if getWebPageInstantView fails + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fallback_url")] + public string FallbackUrl { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeInvoice.cs b/TdLib.Api/Objects/InternalLinkTypeInvoice.cs index 6ee97a28..82878975 100644 --- a/TdLib.Api/Objects/InternalLinkTypeInvoice.cs +++ b/TdLib.Api/Objects/InternalLinkTypeInvoice.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to an invoice. Call getPaymentForm with the given invoice name to process the link + /// + public class InternalLinkTypeInvoice : InternalLinkType { /// - /// The link is a link to an invoice. Call getPaymentForm with the given invoice name to process the link + /// Data type for serialization /// - public class InternalLinkTypeInvoice : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeInvoice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeInvoice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_name")] - public string InvoiceName { get; set; } - } + /// + /// Name of the invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_name")] + public string InvoiceName { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeLanguagePack.cs b/TdLib.Api/Objects/InternalLinkTypeLanguagePack.cs index 378e80ef..84f081cb 100644 --- a/TdLib.Api/Objects/InternalLinkTypeLanguagePack.cs +++ b/TdLib.Api/Objects/InternalLinkTypeLanguagePack.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the link. + /// If the language pack is found and the user wants to apply it, then call setOption for the option "language_pack_id" + /// + public class InternalLinkTypeLanguagePack : InternalLinkType { /// - /// The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the link. - /// If the language pack is found and the user wants to apply it, then call setOption for the option "language_pack_id" + /// Data type for serialization /// - public class InternalLinkTypeLanguagePack : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeLanguagePack"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeLanguagePack"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Language pack identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } - } + /// + /// Language pack identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeLiveStory.cs b/TdLib.Api/Objects/InternalLinkTypeLiveStory.cs index 116da022..7df56fd3 100644 --- a/TdLib.Api/Objects/InternalLinkTypeLiveStory.cs +++ b/TdLib.Api/Objects/InternalLinkTypeLiveStory.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a live story. Call searchPublicChat with the given chat username, then getChatActiveStories to get active stories in the chat, + /// then find a live story among active stories of the chat, and then joinLiveStory to join the live story + /// + public class InternalLinkTypeLiveStory : InternalLinkType { /// - /// The link is a link to a live story. Call searchPublicChat with the given chat username, then getChatActiveStories to get active stories in the chat, - /// then find a live story among active stories of the chat, and then joinLiveStory to join the live story + /// Data type for serialization /// - public class InternalLinkTypeLiveStory : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeLiveStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeLiveStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the poster of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_username")] - public string StoryPosterUsername { get; set; } - } + /// + /// Username of the poster of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_username")] + public string StoryPosterUsername { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeMainWebApp.cs b/TdLib.Api/Objects/InternalLinkTypeMainWebApp.cs index 9135fe35..1ce81a4f 100644 --- a/TdLib.Api/Objects/InternalLinkTypeMainWebApp.cs +++ b/TdLib.Api/Objects/InternalLinkTypeMainWebApp.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user is a bot and has the main Web App. + /// If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive information about the bot, then if the bot isn't added to side menu, + /// show a disclaimer about Mini Apps being third-party applications, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu, + /// then if the user accepts the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot. + /// Then, use getMainWebApp with the given start parameter and mode and open the returned URL as a Web App + /// + public class InternalLinkTypeMainWebApp : InternalLinkType { /// - /// The link is a link to the main Web App of a bot. Call searchPublicChat with the given bot username, check that the user is a bot and has the main Web App. - /// If the bot can be added to attachment menu, then use getAttachmentMenuBot to receive information about the bot, then if the bot isn't added to side menu, - /// show a disclaimer about Mini Apps being third-party applications, ask the user to accept their Terms of service and confirm adding the bot to side and attachment menu, - /// then if the user accepts the terms and confirms adding, use toggleBotIsAddedToAttachmentMenu to add the bot. - /// Then, use getMainWebApp with the given start parameter and mode and open the returned URL as a Web App + /// Data type for serialization /// - public class InternalLinkTypeMainWebApp : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeMainWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeMainWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_username")] - public string BotUsername { get; set; } + /// + /// Username of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_username")] + public string BotUsername { get; set; } - /// - /// Start parameter to be passed to getMainWebApp - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } + /// + /// Start parameter to be passed to getMainWebApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } - /// - /// The mode to be passed to getMainWebApp - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mode")] - public WebAppOpenMode Mode { get; set; } - } + /// + /// The mode to be passed to getMainWebApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mode")] + public WebAppOpenMode Mode { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeMessage.cs b/TdLib.Api/Objects/InternalLinkTypeMessage.cs index 87987074..86ccc4c4 100644 --- a/TdLib.Api/Objects/InternalLinkTypeMessage.cs +++ b/TdLib.Api/Objects/InternalLinkTypeMessage.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a Telegram message or a forum topic. Call getMessageLinkInfo with the given URL to process the link, + /// and then open received forum topic or chat and show the message there + /// + public class InternalLinkTypeMessage : InternalLinkType { /// - /// The link is a link to a Telegram message or a forum topic. Call getMessageLinkInfo with the given URL to process the link, - /// and then open received forum topic or chat and show the message there + /// Data type for serialization /// - public class InternalLinkTypeMessage : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL to be passed to getMessageLinkInfo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// URL to be passed to getMessageLinkInfo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeMessageDraft.cs b/TdLib.Api/Objects/InternalLinkTypeMessageDraft.cs index cd83aabe..11cf3c0b 100644 --- a/TdLib.Api/Objects/InternalLinkTypeMessageDraft.cs +++ b/TdLib.Api/Objects/InternalLinkTypeMessageDraft.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the input field + /// + public class InternalLinkTypeMessageDraft : InternalLinkType { /// - /// The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the input field + /// Data type for serialization /// - public class InternalLinkTypeMessageDraft : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeMessageDraft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeMessageDraft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message draft text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Message draft text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// True, if the first line of the text contains a link. If true, the input field needs to be focused and the text after the link must be selected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contains_link")] - public bool ContainsLink { get; set; } - } + /// + /// True, if the first line of the text contains a link. If true, the input field needs to be focused and the text after the link must be selected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contains_link")] + public bool ContainsLink { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeMyProfilePage.cs b/TdLib.Api/Objects/InternalLinkTypeMyProfilePage.cs index 4f883aca..61c4fd15 100644 --- a/TdLib.Api/Objects/InternalLinkTypeMyProfilePage.cs +++ b/TdLib.Api/Objects/InternalLinkTypeMyProfilePage.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the My Profile application page + /// + public class InternalLinkTypeMyProfilePage : InternalLinkType { /// - /// The link is a link to the My Profile application page + /// Data type for serialization /// - public class InternalLinkTypeMyProfilePage : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeMyProfilePage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeMyProfilePage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Section of the page; may be one of - /// "", "posts", "posts/all-stories", "posts/add-album", "gifts", "archived-posts" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("section")] - public string Section { get; set; } - } + /// + /// Section of the page; may be one of + /// "", "posts", "posts/all-stories", "posts/add-album", "gifts", "archived-posts" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("section")] + public string Section { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeNewChannelChat.cs b/TdLib.Api/Objects/InternalLinkTypeNewChannelChat.cs index 9afa4f66..d8eb484e 100644 --- a/TdLib.Api/Objects/InternalLinkTypeNewChannelChat.cs +++ b/TdLib.Api/Objects/InternalLinkTypeNewChannelChat.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the screen for creating a new channel chat + /// + public class InternalLinkTypeNewChannelChat : InternalLinkType { /// - /// The link is a link to the screen for creating a new channel chat + /// Data type for serialization /// - public class InternalLinkTypeNewChannelChat : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeNewChannelChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeNewChannelChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeNewGroupChat.cs b/TdLib.Api/Objects/InternalLinkTypeNewGroupChat.cs index 4639e6d4..797d5ab1 100644 --- a/TdLib.Api/Objects/InternalLinkTypeNewGroupChat.cs +++ b/TdLib.Api/Objects/InternalLinkTypeNewGroupChat.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the screen for creating a new group chat + /// + public class InternalLinkTypeNewGroupChat : InternalLinkType { /// - /// The link is a link to the screen for creating a new group chat + /// Data type for serialization /// - public class InternalLinkTypeNewGroupChat : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeNewGroupChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeNewGroupChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeNewPrivateChat.cs b/TdLib.Api/Objects/InternalLinkTypeNewPrivateChat.cs index a4a75e50..9abffd4b 100644 --- a/TdLib.Api/Objects/InternalLinkTypeNewPrivateChat.cs +++ b/TdLib.Api/Objects/InternalLinkTypeNewPrivateChat.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the screen for creating a new private chat with a contact + /// + public class InternalLinkTypeNewPrivateChat : InternalLinkType { /// - /// The link is a link to the screen for creating a new private chat with a contact + /// Data type for serialization /// - public class InternalLinkTypeNewPrivateChat : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeNewPrivateChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeNewPrivateChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeNewStory.cs b/TdLib.Api/Objects/InternalLinkTypeNewStory.cs index 5e201f98..d9bdf6af 100644 --- a/TdLib.Api/Objects/InternalLinkTypeNewStory.cs +++ b/TdLib.Api/Objects/InternalLinkTypeNewStory.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to open the story posting interface + /// + public class InternalLinkTypeNewStory : InternalLinkType { /// - /// The link is a link to open the story posting interface + /// Data type for serialization /// - public class InternalLinkTypeNewStory : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeNewStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeNewStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The type of the content of the story to post; may be null if unspecified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content_type")] - public StoryContentType ContentType { get; set; } - } + /// + /// The type of the content of the story to post; may be null if unspecified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content_type")] + public StoryContentType ContentType { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeOauth.cs b/TdLib.Api/Objects/InternalLinkTypeOauth.cs index 0a70fa4f..1f9a8ec9 100644 --- a/TdLib.Api/Objects/InternalLinkTypeOauth.cs +++ b/TdLib.Api/Objects/InternalLinkTypeOauth.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is an OAuth link. Call getOauthLinkInfo with the given URL to process the link if the link was received from outside of the application; otherwise, ignore it. + /// After getOauthLinkInfo, show the user confirmation dialog and process it with checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest + /// + public class InternalLinkTypeOauth : InternalLinkType { /// - /// The link is an OAuth link. Call getOauthLinkInfo with the given URL to process the link if the link was received from outside of the application; otherwise, ignore it. - /// After getOauthLinkInfo, show the user confirmation dialog and process it with checkOauthRequestMatchCode, acceptOauthRequest or declineOauthRequest + /// Data type for serialization /// - public class InternalLinkTypeOauth : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeOauth"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeOauth"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL to be passed to getOauthLinkInfo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// URL to be passed to getOauthLinkInfo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypePassportDataRequest.cs b/TdLib.Api/Objects/InternalLinkTypePassportDataRequest.cs index e7d6b46e..d070aa9a 100644 --- a/TdLib.Api/Objects/InternalLinkTypePassportDataRequest.cs +++ b/TdLib.Api/Objects/InternalLinkTypePassportDataRequest.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it + /// + public class InternalLinkTypePassportDataRequest : InternalLinkType { /// - /// The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it + /// Data type for serialization /// - public class InternalLinkTypePassportDataRequest : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypePassportDataRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypePassportDataRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the service's bot; the corresponding user may be unknown yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of the service's bot; the corresponding user may be unknown yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Telegram Passport element types requested by the service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public string Scope { get; set; } + /// + /// Telegram Passport element types requested by the service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public string Scope { get; set; } - /// - /// Service's public key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("public_key")] - public string PublicKey { get; set; } + /// + /// Service's public key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_key")] + public string PublicKey { get; set; } - /// - /// Unique request identifier provided by the service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("nonce")] - public string Nonce { get; set; } + /// + /// Unique request identifier provided by the service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("nonce")] + public string Nonce { get; set; } - /// - /// An HTTP URL to open once the request is finished, canceled, or failed with the parameters tg_passport=success, tg_passport=cancel, or tg_passport=error&error=... respectively. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("callback_url")] - public string CallbackUrl { get; set; } - } + /// + /// An HTTP URL to open once the request is finished, canceled, or failed with the parameters tg_passport=success, tg_passport=cancel, or tg_passport=error&error=... respectively. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("callback_url")] + public string CallbackUrl { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypePhoneNumberConfirmation.cs b/TdLib.Api/Objects/InternalLinkTypePhoneNumberConfirmation.cs index 76c3f8eb..76623576 100644 --- a/TdLib.Api/Objects/InternalLinkTypePhoneNumberConfirmation.cs +++ b/TdLib.Api/Objects/InternalLinkTypePhoneNumberConfirmation.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link can be used to confirm ownership of a phone number to prevent account deletion. Call sendPhoneNumberCode with the given phone number and with phoneNumberCodeTypeConfirmOwnership with the given hash to process the link. + /// If succeeded, call checkPhoneNumberCode to check entered by the user code, or resendPhoneNumberCode to resend it + /// + public class InternalLinkTypePhoneNumberConfirmation : InternalLinkType { /// - /// The link can be used to confirm ownership of a phone number to prevent account deletion. Call sendPhoneNumberCode with the given phone number and with phoneNumberCodeTypeConfirmOwnership with the given hash to process the link. - /// If succeeded, call checkPhoneNumberCode to check entered by the user code, or resendPhoneNumberCode to resend it + /// Data type for serialization /// - public class InternalLinkTypePhoneNumberConfirmation : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypePhoneNumberConfirmation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypePhoneNumberConfirmation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Hash value from the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hash")] - public string Hash { get; set; } + /// + /// Hash value from the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hash")] + public string Hash { get; set; } - /// - /// Phone number value from the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } - } + /// + /// Phone number value from the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypePremiumFeaturesPage.cs b/TdLib.Api/Objects/InternalLinkTypePremiumFeaturesPage.cs index 02a00451..bb878160 100644 --- a/TdLib.Api/Objects/InternalLinkTypePremiumFeaturesPage.cs +++ b/TdLib.Api/Objects/InternalLinkTypePremiumFeaturesPage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the Premium features screen of the application from which the user can subscribe to Telegram Premium. Call getPremiumFeatures with the given referrer to process the link + /// + public class InternalLinkTypePremiumFeaturesPage : InternalLinkType { /// - /// The link is a link to the Premium features screen of the application from which the user can subscribe to Telegram Premium. Call getPremiumFeatures with the given referrer to process the link + /// Data type for serialization /// - public class InternalLinkTypePremiumFeaturesPage : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypePremiumFeaturesPage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypePremiumFeaturesPage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Referrer specified in the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("referrer")] - public string Referrer { get; set; } - } + /// + /// Referrer specified in the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("referrer")] + public string Referrer { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypePremiumGiftCode.cs b/TdLib.Api/Objects/InternalLinkTypePremiumGiftCode.cs index 56f4c476..f3d68a8e 100644 --- a/TdLib.Api/Objects/InternalLinkTypePremiumGiftCode.cs +++ b/TdLib.Api/Objects/InternalLinkTypePremiumGiftCode.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. + /// If the code is valid and the user wants to apply it, then call applyPremiumGiftCode + /// + public class InternalLinkTypePremiumGiftCode : InternalLinkType { /// - /// The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. - /// If the code is valid and the user wants to apply it, then call applyPremiumGiftCode + /// Data type for serialization /// - public class InternalLinkTypePremiumGiftCode : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypePremiumGiftCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypePremiumGiftCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The Telegram Premium gift code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// The Telegram Premium gift code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypePremiumGiftPurchase.cs b/TdLib.Api/Objects/InternalLinkTypePremiumGiftPurchase.cs index 776bf6a4..5a7b0d89 100644 --- a/TdLib.Api/Objects/InternalLinkTypePremiumGiftPurchase.cs +++ b/TdLib.Api/Objects/InternalLinkTypePremiumGiftPurchase.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the screen for gifting Telegram Premium subscriptions to friends via inputInvoiceTelegram with telegramPaymentPurposePremiumGift payments or in-store purchases + /// + public class InternalLinkTypePremiumGiftPurchase : InternalLinkType { /// - /// The link is a link to the screen for gifting Telegram Premium subscriptions to friends via inputInvoiceTelegram with telegramPaymentPurposePremiumGift payments or in-store purchases + /// Data type for serialization /// - public class InternalLinkTypePremiumGiftPurchase : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypePremiumGiftPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypePremiumGiftPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Referrer specified in the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("referrer")] - public string Referrer { get; set; } - } + /// + /// Referrer specified in the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("referrer")] + public string Referrer { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeProxy.cs b/TdLib.Api/Objects/InternalLinkTypeProxy.cs index 82a391b2..0c39b29a 100644 --- a/TdLib.Api/Objects/InternalLinkTypeProxy.cs +++ b/TdLib.Api/Objects/InternalLinkTypeProxy.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy + /// + public class InternalLinkTypeProxy : InternalLinkType { /// - /// The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy + /// Data type for serialization /// - public class InternalLinkTypeProxy : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeProxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeProxy"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The proxy; may be null if the proxy is unsupported, in which case an alert can be shown to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proxy")] - public Proxy Proxy { get; set; } - } + /// + /// The proxy; may be null if the proxy is unsupported, in which case an alert can be shown to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proxy")] + public Proxy Proxy { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypePublicChat.cs b/TdLib.Api/Objects/InternalLinkTypePublicChat.cs index b66f12d4..f8df6f3e 100644 --- a/TdLib.Api/Objects/InternalLinkTypePublicChat.cs +++ b/TdLib.Api/Objects/InternalLinkTypePublicChat.cs @@ -2,55 +2,54 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link. + /// If the chat is found, open its profile information screen or the chat itself. + /// If draft text isn't empty and the chat is a private chat with a regular user, then put the draft text in the input field + /// + public class InternalLinkTypePublicChat : InternalLinkType { /// - /// The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link. - /// If the chat is found, open its profile information screen or the chat itself. - /// If draft text isn't empty and the chat is a private chat with a regular user, then put the draft text in the input field + /// Data type for serialization /// - public class InternalLinkTypePublicChat : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypePublicChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypePublicChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_username")] - public string ChatUsername { get; set; } + /// + /// Username of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_username")] + public string ChatUsername { get; set; } - /// - /// Draft text for message to send in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_text")] - public string DraftText { get; set; } + /// + /// Draft text for message to send in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_text")] + public string DraftText { get; set; } - /// - /// True, if chat profile information screen must be opened; otherwise, the chat itself must be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("open_profile")] - public bool OpenProfile { get; set; } - } + /// + /// True, if chat profile information screen must be opened; otherwise, the chat itself must be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("open_profile")] + public bool OpenProfile { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeQrCodeAuthentication.cs b/TdLib.Api/Objects/InternalLinkTypeQrCodeAuthentication.cs index a5b23566..4d594649 100644 --- a/TdLib.Api/Objects/InternalLinkTypeQrCodeAuthentication.cs +++ b/TdLib.Api/Objects/InternalLinkTypeQrCodeAuthentication.cs @@ -2,35 +2,34 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link can be used to login the current user on another device, but it must be scanned from QR-code using in-app camera. An alert similar to + /// "This code can be used to allow someone to log in to your Telegram account. To confirm Telegram login, please go to Settings > Devices > Scan QR and scan the code" needs to be shown + /// + public class InternalLinkTypeQrCodeAuthentication : InternalLinkType { /// - /// The link can be used to login the current user on another device, but it must be scanned from QR-code using in-app camera. An alert similar to - /// "This code can be used to allow someone to log in to your Telegram account. To confirm Telegram login, please go to Settings > Devices > Scan QR and scan the code" needs to be shown + /// Data type for serialization /// - public class InternalLinkTypeQrCodeAuthentication : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeQrCodeAuthentication"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeQrCodeAuthentication"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeRequestManagedBot.cs b/TdLib.Api/Objects/InternalLinkTypeRequestManagedBot.cs index 47a70d9f..305274d8 100644 --- a/TdLib.Api/Objects/InternalLinkTypeRequestManagedBot.cs +++ b/TdLib.Api/Objects/InternalLinkTypeRequestManagedBot.cs @@ -2,55 +2,54 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. + /// If the chat is found, the chat is a chat with a bot and the bot has can_manage_bots == true, then show bot creation confirmation dialog + /// with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot + /// + public class InternalLinkTypeRequestManagedBot : InternalLinkType { /// - /// The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. - /// If the chat is found, the chat is a chat with a bot and the bot has can_manage_bots == true, then show bot creation confirmation dialog - /// with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot + /// Data type for serialization /// - public class InternalLinkTypeRequestManagedBot : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeRequestManagedBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeRequestManagedBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the bot which will manage the new bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("manager_bot_username")] - public string ManagerBotUsername { get; set; } + /// + /// Username of the bot which will manage the new bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manager_bot_username")] + public string ManagerBotUsername { get; set; } - /// - /// Suggested username for the bot; always ends with "bot" case-insensitive - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_bot_username")] - public string SuggestedBotUsername { get; set; } + /// + /// Suggested username for the bot; always ends with "bot" or a string from updateAllowedBotUsernamePremiumSuffixes case-insensitive + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_bot_username")] + public string SuggestedBotUsername { get; set; } - /// - /// Suggested name for the bot; may be empty if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_bot_name")] - public string SuggestedBotName { get; set; } - } + /// + /// Suggested name for the bot; may be empty if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_bot_name")] + public string SuggestedBotName { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeRestorePurchases.cs b/TdLib.Api/Objects/InternalLinkTypeRestorePurchases.cs index 6bdd87db..40b7effe 100644 --- a/TdLib.Api/Objects/InternalLinkTypeRestorePurchases.cs +++ b/TdLib.Api/Objects/InternalLinkTypeRestorePurchases.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link forces restore of App Store purchases when opened. For official iOS application only + /// + public class InternalLinkTypeRestorePurchases : InternalLinkType { /// - /// The link forces restore of App Store purchases when opened. For official iOS application only + /// Data type for serialization /// - public class InternalLinkTypeRestorePurchases : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeRestorePurchases"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeRestorePurchases"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeSavedMessages.cs b/TdLib.Api/Objects/InternalLinkTypeSavedMessages.cs index 80c7b106..1272a152 100644 --- a/TdLib.Api/Objects/InternalLinkTypeSavedMessages.cs +++ b/TdLib.Api/Objects/InternalLinkTypeSavedMessages.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the Saved Messages chat. Call createPrivateChat with getOption("my_id") and open the chat + /// + public class InternalLinkTypeSavedMessages : InternalLinkType { /// - /// The link is a link to the Saved Messages chat. Call createPrivateChat with getOption("my_id") and open the chat + /// Data type for serialization /// - public class InternalLinkTypeSavedMessages : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeSavedMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeSavedMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeSearch.cs b/TdLib.Api/Objects/InternalLinkTypeSearch.cs index 88cc0935..7d27954f 100644 --- a/TdLib.Api/Objects/InternalLinkTypeSearch.cs +++ b/TdLib.Api/Objects/InternalLinkTypeSearch.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the global chat and messages search field + /// + public class InternalLinkTypeSearch : InternalLinkType { /// - /// The link is a link to the global chat and messages search field + /// Data type for serialization /// - public class InternalLinkTypeSearch : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeSearch"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeSearch"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeSettings.cs b/TdLib.Api/Objects/InternalLinkTypeSettings.cs index fd266128..1f0e5614 100644 --- a/TdLib.Api/Objects/InternalLinkTypeSettings.cs +++ b/TdLib.Api/Objects/InternalLinkTypeSettings.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to application settings + /// + public class InternalLinkTypeSettings : InternalLinkType { /// - /// The link is a link to application settings + /// Data type for serialization /// - public class InternalLinkTypeSettings : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeSettings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Section of the application settings to open; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("section")] - public SettingsSection Section { get; set; } - } + /// + /// Section of the application settings to open; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("section")] + public SettingsSection Section { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeStarPurchase.cs b/TdLib.Api/Objects/InternalLinkTypeStarPurchase.cs index 88b7edc6..c142e215 100644 --- a/TdLib.Api/Objects/InternalLinkTypeStarPurchase.cs +++ b/TdLib.Api/Objects/InternalLinkTypeStarPurchase.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to the Telegram Star purchase section of the application + /// + public class InternalLinkTypeStarPurchase : InternalLinkType { /// - /// The link is a link to the Telegram Star purchase section of the application + /// Data type for serialization /// - public class InternalLinkTypeStarPurchase : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeStarPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeStarPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars that must be owned by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// The number of Telegram Stars that must be owned by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Purpose of Telegram Star purchase. Arbitrary string specified by the server, for example, "subs" if the Telegram Stars are required to extend channel subscriptions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("purpose")] - public string Purpose { get; set; } - } + /// + /// Purpose of Telegram Star purchase. Arbitrary string specified by the server, for example, "subs" if the Telegram Stars are required to extend channel subscriptions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("purpose")] + public string Purpose { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeStickerSet.cs b/TdLib.Api/Objects/InternalLinkTypeStickerSet.cs index ea68f2b6..e1a2810e 100644 --- a/TdLib.Api/Objects/InternalLinkTypeStickerSet.cs +++ b/TdLib.Api/Objects/InternalLinkTypeStickerSet.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a sticker set. Call searchStickerSet with the given sticker set name to process the link and show the sticker set. + /// If the sticker set is found and the user wants to add it, then call changeStickerSet + /// + public class InternalLinkTypeStickerSet : InternalLinkType { /// - /// The link is a link to a sticker set. Call searchStickerSet with the given sticker set name to process the link and show the sticker set. - /// If the sticker set is found and the user wants to add it, then call changeStickerSet + /// Data type for serialization /// - public class InternalLinkTypeStickerSet : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeStickerSet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeStickerSet"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the sticker set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_set_name")] - public string StickerSetName { get; set; } + /// + /// Name of the sticker set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_set_name")] + public string StickerSetName { get; set; } - /// - /// True, if the sticker set is expected to contain custom emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expect_custom_emoji")] - public bool ExpectCustomEmoji { get; set; } - } + /// + /// True, if the sticker set is expected to contain custom emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expect_custom_emoji")] + public bool ExpectCustomEmoji { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeStory.cs b/TdLib.Api/Objects/InternalLinkTypeStory.cs index 04e35988..6a2f90f6 100644 --- a/TdLib.Api/Objects/InternalLinkTypeStory.cs +++ b/TdLib.Api/Objects/InternalLinkTypeStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a story. Call searchPublicChat with the given poster username, then call getStory with the received chat identifier and the given story identifier, then show the story if received + /// + public class InternalLinkTypeStory : InternalLinkType { /// - /// The link is a link to a story. Call searchPublicChat with the given poster username, then call getStory with the received chat identifier and the given story identifier, then show the story if received + /// Data type for serialization /// - public class InternalLinkTypeStory : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the poster of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_username")] - public string StoryPosterUsername { get; set; } + /// + /// Username of the poster of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_username")] + public string StoryPosterUsername { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeStoryAlbum.cs b/TdLib.Api/Objects/InternalLinkTypeStoryAlbum.cs index 21a57bbe..cb08a785 100644 --- a/TdLib.Api/Objects/InternalLinkTypeStoryAlbum.cs +++ b/TdLib.Api/Objects/InternalLinkTypeStoryAlbum.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to an album of stories. Call searchPublicChat with the given username, then call getStoryAlbumStories with the received chat identifier + /// and the given story album identifier, then show the story album if received + /// + public class InternalLinkTypeStoryAlbum : InternalLinkType { /// - /// The link is a link to an album of stories. Call searchPublicChat with the given username, then call getStoryAlbumStories with the received chat identifier - /// and the given story album identifier, then show the story album if received + /// Data type for serialization /// - public class InternalLinkTypeStoryAlbum : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeStoryAlbum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeStoryAlbum"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the owner of the story album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_owner_username")] - public string StoryAlbumOwnerUsername { get; set; } + /// + /// Username of the owner of the story album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_owner_username")] + public string StoryAlbumOwnerUsername { get; set; } - /// - /// Story album identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_album_id")] - public int StoryAlbumId { get; set; } - } + /// + /// Story album identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_album_id")] + public int StoryAlbumId { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeTextCompositionStyle.cs b/TdLib.Api/Objects/InternalLinkTypeTextCompositionStyle.cs index 995c178a..32acafe8 100644 --- a/TdLib.Api/Objects/InternalLinkTypeTextCompositionStyle.cs +++ b/TdLib.Api/Objects/InternalLinkTypeTextCompositionStyle.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a text composition style. Call searchTextCompositionStyle with the given style name to get information about the style. + /// If the style is found and the user wants to add it, then call addTextCompositionStyle + /// + public class InternalLinkTypeTextCompositionStyle : InternalLinkType { /// - /// The link is a link to a text composition style. Call searchTextCompositionStyle with the given style name to get information about the style. - /// If the style is found and the user wants to add it, then call addTextCompositionStyle + /// Data type for serialization /// - public class InternalLinkTypeTextCompositionStyle : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeTextCompositionStyle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeTextCompositionStyle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("style_name")] - public string StyleName { get; set; } - } + /// + /// Name of the style + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("style_name")] + public string StyleName { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeTheme.cs b/TdLib.Api/Objects/InternalLinkTypeTheme.cs index 1bf2132a..d8427aa8 100644 --- a/TdLib.Api/Objects/InternalLinkTypeTheme.cs +++ b/TdLib.Api/Objects/InternalLinkTypeTheme.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a cloud theme. TDLib has no theme support yet + /// + public class InternalLinkTypeTheme : InternalLinkType { /// - /// The link is a link to a cloud theme. TDLib has no theme support yet + /// Data type for serialization /// - public class InternalLinkTypeTheme : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeTheme"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme_name")] - public string ThemeName { get; set; } - } + /// + /// Name of the theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("theme_name")] + public string ThemeName { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeTonConnect.cs b/TdLib.Api/Objects/InternalLinkTypeTonConnect.cs new file mode 100644 index 00000000..c40b3ade --- /dev/null +++ b/TdLib.Api/Objects/InternalLinkTypeTonConnect.cs @@ -0,0 +1,75 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class InternalLinkType : Object + { + /// + /// The link is a universal TON Connect link + /// + public class InternalLinkTypeTonConnect : InternalLinkType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeTonConnect"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// TON Connect version + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("version")] + public int Version { get; set; } + + /// + /// Hex-encoded public X25519 key of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dapp_client_id")] + public string DappClientId { get; set; } + + /// + /// TON Connect connect request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connect_request")] + public TonConnectConnectRequest ConnectRequest { get; set; } + + /// + /// Request return strategy; one of "back", "none", or a URL to open + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("return_strategy")] + public string ReturnStrategy { get; set; } + + /// + /// Embedded RPC request represented as base64url-encoded JSON + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rpc_request")] + public string RpcRequest { get; set; } + + /// + /// Identifier to trace the connection request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("trace_id")] + public string TraceId { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InternalLinkTypeTonWalletTransfer.cs b/TdLib.Api/Objects/InternalLinkTypeTonWalletTransfer.cs new file mode 100644 index 00000000..b9a5f266 --- /dev/null +++ b/TdLib.Api/Objects/InternalLinkTypeTonWalletTransfer.cs @@ -0,0 +1,47 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class InternalLinkType : Object + { + /// + /// The link is a link for sending Grams from the user's TON wallet + /// + public class InternalLinkTypeTonWalletTransfer : InternalLinkType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeTonWalletTransfer"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Chosen receiver of the transfer; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver")] + public TonWalletTransferReceiver Receiver { get; set; } + + /// + /// The pre-filled amount of TON Grams to send; in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/InternalLinkTypeUnknownDeepLink.cs b/TdLib.Api/Objects/InternalLinkTypeUnknownDeepLink.cs index d422c71f..58aca7f6 100644 --- a/TdLib.Api/Objects/InternalLinkTypeUnknownDeepLink.cs +++ b/TdLib.Api/Objects/InternalLinkTypeUnknownDeepLink.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is an unknown tg: link. Call getDeepLinkInfo to process the link + /// + public class InternalLinkTypeUnknownDeepLink : InternalLinkType { /// - /// The link is an unknown tg: link. Call getDeepLinkInfo to process the link + /// Data type for serialization /// - public class InternalLinkTypeUnknownDeepLink : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeUnknownDeepLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeUnknownDeepLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Link to be passed to getDeepLinkInfo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } - } + /// + /// Link to be passed to getDeepLinkInfo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeUpgradedGift.cs b/TdLib.Api/Objects/InternalLinkTypeUpgradedGift.cs index ab72a0b7..74996ea8 100644 --- a/TdLib.Api/Objects/InternalLinkTypeUpgradedGift.cs +++ b/TdLib.Api/Objects/InternalLinkTypeUpgradedGift.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to an upgraded gift. Call getUpgradedGift with the given name to process the link + /// + public class InternalLinkTypeUpgradedGift : InternalLinkType { /// - /// The link is a link to an upgraded gift. Call getUpgradedGift with the given name to process the link + /// Data type for serialization /// - public class InternalLinkTypeUpgradedGift : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeUpgradedGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeUpgradedGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the unique gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the unique gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeUserPhoneNumber.cs b/TdLib.Api/Objects/InternalLinkTypeUserPhoneNumber.cs index 0d1570a9..93da52f7 100644 --- a/TdLib.Api/Objects/InternalLinkTypeUserPhoneNumber.cs +++ b/TdLib.Api/Objects/InternalLinkTypeUserPhoneNumber.cs @@ -2,54 +2,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. + /// If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field + /// + public class InternalLinkTypeUserPhoneNumber : InternalLinkType { /// - /// The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link. - /// If the user is found, then call createPrivateChat and open user's profile information screen or the chat itself. If draft text isn't empty, then put the draft text in the input field + /// Data type for serialization /// - public class InternalLinkTypeUserPhoneNumber : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeUserPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeUserPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Phone number of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// Phone number of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } - /// - /// Draft text for message to send in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_text")] - public string DraftText { get; set; } + /// + /// Draft text for message to send in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_text")] + public string DraftText { get; set; } - /// - /// True, if user's profile information screen must be opened; otherwise, the chat itself must be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("open_profile")] - public bool OpenProfile { get; set; } - } + /// + /// True, if user's profile information screen must be opened; otherwise, the chat itself must be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("open_profile")] + public bool OpenProfile { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeUserToken.cs b/TdLib.Api/Objects/InternalLinkTypeUserToken.cs index 1ae44d1f..0a08e0f8 100644 --- a/TdLib.Api/Objects/InternalLinkTypeUserToken.cs +++ b/TdLib.Api/Objects/InternalLinkTypeUserToken.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a user by a temporary token. Call searchUserByToken with the given token to process the link. + /// If the user is found, then call createPrivateChat and open the chat + /// + public class InternalLinkTypeUserToken : InternalLinkType { /// - /// The link is a link to a user by a temporary token. Call searchUserByToken with the given token to process the link. - /// If the user is found, then call createPrivateChat and open the chat + /// Data type for serialization /// - public class InternalLinkTypeUserToken : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeUserToken"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeUserToken"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The token - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// The token + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeVideoChat.cs b/TdLib.Api/Objects/InternalLinkTypeVideoChat.cs index 19c37a8f..226b9cd2 100644 --- a/TdLib.Api/Objects/InternalLinkTypeVideoChat.cs +++ b/TdLib.Api/Objects/InternalLinkTypeVideoChat.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a video chat. Call searchPublicChat with the given chat username, and then joinVideoChat with the given invite hash to process the link + /// + public class InternalLinkTypeVideoChat : InternalLinkType { /// - /// The link is a link to a video chat. Call searchPublicChat with the given chat username, and then joinVideoChat with the given invite hash to process the link + /// Data type for serialization /// - public class InternalLinkTypeVideoChat : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeVideoChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeVideoChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the chat with the video chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_username")] - public string ChatUsername { get; set; } + /// + /// Username of the chat with the video chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_username")] + public string ChatUsername { get; set; } - /// - /// If non-empty, invite hash to be used to join the video chat without being muted by administrators - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_hash")] - public string InviteHash { get; set; } + /// + /// If non-empty, invite hash to be used to join the video chat without being muted by administrators + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_hash")] + public string InviteHash { get; set; } - /// - /// True, if the video chat is expected to be a live stream in a channel or a broadcast group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_live_stream")] - public bool IsLiveStream { get; set; } - } + /// + /// True, if the video chat is expected to be a live stream in a channel or a broadcast group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_live_stream")] + public bool IsLiveStream { get; set; } } } } diff --git a/TdLib.Api/Objects/InternalLinkTypeWebApp.cs b/TdLib.Api/Objects/InternalLinkTypeWebApp.cs index 67b534e5..aa995100 100644 --- a/TdLib.Api/Objects/InternalLinkTypeWebApp.cs +++ b/TdLib.Api/Objects/InternalLinkTypeWebApp.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InternalLinkType : Object { - public partial class InternalLinkType : Object + /// + /// The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot. If the bot is restricted for the current user, then show an error message. + /// Otherwise, call searchWebApp with the received bot and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. + /// If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being third-party applications instead of the dialog + /// and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. + /// Then, call getWebAppLinkUrl and open the returned URL as a Web App + /// + public class InternalLinkTypeWebApp : InternalLinkType { /// - /// The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot. If the bot is restricted for the current user, then show an error message. - /// Otherwise, call searchWebApp with the received bot and the given web_app_short_name. Process received foundWebApp by showing a confirmation dialog if needed. - /// If the bot can be added to attachment or side menu, but isn't added yet, then show a disclaimer about Mini Apps being third-party applications instead of the dialog - /// and ask the user to accept their Terms of service. If the user accept the terms and confirms adding, then use toggleBotIsAddedToAttachmentMenu to add the bot. - /// Then, call getWebAppLinkUrl and open the returned URL as a Web App + /// Data type for serialization /// - public class InternalLinkTypeWebApp : InternalLinkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "internalLinkTypeWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "internalLinkTypeWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username of the bot that owns the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_username")] - public string BotUsername { get; set; } + /// + /// Username of the bot that owns the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_username")] + public string BotUsername { get; set; } - /// - /// Short name of the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("web_app_short_name")] - public string WebAppShortName { get; set; } + /// + /// Short name of the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("web_app_short_name")] + public string WebAppShortName { get; set; } - /// - /// Start parameter to be passed to getWebAppLinkUrl - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } + /// + /// Start parameter to be passed to getWebAppLinkUrl + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } - /// - /// The mode in which the Web App must be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mode")] - public WebAppOpenMode Mode { get; set; } - } + /// + /// The mode in which the Web App must be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mode")] + public WebAppOpenMode Mode { get; set; } } } } diff --git a/TdLib.Api/Objects/InviteGroupCallParticipantResultSuccess.cs b/TdLib.Api/Objects/InviteGroupCallParticipantResultSuccess.cs index 5f30457f..63c8f9c2 100644 --- a/TdLib.Api/Objects/InviteGroupCallParticipantResultSuccess.cs +++ b/TdLib.Api/Objects/InviteGroupCallParticipantResultSuccess.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InviteGroupCallParticipantResult : Object { - public partial class InviteGroupCallParticipantResult : Object + /// + /// The user was invited and a service message of the type messageGroupCall was sent which can be used in declineGroupCallInvitation to cancel the invitation + /// + public class InviteGroupCallParticipantResultSuccess : InviteGroupCallParticipantResult { /// - /// The user was invited and a service message of the type messageGroupCall was sent which can be used in declineGroupCallInvitation to cancel the invitation + /// Data type for serialization /// - public class InviteGroupCallParticipantResultSuccess : InviteGroupCallParticipantResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteGroupCallParticipantResultSuccess"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteGroupCallParticipantResultSuccess"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat with the invitation message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat with the invitation message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/InviteGroupCallParticipantResultUserAlreadyParticipant.cs b/TdLib.Api/Objects/InviteGroupCallParticipantResultUserAlreadyParticipant.cs index 4363ee91..cf3df50e 100644 --- a/TdLib.Api/Objects/InviteGroupCallParticipantResultUserAlreadyParticipant.cs +++ b/TdLib.Api/Objects/InviteGroupCallParticipantResultUserAlreadyParticipant.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InviteGroupCallParticipantResult : Object { - public partial class InviteGroupCallParticipantResult : Object + /// + /// The user can't be invited because they are already a participant of the call + /// + public class InviteGroupCallParticipantResultUserAlreadyParticipant : InviteGroupCallParticipantResult { /// - /// The user can't be invited because they are already a participant of the call + /// Data type for serialization /// - public class InviteGroupCallParticipantResultUserAlreadyParticipant : InviteGroupCallParticipantResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteGroupCallParticipantResultUserAlreadyParticipant"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteGroupCallParticipantResultUserAlreadyParticipant"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InviteGroupCallParticipantResultUserPrivacyRestricted.cs b/TdLib.Api/Objects/InviteGroupCallParticipantResultUserPrivacyRestricted.cs index 6a78ca2f..84427051 100644 --- a/TdLib.Api/Objects/InviteGroupCallParticipantResultUserPrivacyRestricted.cs +++ b/TdLib.Api/Objects/InviteGroupCallParticipantResultUserPrivacyRestricted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InviteGroupCallParticipantResult : Object { - public partial class InviteGroupCallParticipantResult : Object + /// + /// Describes result of group call participant invitation + /// + public class InviteGroupCallParticipantResultUserPrivacyRestricted : InviteGroupCallParticipantResult { /// - /// Describes result of group call participant invitation + /// Data type for serialization /// - public class InviteGroupCallParticipantResultUserPrivacyRestricted : InviteGroupCallParticipantResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteGroupCallParticipantResultUserPrivacyRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteGroupCallParticipantResultUserPrivacyRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InviteGroupCallParticipantResultUserWasBanned.cs b/TdLib.Api/Objects/InviteGroupCallParticipantResultUserWasBanned.cs index 07e077f7..d524ce6e 100644 --- a/TdLib.Api/Objects/InviteGroupCallParticipantResultUserWasBanned.cs +++ b/TdLib.Api/Objects/InviteGroupCallParticipantResultUserWasBanned.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InviteGroupCallParticipantResult : Object { - public partial class InviteGroupCallParticipantResult : Object + /// + /// The user can't be invited because they were banned by the owner of the call and can be invited back only by the owner of the group call + /// + public class InviteGroupCallParticipantResultUserWasBanned : InviteGroupCallParticipantResult { /// - /// The user can't be invited because they were banned by the owner of the call and can be invited back only by the owner of the group call + /// Data type for serialization /// - public class InviteGroupCallParticipantResultUserWasBanned : InviteGroupCallParticipantResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteGroupCallParticipantResultUserWasBanned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteGroupCallParticipantResultUserWasBanned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InviteLinkChatTypeBasicGroup.cs b/TdLib.Api/Objects/InviteLinkChatTypeBasicGroup.cs index c560130b..e9697c2c 100644 --- a/TdLib.Api/Objects/InviteLinkChatTypeBasicGroup.cs +++ b/TdLib.Api/Objects/InviteLinkChatTypeBasicGroup.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InviteLinkChatType : Object { - public partial class InviteLinkChatType : Object + /// + /// Describes the type of chat to which points an invite link + /// + public class InviteLinkChatTypeBasicGroup : InviteLinkChatType { /// - /// Describes the type of chat to which points an invite link + /// Data type for serialization /// - public class InviteLinkChatTypeBasicGroup : InviteLinkChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteLinkChatTypeBasicGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteLinkChatTypeBasicGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InviteLinkChatTypeChannel.cs b/TdLib.Api/Objects/InviteLinkChatTypeChannel.cs index 67112909..c9463299 100644 --- a/TdLib.Api/Objects/InviteLinkChatTypeChannel.cs +++ b/TdLib.Api/Objects/InviteLinkChatTypeChannel.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InviteLinkChatType : Object { - public partial class InviteLinkChatType : Object + /// + /// The link is an invite link for a channel + /// + public class InviteLinkChatTypeChannel : InviteLinkChatType { /// - /// The link is an invite link for a channel + /// Data type for serialization /// - public class InviteLinkChatTypeChannel : InviteLinkChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteLinkChatTypeChannel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteLinkChatTypeChannel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/InviteLinkChatTypeSupergroup.cs b/TdLib.Api/Objects/InviteLinkChatTypeSupergroup.cs index a81d98ed..05346452 100644 --- a/TdLib.Api/Objects/InviteLinkChatTypeSupergroup.cs +++ b/TdLib.Api/Objects/InviteLinkChatTypeSupergroup.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class InviteLinkChatType : Object { - public partial class InviteLinkChatType : Object + /// + /// The link is an invite link for a supergroup + /// + public class InviteLinkChatTypeSupergroup : InviteLinkChatType { /// - /// The link is an invite link for a supergroup + /// Data type for serialization /// - public class InviteLinkChatTypeSupergroup : InviteLinkChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "inviteLinkChatTypeSupergroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "inviteLinkChatTypeSupergroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Invoice.cs b/TdLib.Api/Objects/Invoice.cs index b7602c11..2571b58e 100644 --- a/TdLib.Api/Objects/Invoice.cs +++ b/TdLib.Api/Objects/Invoice.cs @@ -2,133 +2,132 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Product invoice /// - public static partial class TdApi + public partial class Invoice : Object { /// - /// Product invoice - /// - public partial class Invoice : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "invoice"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// ISO 4217 currency code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } - - /// - /// A list of objects used to calculate the total price of the product - /// - [JsonProperty("price_parts", ItemConverterType = typeof(Converter))] - public LabeledPricePart[] PriceParts { get; set; } - - /// - /// The number of seconds between consecutive Telegram Star debiting for subscription invoices; 0 if the invoice doesn't create subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_period")] - public int SubscriptionPeriod { get; set; } - - /// - /// The maximum allowed amount of tip in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_tip_amount")] - public long MaxTipAmount { get; set; } - - /// - /// Suggested amounts of tip in the smallest units of the currency - /// - [JsonProperty("suggested_tip_amounts", ItemConverterType = typeof(Converter))] - public long[] SuggestedTipAmounts { get; set; } - - /// - /// An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recurring_payment_terms_of_service_url")] - public string RecurringPaymentTermsOfServiceUrl { get; set; } - - /// - /// An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("terms_of_service_url")] - public string TermsOfServiceUrl { get; set; } - - /// - /// True, if the payment is a test payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_test")] - public bool IsTest { get; set; } - - /// - /// True, if the user's name is needed for payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_name")] - public bool NeedName { get; set; } - - /// - /// True, if the user's phone number is needed for payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_phone_number")] - public bool NeedPhoneNumber { get; set; } - - /// - /// True, if the user's email address is needed for payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_email_address")] - public bool NeedEmailAddress { get; set; } - - /// - /// True, if the user's shipping address is needed for payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_shipping_address")] - public bool NeedShippingAddress { get; set; } - - /// - /// True, if the user's phone number will be sent to the provider - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_phone_number_to_provider")] - public bool SendPhoneNumberToProvider { get; set; } - - /// - /// True, if the user's email address will be sent to the provider - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_email_address_to_provider")] - public bool SendEmailAddressToProvider { get; set; } - - /// - /// True, if the total price depends on the shipping method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_flexible")] - public bool IsFlexible { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "invoice"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// ISO 4217 currency code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } + + /// + /// A list of objects used to calculate the total price of the product + /// + [JsonProperty("price_parts", ItemConverterType = typeof(Converter))] + public LabeledPricePart[] PriceParts { get; set; } + + /// + /// The number of seconds between consecutive Telegram Star debiting for subscription invoices; 0 if the invoice doesn't create subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_period")] + public int SubscriptionPeriod { get; set; } + + /// + /// The maximum allowed amount of tip in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_tip_amount")] + public long MaxTipAmount { get; set; } + + /// + /// Suggested amounts of tip in the smallest units of the currency + /// + [JsonProperty("suggested_tip_amounts", ItemConverterType = typeof(Converter))] + public long[] SuggestedTipAmounts { get; set; } + + /// + /// An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recurring_payment_terms_of_service_url")] + public string RecurringPaymentTermsOfServiceUrl { get; set; } + + /// + /// An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("terms_of_service_url")] + public string TermsOfServiceUrl { get; set; } + + /// + /// True, if the payment is a test payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_test")] + public bool IsTest { get; set; } + + /// + /// True, if the user's name is needed for payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_name")] + public bool NeedName { get; set; } + + /// + /// True, if the user's phone number is needed for payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_phone_number")] + public bool NeedPhoneNumber { get; set; } + + /// + /// True, if the user's email address is needed for payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_email_address")] + public bool NeedEmailAddress { get; set; } + + /// + /// True, if the user's shipping address is needed for payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_shipping_address")] + public bool NeedShippingAddress { get; set; } + + /// + /// True, if the user's phone number will be sent to the provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_phone_number_to_provider")] + public bool SendPhoneNumberToProvider { get; set; } + + /// + /// True, if the user's email address will be sent to the provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_email_address_to_provider")] + public bool SendEmailAddressToProvider { get; set; } + + /// + /// True, if the total price depends on the shipping method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_flexible")] + public bool IsFlexible { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/JsonObjectMember.cs b/TdLib.Api/Objects/JsonObjectMember.cs index 60d3c1a5..cd262358 100644 --- a/TdLib.Api/Objects/JsonObjectMember.cs +++ b/TdLib.Api/Objects/JsonObjectMember.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents one member of a JSON object /// - public static partial class TdApi + public partial class JsonObjectMember : Object { /// - /// Represents one member of a JSON object + /// Data type for serialization /// - public partial class JsonObjectMember : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "jsonObjectMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "jsonObjectMember"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Member's key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("key")] - public string Key { get; set; } + /// + /// Member's key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("key")] + public string Key { get; set; } - /// - /// Member's value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public JsonValue Value { get; set; } - } + /// + /// Member's value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public JsonValue Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/JsonValueArray.cs b/TdLib.Api/Objects/JsonValueArray.cs index b2d3aa88..d4b1c31f 100644 --- a/TdLib.Api/Objects/JsonValueArray.cs +++ b/TdLib.Api/Objects/JsonValueArray.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class JsonValue : Object { - public partial class JsonValue : Object + /// + /// Represents a JSON array + /// + public class JsonValueArray : JsonValue { /// - /// Represents a JSON array + /// Data type for serialization /// - public class JsonValueArray : JsonValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "jsonValueArray"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "jsonValueArray"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of array elements - /// - [JsonProperty("values", ItemConverterType = typeof(Converter))] - public JsonValue[] Values { get; set; } - } + /// + /// The list of array elements + /// + [JsonProperty("values", ItemConverterType = typeof(Converter))] + public JsonValue[] Values { get; set; } } } } diff --git a/TdLib.Api/Objects/JsonValueBoolean.cs b/TdLib.Api/Objects/JsonValueBoolean.cs index 6746875a..c7ae6b2b 100644 --- a/TdLib.Api/Objects/JsonValueBoolean.cs +++ b/TdLib.Api/Objects/JsonValueBoolean.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class JsonValue : Object { - public partial class JsonValue : Object + /// + /// Represents a boolean JSON value + /// + public class JsonValueBoolean : JsonValue { /// - /// Represents a boolean JSON value + /// Data type for serialization /// - public class JsonValueBoolean : JsonValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "jsonValueBoolean"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "jsonValueBoolean"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public bool Value { get; set; } - } + /// + /// The value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public bool Value { get; set; } } } } diff --git a/TdLib.Api/Objects/JsonValueNull.cs b/TdLib.Api/Objects/JsonValueNull.cs index f1e59e33..d21b6d32 100644 --- a/TdLib.Api/Objects/JsonValueNull.cs +++ b/TdLib.Api/Objects/JsonValueNull.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class JsonValue : Object { - public partial class JsonValue : Object + /// + /// Represents a JSON value + /// + public class JsonValueNull : JsonValue { /// - /// Represents a JSON value + /// Data type for serialization /// - public class JsonValueNull : JsonValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "jsonValueNull"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "jsonValueNull"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/JsonValueNumber.cs b/TdLib.Api/Objects/JsonValueNumber.cs index 2d427578..901ce6b7 100644 --- a/TdLib.Api/Objects/JsonValueNumber.cs +++ b/TdLib.Api/Objects/JsonValueNumber.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class JsonValue : Object { - public partial class JsonValue : Object + /// + /// Represents a numeric JSON value + /// + public class JsonValueNumber : JsonValue { /// - /// Represents a numeric JSON value + /// Data type for serialization /// - public class JsonValueNumber : JsonValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "jsonValueNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "jsonValueNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public double? Value { get; set; } - } + /// + /// The value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public double? Value { get; set; } } } } diff --git a/TdLib.Api/Objects/JsonValueObject.cs b/TdLib.Api/Objects/JsonValueObject.cs index 80567439..2532f892 100644 --- a/TdLib.Api/Objects/JsonValueObject.cs +++ b/TdLib.Api/Objects/JsonValueObject.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class JsonValue : Object { - public partial class JsonValue : Object + /// + /// Represents a JSON object + /// + public class JsonValueObject : JsonValue { /// - /// Represents a JSON object + /// Data type for serialization /// - public class JsonValueObject : JsonValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "jsonValueObject"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "jsonValueObject"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of object members - /// - [JsonProperty("members", ItemConverterType = typeof(Converter))] - public JsonObjectMember[] Members { get; set; } - } + /// + /// The list of object members + /// + [JsonProperty("members", ItemConverterType = typeof(Converter))] + public JsonObjectMember[] Members { get; set; } } } } diff --git a/TdLib.Api/Objects/JsonValueString.cs b/TdLib.Api/Objects/JsonValueString.cs index 6fc65a4a..eb494cb6 100644 --- a/TdLib.Api/Objects/JsonValueString.cs +++ b/TdLib.Api/Objects/JsonValueString.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class JsonValue : Object { - public partial class JsonValue : Object + /// + /// Represents a string JSON value + /// + public class JsonValueString : JsonValue { /// - /// Represents a string JSON value + /// Data type for serialization /// - public class JsonValueString : JsonValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "jsonValueString"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "jsonValueString"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public string Value { get; set; } - } + /// + /// The value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public string Value { get; set; } } } } diff --git a/TdLib.Api/Objects/KeyboardButton.cs b/TdLib.Api/Objects/KeyboardButton.cs index b9eb185e..29b02f86 100644 --- a/TdLib.Api/Objects/KeyboardButton.cs +++ b/TdLib.Api/Objects/KeyboardButton.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a single button in a bot keyboard /// - public static partial class TdApi + public partial class KeyboardButton : Object { /// - /// Represents a single button in a bot keyboard + /// Data type for serialization /// - public partial class KeyboardButton : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButton"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButton"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Text of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// Identifier of the custom emoji that must be shown on the button; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("icon_custom_emoji_id")] - public long IconCustomEmojiId { get; set; } + /// + /// Identifier of the custom emoji that must be shown on the button; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("icon_custom_emoji_id")] + public long IconCustomEmojiId { get; set; } - /// - /// Style of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("style")] - public ButtonStyle Style { get; set; } + /// + /// Style of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("style")] + public ButtonStyle Style { get; set; } - /// - /// Type of the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public KeyboardButtonType Type { get; set; } - } + /// + /// Type of the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public KeyboardButtonType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/KeyboardButtonSourceMessage.cs b/TdLib.Api/Objects/KeyboardButtonSourceMessage.cs index 6e7d00cf..5769e964 100644 --- a/TdLib.Api/Objects/KeyboardButtonSourceMessage.cs +++ b/TdLib.Api/Objects/KeyboardButtonSourceMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonSource : Object { - public partial class KeyboardButtonSource : Object + /// + /// Describes source of a keyboard button + /// + public class KeyboardButtonSourceMessage : KeyboardButtonSource { /// - /// Describes source of a keyboard button + /// Data type for serialization /// - public class KeyboardButtonSourceMessage : KeyboardButtonSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonSourceMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonSourceMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message with the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the message with the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonSourceWebApp.cs b/TdLib.Api/Objects/KeyboardButtonSourceWebApp.cs index c410502c..0530da43 100644 --- a/TdLib.Api/Objects/KeyboardButtonSourceWebApp.cs +++ b/TdLib.Api/Objects/KeyboardButtonSourceWebApp.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonSource : Object { - public partial class KeyboardButtonSource : Object + /// + /// The button is a prepared keyboard button from a Mini App received via getPreparedKeyboardButton + /// + public class KeyboardButtonSourceWebApp : KeyboardButtonSource { /// - /// The button is a prepared keyboard button from a Mini App received via getPreparedKeyboardButton + /// Data type for serialization /// - public class KeyboardButtonSourceWebApp : KeyboardButtonSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonSourceWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonSourceWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot that created the button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// Identifier of the bot that created the button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Identifier of the prepared button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepared_button_id")] - public string PreparedButtonId { get; set; } - } + /// + /// Identifier of the prepared button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prepared_button_id")] + public string PreparedButtonId { get; set; } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeRequestChat.cs b/TdLib.Api/Objects/KeyboardButtonTypeRequestChat.cs index a750663e..4d187761 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeRequestChat.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeRequestChat.cs @@ -2,123 +2,122 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request + /// + public class KeyboardButtonTypeRequestChat : KeyboardButtonType { /// - /// A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeRequestChat"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique button identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } + + /// + /// True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_is_channel")] + public bool ChatIsChannel { get; set; } + + /// + /// True, if the chat must or must not be a forum supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restrict_chat_is_forum")] + public bool RestrictChatIsForum { get; set; } + + /// + /// True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_is_forum")] + public bool ChatIsForum { get; set; } + + /// + /// True, if the chat must or must not have a username + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restrict_chat_has_username")] + public bool RestrictChatHasUsername { get; set; } + + /// + /// True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_has_username")] + public bool ChatHasUsername { get; set; } + + /// + /// True, if the chat must be created by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_is_created")] + public bool ChatIsCreated { get; set; } + + /// + /// Expected user administrator rights in the chat; may be null if they aren't restricted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_administrator_rights")] + public ChatAdministratorRights UserAdministratorRights { get; set; } + + /// + /// Expected bot administrator rights in the chat; may be null if they aren't restricted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_administrator_rights")] + public ChatAdministratorRights BotAdministratorRights { get; set; } + + /// + /// True, if the bot must be a member of the chat; for basic group and supergroup chats only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_is_member")] + public bool BotIsMember { get; set; } + + /// + /// Pass true to request title of the chat; bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_title")] + public bool RequestTitle { get; set; } + + /// + /// Pass true to request username of the chat; bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_username")] + public bool RequestUsername { get; set; } + + /// + /// Pass true to request photo of the chat; bots only /// - public class KeyboardButtonTypeRequestChat : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeRequestChat"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique button identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } - - /// - /// True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_is_channel")] - public bool ChatIsChannel { get; set; } - - /// - /// True, if the chat must or must not be a forum supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restrict_chat_is_forum")] - public bool RestrictChatIsForum { get; set; } - - /// - /// True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_is_forum")] - public bool ChatIsForum { get; set; } - - /// - /// True, if the chat must or must not have a username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restrict_chat_has_username")] - public bool RestrictChatHasUsername { get; set; } - - /// - /// True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_has_username")] - public bool ChatHasUsername { get; set; } - - /// - /// True, if the chat must be created by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_is_created")] - public bool ChatIsCreated { get; set; } - - /// - /// Expected user administrator rights in the chat; may be null if they aren't restricted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_administrator_rights")] - public ChatAdministratorRights UserAdministratorRights { get; set; } - - /// - /// Expected bot administrator rights in the chat; may be null if they aren't restricted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_administrator_rights")] - public ChatAdministratorRights BotAdministratorRights { get; set; } - - /// - /// True, if the bot must be a member of the chat; for basic group and supergroup chats only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_is_member")] - public bool BotIsMember { get; set; } - - /// - /// Pass true to request title of the chat; bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_title")] - public bool RequestTitle { get; set; } - - /// - /// Pass true to request username of the chat; bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_username")] - public bool RequestUsername { get; set; } - - /// - /// Pass true to request photo of the chat; bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_photo")] - public bool RequestPhoto { get; set; } - } + [JsonConverter(typeof(Converter))] + [JsonProperty("request_photo")] + public bool RequestPhoto { get; set; } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeRequestLocation.cs b/TdLib.Api/Objects/KeyboardButtonTypeRequestLocation.cs index 76479298..84847a19 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeRequestLocation.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeRequestLocation.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// A button that sends the user's location when pressed; available only in private chats + /// + public class KeyboardButtonTypeRequestLocation : KeyboardButtonType { /// - /// A button that sends the user's location when pressed; available only in private chats + /// Data type for serialization /// - public class KeyboardButtonTypeRequestLocation : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeRequestLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeRequestLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeRequestManagedBot.cs b/TdLib.Api/Objects/KeyboardButtonTypeRequestManagedBot.cs index 68502461..a33aa68d 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeRequestManagedBot.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeRequestManagedBot.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// A button that requests creation of a managed bot by the current user; available only in private chats. Use the method createBot to complete the request + /// + public class KeyboardButtonTypeRequestManagedBot : KeyboardButtonType { /// - /// A button that requests creation of a managed bot by the current user; available only in private chats. Use the method createBot to complete the request + /// Data type for serialization /// - public class KeyboardButtonTypeRequestManagedBot : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeRequestManagedBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeRequestManagedBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique button identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique button identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Suggested name for the bot; may be empty if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_name")] - public string SuggestedName { get; set; } + /// + /// Suggested name for the bot; may be empty if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_name")] + public string SuggestedName { get; set; } - /// - /// Suggested username for the bot; may be empty if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_username")] - public string SuggestedUsername { get; set; } - } + /// + /// Suggested username for the bot; may be empty if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_username")] + public string SuggestedUsername { get; set; } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeRequestPhoneNumber.cs b/TdLib.Api/Objects/KeyboardButtonTypeRequestPhoneNumber.cs index 04d2f0f2..de6d2ad2 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeRequestPhoneNumber.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeRequestPhoneNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// A button that sends the user's phone number when pressed; available only in private chats + /// + public class KeyboardButtonTypeRequestPhoneNumber : KeyboardButtonType { /// - /// A button that sends the user's phone number when pressed; available only in private chats + /// Data type for serialization /// - public class KeyboardButtonTypeRequestPhoneNumber : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeRequestPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeRequestPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeRequestPoll.cs b/TdLib.Api/Objects/KeyboardButtonTypeRequestPoll.cs index 068061c3..699d4f93 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeRequestPoll.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeRequestPoll.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// A button that allows the user to create and send a poll when pressed; available only in private chats + /// + public class KeyboardButtonTypeRequestPoll : KeyboardButtonType { /// - /// A button that allows the user to create and send a poll when pressed; available only in private chats + /// Data type for serialization /// - public class KeyboardButtonTypeRequestPoll : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeRequestPoll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeRequestPoll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// If true, only regular polls must be allowed to create - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force_regular")] - public bool ForceRegular { get; set; } + /// + /// If true, only regular polls must be allowed to create + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("force_regular")] + public bool ForceRegular { get; set; } - /// - /// If true, only polls in quiz mode must be allowed to create - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force_quiz")] - public bool ForceQuiz { get; set; } - } + /// + /// If true, only polls in quiz mode must be allowed to create + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("force_quiz")] + public bool ForceQuiz { get; set; } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeRequestUsers.cs b/TdLib.Api/Objects/KeyboardButtonTypeRequestUsers.cs index 88cbf13b..cef06089 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeRequestUsers.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeRequestUsers.cs @@ -2,95 +2,94 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request + /// + public class KeyboardButtonTypeRequestUsers : KeyboardButtonType { /// - /// A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request + /// Data type for serialization /// - public class KeyboardButtonTypeRequestUsers : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeRequestUsers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeRequestUsers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique button identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique button identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// True, if the shared users must or must not be bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restrict_user_is_bot")] - public bool RestrictUserIsBot { get; set; } + /// + /// True, if the shared users must or must not be bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restrict_user_is_bot")] + public bool RestrictUserIsBot { get; set; } - /// - /// True, if the shared users must be bots; otherwise, the shared users must not be bots. Ignored if restrict_user_is_bot is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_is_bot")] - public bool UserIsBot { get; set; } + /// + /// True, if the shared users must be bots; otherwise, the shared users must not be bots. Ignored if restrict_user_is_bot is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_is_bot")] + public bool UserIsBot { get; set; } - /// - /// True, if the shared users must or must not be Telegram Premium users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restrict_user_is_premium")] - public bool RestrictUserIsPremium { get; set; } + /// + /// True, if the shared users must or must not be Telegram Premium users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restrict_user_is_premium")] + public bool RestrictUserIsPremium { get; set; } - /// - /// True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium users. Ignored if restrict_user_is_premium is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_is_premium")] - public bool UserIsPremium { get; set; } + /// + /// True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium users. Ignored if restrict_user_is_premium is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_is_premium")] + public bool UserIsPremium { get; set; } - /// - /// The maximum number of users to share - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_quantity")] - public int MaxQuantity { get; set; } + /// + /// The maximum number of users to share + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_quantity")] + public int MaxQuantity { get; set; } - /// - /// Pass true to request name of the users; bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_name")] - public bool RequestName { get; set; } + /// + /// Pass true to request name of the users; bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_name")] + public bool RequestName { get; set; } - /// - /// Pass true to request username of the users; bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_username")] - public bool RequestUsername { get; set; } + /// + /// Pass true to request username of the users; bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_username")] + public bool RequestUsername { get; set; } - /// - /// Pass true to request photo of the users; bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_photo")] - public bool RequestPhoto { get; set; } - } + /// + /// Pass true to request photo of the users; bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_photo")] + public bool RequestPhoto { get; set; } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeText.cs b/TdLib.Api/Objects/KeyboardButtonTypeText.cs index 4d6c6ba2..44c4c135 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeText.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeText.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// Describes a keyboard button type + /// + public class KeyboardButtonTypeText : KeyboardButtonType { /// - /// Describes a keyboard button type + /// Data type for serialization /// - public class KeyboardButtonTypeText : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeText"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/KeyboardButtonTypeWebApp.cs b/TdLib.Api/Objects/KeyboardButtonTypeWebApp.cs index 27ff8a20..4b2a1f74 100644 --- a/TdLib.Api/Objects/KeyboardButtonTypeWebApp.cs +++ b/TdLib.Api/Objects/KeyboardButtonTypeWebApp.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class KeyboardButtonType : Object { - public partial class KeyboardButtonType : Object + /// + /// A button that opens a Web App by calling getWebAppUrl + /// + public class KeyboardButtonTypeWebApp : KeyboardButtonType { /// - /// A button that opens a Web App by calling getWebAppUrl + /// Data type for serialization /// - public class KeyboardButtonTypeWebApp : KeyboardButtonType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "keyboardButtonTypeWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "keyboardButtonTypeWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An HTTP URL to pass to getWebAppUrl - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// An HTTP URL to pass to getWebAppUrl + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/LabeledPricePart.cs b/TdLib.Api/Objects/LabeledPricePart.cs index 45ced7f1..d940bcb0 100644 --- a/TdLib.Api/Objects/LabeledPricePart.cs +++ b/TdLib.Api/Objects/LabeledPricePart.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Portion of the price of a product (e.g., "delivery cost", "tax amount") /// - public static partial class TdApi + public partial class LabeledPricePart : Object { /// - /// Portion of the price of a product (e.g., "delivery cost", "tax amount") + /// Data type for serialization /// - public partial class LabeledPricePart : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "labeledPricePart"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "labeledPricePart"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Label for this portion of the product price - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("label")] - public string Label { get; set; } + /// + /// Label for this portion of the product price + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("label")] + public string Label { get; set; } - /// - /// Currency amount in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } - } + /// + /// Currency amount in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LanguagePackInfo.cs b/TdLib.Api/Objects/LanguagePackInfo.cs index bd163956..f0f66813 100644 --- a/TdLib.Api/Objects/LanguagePackInfo.cs +++ b/TdLib.Api/Objects/LanguagePackInfo.cs @@ -2,121 +2,120 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a language pack /// - public static partial class TdApi + public partial class LanguagePackInfo : Object { /// - /// Contains information about a language pack + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "languagePackInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique language pack identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } + + /// + /// Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched from base language pack. Unsupported in custom language packs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_language_pack_id")] + public string BaseLanguagePackId { get; set; } + + /// + /// Language name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// Name of the language in that language + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("native_name")] + public string NativeName { get; set; } + + /// + /// A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("plural_code")] + public string PluralCode { get; set; } + + /// + /// True, if the language pack is official + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_official")] + public bool IsOfficial { get; set; } + + /// + /// True, if the language pack strings are RTL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtl")] + public bool IsRtl { get; set; } + + /// + /// True, if the language pack is a beta language pack + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_beta")] + public bool IsBeta { get; set; } + + /// + /// True, if the language pack is installed by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_installed")] + public bool IsInstalled { get; set; } + + /// + /// Total number of non-deleted strings from the language pack + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_string_count")] + public int TotalStringCount { get; set; } + + /// + /// Total number of translated strings from the language pack + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("translated_string_count")] + public int TranslatedStringCount { get; set; } + + /// + /// Total number of non-deleted strings from the language pack available locally + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("local_string_count")] + public int LocalStringCount { get; set; } + + /// + /// Link to language translation interface; empty for custom local language packs /// - public partial class LanguagePackInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "languagePackInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique language pack identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } - - /// - /// Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched from base language pack. Unsupported in custom language packs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("base_language_pack_id")] - public string BaseLanguagePackId { get; set; } - - /// - /// Language name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - - /// - /// Name of the language in that language - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("native_name")] - public string NativeName { get; set; } - - /// - /// A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("plural_code")] - public string PluralCode { get; set; } - - /// - /// True, if the language pack is official - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_official")] - public bool IsOfficial { get; set; } - - /// - /// True, if the language pack strings are RTL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtl")] - public bool IsRtl { get; set; } - - /// - /// True, if the language pack is a beta language pack - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_beta")] - public bool IsBeta { get; set; } - - /// - /// True, if the language pack is installed by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_installed")] - public bool IsInstalled { get; set; } - - /// - /// Total number of non-deleted strings from the language pack - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_string_count")] - public int TotalStringCount { get; set; } - - /// - /// Total number of translated strings from the language pack - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("translated_string_count")] - public int TranslatedStringCount { get; set; } - - /// - /// Total number of non-deleted strings from the language pack available locally - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("local_string_count")] - public int LocalStringCount { get; set; } - - /// - /// Link to language translation interface; empty for custom local language packs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("translation_url")] - public string TranslationUrl { get; set; } - } + [JsonConverter(typeof(Converter))] + [JsonProperty("translation_url")] + public string TranslationUrl { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LanguagePackString.cs b/TdLib.Api/Objects/LanguagePackString.cs index 4f2b8422..59429e8c 100644 --- a/TdLib.Api/Objects/LanguagePackString.cs +++ b/TdLib.Api/Objects/LanguagePackString.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents one language pack string /// - public static partial class TdApi + public partial class LanguagePackString : Object { /// - /// Represents one language pack string + /// Data type for serialization /// - public partial class LanguagePackString : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "languagePackString"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "languagePackString"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// String key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("key")] - public string Key { get; set; } + /// + /// String key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("key")] + public string Key { get; set; } - /// - /// String value; pass null if the string needs to be taken from the built-in English language pack - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public LanguagePackStringValue Value { get; set; } - } + /// + /// String value; pass null if the string needs to be taken from the built-in English language pack + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public LanguagePackStringValue Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LanguagePackStringValueDeleted.cs b/TdLib.Api/Objects/LanguagePackStringValueDeleted.cs index 3f9fa48b..7ee3bb2f 100644 --- a/TdLib.Api/Objects/LanguagePackStringValueDeleted.cs +++ b/TdLib.Api/Objects/LanguagePackStringValueDeleted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LanguagePackStringValue : Object { - public partial class LanguagePackStringValue : Object + /// + /// A deleted language pack string, the value must be taken from the built-in English language pack + /// + public class LanguagePackStringValueDeleted : LanguagePackStringValue { /// - /// A deleted language pack string, the value must be taken from the built-in English language pack + /// Data type for serialization /// - public class LanguagePackStringValueDeleted : LanguagePackStringValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "languagePackStringValueDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "languagePackStringValueDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LanguagePackStringValueOrdinary.cs b/TdLib.Api/Objects/LanguagePackStringValueOrdinary.cs index 534f197e..3eef26f2 100644 --- a/TdLib.Api/Objects/LanguagePackStringValueOrdinary.cs +++ b/TdLib.Api/Objects/LanguagePackStringValueOrdinary.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LanguagePackStringValue : Object { - public partial class LanguagePackStringValue : Object + /// + /// Represents the value of a string in a language pack + /// + public class LanguagePackStringValueOrdinary : LanguagePackStringValue { /// - /// Represents the value of a string in a language pack + /// Data type for serialization /// - public class LanguagePackStringValueOrdinary : LanguagePackStringValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "languagePackStringValueOrdinary"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "languagePackStringValueOrdinary"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// String value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public string Value { get; set; } - } + /// + /// String value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public string Value { get; set; } } } } diff --git a/TdLib.Api/Objects/LanguagePackStringValuePluralized.cs b/TdLib.Api/Objects/LanguagePackStringValuePluralized.cs index eac6522e..9b41b6cf 100644 --- a/TdLib.Api/Objects/LanguagePackStringValuePluralized.cs +++ b/TdLib.Api/Objects/LanguagePackStringValuePluralized.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LanguagePackStringValue : Object { - public partial class LanguagePackStringValue : Object + /// + /// A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information + /// + public class LanguagePackStringValuePluralized : LanguagePackStringValue { /// - /// A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information + /// Data type for serialization /// - public class LanguagePackStringValuePluralized : LanguagePackStringValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "languagePackStringValuePluralized"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "languagePackStringValuePluralized"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Value for zero objects - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("zero_value")] - public string ZeroValue { get; set; } + /// + /// Value for zero objects + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("zero_value")] + public string ZeroValue { get; set; } - /// - /// Value for one object - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("one_value")] - public string OneValue { get; set; } + /// + /// Value for one object + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("one_value")] + public string OneValue { get; set; } - /// - /// Value for two objects - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("two_value")] - public string TwoValue { get; set; } + /// + /// Value for two objects + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("two_value")] + public string TwoValue { get; set; } - /// - /// Value for few objects - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("few_value")] - public string FewValue { get; set; } + /// + /// Value for few objects + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("few_value")] + public string FewValue { get; set; } - /// - /// Value for many objects - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("many_value")] - public string ManyValue { get; set; } + /// + /// Value for many objects + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("many_value")] + public string ManyValue { get; set; } - /// - /// Default value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("other_value")] - public string OtherValue { get; set; } - } + /// + /// Default value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("other_value")] + public string OtherValue { get; set; } } } } diff --git a/TdLib.Api/Objects/LanguagePackStrings.cs b/TdLib.Api/Objects/LanguagePackStrings.cs index 781b91a3..50c5d124 100644 --- a/TdLib.Api/Objects/LanguagePackStrings.cs +++ b/TdLib.Api/Objects/LanguagePackStrings.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of language pack strings /// - public static partial class TdApi + public partial class LanguagePackStrings : Object { /// - /// Contains a list of language pack strings + /// Data type for serialization /// - public partial class LanguagePackStrings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "languagePackStrings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "languagePackStrings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of language pack strings - /// - [JsonProperty("strings", ItemConverterType = typeof(Converter))] - public LanguagePackString[] Strings { get; set; } - } + /// + /// A list of language pack strings + /// + [JsonProperty("strings", ItemConverterType = typeof(Converter))] + public LanguagePackString[] Strings { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LinkPreview.cs b/TdLib.Api/Objects/LinkPreview.cs index ef6a3b3e..0abade2e 100644 --- a/TdLib.Api/Objects/LinkPreview.cs +++ b/TdLib.Api/Objects/LinkPreview.cs @@ -2,121 +2,120 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a link preview /// - public static partial class TdApi + public partial class LinkPreview : Object { /// - /// Describes a link preview + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreview"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Original URL of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + + /// + /// URL to display + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("display_url")] + public string DisplayUrl { get; set; } + + /// + /// Short name of the website (e.g., Google Docs, App Store) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("site_name")] + public string SiteName { get; set; } + + /// + /// Title of the content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public FormattedText Description { get; set; } + + /// + /// Author of the content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author")] + public string Author { get; set; } + + /// + /// Type of the link preview + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public LinkPreviewType Type { get; set; } + + /// + /// True, if size of media in the preview can be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_large_media")] + public bool HasLargeMedia { get; set; } + + /// + /// True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_large_media")] + public bool ShowLargeMedia { get; set; } + + /// + /// True, if media must be shown above link preview description; otherwise, the media must be shown below the description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_media_above_description")] + public bool ShowMediaAboveDescription { get; set; } + + /// + /// True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("skip_confirmation")] + public bool SkipConfirmation { get; set; } + + /// + /// True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_above_text")] + public bool ShowAboveText { get; set; } + + /// + /// Version of instant view (currently, can be 1 or 2) for the web page; 0 if none /// - public partial class LinkPreview : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreview"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Original URL of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - - /// - /// URL to display - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("display_url")] - public string DisplayUrl { get; set; } - - /// - /// Short name of the website (e.g., Google Docs, App Store) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("site_name")] - public string SiteName { get; set; } - - /// - /// Title of the content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public FormattedText Description { get; set; } - - /// - /// Author of the content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author")] - public string Author { get; set; } - - /// - /// Type of the link preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public LinkPreviewType Type { get; set; } - - /// - /// True, if size of media in the preview can be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_large_media")] - public bool HasLargeMedia { get; set; } - - /// - /// True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_large_media")] - public bool ShowLargeMedia { get; set; } - - /// - /// True, if media must be shown above link preview description; otherwise, the media must be shown below the description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_media_above_description")] - public bool ShowMediaAboveDescription { get; set; } - - /// - /// True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("skip_confirmation")] - public bool SkipConfirmation { get; set; } - - /// - /// True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_above_text")] - public bool ShowAboveText { get; set; } - - /// - /// Version of instant view (currently, can be 1 or 2) for the web page; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("instant_view_version")] - public int InstantViewVersion { get; set; } - } + [JsonConverter(typeof(Converter))] + [JsonProperty("instant_view_version")] + public int InstantViewVersion { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LinkPreviewAlbumMediaPhoto.cs b/TdLib.Api/Objects/LinkPreviewAlbumMediaPhoto.cs index e6123b1d..ba2bb101 100644 --- a/TdLib.Api/Objects/LinkPreviewAlbumMediaPhoto.cs +++ b/TdLib.Api/Objects/LinkPreviewAlbumMediaPhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewAlbumMedia : Object { - public partial class LinkPreviewAlbumMedia : Object + /// + /// Describes a media from a link preview album + /// + public class LinkPreviewAlbumMediaPhoto : LinkPreviewAlbumMedia { /// - /// Describes a media from a link preview album + /// Data type for serialization /// - public class LinkPreviewAlbumMediaPhoto : LinkPreviewAlbumMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewAlbumMediaPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewAlbumMediaPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// Photo description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewAlbumMediaVideo.cs b/TdLib.Api/Objects/LinkPreviewAlbumMediaVideo.cs index ea163667..0b3d28ec 100644 --- a/TdLib.Api/Objects/LinkPreviewAlbumMediaVideo.cs +++ b/TdLib.Api/Objects/LinkPreviewAlbumMediaVideo.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewAlbumMedia : Object { - public partial class LinkPreviewAlbumMedia : Object + /// + /// The media is a video + /// + public class LinkPreviewAlbumMediaVideo : LinkPreviewAlbumMedia { /// - /// The media is a video + /// Data type for serialization /// - public class LinkPreviewAlbumMediaVideo : LinkPreviewAlbumMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewAlbumMediaVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewAlbumMediaVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } - } + /// + /// Video description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewOptions.cs b/TdLib.Api/Objects/LinkPreviewOptions.cs index 1ef4053b..f9631ad5 100644 --- a/TdLib.Api/Objects/LinkPreviewOptions.cs +++ b/TdLib.Api/Objects/LinkPreviewOptions.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Options to be used for generation of a link preview /// - public static partial class TdApi + public partial class LinkPreviewOptions : Object { /// - /// Options to be used for generation of a link preview + /// Data type for serialization /// - public partial class LinkPreviewOptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewOptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if link preview must be disabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_disabled")] - public bool IsDisabled { get; set; } + /// + /// True, if link preview must be disabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_disabled")] + public bool IsDisabled { get; set; } - /// - /// URL to use for link preview. If empty, then the first URL found in the message text will be used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL to use for link preview. If empty, then the first URL found in the message text will be used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force_small_media")] - public bool ForceSmallMedia { get; set; } + /// + /// True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("force_small_media")] + public bool ForceSmallMedia { get; set; } - /// - /// True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force_large_media")] - public bool ForceLargeMedia { get; set; } + /// + /// True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("force_large_media")] + public bool ForceLargeMedia { get; set; } - /// - /// True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_above_text")] - public bool ShowAboveText { get; set; } - } + /// + /// True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_above_text")] + public bool ShowAboveText { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LinkPreviewTypeAlbum.cs b/TdLib.Api/Objects/LinkPreviewTypeAlbum.cs index 7b9b0a80..8599e7e3 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeAlbum.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeAlbum.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// Describes type of link preview + /// + public class LinkPreviewTypeAlbum : LinkPreviewType { /// - /// Describes type of link preview + /// Data type for serialization /// - public class LinkPreviewTypeAlbum : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeAlbum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeAlbum"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of album media - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public LinkPreviewAlbumMedia[] Media { get; set; } + /// + /// The list of album media + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public LinkPreviewAlbumMedia[] Media { get; set; } - /// - /// Album caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public string Caption { get; set; } - } + /// + /// Album caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public string Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeAnimation.cs b/TdLib.Api/Objects/LinkPreviewTypeAnimation.cs index 7bd1df27..7af4a38f 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeAnimation.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeAnimation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an animation + /// + public class LinkPreviewTypeAnimation : LinkPreviewType { /// - /// The link is a link to an animation + /// Data type for serialization /// - public class LinkPreviewTypeAnimation : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } - } + /// + /// The animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeApp.cs b/TdLib.Api/Objects/LinkPreviewTypeApp.cs index 8cf8576b..7a317b15 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeApp.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeApp.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an app at App Store or Google Play + /// + public class LinkPreviewTypeApp : LinkPreviewType { /// - /// The link is a link to an app at App Store or Google Play + /// Data type for serialization /// - public class LinkPreviewTypeApp : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo for the app - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// Photo for the app + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeArticle.cs b/TdLib.Api/Objects/LinkPreviewTypeArticle.cs index 9c46c6cc..ff00eb98 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeArticle.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeArticle.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a website + /// + public class LinkPreviewTypeArticle : LinkPreviewType { /// - /// The link is a link to a website + /// Data type for serialization /// - public class LinkPreviewTypeArticle : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeArticle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeArticle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Article's main photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// Article's main photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeAudio.cs b/TdLib.Api/Objects/LinkPreviewTypeAudio.cs index fe74e595..c1f063c7 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeAudio.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeAudio.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an audio + /// + public class LinkPreviewTypeAudio : LinkPreviewType { /// - /// The link is a link to an audio + /// Data type for serialization /// - public class LinkPreviewTypeAudio : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The audio description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public Audio Audio { get; set; } - } + /// + /// The audio description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public Audio Audio { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeBackground.cs b/TdLib.Api/Objects/LinkPreviewTypeBackground.cs index 48c6be68..b73565d5 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeBackground.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeBackground.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a background. Link preview title and description are available only for filled backgrounds + /// + public class LinkPreviewTypeBackground : LinkPreviewType { /// - /// The link is a link to a background. Link preview title and description are available only for filled backgrounds + /// Data type for serialization /// - public class LinkPreviewTypeBackground : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeBackground"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Document with the background; may be null for filled backgrounds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } + /// + /// Document with the background; may be null for filled backgrounds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } - /// - /// Type of the background; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background_type")] - public BackgroundType BackgroundType { get; set; } - } + /// + /// Type of the background; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background_type")] + public BackgroundType BackgroundType { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeChannelBoost.cs b/TdLib.Api/Objects/LinkPreviewTypeChannelBoost.cs index e3e792d2..193e280d 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeChannelBoost.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeChannelBoost.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to boost a channel chat + /// + public class LinkPreviewTypeChannelBoost : LinkPreviewType { /// - /// The link is a link to boost a channel chat + /// Data type for serialization /// - public class LinkPreviewTypeChannelBoost : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeChannelBoost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeChannelBoost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo of the chat; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } - } + /// + /// Photo of the chat; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeChat.cs b/TdLib.Api/Objects/LinkPreviewTypeChat.cs index 3fb3417a..16914866 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeChat.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeChat.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a chat + /// + public class LinkPreviewTypeChat : LinkPreviewType { /// - /// The link is a link to a chat + /// Data type for serialization /// - public class LinkPreviewTypeChat : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public InviteLinkChatType Type { get; set; } + /// + /// Type of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public InviteLinkChatType Type { get; set; } - /// - /// Photo of the chat; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } + /// + /// Photo of the chat; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } - /// - /// True, if the link only creates join request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creates_join_request")] - public bool CreatesJoinRequest { get; set; } - } + /// + /// True, if the link only creates join request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creates_join_request")] + public bool CreatesJoinRequest { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeDirectMessagesChat.cs b/TdLib.Api/Objects/LinkPreviewTypeDirectMessagesChat.cs index ea58d84b..56189d96 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeDirectMessagesChat.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeDirectMessagesChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a direct messages chat of a channel + /// + public class LinkPreviewTypeDirectMessagesChat : LinkPreviewType { /// - /// The link is a link to a direct messages chat of a channel + /// Data type for serialization /// - public class LinkPreviewTypeDirectMessagesChat : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeDirectMessagesChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeDirectMessagesChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo of the channel chat; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } - } + /// + /// Photo of the channel chat; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeDocument.cs b/TdLib.Api/Objects/LinkPreviewTypeDocument.cs index f901976b..b7015cc3 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeDocument.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeDocument.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a general file + /// + public class LinkPreviewTypeDocument : LinkPreviewType { /// - /// The link is a link to a general file + /// Data type for serialization /// - public class LinkPreviewTypeDocument : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The document description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } - } + /// + /// The document description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAnimationPlayer.cs b/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAnimationPlayer.cs index 28749976..27c31631 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAnimationPlayer.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAnimationPlayer.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an animation player + /// + public class LinkPreviewTypeEmbeddedAnimationPlayer : LinkPreviewType { /// - /// The link is a link to an animation player + /// Data type for serialization /// - public class LinkPreviewTypeEmbeddedAnimationPlayer : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeEmbeddedAnimationPlayer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeEmbeddedAnimationPlayer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the external animation player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the external animation player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// The cached animation; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } + /// + /// The cached animation; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } - /// - /// Thumbnail of the animation; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Photo Thumbnail { get; set; } + /// + /// Thumbnail of the animation; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Photo Thumbnail { get; set; } - /// - /// Duration of the animation, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the animation, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Expected width of the embedded player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Expected width of the embedded player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Expected height of the embedded player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Expected height of the embedded player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAudioPlayer.cs b/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAudioPlayer.cs index a3602b36..e8b47bbc 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAudioPlayer.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeEmbeddedAudioPlayer.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an audio player + /// + public class LinkPreviewTypeEmbeddedAudioPlayer : LinkPreviewType { /// - /// The link is a link to an audio player + /// Data type for serialization /// - public class LinkPreviewTypeEmbeddedAudioPlayer : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeEmbeddedAudioPlayer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeEmbeddedAudioPlayer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the external audio player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the external audio player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// The cached audio; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public Audio Audio { get; set; } + /// + /// The cached audio; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public Audio Audio { get; set; } - /// - /// Thumbnail of the audio; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Photo Thumbnail { get; set; } + /// + /// Thumbnail of the audio; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Photo Thumbnail { get; set; } - /// - /// Duration of the audio, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the audio, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Expected width of the embedded player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Expected width of the embedded player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Expected height of the embedded player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Expected height of the embedded player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeEmbeddedVideoPlayer.cs b/TdLib.Api/Objects/LinkPreviewTypeEmbeddedVideoPlayer.cs index bcca96f8..f0a00b77 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeEmbeddedVideoPlayer.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeEmbeddedVideoPlayer.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a video player + /// + public class LinkPreviewTypeEmbeddedVideoPlayer : LinkPreviewType { /// - /// The link is a link to a video player + /// Data type for serialization /// - public class LinkPreviewTypeEmbeddedVideoPlayer : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeEmbeddedVideoPlayer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeEmbeddedVideoPlayer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the external video player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the external video player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// The cached video; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// The cached video; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Thumbnail of the video; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Photo Thumbnail { get; set; } + /// + /// Thumbnail of the video; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Photo Thumbnail { get; set; } - /// - /// Duration of the video, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the video, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Expected width of the embedded player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Expected width of the embedded player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Expected height of the embedded player - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Expected height of the embedded player + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeExternalAudio.cs b/TdLib.Api/Objects/LinkPreviewTypeExternalAudio.cs index 9da8f8b0..3bb82960 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeExternalAudio.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeExternalAudio.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an audio file + /// + public class LinkPreviewTypeExternalAudio : LinkPreviewType { /// - /// The link is a link to an audio file + /// Data type for serialization /// - public class LinkPreviewTypeExternalAudio : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeExternalAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeExternalAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// MIME type of the audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// Duration of the audio, in seconds; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } - } + /// + /// Duration of the audio, in seconds; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeExternalVideo.cs b/TdLib.Api/Objects/LinkPreviewTypeExternalVideo.cs index d4a30961..70140aa1 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeExternalVideo.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeExternalVideo.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a video file + /// + public class LinkPreviewTypeExternalVideo : LinkPreviewType { /// - /// The link is a link to a video file + /// Data type for serialization /// - public class LinkPreviewTypeExternalVideo : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeExternalVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeExternalVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the video file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the video file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// MIME type of the video file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the video file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// Expected width of the video preview; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Expected width of the video preview; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Expected height of the video preview; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Expected height of the video preview; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Duration of the video, in seconds; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } - } + /// + /// Duration of the video, in seconds; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeGiftAuction.cs b/TdLib.Api/Objects/LinkPreviewTypeGiftAuction.cs index 1e475719..4e703db8 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeGiftAuction.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeGiftAuction.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a gift auction + /// + public class LinkPreviewTypeGiftAuction : LinkPreviewType { /// - /// The link is a link to a gift auction + /// Data type for serialization /// - public class LinkPreviewTypeGiftAuction : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeGiftAuction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeGiftAuction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } - /// - /// Point in time (Unix timestamp) when the auction will be ended - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auction_end_date")] - public int AuctionEndDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the auction will be ended + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("auction_end_date")] + public int AuctionEndDate { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeGiftCollection.cs b/TdLib.Api/Objects/LinkPreviewTypeGiftCollection.cs index a3874881..52aaeb3f 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeGiftCollection.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeGiftCollection.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a gift collection + /// + public class LinkPreviewTypeGiftCollection : LinkPreviewType { /// - /// The link is a link to a gift collection + /// Data type for serialization /// - public class LinkPreviewTypeGiftCollection : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeGiftCollection"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeGiftCollection"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Icons for some gifts from the collection; may be empty - /// - [JsonProperty("icons", ItemConverterType = typeof(Converter))] - public Sticker[] Icons { get; set; } - } + /// + /// Icons for some gifts from the collection; may be empty + /// + [JsonProperty("icons", ItemConverterType = typeof(Converter))] + public Sticker[] Icons { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeGroupCall.cs b/TdLib.Api/Objects/LinkPreviewTypeGroupCall.cs index c85022b3..c18c243e 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeGroupCall.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeGroupCall.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a group call that isn't bound to a chat + /// + public class LinkPreviewTypeGroupCall : LinkPreviewType { /// - /// The link is a link to a group call that isn't bound to a chat + /// Data type for serialization /// - public class LinkPreviewTypeGroupCall : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeGroupCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeGroupCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeInvoice.cs b/TdLib.Api/Objects/LinkPreviewTypeInvoice.cs index 23dab2d7..cd09733b 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeInvoice.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeInvoice.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an invoice + /// + public class LinkPreviewTypeInvoice : LinkPreviewType { /// - /// The link is a link to an invoice + /// Data type for serialization /// - public class LinkPreviewTypeInvoice : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeInvoice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeInvoice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeLiveStory.cs b/TdLib.Api/Objects/LinkPreviewTypeLiveStory.cs index 9399e6a9..d6956bd2 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeLiveStory.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeLiveStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a live story group call + /// + public class LinkPreviewTypeLiveStory : LinkPreviewType { /// - /// The link is a link to a live story group call + /// Data type for serialization /// - public class LinkPreviewTypeLiveStory : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeLiveStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeLiveStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// The identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeMessage.cs b/TdLib.Api/Objects/LinkPreviewTypeMessage.cs index 58d73fa9..4ef6b129 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeMessage.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeMessage.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a text or a poll Telegram message + /// + public class LinkPreviewTypeMessage : LinkPreviewType { /// - /// The link is a link to a text or a poll Telegram message + /// Data type for serialization /// - public class LinkPreviewTypeMessage : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypePhoto.cs b/TdLib.Api/Objects/LinkPreviewTypePhoto.cs index 01557dbb..5666bd12 100644 --- a/TdLib.Api/Objects/LinkPreviewTypePhoto.cs +++ b/TdLib.Api/Objects/LinkPreviewTypePhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a photo + /// + public class LinkPreviewTypePhoto : LinkPreviewType { /// - /// The link is a link to a photo + /// Data type for serialization /// - public class LinkPreviewTypePhoto : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// The photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypePremiumGiftCode.cs b/TdLib.Api/Objects/LinkPreviewTypePremiumGiftCode.cs index 13a50692..da2305cd 100644 --- a/TdLib.Api/Objects/LinkPreviewTypePremiumGiftCode.cs +++ b/TdLib.Api/Objects/LinkPreviewTypePremiumGiftCode.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a Telegram Premium gift code + /// + public class LinkPreviewTypePremiumGiftCode : LinkPreviewType { /// - /// The link is a link to a Telegram Premium gift code + /// Data type for serialization /// - public class LinkPreviewTypePremiumGiftCode : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypePremiumGiftCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypePremiumGiftCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeRequestManagedBot.cs b/TdLib.Api/Objects/LinkPreviewTypeRequestManagedBot.cs index e1a7a98f..fd8cff41 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeRequestManagedBot.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeRequestManagedBot.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a dialog for creating of a managed bot + /// + public class LinkPreviewTypeRequestManagedBot : LinkPreviewType { /// - /// The link is a link to a dialog for creating of a managed bot + /// Data type for serialization /// - public class LinkPreviewTypeRequestManagedBot : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeRequestManagedBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeRequestManagedBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeShareableChatFolder.cs b/TdLib.Api/Objects/LinkPreviewTypeShareableChatFolder.cs index d4648532..a32af265 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeShareableChatFolder.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeShareableChatFolder.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a shareable chat folder + /// + public class LinkPreviewTypeShareableChatFolder : LinkPreviewType { /// - /// The link is a link to a shareable chat folder + /// Data type for serialization /// - public class LinkPreviewTypeShareableChatFolder : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeShareableChatFolder"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeShareableChatFolder"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeSticker.cs b/TdLib.Api/Objects/LinkPreviewTypeSticker.cs index f201348a..54b29770 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeSticker.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeSticker.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a sticker + /// + public class LinkPreviewTypeSticker : LinkPreviewType { /// - /// The link is a link to a sticker + /// Data type for serialization /// - public class LinkPreviewTypeSticker : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The sticker. It can be an arbitrary WEBP image and can have dimensions bigger than 512 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// The sticker. It can be an arbitrary WEBP image and can have dimensions bigger than 512 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeStickerSet.cs b/TdLib.Api/Objects/LinkPreviewTypeStickerSet.cs index 142da372..018ba377 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeStickerSet.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeStickerSet.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a sticker set + /// + public class LinkPreviewTypeStickerSet : LinkPreviewType { /// - /// The link is a link to a sticker set + /// Data type for serialization /// - public class LinkPreviewTypeStickerSet : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeStickerSet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeStickerSet"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Up to 4 stickers from the sticker set - /// - [JsonProperty("stickers", ItemConverterType = typeof(Converter))] - public Sticker[] Stickers { get; set; } - } + /// + /// Up to 4 stickers from the sticker set + /// + [JsonProperty("stickers", ItemConverterType = typeof(Converter))] + public Sticker[] Stickers { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeStory.cs b/TdLib.Api/Objects/LinkPreviewTypeStory.cs index 553d59b5..c2ffca82 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeStory.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a story. Link preview description is unavailable + /// + public class LinkPreviewTypeStory : LinkPreviewType { /// - /// The link is a link to a story. Link preview description is unavailable + /// Data type for serialization /// - public class LinkPreviewTypeStory : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// The identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeStoryAlbum.cs b/TdLib.Api/Objects/LinkPreviewTypeStoryAlbum.cs index 797aa552..23e0c00e 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeStoryAlbum.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeStoryAlbum.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an album of stories + /// + public class LinkPreviewTypeStoryAlbum : LinkPreviewType { /// - /// The link is a link to an album of stories + /// Data type for serialization /// - public class LinkPreviewTypeStoryAlbum : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeStoryAlbum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeStoryAlbum"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Icon of the album; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_icon")] - public Photo PhotoIcon { get; set; } + /// + /// Icon of the album; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_icon")] + public Photo PhotoIcon { get; set; } - /// - /// Video icon of the album; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_icon")] - public Video VideoIcon { get; set; } - } + /// + /// Video icon of the album; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_icon")] + public Video VideoIcon { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeSupergroupBoost.cs b/TdLib.Api/Objects/LinkPreviewTypeSupergroupBoost.cs index 07671860..b1255d5b 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeSupergroupBoost.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeSupergroupBoost.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to boost a supergroup chat + /// + public class LinkPreviewTypeSupergroupBoost : LinkPreviewType { /// - /// The link is a link to boost a supergroup chat + /// Data type for serialization /// - public class LinkPreviewTypeSupergroupBoost : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeSupergroupBoost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeSupergroupBoost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo of the chat; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } - } + /// + /// Photo of the chat; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeTextCompositionStyle.cs b/TdLib.Api/Objects/LinkPreviewTypeTextCompositionStyle.cs index 060854d8..ee7cda73 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeTextCompositionStyle.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeTextCompositionStyle.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a text composition style + /// + public class LinkPreviewTypeTextCompositionStyle : LinkPreviewType { /// - /// The link is a link to a text composition style + /// Data type for serialization /// - public class LinkPreviewTypeTextCompositionStyle : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeTextCompositionStyle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeTextCompositionStyle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the custom emoji corresponding to the style; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } - } + /// + /// Identifier of the custom emoji corresponding to the style; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeTheme.cs b/TdLib.Api/Objects/LinkPreviewTypeTheme.cs index 87069f82..8a18f683 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeTheme.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeTheme.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a cloud theme. TDLib has no theme support yet + /// + public class LinkPreviewTypeTheme : LinkPreviewType { /// - /// The link is a link to a cloud theme. TDLib has no theme support yet + /// Data type for serialization /// - public class LinkPreviewTypeTheme : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeTheme"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of files with theme description - /// - [JsonProperty("documents", ItemConverterType = typeof(Converter))] - public Document[] Documents { get; set; } + /// + /// The list of files with theme description + /// + [JsonProperty("documents", ItemConverterType = typeof(Converter))] + public Document[] Documents { get; set; } - /// - /// Settings for the cloud theme; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public ThemeSettings Settings { get; set; } - } + /// + /// Settings for the cloud theme; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public ThemeSettings Settings { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeUnsupported.cs b/TdLib.Api/Objects/LinkPreviewTypeUnsupported.cs index c34d8221..bb656546 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeUnsupported.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link preview type is unsupported yet + /// + public class LinkPreviewTypeUnsupported : LinkPreviewType { /// - /// The link preview type is unsupported yet + /// Data type for serialization /// - public class LinkPreviewTypeUnsupported : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeUpgradedGift.cs b/TdLib.Api/Objects/LinkPreviewTypeUpgradedGift.cs index 49bd6d6d..c70b8627 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeUpgradedGift.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeUpgradedGift.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to an upgraded gift + /// + public class LinkPreviewTypeUpgradedGift : LinkPreviewType { /// - /// The link is a link to an upgraded gift + /// Data type for serialization /// - public class LinkPreviewTypeUpgradedGift : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeUpgradedGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeUpgradedGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeUser.cs b/TdLib.Api/Objects/LinkPreviewTypeUser.cs index 4aa44834..b501dd9e 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeUser.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeUser.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a user + /// + public class LinkPreviewTypeUser : LinkPreviewType { /// - /// The link is a link to a user + /// Data type for serialization /// - public class LinkPreviewTypeUser : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo of the user; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } + /// + /// Photo of the user; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } - /// - /// True, if the user is a bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_bot")] - public bool IsBot { get; set; } - } + /// + /// True, if the user is a bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_bot")] + public bool IsBot { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeVideo.cs b/TdLib.Api/Objects/LinkPreviewTypeVideo.cs index 8402cfed..4a974568 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeVideo.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeVideo.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a video + /// + public class LinkPreviewTypeVideo : LinkPreviewType { /// - /// The link is a link to a video + /// Data type for serialization /// - public class LinkPreviewTypeVideo : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// The video description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Cover of the video; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover")] - public Photo Cover { get; set; } + /// + /// Cover of the video; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover")] + public Photo Cover { get; set; } - /// - /// Timestamp from which the video playing must start, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_timestamp")] - public int StartTimestamp { get; set; } - } + /// + /// Timestamp from which the video playing must start, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_timestamp")] + public int StartTimestamp { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeVideoChat.cs b/TdLib.Api/Objects/LinkPreviewTypeVideoChat.cs index 4c38bc65..fd90ec17 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeVideoChat.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeVideoChat.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a video chat + /// + public class LinkPreviewTypeVideoChat : LinkPreviewType { /// - /// The link is a link to a video chat + /// Data type for serialization /// - public class LinkPreviewTypeVideoChat : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeVideoChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeVideoChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo of the chat with the video chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } + /// + /// Photo of the chat with the video chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } - /// - /// True, if the video chat is expected to be a live stream in a channel or a broadcast group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_live_stream")] - public bool IsLiveStream { get; set; } + /// + /// True, if the video chat is expected to be a live stream in a channel or a broadcast group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_live_stream")] + public bool IsLiveStream { get; set; } - /// - /// True, if the user can use the link to join the video chat without being muted by administrators - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("joins_as_speaker")] - public bool JoinsAsSpeaker { get; set; } - } + /// + /// True, if the user can use the link to join the video chat without being muted by administrators + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("joins_as_speaker")] + public bool JoinsAsSpeaker { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeVideoNote.cs b/TdLib.Api/Objects/LinkPreviewTypeVideoNote.cs index 0e7fffc2..9e1de22a 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeVideoNote.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeVideoNote.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a video note message + /// + public class LinkPreviewTypeVideoNote : LinkPreviewType { /// - /// The link is a link to a video note message + /// Data type for serialization /// - public class LinkPreviewTypeVideoNote : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_note")] - public VideoNote VideoNote { get; set; } - } + /// + /// The video note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_note")] + public VideoNote VideoNote { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeVoiceNote.cs b/TdLib.Api/Objects/LinkPreviewTypeVoiceNote.cs index badfab68..ecf0f0db 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeVoiceNote.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeVoiceNote.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a voice note message + /// + public class LinkPreviewTypeVoiceNote : LinkPreviewType { /// - /// The link is a link to a voice note message + /// Data type for serialization /// - public class LinkPreviewTypeVoiceNote : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public VoiceNote VoiceNote { get; set; } - } + /// + /// The voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public VoiceNote VoiceNote { get; set; } } } } diff --git a/TdLib.Api/Objects/LinkPreviewTypeWebApp.cs b/TdLib.Api/Objects/LinkPreviewTypeWebApp.cs index bdd10e88..7ff7a735 100644 --- a/TdLib.Api/Objects/LinkPreviewTypeWebApp.cs +++ b/TdLib.Api/Objects/LinkPreviewTypeWebApp.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LinkPreviewType : Object { - public partial class LinkPreviewType : Object + /// + /// The link is a link to a Web App + /// + public class LinkPreviewTypeWebApp : LinkPreviewType { /// - /// The link is a link to a Web App + /// Data type for serialization /// - public class LinkPreviewTypeWebApp : LinkPreviewType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "linkPreviewTypeWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "linkPreviewTypeWebApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Web App photo; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// Web App photo; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/LiveLocation.cs b/TdLib.Api/Objects/LiveLocation.cs index ecd094ab..de986eb8 100644 --- a/TdLib.Api/Objects/LiveLocation.cs +++ b/TdLib.Api/Objects/LiveLocation.cs @@ -2,59 +2,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A live location /// - public static partial class TdApi + public partial class LiveLocation : Object { /// - /// A live location + /// Data type for serialization /// - public partial class LiveLocation : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "liveLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "liveLocation"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The current location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// The current location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("live_period")] - public int LivePeriod { get; set; } + /// + /// Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("live_period")] + public int LivePeriod { get; set; } - /// - /// The direction in which the location moves, in degrees; 1-360; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("heading")] - public int Heading { get; set; } + /// + /// The direction in which the location moves, in degrees; 1-360; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("heading")] + public int Heading { get; set; } - /// - /// The maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. - /// Can't be enabled in direct messages chats, channels and Saved Messages. Available only to the message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("proximity_alert_radius")] - public int ProximityAlertRadius { get; set; } - } + /// + /// The maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. + /// Can't be enabled in direct messages chats, channels and Saved Messages. Available only to the message sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("proximity_alert_radius")] + public int ProximityAlertRadius { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LiveStoryDonors.cs b/TdLib.Api/Objects/LiveStoryDonors.cs index f7171a74..d172150e 100644 --- a/TdLib.Api/Objects/LiveStoryDonors.cs +++ b/TdLib.Api/Objects/LiveStoryDonors.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of users and chats that spend most money on paid messages and reactions in a live story /// - public static partial class TdApi + public partial class LiveStoryDonors : Object { /// - /// Contains a list of users and chats that spend most money on paid messages and reactions in a live story + /// Data type for serialization /// - public partial class LiveStoryDonors : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "liveStoryDonors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "liveStoryDonors"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total amount of spend Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_star_count")] - public long TotalStarCount { get; set; } + /// + /// Total amount of spend Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_star_count")] + public long TotalStarCount { get; set; } - /// - /// List of top donors in the live story - /// - [JsonProperty("top_donors", ItemConverterType = typeof(Converter))] - public PaidReactor[] TopDonors { get; set; } - } + /// + /// List of top donors in the live story + /// + [JsonProperty("top_donors", ItemConverterType = typeof(Converter))] + public PaidReactor[] TopDonors { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LocalFile.cs b/TdLib.Api/Objects/LocalFile.cs index 7c5bd5c6..52819545 100644 --- a/TdLib.Api/Objects/LocalFile.cs +++ b/TdLib.Api/Objects/LocalFile.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a local file /// - public static partial class TdApi + public partial class LocalFile : Object { /// - /// Represents a local file + /// Data type for serialization /// - public partial class LocalFile : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "localFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "localFile"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Local path to the locally available file part; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("path")] - public string Path { get; set; } + /// + /// Local path to the locally available file part; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("path")] + public string Path { get; set; } - /// - /// True, if it is possible to download or generate the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_downloaded")] - public bool CanBeDownloaded { get; set; } + /// + /// True, if it is possible to download or generate the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_downloaded")] + public bool CanBeDownloaded { get; set; } - /// - /// True, if the file can be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted")] - public bool CanBeDeleted { get; set; } + /// + /// True, if the file can be deleted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted")] + public bool CanBeDeleted { get; set; } - /// - /// True, if the file is currently being downloaded (or a local copy is being generated by some other means) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_downloading_active")] - public bool IsDownloadingActive { get; set; } + /// + /// True, if the file is currently being downloaded (or a local copy is being generated by some other means) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_downloading_active")] + public bool IsDownloadingActive { get; set; } - /// - /// True, if the local copy is fully available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_downloading_completed")] - public bool IsDownloadingCompleted { get; set; } + /// + /// True, if the local copy is fully available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_downloading_completed")] + public bool IsDownloadingCompleted { get; set; } - /// - /// Download will be started from this offset. downloaded_prefix_size is calculated from this offset - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("download_offset")] - public long DownloadOffset { get; set; } + /// + /// Download will be started from this offset. downloaded_prefix_size is calculated from this offset + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("download_offset")] + public long DownloadOffset { get; set; } - /// - /// If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("downloaded_prefix_size")] - public long DownloadedPrefixSize { get; set; } + /// + /// If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("downloaded_prefix_size")] + public long DownloadedPrefixSize { get; set; } - /// - /// Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("downloaded_size")] - public long DownloadedSize { get; set; } - } + /// + /// Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("downloaded_size")] + public long DownloadedSize { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LocalizationTargetInfo.cs b/TdLib.Api/Objects/LocalizationTargetInfo.cs index c664cd84..37612220 100644 --- a/TdLib.Api/Objects/LocalizationTargetInfo.cs +++ b/TdLib.Api/Objects/LocalizationTargetInfo.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about the current localization target /// - public static partial class TdApi + public partial class LocalizationTargetInfo : Object { /// - /// Contains information about the current localization target + /// Data type for serialization /// - public partial class LocalizationTargetInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "localizationTargetInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "localizationTargetInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of available language packs for this application - /// - [JsonProperty("language_packs", ItemConverterType = typeof(Converter))] - public LanguagePackInfo[] LanguagePacks { get; set; } - } + /// + /// List of available language packs for this application + /// + [JsonProperty("language_packs", ItemConverterType = typeof(Converter))] + public LanguagePackInfo[] LanguagePacks { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Location.cs b/TdLib.Api/Objects/Location.cs index f7b3840a..239afad3 100644 --- a/TdLib.Api/Objects/Location.cs +++ b/TdLib.Api/Objects/Location.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a location on planet Earth /// - public static partial class TdApi + public partial class Location : Object { /// - /// Describes a location on planet Earth + /// Data type for serialization /// - public partial class Location : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "location"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "location"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Latitude of the location in degrees; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("latitude")] - public double? Latitude { get; set; } + /// + /// Latitude of the location in degrees; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("latitude")] + public double? Latitude { get; set; } - /// - /// Longitude of the location, in degrees; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("longitude")] - public double? Longitude { get; set; } + /// + /// Longitude of the location, in degrees; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("longitude")] + public double? Longitude { get; set; } - /// - /// The estimated horizontal accuracy of the location, in meters; as defined by the sender. 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("horizontal_accuracy")] - public double? HorizontalAccuracy { get; set; } - } + /// + /// The estimated horizontal accuracy of the location, in meters; as defined by the sender. 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("horizontal_accuracy")] + public double? HorizontalAccuracy { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LocationAddress.cs b/TdLib.Api/Objects/LocationAddress.cs index 331fef8c..80556672 100644 --- a/TdLib.Api/Objects/LocationAddress.cs +++ b/TdLib.Api/Objects/LocationAddress.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an address of a location /// - public static partial class TdApi + public partial class LocationAddress : Object { /// - /// Describes an address of a location + /// Data type for serialization /// - public partial class LocationAddress : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "locationAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "locationAddress"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } + /// + /// A two-letter ISO 3166-1 alpha-2 country code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } - /// - /// State, if applicable; empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public string State { get; set; } + /// + /// State, if applicable; empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public string State { get; set; } - /// - /// City; empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("city")] - public string City { get; set; } + /// + /// City; empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("city")] + public string City { get; set; } - /// - /// The address; empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("street")] - public string Street { get; set; } - } + /// + /// The address; empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("street")] + public string Street { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LogStreamDefault.cs b/TdLib.Api/Objects/LogStreamDefault.cs index 9d9673d5..c325f066 100644 --- a/TdLib.Api/Objects/LogStreamDefault.cs +++ b/TdLib.Api/Objects/LogStreamDefault.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LogStream : Object { - public partial class LogStream : Object + /// + /// Describes a stream to which TDLib internal log is written + /// + public class LogStreamDefault : LogStream { /// - /// Describes a stream to which TDLib internal log is written + /// Data type for serialization /// - public class LogStreamDefault : LogStream - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "logStreamDefault"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "logStreamDefault"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LogStreamEmpty.cs b/TdLib.Api/Objects/LogStreamEmpty.cs index 24c66c44..5612b9d9 100644 --- a/TdLib.Api/Objects/LogStreamEmpty.cs +++ b/TdLib.Api/Objects/LogStreamEmpty.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LogStream : Object { - public partial class LogStream : Object + /// + /// The log is written nowhere + /// + public class LogStreamEmpty : LogStream { /// - /// The log is written nowhere + /// Data type for serialization /// - public class LogStreamEmpty : LogStream - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "logStreamEmpty"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "logStreamEmpty"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/LogStreamFile.cs b/TdLib.Api/Objects/LogStreamFile.cs index d7883edb..439c50b5 100644 --- a/TdLib.Api/Objects/LogStreamFile.cs +++ b/TdLib.Api/Objects/LogStreamFile.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LogStream : Object { - public partial class LogStream : Object + /// + /// The log is written to a file + /// + public class LogStreamFile : LogStream { /// - /// The log is written to a file + /// Data type for serialization /// - public class LogStreamFile : LogStream - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "logStreamFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "logStreamFile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Path to the file to where the internal TDLib log will be written - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("path")] - public string Path { get; set; } + /// + /// Path to the file to where the internal TDLib log will be written + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("path")] + public string Path { get; set; } - /// - /// The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_file_size")] - public long MaxFileSize { get; set; } + /// + /// The maximum size of the file to where the internal TDLib log is written before the file will automatically be rotated, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_file_size")] + public long MaxFileSize { get; set; } - /// - /// Pass true to additionally redirect stderr to the log file. Ignored on Windows - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("redirect_stderr")] - public bool RedirectStderr { get; set; } - } + /// + /// Pass true to additionally redirect stderr to the log file. Ignored on Windows + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("redirect_stderr")] + public bool RedirectStderr { get; set; } } } } diff --git a/TdLib.Api/Objects/LogTags.cs b/TdLib.Api/Objects/LogTags.cs index c99611b2..0c753557 100644 --- a/TdLib.Api/Objects/LogTags.cs +++ b/TdLib.Api/Objects/LogTags.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of available TDLib internal log tags /// - public static partial class TdApi + public partial class LogTags : Object { /// - /// Contains a list of available TDLib internal log tags + /// Data type for serialization /// - public partial class LogTags : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "logTags"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "logTags"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of log tags - /// - [JsonProperty("tags", ItemConverterType = typeof(Converter))] - public string[] Tags { get; set; } - } + /// + /// List of log tags + /// + [JsonProperty("tags", ItemConverterType = typeof(Converter))] + public string[] Tags { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LogVerbosityLevel.cs b/TdLib.Api/Objects/LogVerbosityLevel.cs index 9500ec63..f4c15102 100644 --- a/TdLib.Api/Objects/LogVerbosityLevel.cs +++ b/TdLib.Api/Objects/LogVerbosityLevel.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a TDLib internal log verbosity level /// - public static partial class TdApi + public partial class LogVerbosityLevel : Object { /// - /// Contains a TDLib internal log verbosity level + /// Data type for serialization /// - public partial class LogVerbosityLevel : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "logVerbosityLevel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "logVerbosityLevel"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Log verbosity level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verbosity_level")] - public int VerbosityLevel { get; set; } - } + /// + /// Log verbosity level + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verbosity_level")] + public int VerbosityLevel { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/LoginUrlInfoOpen.cs b/TdLib.Api/Objects/LoginUrlInfoOpen.cs index 08431627..2a901678 100644 --- a/TdLib.Api/Objects/LoginUrlInfoOpen.cs +++ b/TdLib.Api/Objects/LoginUrlInfoOpen.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LoginUrlInfo : Object { - public partial class LoginUrlInfo : Object + /// + /// Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl or an external link + /// + public class LoginUrlInfoOpen : LoginUrlInfo { /// - /// Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl or an external link + /// Data type for serialization /// - public class LoginUrlInfoOpen : LoginUrlInfo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loginUrlInfoOpen"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "loginUrlInfoOpen"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The URL to open - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// The URL to open + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// True, if there is no need to show an ordinary open URL confirmation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("skip_confirmation")] - public bool SkipConfirmation { get; set; } - } + /// + /// True, if there is no need to show an ordinary open URL confirmation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("skip_confirmation")] + public bool SkipConfirmation { get; set; } } } } diff --git a/TdLib.Api/Objects/LoginUrlInfoRequestConfirmation.cs b/TdLib.Api/Objects/LoginUrlInfoRequestConfirmation.cs index 4d80ac85..50be84ac 100644 --- a/TdLib.Api/Objects/LoginUrlInfoRequestConfirmation.cs +++ b/TdLib.Api/Objects/LoginUrlInfoRequestConfirmation.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class LoginUrlInfo : Object { - public partial class LoginUrlInfo : Object + /// + /// An authorization confirmation dialog needs to be shown to the user + /// + public class LoginUrlInfoRequestConfirmation : LoginUrlInfo { /// - /// An authorization confirmation dialog needs to be shown to the user + /// Data type for serialization /// - public class LoginUrlInfoRequestConfirmation : LoginUrlInfo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "loginUrlInfoRequestConfirmation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "loginUrlInfoRequestConfirmation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An HTTP URL to be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// An HTTP URL to be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// A domain of the URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("domain")] - public string Domain { get; set; } + /// + /// A domain of the URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("domain")] + public string Domain { get; set; } - /// - /// User identifier of a bot linked with the website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of a bot linked with the website + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// True, if the user must be asked for the permission to the bot to send them messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_write_access")] - public bool RequestWriteAccess { get; set; } - } + /// + /// True, if the user must be asked for the permission to the bot to send them messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_write_access")] + public bool RequestWriteAccess { get; set; } } } } diff --git a/TdLib.Api/Objects/MainWebApp.cs b/TdLib.Api/Objects/MainWebApp.cs index c77f437c..56efbd55 100644 --- a/TdLib.Api/Objects/MainWebApp.cs +++ b/TdLib.Api/Objects/MainWebApp.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about the main Web App of a bot /// - public static partial class TdApi + public partial class MainWebApp : Object { /// - /// Contains information about the main Web App of a bot + /// Data type for serialization /// - public partial class MainWebApp : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "mainWebApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "mainWebApp"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the Web App to open - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public WebAppUrl Url { get; set; } + /// + /// URL of the Web App to open + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public WebAppUrl Url { get; set; } - /// - /// The mode in which the Web App must be opened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mode")] - public WebAppOpenMode Mode { get; set; } - } + /// + /// The mode in which the Web App must be opened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mode")] + public WebAppOpenMode Mode { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MaskPointChin.cs b/TdLib.Api/Objects/MaskPointChin.cs index e12672a8..c572c2c5 100644 --- a/TdLib.Api/Objects/MaskPointChin.cs +++ b/TdLib.Api/Objects/MaskPointChin.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MaskPoint : Object { - public partial class MaskPoint : Object + /// + /// The mask is placed relatively to the chin + /// + public class MaskPointChin : MaskPoint { /// - /// The mask is placed relatively to the chin + /// Data type for serialization /// - public class MaskPointChin : MaskPoint - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "maskPointChin"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "maskPointChin"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MaskPointEyes.cs b/TdLib.Api/Objects/MaskPointEyes.cs index e232198e..2ca1816a 100644 --- a/TdLib.Api/Objects/MaskPointEyes.cs +++ b/TdLib.Api/Objects/MaskPointEyes.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MaskPoint : Object { - public partial class MaskPoint : Object + /// + /// The mask is placed relatively to the eyes + /// + public class MaskPointEyes : MaskPoint { /// - /// The mask is placed relatively to the eyes + /// Data type for serialization /// - public class MaskPointEyes : MaskPoint - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "maskPointEyes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "maskPointEyes"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MaskPointForehead.cs b/TdLib.Api/Objects/MaskPointForehead.cs index 65619a29..5755d116 100644 --- a/TdLib.Api/Objects/MaskPointForehead.cs +++ b/TdLib.Api/Objects/MaskPointForehead.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MaskPoint : Object { - public partial class MaskPoint : Object + /// + /// Part of the face, relative to which a mask is placed + /// + public class MaskPointForehead : MaskPoint { /// - /// Part of the face, relative to which a mask is placed + /// Data type for serialization /// - public class MaskPointForehead : MaskPoint - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "maskPointForehead"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "maskPointForehead"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MaskPointMouth.cs b/TdLib.Api/Objects/MaskPointMouth.cs index e858b558..ba4d0561 100644 --- a/TdLib.Api/Objects/MaskPointMouth.cs +++ b/TdLib.Api/Objects/MaskPointMouth.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MaskPoint : Object { - public partial class MaskPoint : Object + /// + /// The mask is placed relatively to the mouth + /// + public class MaskPointMouth : MaskPoint { /// - /// The mask is placed relatively to the mouth + /// Data type for serialization /// - public class MaskPointMouth : MaskPoint - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "maskPointMouth"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "maskPointMouth"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MaskPosition.cs b/TdLib.Api/Objects/MaskPosition.cs index 9fdb6a09..e9aae7ef 100644 --- a/TdLib.Api/Objects/MaskPosition.cs +++ b/TdLib.Api/Objects/MaskPosition.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Position on a photo where a mask is placed /// - public static partial class TdApi + public partial class MaskPosition : Object { /// - /// Position on a photo where a mask is placed + /// Data type for serialization /// - public partial class MaskPosition : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "maskPosition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "maskPosition"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Part of the face, relative to which the mask is placed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("point")] - public MaskPoint Point { get; set; } + /// + /// Part of the face, relative to which the mask is placed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("point")] + public MaskPoint Point { get; set; } - /// - /// Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("x_shift")] - public double? XShift { get; set; } + /// + /// Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("x_shift")] + public double? XShift { get; set; } - /// - /// Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("y_shift")] - public double? YShift { get; set; } + /// + /// Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("y_shift")] + public double? YShift { get; set; } - /// - /// Mask scaling coefficient. (For example, 2.0 means a doubled size) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scale")] - public double? Scale { get; set; } - } + /// + /// Mask scaling coefficient. (For example, 2.0 means a doubled size) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scale")] + public double? Scale { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Message.cs b/TdLib.Api/Objects/Message.cs index fb1a4b3a..8a987c3b 100644 --- a/TdLib.Api/Objects/Message.cs +++ b/TdLib.Api/Objects/Message.cs @@ -2,345 +2,344 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a message /// - public static partial class TdApi + public partial class Message : Object { /// - /// Describes a message - /// - public partial class Message : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "message"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Message identifier; unique for the chat to which the message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Identifier of the sender of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - - /// - /// Identifier of the user or the chat which received the ephemeral message; may be null. Always null for non-ephemeral messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_id")] - public MessageSender ReceiverId { get; set; } - - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - - /// - /// The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sending_state")] - public MessageSendingState SendingState { get; set; } - - /// - /// The scheduling state of the message; may be null if the message isn't scheduled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scheduling_state")] - public MessageSchedulingState SchedulingState { get; set; } - - /// - /// True, if the message is outgoing - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_outgoing")] - public bool IsOutgoing { get; set; } - - /// - /// True, if the message is pinned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - - /// - /// True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_from_offline")] - public bool IsFromOffline { get; set; } - - /// - /// True, if content of the message can be saved locally - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_saved")] - public bool CanBeSaved { get; set; } - - /// - /// True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_timestamped_media")] - public bool HasTimestampedMedia { get; set; } - - /// - /// True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_channel_post")] - public bool IsChannelPost { get; set; } - - /// - /// True, if the message is a suggested channel post which was paid in Telegram Stars; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paid_star_suggested_post")] - public bool IsPaidStarSuggestedPost { get; set; } - - /// - /// True, if the message is a suggested channel post which was paid in TON Grams; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paid_gram_suggested_post")] - public bool IsPaidGramSuggestedPost { get; set; } - - /// - /// True, if the message contains an unread mention for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contains_unread_mention")] - public bool ContainsUnreadMention { get; set; } - - /// - /// True, if the message is a poll message with unread votes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contains_unread_poll_votes")] - public bool ContainsUnreadPollVotes { get; set; } - - /// - /// Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - - /// - /// Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages. If getOption("show_message_edit_date_by_default") is true, - /// then the date must be shown along with the message instead of the date when the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_date")] - public int EditDate { get; set; } - - /// - /// Information about the initial message sender; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forward_info")] - public MessageForwardInfo ForwardInfo { get; set; } - - /// - /// Information about the initial message for messages created with importMessages; may be null if the message isn't imported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("import_info")] - public MessageImportInfo ImportInfo { get; set; } - - /// - /// Information about interactions with the message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("interaction_info")] - public MessageInteractionInfo InteractionInfo { get; set; } - - /// - /// Information about unread reactions added to the message - /// - [JsonProperty("unread_reactions", ItemConverterType = typeof(Converter))] - public UnreadReaction[] UnreadReactions { get; set; } - - /// - /// Information about fact-check added to the message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fact_check")] - public FactCheck FactCheck { get; set; } - - /// - /// Information about the suggested post; may be null if the message isn't a suggested post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_info")] - public SuggestedPostInfo SuggestedPostInfo { get; set; } - - /// - /// Information about the message or the story this message is replying to; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to")] - public MessageReplyTo ReplyTo { get; set; } - - /// - /// Identifier of the topic within the chat to which the message belongs; may be null if none; may change when the chat is converted to a forum or back - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } - - /// - /// The message's self-destruct type; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_type")] - public MessageSelfDestructType SelfDestructType { get; set; } - - /// - /// Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn't scheduled yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_in")] - public double? SelfDestructIn { get; set; } - - /// - /// Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("auto_delete_in")] - public double? AutoDeleteIn { get; set; } - - /// - /// If non-zero, the user identifier of the inline bot through which this message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_bot_user_id")] - public long ViaBotUserId { get; set; } - - /// - /// The identifier of the user or chat which used a guest bot to send the message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("guest_bot_caller_id")] - public MessageSender GuestBotCallerId { get; set; } - - /// - /// If non-zero, the user identifier of the business bot that sent this message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_business_bot_user_id")] - public long SenderBusinessBotUserId { get; set; } - - /// - /// Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_boost_count")] - public int SenderBoostCount { get; set; } - - /// - /// Tag of the sender of the message in the supergroup at the time the message was sent; may be empty if none or unknown. For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_tag")] - public string SenderTag { get; set; } - - /// - /// The number of Telegram Stars the sender paid to send the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - - /// - /// For channel posts and anonymous group messages, optional author signature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author_signature")] - public string AuthorSignature { get; set; } - - /// - /// Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("media_album_id")] - public long MediaAlbumId { get; set; } - - /// - /// Unique identifier of the effect added to the message; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("effect_id")] - public long EffectId { get; set; } - - /// - /// Information about the restrictions that must be applied to the message content; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restriction_info")] - public RestrictionInfo RestrictionInfo { get; set; } - - /// - /// IETF language tag of the message language on which it can be summarized; empty if summary isn't available for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("summary_language_code")] - public string SummaryLanguageCode { get; set; } - - /// - /// Content of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } - - /// - /// Content of the message, which is visible only to the current user and must be shown instead of the regular content; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ephemeral_content")] - public EphemeralMessageContent EphemeralContent { get; set; } - - /// - /// Reply markup for the message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - - /// - /// Unique identifier of the ephemeral message if the message is ephemeral; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ephemeral_message_id")] - public int EphemeralMessageId { get; set; } - - /// - /// Identifier that uniquely corresponds to the chat to which the message was sent; for bots only - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("chat_instance")] - public long ChatInstance { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "message"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Message identifier; unique for the chat to which the message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Identifier of the sender of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + + /// + /// Identifier of the user or the chat which received the ephemeral message; may be null. Always null for non-ephemeral messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_id")] + public MessageSender ReceiverId { get; set; } + + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } + + /// + /// The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sending_state")] + public MessageSendingState SendingState { get; set; } + + /// + /// The scheduling state of the message; may be null if the message isn't scheduled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scheduling_state")] + public MessageSchedulingState SchedulingState { get; set; } + + /// + /// True, if the message is outgoing + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outgoing")] + public bool IsOutgoing { get; set; } + + /// + /// True, if the message is pinned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } + + /// + /// True, if the message was sent because of a scheduled action by the message sender, for example, as away, or greeting service message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_from_offline")] + public bool IsFromOffline { get; set; } + + /// + /// True, if content of the message can be saved locally + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_saved")] + public bool CanBeSaved { get; set; } + + /// + /// True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_timestamped_media")] + public bool HasTimestampedMedia { get; set; } + + /// + /// True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_channel_post")] + public bool IsChannelPost { get; set; } + + /// + /// True, if the message is a suggested channel post which was paid in Telegram Stars; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paid_star_suggested_post")] + public bool IsPaidStarSuggestedPost { get; set; } + + /// + /// True, if the message is a suggested channel post which was paid in TON Grams; a warning must be shown if the message is deleted in less than getOption("suggested_post_lifetime_min") seconds after sending + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paid_gram_suggested_post")] + public bool IsPaidGramSuggestedPost { get; set; } + + /// + /// True, if the message contains an unread mention for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contains_unread_mention")] + public bool ContainsUnreadMention { get; set; } + + /// + /// True, if the message is a poll message with unread votes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contains_unread_poll_votes")] + public bool ContainsUnreadPollVotes { get; set; } + + /// + /// Point in time (Unix timestamp) when the message was sent; 0 for scheduled messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + + /// + /// Point in time (Unix timestamp) when the message was last edited; 0 for scheduled messages. If getOption("show_message_edit_date_by_default") is true, + /// then the date must be shown along with the message instead of the date when the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_date")] + public int EditDate { get; set; } + + /// + /// Information about the initial message sender; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forward_info")] + public MessageForwardInfo ForwardInfo { get; set; } + + /// + /// Information about the initial message for messages created with importMessages; may be null if the message isn't imported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("import_info")] + public MessageImportInfo ImportInfo { get; set; } + + /// + /// Information about interactions with the message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("interaction_info")] + public MessageInteractionInfo InteractionInfo { get; set; } + + /// + /// Information about unread reactions added to the message + /// + [JsonProperty("unread_reactions", ItemConverterType = typeof(Converter))] + public UnreadReaction[] UnreadReactions { get; set; } + + /// + /// Information about fact-check added to the message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fact_check")] + public FactCheck FactCheck { get; set; } + + /// + /// Information about the suggested post; may be null if the message isn't a suggested post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_info")] + public SuggestedPostInfo SuggestedPostInfo { get; set; } + + /// + /// Information about the message or the story this message is replying to; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to")] + public MessageReplyTo ReplyTo { get; set; } + + /// + /// Identifier of the topic within the chat to which the message belongs; may be null if none; may change when the chat is converted to a forum or back + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } + + /// + /// The message's self-destruct type; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_type")] + public MessageSelfDestructType SelfDestructType { get; set; } + + /// + /// Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn't scheduled yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_in")] + public double? SelfDestructIn { get; set; } + + /// + /// Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("auto_delete_in")] + public double? AutoDeleteIn { get; set; } + + /// + /// If non-zero, the user identifier of the inline bot through which this message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_bot_user_id")] + public long ViaBotUserId { get; set; } + + /// + /// The identifier of the user or chat which used a guest bot to send the message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("guest_bot_caller_id")] + public MessageSender GuestBotCallerId { get; set; } + + /// + /// If non-zero, the user identifier of the business bot that sent this message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_business_bot_user_id")] + public long SenderBusinessBotUserId { get; set; } + + /// + /// Number of times the sender of the message boosted the supergroup at the time the message was sent; 0 if none or unknown. For messages sent by the current user, supergroupFullInfo.my_boost_count must be used instead + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_boost_count")] + public int SenderBoostCount { get; set; } + + /// + /// Tag of the sender of the message in the supergroup at the time the message was sent; may be empty if none or unknown. For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_tag")] + public string SenderTag { get; set; } + + /// + /// The number of Telegram Stars the sender paid to send the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + + /// + /// For channel posts and anonymous group messages, optional author signature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author_signature")] + public string AuthorSignature { get; set; } + + /// + /// Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("media_album_id")] + public long MediaAlbumId { get; set; } + + /// + /// Unique identifier of the effect added to the message; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("effect_id")] + public long EffectId { get; set; } + + /// + /// Information about the restrictions that must be applied to the message content; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restriction_info")] + public RestrictionInfo RestrictionInfo { get; set; } + + /// + /// IETF language tag of the message language on which it can be summarized; empty if summary isn't available for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("summary_language_code")] + public string SummaryLanguageCode { get; set; } + + /// + /// Content of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } + + /// + /// Content of the message, which is visible only to the current user and must be shown instead of the regular content; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ephemeral_content")] + public EphemeralMessageContent EphemeralContent { get; set; } + + /// + /// Reply markup for the message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } + + /// + /// Unique identifier of the ephemeral message if the message is ephemeral; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ephemeral_message_id")] + public int EphemeralMessageId { get; set; } + + /// + /// Identifier that uniquely corresponds to the chat to which the message was sent; for bots only + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("chat_instance")] + public long ChatInstance { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageAnimatedEmoji.cs b/TdLib.Api/Objects/MessageAnimatedEmoji.cs index 9c8d438b..ea68feb7 100644 --- a/TdLib.Api/Objects/MessageAnimatedEmoji.cs +++ b/TdLib.Api/Objects/MessageAnimatedEmoji.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with an animated emoji + /// + public class MessageAnimatedEmoji : MessageContent { /// - /// A message with an animated emoji + /// Data type for serialization /// - public class MessageAnimatedEmoji : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageAnimatedEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageAnimatedEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animated emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animated_emoji")] - public AnimatedEmoji AnimatedEmoji { get; set; } + /// + /// The animated emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animated_emoji")] + public AnimatedEmoji AnimatedEmoji { get; set; } - /// - /// The corresponding emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } - } + /// + /// The corresponding emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageAnimation.cs b/TdLib.Api/Objects/MessageAnimation.cs index 96d341d2..108175dd 100644 --- a/TdLib.Api/Objects/MessageAnimation.cs +++ b/TdLib.Api/Objects/MessageAnimation.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// An animation message (GIF-style). + /// + public class MessageAnimation : MessageContent { /// - /// An animation message (GIF-style). + /// Data type for serialization /// - public class MessageAnimation : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animation description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } + /// + /// The animation description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } - /// - /// Animation caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Animation caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } + /// + /// True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } - /// - /// True, if the animation preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } + /// + /// True, if the animation preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } - /// - /// True, if the animation thumbnail must be blurred and the animation must be shown only while tapped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_secret")] - public bool IsSecret { get; set; } - } + /// + /// True, if the animation thumbnail must be blurred and the animation must be shown only while tapped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_secret")] + public bool IsSecret { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageAudio.cs b/TdLib.Api/Objects/MessageAudio.cs index d71e1dec..429ff1a0 100644 --- a/TdLib.Api/Objects/MessageAudio.cs +++ b/TdLib.Api/Objects/MessageAudio.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// An audio message + /// + public class MessageAudio : MessageContent { /// - /// An audio message + /// Data type for serialization /// - public class MessageAudio : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The audio description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public Audio Audio { get; set; } + /// + /// The audio description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public Audio Audio { get; set; } - /// - /// Audio caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } - } + /// + /// Audio caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageAutoDeleteTime.cs b/TdLib.Api/Objects/MessageAutoDeleteTime.cs index e168c66e..0377067b 100644 --- a/TdLib.Api/Objects/MessageAutoDeleteTime.cs +++ b/TdLib.Api/Objects/MessageAutoDeleteTime.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains default auto-delete timer setting for new chats /// - public static partial class TdApi + public partial class MessageAutoDeleteTime : Object { /// - /// Contains default auto-delete timer setting for new chats + /// Data type for serialization /// - public partial class MessageAutoDeleteTime : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageAutoDeleteTime"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageAutoDeleteTime"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message auto-delete time, in seconds. If 0, then messages aren't deleted automatically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("time")] - public int Time { get; set; } - } + /// + /// Message auto-delete time, in seconds. If 0, then messages aren't deleted automatically + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("time")] + public int Time { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageBasicGroupChatCreate.cs b/TdLib.Api/Objects/MessageBasicGroupChatCreate.cs index fc2d64fd..a3c7c0c5 100644 --- a/TdLib.Api/Objects/MessageBasicGroupChatCreate.cs +++ b/TdLib.Api/Objects/MessageBasicGroupChatCreate.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A newly created basic group + /// + public class MessageBasicGroupChatCreate : MessageContent { /// - /// A newly created basic group + /// Data type for serialization /// - public class MessageBasicGroupChatCreate : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageBasicGroupChatCreate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageBasicGroupChatCreate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the basic group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the basic group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// User identifiers of members in the basic group - /// - [JsonProperty("member_user_ids", ItemConverterType = typeof(Converter))] - public long[] MemberUserIds { get; set; } - } + /// + /// User identifiers of members in the basic group + /// + [JsonProperty("member_user_ids", ItemConverterType = typeof(Converter))] + public long[] MemberUserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageBotWriteAccessAllowed.cs b/TdLib.Api/Objects/MessageBotWriteAccessAllowed.cs index 513884e7..8c87d5d4 100644 --- a/TdLib.Api/Objects/MessageBotWriteAccessAllowed.cs +++ b/TdLib.Api/Objects/MessageBotWriteAccessAllowed.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The user allowed the bot to send messages + /// + public class MessageBotWriteAccessAllowed : MessageContent { /// - /// The user allowed the bot to send messages + /// Data type for serialization /// - public class MessageBotWriteAccessAllowed : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageBotWriteAccessAllowed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageBotWriteAccessAllowed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The reason why the bot was allowed to write messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public BotWriteAccessAllowReason Reason { get; set; } - } + /// + /// The reason why the bot was allowed to write messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public BotWriteAccessAllowReason Reason { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageCalendar.cs b/TdLib.Api/Objects/MessageCalendar.cs index 8e2a959c..c7c3f429 100644 --- a/TdLib.Api/Objects/MessageCalendar.cs +++ b/TdLib.Api/Objects/MessageCalendar.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about found messages, split by days according to the option "utc_time_offset" /// - public static partial class TdApi + public partial class MessageCalendar : Object { /// - /// Contains information about found messages, split by days according to the option "utc_time_offset" + /// Data type for serialization /// - public partial class MessageCalendar : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageCalendar"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageCalendar"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of found messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of found messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// Information about messages sent - /// - [JsonProperty("days", ItemConverterType = typeof(Converter))] - public MessageCalendarDay[] Days { get; set; } - } + /// + /// Information about messages sent + /// + [JsonProperty("days", ItemConverterType = typeof(Converter))] + public MessageCalendarDay[] Days { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageCalendarDay.cs b/TdLib.Api/Objects/MessageCalendarDay.cs index 971ae071..72491c46 100644 --- a/TdLib.Api/Objects/MessageCalendarDay.cs +++ b/TdLib.Api/Objects/MessageCalendarDay.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about found messages sent on a specific day /// - public static partial class TdApi + public partial class MessageCalendarDay : Object { /// - /// Contains information about found messages sent on a specific day + /// Data type for serialization /// - public partial class MessageCalendarDay : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageCalendarDay"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageCalendarDay"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of found messages sent on the day - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of found messages sent on the day + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// First message sent on the day - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } - } + /// + /// First message sent on the day + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageCall.cs b/TdLib.Api/Objects/MessageCall.cs index 5d8447ee..acda6173 100644 --- a/TdLib.Api/Objects/MessageCall.cs +++ b/TdLib.Api/Objects/MessageCall.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with information about an ended call + /// + public class MessageCall : MessageContent { /// - /// A message with information about an ended call + /// Data type for serialization /// - public class MessageCall : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Persistent unique call identifier; 0 for calls from other devices, which can't be passed as inputCallFromMessage - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("unique_id")] - public long UniqueId { get; set; } + /// + /// Persistent unique call identifier; 0 for calls from other devices, which can't be passed as inputCallFromMessage + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("unique_id")] + public long UniqueId { get; set; } - /// - /// True, if the call was a video call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video")] - public bool IsVideo { get; set; } + /// + /// True, if the call was a video call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video")] + public bool IsVideo { get; set; } - /// - /// Reason why the call was discarded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("discard_reason")] - public CallDiscardReason DiscardReason { get; set; } + /// + /// Reason why the call was discarded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("discard_reason")] + public CallDiscardReason DiscardReason { get; set; } - /// - /// Call duration, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } - } + /// + /// Call duration, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatAddMembers.cs b/TdLib.Api/Objects/MessageChatAddMembers.cs index 99dc1355..71b06f5b 100644 --- a/TdLib.Api/Objects/MessageChatAddMembers.cs +++ b/TdLib.Api/Objects/MessageChatAddMembers.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// New chat members were added + /// + public class MessageChatAddMembers : MessageContent { /// - /// New chat members were added + /// Data type for serialization /// - public class MessageChatAddMembers : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatAddMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatAddMembers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifiers of the new members - /// - [JsonProperty("member_user_ids", ItemConverterType = typeof(Converter))] - public long[] MemberUserIds { get; set; } - } + /// + /// User identifiers of the new members + /// + [JsonProperty("member_user_ids", ItemConverterType = typeof(Converter))] + public long[] MemberUserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatAddedToCommunity.cs b/TdLib.Api/Objects/MessageChatAddedToCommunity.cs index 5ed6d847..d9de1e98 100644 --- a/TdLib.Api/Objects/MessageChatAddedToCommunity.cs +++ b/TdLib.Api/Objects/MessageChatAddedToCommunity.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The chat was added to a community + /// + public class MessageChatAddedToCommunity : MessageContent { /// - /// The chat was added to a community + /// Data type for serialization /// - public class MessageChatAddedToCommunity : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatAddedToCommunity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatAddedToCommunity"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the community to which the chat was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } - } + /// + /// Identifier of the community to which the chat was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatBoost.cs b/TdLib.Api/Objects/MessageChatBoost.cs index 77475f83..3f2c950a 100644 --- a/TdLib.Api/Objects/MessageChatBoost.cs +++ b/TdLib.Api/Objects/MessageChatBoost.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The chat was boosted by the sender of the message + /// + public class MessageChatBoost : MessageContent { /// - /// The chat was boosted by the sender of the message + /// Data type for serialization /// - public class MessageChatBoost : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatBoost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatBoost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of times the chat was boosted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boost_count")] - public int BoostCount { get; set; } - } + /// + /// Number of times the chat was boosted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boost_count")] + public int BoostCount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatChangePhoto.cs b/TdLib.Api/Objects/MessageChatChangePhoto.cs index 5230b4ef..6bd9c03a 100644 --- a/TdLib.Api/Objects/MessageChatChangePhoto.cs +++ b/TdLib.Api/Objects/MessageChatChangePhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// An updated chat photo + /// + public class MessageChatChangePhoto : MessageContent { /// - /// An updated chat photo + /// Data type for serialization /// - public class MessageChatChangePhoto : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatChangePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatChangePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } - } + /// + /// New chat photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatChangeTitle.cs b/TdLib.Api/Objects/MessageChatChangeTitle.cs index c555ed65..5248cc9d 100644 --- a/TdLib.Api/Objects/MessageChatChangeTitle.cs +++ b/TdLib.Api/Objects/MessageChatChangeTitle.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// An updated chat title + /// + public class MessageChatChangeTitle : MessageContent { /// - /// An updated chat title + /// Data type for serialization /// - public class MessageChatChangeTitle : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatChangeTitle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatChangeTitle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// New chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatDeleteMember.cs b/TdLib.Api/Objects/MessageChatDeleteMember.cs index ad075ab3..a21e8185 100644 --- a/TdLib.Api/Objects/MessageChatDeleteMember.cs +++ b/TdLib.Api/Objects/MessageChatDeleteMember.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A chat member was deleted + /// + public class MessageChatDeleteMember : MessageContent { /// - /// A chat member was deleted + /// Data type for serialization /// - public class MessageChatDeleteMember : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatDeleteMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatDeleteMember"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the deleted chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// User identifier of the deleted chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatDeletePhoto.cs b/TdLib.Api/Objects/MessageChatDeletePhoto.cs index 596160f5..978639c2 100644 --- a/TdLib.Api/Objects/MessageChatDeletePhoto.cs +++ b/TdLib.Api/Objects/MessageChatDeletePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A deleted chat photo + /// + public class MessageChatDeletePhoto : MessageContent { /// - /// A deleted chat photo + /// Data type for serialization /// - public class MessageChatDeletePhoto : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatDeletePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatDeletePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageChatHasProtectedContentDisableRequested.cs b/TdLib.Api/Objects/MessageChatHasProtectedContentDisableRequested.cs index 8f0efc72..b911db09 100644 --- a/TdLib.Api/Objects/MessageChatHasProtectedContentDisableRequested.cs +++ b/TdLib.Api/Objects/MessageChatHasProtectedContentDisableRequested.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Chat has_protected_content setting was requested to be disabled + /// + public class MessageChatHasProtectedContentDisableRequested : MessageContent { /// - /// Chat has_protected_content setting was requested to be disabled + /// Data type for serialization /// - public class MessageChatHasProtectedContentDisableRequested : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatHasProtectedContentDisableRequested"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatHasProtectedContentDisableRequested"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the request has expired - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_expired")] - public bool IsExpired { get; set; } - } + /// + /// True, if the request has expired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_expired")] + public bool IsExpired { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatHasProtectedContentToggled.cs b/TdLib.Api/Objects/MessageChatHasProtectedContentToggled.cs index a989c366..ba4686db 100644 --- a/TdLib.Api/Objects/MessageChatHasProtectedContentToggled.cs +++ b/TdLib.Api/Objects/MessageChatHasProtectedContentToggled.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Chat has_protected_content setting was changed or request to change it was rejected + /// + public class MessageChatHasProtectedContentToggled : MessageContent { /// - /// Chat has_protected_content setting was changed or request to change it was rejected + /// Data type for serialization /// - public class MessageChatHasProtectedContentToggled : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatHasProtectedContentToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatHasProtectedContentToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the request to change the setting; can be an identifier of a deleted message or 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_message_id")] - public long RequestMessageId { get; set; } + /// + /// Identifier of the message with the request to change the setting; can be an identifier of a deleted message or 0 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_message_id")] + public long RequestMessageId { get; set; } - /// - /// Previous value of the setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_has_protected_content")] - public bool OldHasProtectedContent { get; set; } + /// + /// Previous value of the setting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_has_protected_content")] + public bool OldHasProtectedContent { get; set; } - /// - /// New value of the setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_has_protected_content")] - public bool NewHasProtectedContent { get; set; } - } + /// + /// New value of the setting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_has_protected_content")] + public bool NewHasProtectedContent { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatJoinByLink.cs b/TdLib.Api/Objects/MessageChatJoinByLink.cs index 54aebbe3..742dba25 100644 --- a/TdLib.Api/Objects/MessageChatJoinByLink.cs +++ b/TdLib.Api/Objects/MessageChatJoinByLink.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A new member joined the chat via an invite link + /// + public class MessageChatJoinByLink : MessageContent { /// - /// A new member joined the chat via an invite link + /// Data type for serialization /// - public class MessageChatJoinByLink : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatJoinByLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatJoinByLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageChatJoinByRequest.cs b/TdLib.Api/Objects/MessageChatJoinByRequest.cs index 52ee9ace..23b408d6 100644 --- a/TdLib.Api/Objects/MessageChatJoinByRequest.cs +++ b/TdLib.Api/Objects/MessageChatJoinByRequest.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A new member was accepted to the chat by an administrator + /// + public class MessageChatJoinByRequest : MessageContent { /// - /// A new member was accepted to the chat by an administrator + /// Data type for serialization /// - public class MessageChatJoinByRequest : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatJoinByRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatJoinByRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageChatJoinFromCommunity.cs b/TdLib.Api/Objects/MessageChatJoinFromCommunity.cs index d45964c2..b9c12232 100644 --- a/TdLib.Api/Objects/MessageChatJoinFromCommunity.cs +++ b/TdLib.Api/Objects/MessageChatJoinFromCommunity.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A new member joined the chat from a community + /// + public class MessageChatJoinFromCommunity : MessageContent { /// - /// A new member joined the chat from a community + /// Data type for serialization /// - public class MessageChatJoinFromCommunity : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatJoinFromCommunity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatJoinFromCommunity"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the community from which the user joined the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } - } + /// + /// Identifier of the community from which the user joined the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatOwnerChanged.cs b/TdLib.Api/Objects/MessageChatOwnerChanged.cs index b3b03446..ab34e021 100644 --- a/TdLib.Api/Objects/MessageChatOwnerChanged.cs +++ b/TdLib.Api/Objects/MessageChatOwnerChanged.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The owner of the chat has changed + /// + public class MessageChatOwnerChanged : MessageContent { /// - /// The owner of the chat has changed + /// Data type for serialization /// - public class MessageChatOwnerChanged : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatOwnerChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatOwnerChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who is the new owner of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_owner_user_id")] - public long NewOwnerUserId { get; set; } - } + /// + /// Identifier of the user who is the new owner of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_owner_user_id")] + public long NewOwnerUserId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatOwnerLeft.cs b/TdLib.Api/Objects/MessageChatOwnerLeft.cs index 8d280657..b4911619 100644 --- a/TdLib.Api/Objects/MessageChatOwnerLeft.cs +++ b/TdLib.Api/Objects/MessageChatOwnerLeft.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The owner of the chat has left + /// + public class MessageChatOwnerLeft : MessageContent { /// - /// The owner of the chat has left + /// Data type for serialization /// - public class MessageChatOwnerLeft : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatOwnerLeft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatOwnerLeft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who will become the new owner of the chat if the previous owner isn't return; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_owner_user_id")] - public long NewOwnerUserId { get; set; } - } + /// + /// Identifier of the user who will become the new owner of the chat if the previous owner isn't return; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_owner_user_id")] + public long NewOwnerUserId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatRemovedFromCommunity.cs b/TdLib.Api/Objects/MessageChatRemovedFromCommunity.cs index eed3e40b..277c4468 100644 --- a/TdLib.Api/Objects/MessageChatRemovedFromCommunity.cs +++ b/TdLib.Api/Objects/MessageChatRemovedFromCommunity.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The chat was removed from a community + /// + public class MessageChatRemovedFromCommunity : MessageContent { /// - /// The chat was removed from a community + /// Data type for serialization /// - public class MessageChatRemovedFromCommunity : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatRemovedFromCommunity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatRemovedFromCommunity"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageChatSetBackground.cs b/TdLib.Api/Objects/MessageChatSetBackground.cs index 02c52e75..ca74cc90 100644 --- a/TdLib.Api/Objects/MessageChatSetBackground.cs +++ b/TdLib.Api/Objects/MessageChatSetBackground.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A new background was set in the chat + /// + public class MessageChatSetBackground : MessageContent { /// - /// A new background was set in the chat + /// Data type for serialization /// - public class MessageChatSetBackground : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatSetBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatSetBackground"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with a previously set same background; 0 if none. Can be an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_background_message_id")] - public long OldBackgroundMessageId { get; set; } + /// + /// Identifier of the message with a previously set same background; 0 if none. Can be an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_background_message_id")] + public long OldBackgroundMessageId { get; set; } - /// - /// The new background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public ChatBackground Background { get; set; } + /// + /// The new background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public ChatBackground Background { get; set; } - /// - /// True, if the background was set only for self - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_for_self")] - public bool OnlyForSelf { get; set; } - } + /// + /// True, if the background was set only for self + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_for_self")] + public bool OnlyForSelf { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatSetMessageAutoDeleteTime.cs b/TdLib.Api/Objects/MessageChatSetMessageAutoDeleteTime.cs index 4ccc6423..386986b5 100644 --- a/TdLib.Api/Objects/MessageChatSetMessageAutoDeleteTime.cs +++ b/TdLib.Api/Objects/MessageChatSetMessageAutoDeleteTime.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The auto-delete or self-destruct timer for messages in the chat has been changed + /// + public class MessageChatSetMessageAutoDeleteTime : MessageContent { /// - /// The auto-delete or self-destruct timer for messages in the chat has been changed + /// Data type for serialization /// - public class MessageChatSetMessageAutoDeleteTime : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatSetMessageAutoDeleteTime"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatSetMessageAutoDeleteTime"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New value auto-delete or self-destruct time, in seconds; 0 if disabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_auto_delete_time")] - public int MessageAutoDeleteTime { get; set; } + /// + /// New value auto-delete or self-destruct time, in seconds; 0 if disabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_auto_delete_time")] + public int MessageAutoDeleteTime { get; set; } - /// - /// If not 0, a user identifier, which default setting was automatically applied - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_user_id")] - public long FromUserId { get; set; } - } + /// + /// If not 0, a user identifier, which default setting was automatically applied + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_user_id")] + public long FromUserId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatSetTheme.cs b/TdLib.Api/Objects/MessageChatSetTheme.cs index 8782c2d8..21772553 100644 --- a/TdLib.Api/Objects/MessageChatSetTheme.cs +++ b/TdLib.Api/Objects/MessageChatSetTheme.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A theme in the chat has been changed + /// + public class MessageChatSetTheme : MessageContent { /// - /// A theme in the chat has been changed + /// Data type for serialization /// - public class MessageChatSetTheme : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatSetTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatSetTheme"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New theme for the chat; may be null if chat theme was reset to the default one - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme")] - public ChatTheme Theme { get; set; } - } + /// + /// New theme for the chat; may be null if chat theme was reset to the default one + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public ChatTheme Theme { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatShared.cs b/TdLib.Api/Objects/MessageChatShared.cs index b9e37932..525ccb95 100644 --- a/TdLib.Api/Objects/MessageChatShared.cs +++ b/TdLib.Api/Objects/MessageChatShared.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The current user shared a chat, which was requested by the bot + /// + public class MessageChatShared : MessageContent { /// - /// The current user shared a chat, which was requested by the bot + /// Data type for serialization /// - public class MessageChatShared : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatShared"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatShared"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The shared chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat")] - public SharedChat Chat { get; set; } + /// + /// The shared chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat")] + public SharedChat Chat { get; set; } - /// - /// Identifier of the keyboard button with the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_id")] - public int ButtonId { get; set; } - } + /// + /// Identifier of the keyboard button with the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_id")] + public int ButtonId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatUpgradeFrom.cs b/TdLib.Api/Objects/MessageChatUpgradeFrom.cs index f5f535d3..d09a9528 100644 --- a/TdLib.Api/Objects/MessageChatUpgradeFrom.cs +++ b/TdLib.Api/Objects/MessageChatUpgradeFrom.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A supergroup has been created from a basic group + /// + public class MessageChatUpgradeFrom : MessageContent { /// - /// A supergroup has been created from a basic group + /// Data type for serialization /// - public class MessageChatUpgradeFrom : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatUpgradeFrom"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatUpgradeFrom"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the newly created supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the newly created supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// The identifier of the original basic group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group_id")] - public long BasicGroupId { get; set; } - } + /// + /// The identifier of the original basic group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group_id")] + public long BasicGroupId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChatUpgradeTo.cs b/TdLib.Api/Objects/MessageChatUpgradeTo.cs index 791317c2..2e41f8ad 100644 --- a/TdLib.Api/Objects/MessageChatUpgradeTo.cs +++ b/TdLib.Api/Objects/MessageChatUpgradeTo.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A basic group was upgraded to a supergroup and was deactivated as the result + /// + public class MessageChatUpgradeTo : MessageContent { /// - /// A basic group was upgraded to a supergroup and was deactivated as the result + /// Data type for serialization /// - public class MessageChatUpgradeTo : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChatUpgradeTo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChatUpgradeTo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the supergroup to which the basic group was upgraded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } - } + /// + /// Identifier of the supergroup to which the basic group was upgraded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChecklist.cs b/TdLib.Api/Objects/MessageChecklist.cs index 8ac7c224..debd09cf 100644 --- a/TdLib.Api/Objects/MessageChecklist.cs +++ b/TdLib.Api/Objects/MessageChecklist.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with a checklist + /// + public class MessageChecklist : MessageContent { /// - /// A message with a checklist + /// Data type for serialization /// - public class MessageChecklist : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChecklist"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChecklist"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The checklist description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("list")] - public Checklist List { get; set; } - } + /// + /// The checklist description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("list")] + public Checklist List { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChecklistTasksAdded.cs b/TdLib.Api/Objects/MessageChecklistTasksAdded.cs index b3b51451..cf8080a9 100644 --- a/TdLib.Api/Objects/MessageChecklistTasksAdded.cs +++ b/TdLib.Api/Objects/MessageChecklistTasksAdded.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Some tasks were added to a checklist + /// + public class MessageChecklistTasksAdded : MessageContent { /// - /// Some tasks were added to a checklist + /// Data type for serialization /// - public class MessageChecklistTasksAdded : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChecklistTasksAdded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChecklistTasksAdded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the checklist; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist_message_id")] - public long ChecklistMessageId { get; set; } + /// + /// Identifier of the message with the checklist; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist_message_id")] + public long ChecklistMessageId { get; set; } - /// - /// List of tasks added to the checklist - /// - [JsonProperty("tasks", ItemConverterType = typeof(Converter))] - public ChecklistTask[] Tasks { get; set; } - } + /// + /// List of tasks added to the checklist + /// + [JsonProperty("tasks", ItemConverterType = typeof(Converter))] + public ChecklistTask[] Tasks { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageChecklistTasksDone.cs b/TdLib.Api/Objects/MessageChecklistTasksDone.cs index 6aa4a0f8..56d1b194 100644 --- a/TdLib.Api/Objects/MessageChecklistTasksDone.cs +++ b/TdLib.Api/Objects/MessageChecklistTasksDone.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Some tasks from a checklist were marked as done or not done + /// + public class MessageChecklistTasksDone : MessageContent { /// - /// Some tasks from a checklist were marked as done or not done + /// Data type for serialization /// - public class MessageChecklistTasksDone : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageChecklistTasksDone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageChecklistTasksDone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the checklist; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist_message_id")] - public long ChecklistMessageId { get; set; } + /// + /// Identifier of the message with the checklist; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist_message_id")] + public long ChecklistMessageId { get; set; } - /// - /// Identifiers of tasks that were marked as done - /// - [JsonProperty("marked_as_done_task_ids", ItemConverterType = typeof(Converter))] - public int[] MarkedAsDoneTaskIds { get; set; } + /// + /// Identifiers of tasks that were marked as done + /// + [JsonProperty("marked_as_done_task_ids", ItemConverterType = typeof(Converter))] + public int[] MarkedAsDoneTaskIds { get; set; } - /// - /// Identifiers of tasks that were marked as not done - /// - [JsonProperty("marked_as_not_done_task_ids", ItemConverterType = typeof(Converter))] - public int[] MarkedAsNotDoneTaskIds { get; set; } - } + /// + /// Identifiers of tasks that were marked as not done + /// + [JsonProperty("marked_as_not_done_task_ids", ItemConverterType = typeof(Converter))] + public int[] MarkedAsNotDoneTaskIds { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageContact.cs b/TdLib.Api/Objects/MessageContact.cs index 775281b7..b0755b8b 100644 --- a/TdLib.Api/Objects/MessageContact.cs +++ b/TdLib.Api/Objects/MessageContact.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with a user contact + /// + public class MessageContact : MessageContent { /// - /// A message with a user contact + /// Data type for serialization /// - public class MessageContact : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageContact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The contact description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contact")] - public Contact Contact { get; set; } - } + /// + /// The contact description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contact")] + public Contact Contact { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageContactRegistered.cs b/TdLib.Api/Objects/MessageContactRegistered.cs index d52802ad..ab3f69b3 100644 --- a/TdLib.Api/Objects/MessageContactRegistered.cs +++ b/TdLib.Api/Objects/MessageContactRegistered.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A contact has registered with Telegram + /// + public class MessageContactRegistered : MessageContent { /// - /// A contact has registered with Telegram + /// Data type for serialization /// - public class MessageContactRegistered : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageContactRegistered"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageContactRegistered"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageCopyOptions.cs b/TdLib.Api/Objects/MessageCopyOptions.cs index 01c5ab0b..62f0dec0 100644 --- a/TdLib.Api/Objects/MessageCopyOptions.cs +++ b/TdLib.Api/Objects/MessageCopyOptions.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Options to be used when a message content is copied without reference to the original sender. Service messages, messages with messageInvoice, messagePaidMedia, messageGiveaway, or messageGiveawayWinners content can't be copied /// - public static partial class TdApi + public partial class MessageCopyOptions : Object { /// - /// Options to be used when a message content is copied without reference to the original sender. Service messages, messages with messageInvoice, messagePaidMedia, messageGiveaway, or messageGiveawayWinners content can't be copied + /// Data type for serialization /// - public partial class MessageCopyOptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageCopyOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageCopyOptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if content of the message needs to be copied without reference to the original sender. Always true if the message is forwarded to a secret chat or is local. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_copy")] - public bool SendCopy { get; set; } + /// + /// True, if content of the message needs to be copied without reference to the original sender. Always true if the message is forwarded to a secret chat or is local. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_copy")] + public bool SendCopy { get; set; } - /// - /// True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("replace_caption")] - public bool ReplaceCaption { get; set; } + /// + /// True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("replace_caption")] + public bool ReplaceCaption { get; set; } - /// - /// New message caption; pass null to copy message without caption. Ignored if replace_caption is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_caption")] - public FormattedText NewCaption { get; set; } + /// + /// New message caption; pass null to copy message without caption. Ignored if replace_caption is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_caption")] + public FormattedText NewCaption { get; set; } - /// - /// True, if new caption must be shown above the media; otherwise, new caption must be shown below the media; not supported in secret chats. Ignored if replace_caption is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_show_caption_above_media")] - public bool NewShowCaptionAboveMedia { get; set; } - } + /// + /// True, if new caption must be shown above the media; otherwise, new caption must be shown below the media; not supported in secret chats. Ignored if replace_caption is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_show_caption_above_media")] + public bool NewShowCaptionAboveMedia { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageCustomServiceAction.cs b/TdLib.Api/Objects/MessageCustomServiceAction.cs index 3f27329d..5b19bb0d 100644 --- a/TdLib.Api/Objects/MessageCustomServiceAction.cs +++ b/TdLib.Api/Objects/MessageCustomServiceAction.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A non-standard action has happened in the chat + /// + public class MessageCustomServiceAction : MessageContent { /// - /// A non-standard action has happened in the chat + /// Data type for serialization /// - public class MessageCustomServiceAction : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageCustomServiceAction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageCustomServiceAction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message text to be shown in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Message text to be shown in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageDice.cs b/TdLib.Api/Objects/MessageDice.cs index a6eb71a1..c966c5ab 100644 --- a/TdLib.Api/Objects/MessageDice.cs +++ b/TdLib.Api/Objects/MessageDice.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A dice message. The dice value is randomly generated by the server + /// + public class MessageDice : MessageContent { /// - /// A dice message. The dice value is randomly generated by the server + /// Data type for serialization /// - public class MessageDice : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageDice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageDice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("initial_state")] - public DiceStickers InitialState { get; set; } + /// + /// The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("initial_state")] + public DiceStickers InitialState { get; set; } - /// - /// The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("final_state")] - public DiceStickers FinalState { get; set; } + /// + /// The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("final_state")] + public DiceStickers FinalState { get; set; } - /// - /// Emoji on which the dice throw animation is based - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Emoji on which the dice throw animation is based + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// The dice value. If the value is 0, then the dice don't have final state yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public int Value { get; set; } + /// + /// The dice value. If the value is 0, then the dice don't have final state yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public int Value { get; set; } - /// - /// Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("success_animation_frame_number")] - public int SuccessAnimationFrameNumber { get; set; } - } + /// + /// Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("success_animation_frame_number")] + public int SuccessAnimationFrameNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageDirectMessagePriceChanged.cs b/TdLib.Api/Objects/MessageDirectMessagePriceChanged.cs index 836d3795..821cd11f 100644 --- a/TdLib.Api/Objects/MessageDirectMessagePriceChanged.cs +++ b/TdLib.Api/Objects/MessageDirectMessagePriceChanged.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A price for direct messages was changed in the channel chat + /// + public class MessageDirectMessagePriceChanged : MessageContent { /// - /// A price for direct messages was changed in the channel chat + /// Data type for serialization /// - public class MessageDirectMessagePriceChanged : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageDirectMessagePriceChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageDirectMessagePriceChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if direct messages group was enabled for the channel; false otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_enabled")] - public bool IsEnabled { get; set; } + /// + /// True, if direct messages group was enabled for the channel; false otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_enabled")] + public bool IsEnabled { get; set; } - /// - /// The new number of Telegram Stars that must be paid by non-administrator users of the channel chat for each message sent to the direct messages group; - /// 0 if the direct messages group was disabled or the messages are free - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// The new number of Telegram Stars that must be paid by non-administrator users of the channel chat for each message sent to the direct messages group; + /// 0 if the direct messages group was disabled or the messages are free + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageDocument.cs b/TdLib.Api/Objects/MessageDocument.cs index 66e3eedc..10fdbda4 100644 --- a/TdLib.Api/Objects/MessageDocument.cs +++ b/TdLib.Api/Objects/MessageDocument.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A document message (general file) + /// + public class MessageDocument : MessageContent { /// - /// A document message (general file) + /// Data type for serialization /// - public class MessageDocument : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The document description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } + /// + /// The document description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } - /// - /// Document caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } - } + /// + /// Document caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageEffect.cs b/TdLib.Api/Objects/MessageEffect.cs index d821f607..32e3a336 100644 --- a/TdLib.Api/Objects/MessageEffect.cs +++ b/TdLib.Api/Objects/MessageEffect.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an effect added to a message /// - public static partial class TdApi + public partial class MessageEffect : Object { /// - /// Contains information about an effect added to a message + /// Data type for serialization /// - public partial class MessageEffect : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageEffect"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageEffect"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the effect - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique identifier of the effect + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Static icon for the effect in WEBP format; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("static_icon")] - public Sticker StaticIcon { get; set; } + /// + /// Static icon for the effect in WEBP format; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("static_icon")] + public Sticker StaticIcon { get; set; } - /// - /// Emoji corresponding to the effect that can be used if static icon isn't available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Emoji corresponding to the effect that can be used if static icon isn't available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// True, if Telegram Premium subscription is required to use the effect - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_premium")] - public bool IsPremium { get; set; } + /// + /// True, if Telegram Premium subscription is required to use the effect + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_premium")] + public bool IsPremium { get; set; } - /// - /// Type of the effect - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public MessageEffectType Type { get; set; } - } + /// + /// Type of the effect + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public MessageEffectType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageEffectTypeEmojiReaction.cs b/TdLib.Api/Objects/MessageEffectTypeEmojiReaction.cs index 7c878a4e..00f44b82 100644 --- a/TdLib.Api/Objects/MessageEffectTypeEmojiReaction.cs +++ b/TdLib.Api/Objects/MessageEffectTypeEmojiReaction.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageEffectType : Object { - public partial class MessageEffectType : Object + /// + /// Describes type of emoji effect + /// + public class MessageEffectTypeEmojiReaction : MessageEffectType { /// - /// Describes type of emoji effect + /// Data type for serialization /// - public class MessageEffectTypeEmojiReaction : MessageEffectType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageEffectTypeEmojiReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageEffectTypeEmojiReaction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Select animation for the effect in TGS format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("select_animation")] - public Sticker SelectAnimation { get; set; } + /// + /// Select animation for the effect in TGS format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("select_animation")] + public Sticker SelectAnimation { get; set; } - /// - /// Effect animation for the effect in TGS format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("effect_animation")] - public Sticker EffectAnimation { get; set; } - } + /// + /// Effect animation for the effect in TGS format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("effect_animation")] + public Sticker EffectAnimation { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageEffectTypePremiumSticker.cs b/TdLib.Api/Objects/MessageEffectTypePremiumSticker.cs index a78afdda..107f50d0 100644 --- a/TdLib.Api/Objects/MessageEffectTypePremiumSticker.cs +++ b/TdLib.Api/Objects/MessageEffectTypePremiumSticker.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageEffectType : Object { - public partial class MessageEffectType : Object + /// + /// An effect from a premium sticker + /// + public class MessageEffectTypePremiumSticker : MessageEffectType { /// - /// An effect from a premium sticker + /// Data type for serialization /// - public class MessageEffectTypePremiumSticker : MessageEffectType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageEffectTypePremiumSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageEffectTypePremiumSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The premium sticker. The effect can be found at sticker.full_type.premium_animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// The premium sticker. The effect can be found at sticker.full_type.premium_animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageExpiredPhoto.cs b/TdLib.Api/Objects/MessageExpiredPhoto.cs index eb0d4ee5..04cf1747 100644 --- a/TdLib.Api/Objects/MessageExpiredPhoto.cs +++ b/TdLib.Api/Objects/MessageExpiredPhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A self-destructed photo message + /// + public class MessageExpiredPhoto : MessageContent { /// - /// A self-destructed photo message + /// Data type for serialization /// - public class MessageExpiredPhoto : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageExpiredPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageExpiredPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageExpiredVideo.cs b/TdLib.Api/Objects/MessageExpiredVideo.cs index a2732033..037f6bc8 100644 --- a/TdLib.Api/Objects/MessageExpiredVideo.cs +++ b/TdLib.Api/Objects/MessageExpiredVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A self-destructed video message + /// + public class MessageExpiredVideo : MessageContent { /// - /// A self-destructed video message + /// Data type for serialization /// - public class MessageExpiredVideo : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageExpiredVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageExpiredVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageExpiredVideoNote.cs b/TdLib.Api/Objects/MessageExpiredVideoNote.cs index c2bf3b66..82d06b74 100644 --- a/TdLib.Api/Objects/MessageExpiredVideoNote.cs +++ b/TdLib.Api/Objects/MessageExpiredVideoNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A self-destructed video note message + /// + public class MessageExpiredVideoNote : MessageContent { /// - /// A self-destructed video note message + /// Data type for serialization /// - public class MessageExpiredVideoNote : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageExpiredVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageExpiredVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageExpiredVoiceNote.cs b/TdLib.Api/Objects/MessageExpiredVoiceNote.cs index 72c23d9a..b15bfa9a 100644 --- a/TdLib.Api/Objects/MessageExpiredVoiceNote.cs +++ b/TdLib.Api/Objects/MessageExpiredVoiceNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A self-destructed voice note message + /// + public class MessageExpiredVoiceNote : MessageContent { /// - /// A self-destructed voice note message + /// Data type for serialization /// - public class MessageExpiredVoiceNote : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageExpiredVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageExpiredVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageFileTypeGroup.cs b/TdLib.Api/Objects/MessageFileTypeGroup.cs index 97ffa3de..5ddfae28 100644 --- a/TdLib.Api/Objects/MessageFileTypeGroup.cs +++ b/TdLib.Api/Objects/MessageFileTypeGroup.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageFileType : Object { - public partial class MessageFileType : Object + /// + /// The messages were exported from a group chat + /// + public class MessageFileTypeGroup : MessageFileType { /// - /// The messages were exported from a group chat + /// Data type for serialization /// - public class MessageFileTypeGroup : MessageFileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageFileTypeGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageFileTypeGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the group chat; may be empty if unrecognized - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Title of the group chat; may be empty if unrecognized + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageFileTypePrivate.cs b/TdLib.Api/Objects/MessageFileTypePrivate.cs index 92a8e07a..0925e6c1 100644 --- a/TdLib.Api/Objects/MessageFileTypePrivate.cs +++ b/TdLib.Api/Objects/MessageFileTypePrivate.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageFileType : Object { - public partial class MessageFileType : Object + /// + /// Contains information about a file with messages exported from another app + /// + public class MessageFileTypePrivate : MessageFileType { /// - /// Contains information about a file with messages exported from another app + /// Data type for serialization /// - public class MessageFileTypePrivate : MessageFileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageFileTypePrivate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageFileTypePrivate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the other party; may be empty if unrecognized - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the other party; may be empty if unrecognized + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageFileTypeUnknown.cs b/TdLib.Api/Objects/MessageFileTypeUnknown.cs index 1ae40117..39c8bd53 100644 --- a/TdLib.Api/Objects/MessageFileTypeUnknown.cs +++ b/TdLib.Api/Objects/MessageFileTypeUnknown.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageFileType : Object { - public partial class MessageFileType : Object + /// + /// The messages were exported from a chat of unknown type + /// + public class MessageFileTypeUnknown : MessageFileType { /// - /// The messages were exported from a chat of unknown type + /// Data type for serialization /// - public class MessageFileTypeUnknown : MessageFileType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageFileTypeUnknown"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageFileTypeUnknown"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageForumTopicCreated.cs b/TdLib.Api/Objects/MessageForumTopicCreated.cs index e51a8c2d..3a9fdf6a 100644 --- a/TdLib.Api/Objects/MessageForumTopicCreated.cs +++ b/TdLib.Api/Objects/MessageForumTopicCreated.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A forum topic has been created + /// + public class MessageForumTopicCreated : MessageContent { /// - /// A forum topic has been created + /// Data type for serialization /// - public class MessageForumTopicCreated : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageForumTopicCreated"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageForumTopicCreated"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// True, if the name of the topic wasn't added explicitly - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_name_implicit")] - public bool IsNameImplicit { get; set; } + /// + /// True, if the name of the topic wasn't added explicitly + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_name_implicit")] + public bool IsNameImplicit { get; set; } - /// - /// Icon of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("icon")] - public ForumTopicIcon Icon { get; set; } - } + /// + /// Icon of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public ForumTopicIcon Icon { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageForumTopicEdited.cs b/TdLib.Api/Objects/MessageForumTopicEdited.cs index d955f5a2..12927e45 100644 --- a/TdLib.Api/Objects/MessageForumTopicEdited.cs +++ b/TdLib.Api/Objects/MessageForumTopicEdited.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A forum topic has been edited + /// + public class MessageForumTopicEdited : MessageContent { /// - /// A forum topic has been edited + /// Data type for serialization /// - public class MessageForumTopicEdited : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageForumTopicEdited"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageForumTopicEdited"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// If non-empty, the new name of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// If non-empty, the new name of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// True, if icon's custom_emoji_id is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_icon_custom_emoji_id")] - public bool EditIconCustomEmojiId { get; set; } + /// + /// True, if icon's custom_emoji_id is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_icon_custom_emoji_id")] + public bool EditIconCustomEmojiId { get; set; } - /// - /// New unique identifier of the custom emoji shown on the topic icon; 0 if none. Must be ignored if edit_icon_custom_emoji_id is false - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("icon_custom_emoji_id")] - public long IconCustomEmojiId { get; set; } - } + /// + /// New unique identifier of the custom emoji shown on the topic icon; 0 if none. Must be ignored if edit_icon_custom_emoji_id is false + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("icon_custom_emoji_id")] + public long IconCustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageForumTopicIsClosedToggled.cs b/TdLib.Api/Objects/MessageForumTopicIsClosedToggled.cs index 3e37974a..50d6291e 100644 --- a/TdLib.Api/Objects/MessageForumTopicIsClosedToggled.cs +++ b/TdLib.Api/Objects/MessageForumTopicIsClosedToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A forum topic has been closed or opened + /// + public class MessageForumTopicIsClosedToggled : MessageContent { /// - /// A forum topic has been closed or opened + /// Data type for serialization /// - public class MessageForumTopicIsClosedToggled : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageForumTopicIsClosedToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageForumTopicIsClosedToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the topic was closed; otherwise, the topic was reopened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_closed")] - public bool IsClosed { get; set; } - } + /// + /// True, if the topic was closed; otherwise, the topic was reopened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_closed")] + public bool IsClosed { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageForumTopicIsHiddenToggled.cs b/TdLib.Api/Objects/MessageForumTopicIsHiddenToggled.cs index a11b2103..2fdd5bfc 100644 --- a/TdLib.Api/Objects/MessageForumTopicIsHiddenToggled.cs +++ b/TdLib.Api/Objects/MessageForumTopicIsHiddenToggled.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A General forum topic has been hidden or unhidden + /// + public class MessageForumTopicIsHiddenToggled : MessageContent { /// - /// A General forum topic has been hidden or unhidden + /// Data type for serialization /// - public class MessageForumTopicIsHiddenToggled : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageForumTopicIsHiddenToggled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageForumTopicIsHiddenToggled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the topic was hidden; otherwise, the topic was unhidden - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_hidden")] - public bool IsHidden { get; set; } - } + /// + /// True, if the topic was hidden; otherwise, the topic was unhidden + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_hidden")] + public bool IsHidden { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageForwardInfo.cs b/TdLib.Api/Objects/MessageForwardInfo.cs index c350d4fc..a4976150 100644 --- a/TdLib.Api/Objects/MessageForwardInfo.cs +++ b/TdLib.Api/Objects/MessageForwardInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a forwarded message /// - public static partial class TdApi + public partial class MessageForwardInfo : Object { /// - /// Contains information about a forwarded message + /// Data type for serialization /// - public partial class MessageForwardInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageForwardInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageForwardInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Origin of the forwarded message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("origin")] - public MessageOrigin Origin { get; set; } + /// + /// Origin of the forwarded message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("origin")] + public MessageOrigin Origin { get; set; } - /// - /// Point in time (Unix timestamp) when the message was originally sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the message was originally sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, information about the source message from which the message was forwarded last time; may be null for other forwards or if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public ForwardSource Source { get; set; } + /// + /// For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, information about the source message from which the message was forwarded last time; may be null for other forwards or if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public ForwardSource Source { get; set; } - /// - /// The type of public service announcement for the forwarded message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("public_service_announcement_type")] - public string PublicServiceAnnouncementType { get; set; } - } + /// + /// The type of public service announcement for the forwarded message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_service_announcement_type")] + public string PublicServiceAnnouncementType { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageGame.cs b/TdLib.Api/Objects/MessageGame.cs index 8ff9e00c..b97ea2f4 100644 --- a/TdLib.Api/Objects/MessageGame.cs +++ b/TdLib.Api/Objects/MessageGame.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with a game + /// + public class MessageGame : MessageContent { /// - /// A message with a game + /// Data type for serialization /// - public class MessageGame : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The game description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("game")] - public Game Game { get; set; } - } + /// + /// The game description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("game")] + public Game Game { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGameScore.cs b/TdLib.Api/Objects/MessageGameScore.cs index 57cb8510..2d3c6b8a 100644 --- a/TdLib.Api/Objects/MessageGameScore.cs +++ b/TdLib.Api/Objects/MessageGameScore.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A new high score was achieved in a game + /// + public class MessageGameScore : MessageContent { /// - /// A new high score was achieved in a game + /// Data type for serialization /// - public class MessageGameScore : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGameScore"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGameScore"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the game, can be an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("game_message_id")] - public long GameMessageId { get; set; } + /// + /// Identifier of the message with the game, can be an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("game_message_id")] + public long GameMessageId { get; set; } - /// - /// Identifier of the game; may be different from the games presented in the message with the game - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("game_id")] - public long GameId { get; set; } + /// + /// Identifier of the game; may be different from the games presented in the message with the game + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("game_id")] + public long GameId { get; set; } - /// - /// New score - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("score")] - public int Score { get; set; } - } + /// + /// New score + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("score")] + public int Score { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGift.cs b/TdLib.Api/Objects/MessageGift.cs index ff97d631..0417e5cc 100644 --- a/TdLib.Api/Objects/MessageGift.cs +++ b/TdLib.Api/Objects/MessageGift.cs @@ -2,165 +2,164 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A regular gift was received or sent by the current user, or the current user was notified about a channel gift + /// + public class MessageGift : MessageContent { /// - /// A regular gift was received or sent by the current user, or the current user was notified about a channel gift - /// - public class MessageGift : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGift"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } - - /// - /// Sender of the gift; may be null for outgoing messages about prepaid upgrade of gifts from unknown users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - - /// - /// Receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_id")] - public MessageSender ReceiverId { get; set; } - - /// - /// Unique identifier of the received gift for the current user; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - - /// - /// Message added to the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - - /// - /// Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unique_gift_number")] - public int UniqueGiftNumber { get; set; } - - /// - /// Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by the receiver - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sell_star_count")] - public long SellStarCount { get; set; } - - /// - /// Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepaid_upgrade_star_count")] - public long PrepaidUpgradeStarCount { get; set; } - - /// - /// True, if the upgrade was bought after the gift was sent. In this case, prepaid upgrade cost must not be added to the gift cost - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_upgrade_separate")] - public bool IsUpgradeSeparate { get; set; } - - /// - /// True, if the message is a notification about a gift won on an auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_from_auction")] - public bool IsFromAuction { get; set; } - - /// - /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_private")] - public bool IsPrivate { get; set; } - - /// - /// True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_saved")] - public bool IsSaved { get; set; } - - /// - /// True, if the message is about prepaid upgrade of the gift by another user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_prepaid_upgrade")] - public bool IsPrepaidUpgrade { get; set; } - - /// - /// True, if the gift can be upgraded to a unique gift; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_upgraded")] - public bool CanBeUpgraded { get; set; } - - /// - /// True, if the gift was converted to Telegram Stars; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_converted")] - public bool WasConverted { get; set; } - - /// - /// True, if the gift was upgraded to a unique gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_upgraded")] - public bool WasUpgraded { get; set; } - - /// - /// True, if the gift was refunded and isn't available anymore - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_refunded")] - public bool WasRefunded { get; set; } - - /// - /// Identifier of the corresponding upgraded gift; may be empty if unknown. Use getReceivedGift to get information about the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_received_gift_id")] - public string UpgradedReceivedGiftId { get; set; } - - /// - /// If non-empty, then the user can pay for an upgrade of the gift using buyGiftUpgrade - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepaid_upgrade_hash")] - public string PrepaidUpgradeHash { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGift"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } + + /// + /// Sender of the gift; may be null for outgoing messages about prepaid upgrade of gifts from unknown users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + + /// + /// Receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_id")] + public MessageSender ReceiverId { get; set; } + + /// + /// Unique identifier of the received gift for the current user; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } + + /// + /// Message added to the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + + /// + /// Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unique_gift_number")] + public int UniqueGiftNumber { get; set; } + + /// + /// Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by the receiver + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sell_star_count")] + public long SellStarCount { get; set; } + + /// + /// Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prepaid_upgrade_star_count")] + public long PrepaidUpgradeStarCount { get; set; } + + /// + /// True, if the upgrade was bought after the gift was sent. In this case, prepaid upgrade cost must not be added to the gift cost + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_upgrade_separate")] + public bool IsUpgradeSeparate { get; set; } + + /// + /// True, if the message is a notification about a gift won on an auction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_from_auction")] + public bool IsFromAuction { get; set; } + + /// + /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_private")] + public bool IsPrivate { get; set; } + + /// + /// True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_saved")] + public bool IsSaved { get; set; } + + /// + /// True, if the message is about prepaid upgrade of the gift by another user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_prepaid_upgrade")] + public bool IsPrepaidUpgrade { get; set; } + + /// + /// True, if the gift can be upgraded to a unique gift; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_upgraded")] + public bool CanBeUpgraded { get; set; } + + /// + /// True, if the gift was converted to Telegram Stars; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_converted")] + public bool WasConverted { get; set; } + + /// + /// True, if the gift was upgraded to a unique gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_upgraded")] + public bool WasUpgraded { get; set; } + + /// + /// True, if the gift was refunded and isn't available anymore + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_refunded")] + public bool WasRefunded { get; set; } + + /// + /// Identifier of the corresponding upgraded gift; may be empty if unknown. Use getReceivedGift to get information about the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_received_gift_id")] + public string UpgradedReceivedGiftId { get; set; } + + /// + /// If non-empty, then the user can pay for an upgrade of the gift using buyGiftUpgrade + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prepaid_upgrade_hash")] + public string PrepaidUpgradeHash { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiftedGrams.cs b/TdLib.Api/Objects/MessageGiftedGrams.cs index ce8f8a96..303185f0 100644 --- a/TdLib.Api/Objects/MessageGiftedGrams.cs +++ b/TdLib.Api/Objects/MessageGiftedGrams.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// TON Grams were gifted to a user + /// + public class MessageGiftedGrams : MessageContent { /// - /// TON Grams were gifted to a user + /// Data type for serialization /// - public class MessageGiftedGrams : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiftedGrams"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiftedGrams"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gifter_user_id")] - public long GifterUserId { get; set; } + /// + /// The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gifter_user_id")] + public long GifterUserId { get; set; } - /// - /// The identifier of a user who received Grams; 0 if the gift is incoming - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_user_id")] - public long ReceiverUserId { get; set; } + /// + /// The identifier of a user who received Grams; 0 if the gift is incoming + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_user_id")] + public long ReceiverUserId { get; set; } - /// - /// The received Gram amount, in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_amount")] - public long GramAmount { get; set; } + /// + /// The received Gram amount, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } - /// - /// Identifier of the transaction for Gram credit; for receiver only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transaction_id")] - public string TransactionId { get; set; } + /// + /// Identifier of the transaction for Gram credit; for receiver only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction_id")] + public string TransactionId { get; set; } - /// - /// A sticker to be shown in the message; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// A sticker to be shown in the message; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiftedPremium.cs b/TdLib.Api/Objects/MessageGiftedPremium.cs index c6f495d3..589be699 100644 --- a/TdLib.Api/Objects/MessageGiftedPremium.cs +++ b/TdLib.Api/Objects/MessageGiftedPremium.cs @@ -2,102 +2,101 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Telegram Premium was gifted to a user + /// + public class MessageGiftedPremium : MessageContent { /// - /// Telegram Premium was gifted to a user + /// Data type for serialization /// - public class MessageGiftedPremium : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiftedPremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiftedPremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of a user who gifted Telegram Premium; 0 if the gift was anonymous or is outgoing - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gifter_user_id")] - public long GifterUserId { get; set; } + /// + /// The identifier of a user who gifted Telegram Premium; 0 if the gift was anonymous or is outgoing + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gifter_user_id")] + public long GifterUserId { get; set; } - /// - /// The identifier of a user who received Telegram Premium; 0 if the gift is incoming - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_user_id")] - public long ReceiverUserId { get; set; } + /// + /// The identifier of a user who received Telegram Premium; 0 if the gift is incoming + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_user_id")] + public long ReceiverUserId { get; set; } - /// - /// Message added to the gifted Telegram Premium by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Message added to the gifted Telegram Premium by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Currency for the paid amount - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the paid amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Cryptocurrency used to pay for the gift; may be empty if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cryptocurrency")] - public string Cryptocurrency { get; set; } + /// + /// Cryptocurrency used to pay for the gift; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } - /// - /// The paid amount, in the smallest units of the cryptocurrency; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("cryptocurrency_amount")] - public long CryptocurrencyAmount { get; set; } + /// + /// The paid amount, in the smallest units of the cryptocurrency; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("cryptocurrency_amount")] + public long CryptocurrencyAmount { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Number of days the Telegram Premium subscription will be active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("day_count")] - public int DayCount { get; set; } + /// + /// Number of days the Telegram Premium subscription will be active + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("day_count")] + public int DayCount { get; set; } - /// - /// A sticker to be shown in the message; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// A sticker to be shown in the message; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiftedStars.cs b/TdLib.Api/Objects/MessageGiftedStars.cs index 387e1aee..5e92f136 100644 --- a/TdLib.Api/Objects/MessageGiftedStars.cs +++ b/TdLib.Api/Objects/MessageGiftedStars.cs @@ -2,95 +2,94 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Telegram Stars were gifted to a user + /// + public class MessageGiftedStars : MessageContent { /// - /// Telegram Stars were gifted to a user + /// Data type for serialization /// - public class MessageGiftedStars : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiftedStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiftedStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of a user who gifted Telegram Stars; 0 if the gift was anonymous or is outgoing - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gifter_user_id")] - public long GifterUserId { get; set; } + /// + /// The identifier of a user who gifted Telegram Stars; 0 if the gift was anonymous or is outgoing + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gifter_user_id")] + public long GifterUserId { get; set; } - /// - /// The identifier of a user who received Telegram Stars; 0 if the gift is incoming - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_user_id")] - public long ReceiverUserId { get; set; } + /// + /// The identifier of a user who received Telegram Stars; 0 if the gift is incoming + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_user_id")] + public long ReceiverUserId { get; set; } - /// - /// Currency for the paid amount - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the paid amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Cryptocurrency used to pay for the gift; may be empty if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cryptocurrency")] - public string Cryptocurrency { get; set; } + /// + /// Cryptocurrency used to pay for the gift; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } - /// - /// The paid amount, in the smallest units of the cryptocurrency; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("cryptocurrency_amount")] - public long CryptocurrencyAmount { get; set; } + /// + /// The paid amount, in the smallest units of the cryptocurrency; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("cryptocurrency_amount")] + public long CryptocurrencyAmount { get; set; } - /// - /// Number of Telegram Stars that were gifted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars that were gifted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the transaction for Telegram Stars purchase; for receiver only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transaction_id")] - public string TransactionId { get; set; } + /// + /// Identifier of the transaction for Telegram Stars purchase; for receiver only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction_id")] + public string TransactionId { get; set; } - /// - /// A sticker to be shown in the message; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// A sticker to be shown in the message; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiveaway.cs b/TdLib.Api/Objects/MessageGiveaway.cs index bd8c581e..ad2b2636 100644 --- a/TdLib.Api/Objects/MessageGiveaway.cs +++ b/TdLib.Api/Objects/MessageGiveaway.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A giveaway + /// + public class MessageGiveaway : MessageContent { /// - /// A giveaway + /// Data type for serialization /// - public class MessageGiveaway : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiveaway"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Giveaway parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public GiveawayParameters Parameters { get; set; } + /// + /// Giveaway parameters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public GiveawayParameters Parameters { get; set; } - /// - /// Number of users who will receive Telegram Premium subscription gift codes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Number of users who will receive Telegram Premium subscription gift codes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// Prize of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prize")] - public GiveawayPrize Prize { get; set; } + /// + /// Prize of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prize")] + public GiveawayPrize Prize { get; set; } - /// - /// A sticker to be shown in the message; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// A sticker to be shown in the message; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiveawayCompleted.cs b/TdLib.Api/Objects/MessageGiveawayCompleted.cs index 0e9768d2..4aee6be5 100644 --- a/TdLib.Api/Objects/MessageGiveawayCompleted.cs +++ b/TdLib.Api/Objects/MessageGiveawayCompleted.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A giveaway without public winners has been completed for the chat + /// + public class MessageGiveawayCompleted : MessageContent { /// - /// A giveaway without public winners has been completed for the chat + /// Data type for serialization /// - public class MessageGiveawayCompleted : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiveawayCompleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiveawayCompleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the giveaway; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("giveaway_message_id")] - public long GiveawayMessageId { get; set; } + /// + /// Identifier of the message with the giveaway; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("giveaway_message_id")] + public long GiveawayMessageId { get; set; } - /// - /// Number of winners in the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Number of winners in the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// True, if the giveaway is a Telegram Star giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_star_giveaway")] - public bool IsStarGiveaway { get; set; } + /// + /// True, if the giveaway is a Telegram Star giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_star_giveaway")] + public bool IsStarGiveaway { get; set; } - /// - /// Number of undistributed prizes; for Telegram Premium giveaways only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unclaimed_prize_count")] - public int UnclaimedPrizeCount { get; set; } - } + /// + /// Number of undistributed prizes; for Telegram Premium giveaways only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unclaimed_prize_count")] + public int UnclaimedPrizeCount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiveawayCreated.cs b/TdLib.Api/Objects/MessageGiveawayCreated.cs index 6b38f5c3..b65e156a 100644 --- a/TdLib.Api/Objects/MessageGiveawayCreated.cs +++ b/TdLib.Api/Objects/MessageGiveawayCreated.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway + /// + public class MessageGiveawayCreated : MessageContent { /// - /// A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway + /// Data type for serialization /// - public class MessageGiveawayCreated : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiveawayCreated"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiveawayCreated"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars that will be shared by winners of the giveaway; 0 for Telegram Premium giveaways - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Number of Telegram Stars that will be shared by winners of the giveaway; 0 for Telegram Premium giveaways + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiveawayPrizeStars.cs b/TdLib.Api/Objects/MessageGiveawayPrizeStars.cs index af3a66e9..1580ef3e 100644 --- a/TdLib.Api/Objects/MessageGiveawayPrizeStars.cs +++ b/TdLib.Api/Objects/MessageGiveawayPrizeStars.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Telegram Stars were received by the current user from a giveaway + /// + public class MessageGiveawayPrizeStars : MessageContent { /// - /// Telegram Stars were received by the current user from a giveaway + /// Data type for serialization /// - public class MessageGiveawayPrizeStars : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiveawayPrizeStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiveawayPrizeStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars that were received - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars that were received + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the transaction for Telegram Stars credit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transaction_id")] - public string TransactionId { get; set; } + /// + /// Identifier of the transaction for Telegram Stars credit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction_id")] + public string TransactionId { get; set; } - /// - /// Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boosted_chat_id")] - public long BoostedChatId { get; set; } + /// + /// Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boosted_chat_id")] + public long BoostedChatId { get; set; } - /// - /// Identifier of the message with the giveaway in the boosted chat; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("giveaway_message_id")] - public long GiveawayMessageId { get; set; } + /// + /// Identifier of the message with the giveaway in the boosted chat; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("giveaway_message_id")] + public long GiveawayMessageId { get; set; } - /// - /// True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_unclaimed")] - public bool IsUnclaimed { get; set; } + /// + /// True, if the corresponding winner wasn't chosen and the Telegram Stars were received by the owner of the boosted chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_unclaimed")] + public bool IsUnclaimed { get; set; } - /// - /// A sticker to be shown in the message; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// A sticker to be shown in the message; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGiveawayWinners.cs b/TdLib.Api/Objects/MessageGiveawayWinners.cs index bd517aa7..a20639fb 100644 --- a/TdLib.Api/Objects/MessageGiveawayWinners.cs +++ b/TdLib.Api/Objects/MessageGiveawayWinners.cs @@ -2,108 +2,107 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A giveaway with public winners has been completed for the chat + /// + public class MessageGiveawayWinners : MessageContent { /// - /// A giveaway with public winners has been completed for the chat + /// Data type for serialization /// - public class MessageGiveawayWinners : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGiveawayWinners"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGiveawayWinners"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boosted_chat_id")] - public long BoostedChatId { get; set; } + /// + /// Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boosted_chat_id")] + public long BoostedChatId { get; set; } - /// - /// Identifier of the message with the giveaway in the boosted chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("giveaway_message_id")] - public long GiveawayMessageId { get; set; } + /// + /// Identifier of the message with the giveaway in the boosted chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("giveaway_message_id")] + public long GiveawayMessageId { get; set; } - /// - /// Number of other chats that participated in the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("additional_chat_count")] - public int AdditionalChatCount { get; set; } + /// + /// Number of other chats that participated in the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("additional_chat_count")] + public int AdditionalChatCount { get; set; } - /// - /// Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("actual_winners_selection_date")] - public int ActualWinnersSelectionDate { get; set; } + /// + /// Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("actual_winners_selection_date")] + public int ActualWinnersSelectionDate { get; set; } - /// - /// True, if only new members of the chats were eligible for the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_new_members")] - public bool OnlyNewMembers { get; set; } + /// + /// True, if only new members of the chats were eligible for the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_new_members")] + public bool OnlyNewMembers { get; set; } - /// - /// True, if the giveaway was canceled and was fully refunded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_refunded")] - public bool WasRefunded { get; set; } + /// + /// True, if the giveaway was canceled and was fully refunded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_refunded")] + public bool WasRefunded { get; set; } - /// - /// Prize of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prize")] - public GiveawayPrize Prize { get; set; } + /// + /// Prize of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prize")] + public GiveawayPrize Prize { get; set; } - /// - /// Additional description of the giveaway prize - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prize_description")] - public string PrizeDescription { get; set; } + /// + /// Additional description of the giveaway prize + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prize_description")] + public string PrizeDescription { get; set; } - /// - /// Total number of winners in the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Total number of winners in the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// Up to 100 user identifiers of the winners of the giveaway - /// - [JsonProperty("winner_user_ids", ItemConverterType = typeof(Converter))] - public long[] WinnerUserIds { get; set; } + /// + /// Up to 100 user identifiers of the winners of the giveaway + /// + [JsonProperty("winner_user_ids", ItemConverterType = typeof(Converter))] + public long[] WinnerUserIds { get; set; } - /// - /// Number of undistributed prizes; for Telegram Premium giveaways only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unclaimed_prize_count")] - public int UnclaimedPrizeCount { get; set; } - } + /// + /// Number of undistributed prizes; for Telegram Premium giveaways only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unclaimed_prize_count")] + public int UnclaimedPrizeCount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageGroupCall.cs b/TdLib.Api/Objects/MessageGroupCall.cs index 48fa57c7..c31620c1 100644 --- a/TdLib.Api/Objects/MessageGroupCall.cs +++ b/TdLib.Api/Objects/MessageGroupCall.cs @@ -2,75 +2,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration, + /// and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen. + /// Use joinGroupCall to accept the call or declineGroupCallInvitation to decline it. If the call become active or missed, then the call screen must be hidden + /// + public class MessageGroupCall : MessageContent { /// - /// A message with information about a group call not bound to a chat. If the message is incoming, the call isn't active, isn't missed, and has no duration, - /// and getOption("can_accept_calls") is true, then incoming call screen must be shown to the user. Use getGroupCallParticipants to show current group call participants on the screen. - /// Use joinGroupCall to accept the call or declineGroupCallInvitation to decline it. If the call become active or missed, then the call screen must be hidden + /// Data type for serialization /// - public class MessageGroupCall : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageGroupCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageGroupCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Persistent unique group call identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("unique_id")] - public long UniqueId { get; set; } + /// + /// Persistent unique group call identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("unique_id")] + public long UniqueId { get; set; } - /// - /// True, if the call is active, i.e. the called user joined the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_active")] - public bool IsActive { get; set; } + /// + /// True, if the call is active, i.e. the called user joined the call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_active")] + public bool IsActive { get; set; } - /// - /// True, if the called user missed or declined the call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_missed")] - public bool WasMissed { get; set; } + /// + /// True, if the called user missed or declined the call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_missed")] + public bool WasMissed { get; set; } - /// - /// True, if the call is a video call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_video")] - public bool IsVideo { get; set; } + /// + /// True, if the call is a video call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_video")] + public bool IsVideo { get; set; } - /// - /// Call duration, in seconds; for left calls only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Call duration, in seconds; for left calls only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Identifiers of some other call participants - /// - [JsonProperty("other_participant_ids", ItemConverterType = typeof(Converter))] - public MessageSender[] OtherParticipantIds { get; set; } - } + /// + /// Identifiers of some other call participants + /// + [JsonProperty("other_participant_ids", ItemConverterType = typeof(Converter))] + public MessageSender[] OtherParticipantIds { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageImportInfo.cs b/TdLib.Api/Objects/MessageImportInfo.cs index 97d6d90f..6825b645 100644 --- a/TdLib.Api/Objects/MessageImportInfo.cs +++ b/TdLib.Api/Objects/MessageImportInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a message created with importMessages /// - public static partial class TdApi + public partial class MessageImportInfo : Object { /// - /// Contains information about a message created with importMessages + /// Data type for serialization /// - public partial class MessageImportInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageImportInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageImportInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the original sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_name")] - public string SenderName { get; set; } + /// + /// Name of the original sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_name")] + public string SenderName { get; set; } - /// - /// Point in time (Unix timestamp) when the message was originally sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Point in time (Unix timestamp) when the message was originally sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageInteractionInfo.cs b/TdLib.Api/Objects/MessageInteractionInfo.cs index 9eee1b9e..e5962840 100644 --- a/TdLib.Api/Objects/MessageInteractionInfo.cs +++ b/TdLib.Api/Objects/MessageInteractionInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about interactions with a message /// - public static partial class TdApi + public partial class MessageInteractionInfo : Object { /// - /// Contains information about interactions with a message + /// Data type for serialization /// - public partial class MessageInteractionInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageInteractionInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageInteractionInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of times the message was viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_count")] - public int ViewCount { get; set; } + /// + /// Number of times the message was viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_count")] + public int ViewCount { get; set; } - /// - /// Number of times the message was forwarded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forward_count")] - public int ForwardCount { get; set; } + /// + /// Number of times the message was forwarded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forward_count")] + public int ForwardCount { get; set; } - /// - /// Information about direct or indirect replies to the message; may be null. Currently, available only in channels with a discussion supergroup and discussion supergroups for messages, which are not replies itself - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_info")] - public MessageReplyInfo ReplyInfo { get; set; } + /// + /// Information about direct or indirect replies to the message; may be null. Currently, available only in channels with a discussion supergroup and discussion supergroups for messages, which are not replies itself + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_info")] + public MessageReplyInfo ReplyInfo { get; set; } - /// - /// The list of reactions or tags added to the message; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reactions")] - public MessageReactions Reactions { get; set; } - } + /// + /// The list of reactions or tags added to the message; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reactions")] + public MessageReactions Reactions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageInviteVideoChatParticipants.cs b/TdLib.Api/Objects/MessageInviteVideoChatParticipants.cs index cb8d7109..a300f40e 100644 --- a/TdLib.Api/Objects/MessageInviteVideoChatParticipants.cs +++ b/TdLib.Api/Objects/MessageInviteVideoChatParticipants.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with information about an invitation to a video chat + /// + public class MessageInviteVideoChatParticipants : MessageContent { /// - /// A message with information about an invitation to a video chat + /// Data type for serialization /// - public class MessageInviteVideoChatParticipants : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageInviteVideoChatParticipants"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageInviteVideoChatParticipants"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the video chat. The video chat can be received through the method getGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the video chat. The video chat can be received through the method getGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Invited user identifiers - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Invited user identifiers + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageInvoice.cs b/TdLib.Api/Objects/MessageInvoice.cs index d6819edb..ad75d90b 100644 --- a/TdLib.Api/Objects/MessageInvoice.cs +++ b/TdLib.Api/Objects/MessageInvoice.cs @@ -2,95 +2,94 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice + /// + public class MessageInvoice : MessageContent { /// - /// A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice + /// Data type for serialization /// - public class MessageInvoice : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageInvoice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageInvoice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("product_info")] - public ProductInfo ProductInfo { get; set; } + /// + /// Information about the product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("product_info")] + public ProductInfo ProductInfo { get; set; } - /// - /// Currency for the product price - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the product price + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Product total price in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_amount")] - public long TotalAmount { get; set; } + /// + /// Product total price in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_amount")] + public long TotalAmount { get; set; } - /// - /// Unique invoice bot start_parameter to be passed to getInternalLink - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_parameter")] - public string StartParameter { get; set; } + /// + /// Unique invoice bot start_parameter to be passed to getInternalLink + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_parameter")] + public string StartParameter { get; set; } - /// - /// True, if the invoice is a test invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_test")] - public bool IsTest { get; set; } + /// + /// True, if the invoice is a test invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_test")] + public bool IsTest { get; set; } - /// - /// True, if the shipping address must be specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_shipping_address")] - public bool NeedShippingAddress { get; set; } + /// + /// True, if the shipping address must be specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_shipping_address")] + public bool NeedShippingAddress { get; set; } - /// - /// The identifier of the message with the receipt, after the product has been purchased - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receipt_message_id")] - public long ReceiptMessageId { get; set; } + /// + /// The identifier of the message with the receipt, after the product has been purchased + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receipt_message_id")] + public long ReceiptMessageId { get; set; } - /// - /// Extended media attached to the invoice; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_media")] - public PaidMedia PaidMedia { get; set; } + /// + /// Extended media attached to the invoice; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_media")] + public PaidMedia PaidMedia { get; set; } - /// - /// Extended media caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_media_caption")] - public FormattedText PaidMediaCaption { get; set; } - } + /// + /// Extended media caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_media_caption")] + public FormattedText PaidMediaCaption { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageLink.cs b/TdLib.Api/Objects/MessageLink.cs index 597a83d7..88a3adc4 100644 --- a/TdLib.Api/Objects/MessageLink.cs +++ b/TdLib.Api/Objects/MessageLink.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains an HTTPS link to a message in a supergroup or channel, or a forum topic /// - public static partial class TdApi + public partial class MessageLink : Object { /// - /// Contains an HTTPS link to a message in a supergroup or channel, or a forum topic + /// Data type for serialization /// - public partial class MessageLink : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageLink"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public string Link { get; set; } + /// + /// The link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public string Link { get; set; } - /// - /// True, if the link will work for non-members of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_public")] - public bool IsPublic { get; set; } - } + /// + /// True, if the link will work for non-members of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_public")] + public bool IsPublic { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageLinkInfo.cs b/TdLib.Api/Objects/MessageLinkInfo.cs index 32243972..3b662ca8 100644 --- a/TdLib.Api/Objects/MessageLinkInfo.cs +++ b/TdLib.Api/Objects/MessageLinkInfo.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a link to a message or a forum topic in a chat /// - public static partial class TdApi + public partial class MessageLinkInfo : Object { /// - /// Contains information about a link to a message or a forum topic in a chat + /// Data type for serialization /// - public partial class MessageLinkInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageLinkInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageLinkInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the link is a public link for a message or a forum topic in a chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_public")] - public bool IsPublic { get; set; } + /// + /// True, if the link is a public link for a message or a forum topic in a chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_public")] + public bool IsPublic { get; set; } - /// - /// If found, identifier of the chat to which the link points, 0 otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// If found, identifier of the chat to which the link points, 0 otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the specific topic in which the message must be opened, or a topic to open if the message is missing; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the specific topic in which the message must be opened, or a topic to open if the message is missing; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// If found, the linked message; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// If found, the linked message; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its link preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media_timestamp")] - public int MediaTimestamp { get; set; } + /// + /// Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its link preview + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media_timestamp")] + public int MediaTimestamp { get; set; } - /// - /// Identifier of the checklist task that is linked; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist_task_id")] - public int ChecklistTaskId { get; set; } + /// + /// Identifier of the checklist task that is linked; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist_task_id")] + public int ChecklistTaskId { get; set; } - /// - /// Identifier of the poll option that is linked; empty if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_option_id")] - public string PollOptionId { get; set; } + /// + /// Identifier of the poll option that is linked; empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_option_id")] + public string PollOptionId { get; set; } - /// - /// True, if the whole media album to which the message belongs is linked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_album")] - public bool ForAlbum { get; set; } - } + /// + /// True, if the whole media album to which the message belongs is linked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("for_album")] + public bool ForAlbum { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageLiveLocation.cs b/TdLib.Api/Objects/MessageLiveLocation.cs index fae409f8..c0b9e5d1 100644 --- a/TdLib.Api/Objects/MessageLiveLocation.cs +++ b/TdLib.Api/Objects/MessageLiveLocation.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with a live location + /// + public class MessageLiveLocation : MessageContent { /// - /// A message with a live location + /// Data type for serialization /// - public class MessageLiveLocation : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageLiveLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageLiveLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The current location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public LiveLocation Location { get; set; } + /// + /// The current location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public LiveLocation Location { get; set; } - /// - /// Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update updateMessageContent is not sent when this field changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expires_in")] - public int ExpiresIn { get; set; } - } + /// + /// Left time for which the location can be updated, in seconds. If 0, then the location can't be updated anymore. The update updateMessageContent is not sent when this field changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expires_in")] + public int ExpiresIn { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageLocation.cs b/TdLib.Api/Objects/MessageLocation.cs index 0378333c..b6411536 100644 --- a/TdLib.Api/Objects/MessageLocation.cs +++ b/TdLib.Api/Objects/MessageLocation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with a location + /// + public class MessageLocation : MessageContent { /// - /// A message with a location + /// Data type for serialization /// - public class MessageLocation : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } - } + /// + /// The location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageManagedBotCreated.cs b/TdLib.Api/Objects/MessageManagedBotCreated.cs index 6448c61a..8dc55e7c 100644 --- a/TdLib.Api/Objects/MessageManagedBotCreated.cs +++ b/TdLib.Api/Objects/MessageManagedBotCreated.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A bot managed by another bot was created by the user + /// + public class MessageManagedBotCreated : MessageContent { /// - /// A bot managed by another bot was created by the user + /// Data type for serialization /// - public class MessageManagedBotCreated : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageManagedBotCreated"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageManagedBotCreated"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the created bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } + /// + /// User identifier of the created bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } - /// - /// Identifier of the bot which will manage the new bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("manager_bot_user_id")] - public long ManagerBotUserId { get; set; } - } + /// + /// Identifier of the bot which will manage the new bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manager_bot_user_id")] + public long ManagerBotUserId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageOriginChannel.cs b/TdLib.Api/Objects/MessageOriginChannel.cs index f8bb89aa..7f36a0ab 100644 --- a/TdLib.Api/Objects/MessageOriginChannel.cs +++ b/TdLib.Api/Objects/MessageOriginChannel.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageOrigin : Object { - public partial class MessageOrigin : Object + /// + /// The message was originally a post in a channel + /// + public class MessageOriginChannel : MessageOrigin { /// - /// The message was originally a post in a channel + /// Data type for serialization /// - public class MessageOriginChannel : MessageOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageOriginChannel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageOriginChannel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the channel chat to which the message was originally sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the channel chat to which the message was originally sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier of the original message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier of the original message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Original post author signature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author_signature")] - public string AuthorSignature { get; set; } - } + /// + /// Original post author signature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author_signature")] + public string AuthorSignature { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageOriginChat.cs b/TdLib.Api/Objects/MessageOriginChat.cs index 100c5ace..b9e7f787 100644 --- a/TdLib.Api/Objects/MessageOriginChat.cs +++ b/TdLib.Api/Objects/MessageOriginChat.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageOrigin : Object { - public partial class MessageOrigin : Object + /// + /// The message was originally sent on behalf of a chat + /// + public class MessageOriginChat : MessageOrigin { /// - /// The message was originally sent on behalf of a chat + /// Data type for serialization /// - public class MessageOriginChat : MessageOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageOriginChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageOriginChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that originally sent the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_chat_id")] - public long SenderChatId { get; set; } + /// + /// Identifier of the chat that originally sent the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_chat_id")] + public long SenderChatId { get; set; } - /// - /// For messages originally sent by an anonymous chat administrator, original message author signature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author_signature")] - public string AuthorSignature { get; set; } - } + /// + /// For messages originally sent by an anonymous chat administrator, original message author signature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author_signature")] + public string AuthorSignature { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageOriginHiddenUser.cs b/TdLib.Api/Objects/MessageOriginHiddenUser.cs index ac869485..630527d0 100644 --- a/TdLib.Api/Objects/MessageOriginHiddenUser.cs +++ b/TdLib.Api/Objects/MessageOriginHiddenUser.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageOrigin : Object { - public partial class MessageOrigin : Object + /// + /// The message was originally sent by a user who is hidden by their privacy settings + /// + public class MessageOriginHiddenUser : MessageOrigin { /// - /// The message was originally sent by a user who is hidden by their privacy settings + /// Data type for serialization /// - public class MessageOriginHiddenUser : MessageOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageOriginHiddenUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageOriginHiddenUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_name")] - public string SenderName { get; set; } - } + /// + /// Name of the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_name")] + public string SenderName { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageOriginUser.cs b/TdLib.Api/Objects/MessageOriginUser.cs index c9da1bc1..b4d22f19 100644 --- a/TdLib.Api/Objects/MessageOriginUser.cs +++ b/TdLib.Api/Objects/MessageOriginUser.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageOrigin : Object { - public partial class MessageOrigin : Object + /// + /// Contains information about the origin of a message + /// + public class MessageOriginUser : MessageOrigin { /// - /// Contains information about the origin of a message + /// Data type for serialization /// - public class MessageOriginUser : MessageOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageOriginUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageOriginUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who originally sent the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } - } + /// + /// Identifier of the user who originally sent the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePaidMedia.cs b/TdLib.Api/Objects/MessagePaidMedia.cs index 28bdc99b..8c509482 100644 --- a/TdLib.Api/Objects/MessagePaidMedia.cs +++ b/TdLib.Api/Objects/MessagePaidMedia.cs @@ -2,59 +2,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with paid media + /// + public class MessagePaidMedia : MessageContent { /// - /// A message with paid media + /// Data type for serialization /// - public class MessagePaidMedia : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePaidMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePaidMedia"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars needed to buy access to the media in the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars needed to buy access to the media in the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Information about the media - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public PaidMedia[] Media { get; set; } + /// + /// Information about the media + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public PaidMedia[] Media { get; set; } - /// - /// Media caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Media caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the media; otherwise, the caption must be shown below the media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } - } + /// + /// True, if the caption must be shown above the media; otherwise, the caption must be shown below the media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePaidMessagePriceChanged.cs b/TdLib.Api/Objects/MessagePaidMessagePriceChanged.cs index 5ebdd1d1..571cd1ef 100644 --- a/TdLib.Api/Objects/MessagePaidMessagePriceChanged.cs +++ b/TdLib.Api/Objects/MessagePaidMessagePriceChanged.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A price for paid messages was changed in the supergroup chat + /// + public class MessagePaidMessagePriceChanged : MessageContent { /// - /// A price for paid messages was changed in the supergroup chat + /// Data type for serialization /// - public class MessagePaidMessagePriceChanged : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePaidMessagePriceChanged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePaidMessagePriceChanged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - } + /// + /// The new number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePaidMessagesRefunded.cs b/TdLib.Api/Objects/MessagePaidMessagesRefunded.cs index 780ceef3..896e7155 100644 --- a/TdLib.Api/Objects/MessagePaidMessagesRefunded.cs +++ b/TdLib.Api/Objects/MessagePaidMessagesRefunded.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Paid messages were refunded + /// + public class MessagePaidMessagesRefunded : MessageContent { /// - /// Paid messages were refunded + /// Data type for serialization /// - public class MessagePaidMessagesRefunded : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePaidMessagesRefunded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePaidMessagesRefunded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of refunded messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_count")] - public int MessageCount { get; set; } + /// + /// The number of refunded messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_count")] + public int MessageCount { get; set; } - /// - /// The number of refunded Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The number of refunded Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePassportDataReceived.cs b/TdLib.Api/Objects/MessagePassportDataReceived.cs index 72934421..7b58cade 100644 --- a/TdLib.Api/Objects/MessagePassportDataReceived.cs +++ b/TdLib.Api/Objects/MessagePassportDataReceived.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Telegram Passport data has been received; for bots only + /// + public class MessagePassportDataReceived : MessageContent { /// - /// Telegram Passport data has been received; for bots only + /// Data type for serialization /// - public class MessagePassportDataReceived : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePassportDataReceived"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePassportDataReceived"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of received Telegram Passport elements - /// - [JsonProperty("elements", ItemConverterType = typeof(Converter))] - public EncryptedPassportElement[] Elements { get; set; } + /// + /// List of received Telegram Passport elements + /// + [JsonProperty("elements", ItemConverterType = typeof(Converter))] + public EncryptedPassportElement[] Elements { get; set; } - /// - /// Encrypted data credentials - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credentials")] - public EncryptedCredentials Credentials { get; set; } - } + /// + /// Encrypted data credentials + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credentials")] + public EncryptedCredentials Credentials { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePassportDataSent.cs b/TdLib.Api/Objects/MessagePassportDataSent.cs index 4b8f2c8c..ad22f472 100644 --- a/TdLib.Api/Objects/MessagePassportDataSent.cs +++ b/TdLib.Api/Objects/MessagePassportDataSent.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Telegram Passport data has been sent to a bot + /// + public class MessagePassportDataSent : MessageContent { /// - /// Telegram Passport data has been sent to a bot + /// Data type for serialization /// - public class MessagePassportDataSent : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePassportDataSent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePassportDataSent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of Telegram Passport element types sent - /// - [JsonProperty("types", ItemConverterType = typeof(Converter))] - public PassportElementType[] Types { get; set; } - } + /// + /// List of Telegram Passport element types sent + /// + [JsonProperty("types", ItemConverterType = typeof(Converter))] + public PassportElementType[] Types { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePaymentRefunded.cs b/TdLib.Api/Objects/MessagePaymentRefunded.cs index 9e749129..abd5247b 100644 --- a/TdLib.Api/Objects/MessagePaymentRefunded.cs +++ b/TdLib.Api/Objects/MessagePaymentRefunded.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A payment has been refunded + /// + public class MessagePaymentRefunded : MessageContent { /// - /// A payment has been refunded + /// Data type for serialization /// - public class MessagePaymentRefunded : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePaymentRefunded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePaymentRefunded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the previous owner of the Telegram Stars that refunds them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the previous owner of the Telegram Stars that refunds them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// Currency for the price of the product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the price of the product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Total price for the product, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_amount")] - public long TotalAmount { get; set; } + /// + /// Total price for the product, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_amount")] + public long TotalAmount { get; set; } - /// - /// Invoice payload; only for bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_payload")] - public byte[] InvoicePayload { get; set; } + /// + /// Invoice payload; only for bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_payload")] + public byte[] InvoicePayload { get; set; } - /// - /// Telegram payment identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("telegram_payment_charge_id")] - public string TelegramPaymentChargeId { get; set; } + /// + /// Telegram payment identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("telegram_payment_charge_id")] + public string TelegramPaymentChargeId { get; set; } - /// - /// Provider payment identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("provider_payment_charge_id")] - public string ProviderPaymentChargeId { get; set; } - } + /// + /// Provider payment identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_payment_charge_id")] + public string ProviderPaymentChargeId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePaymentSuccessful.cs b/TdLib.Api/Objects/MessagePaymentSuccessful.cs index 7982e423..ea5887de 100644 --- a/TdLib.Api/Objects/MessagePaymentSuccessful.cs +++ b/TdLib.Api/Objects/MessagePaymentSuccessful.cs @@ -2,88 +2,87 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A payment has been sent to a bot or a business account + /// + public class MessagePaymentSuccessful : MessageContent { /// - /// A payment has been sent to a bot or a business account + /// Data type for serialization /// - public class MessagePaymentSuccessful : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePaymentSuccessful"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePaymentSuccessful"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat, containing the corresponding invoice message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_chat_id")] - public long InvoiceChatId { get; set; } + /// + /// Identifier of the chat, containing the corresponding invoice message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_chat_id")] + public long InvoiceChatId { get; set; } - /// - /// Identifier of the message with the corresponding invoice; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_message_id")] - public long InvoiceMessageId { get; set; } + /// + /// Identifier of the message with the corresponding invoice; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_message_id")] + public long InvoiceMessageId { get; set; } - /// - /// Currency for the price of the product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the price of the product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Total price for the product, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_amount")] - public long TotalAmount { get; set; } + /// + /// Total price for the product, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_amount")] + public long TotalAmount { get; set; } - /// - /// Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_until_date")] - public int SubscriptionUntilDate { get; set; } + /// + /// Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_until_date")] + public int SubscriptionUntilDate { get; set; } - /// - /// True, if this is a recurring payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_recurring")] - public bool IsRecurring { get; set; } + /// + /// True, if this is a recurring payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_recurring")] + public bool IsRecurring { get; set; } - /// - /// True, if this is the first recurring payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_first_recurring")] - public bool IsFirstRecurring { get; set; } + /// + /// True, if this is the first recurring payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_first_recurring")] + public bool IsFirstRecurring { get; set; } - /// - /// Name of the invoice; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_name")] - public string InvoiceName { get; set; } - } + /// + /// Name of the invoice; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_name")] + public string InvoiceName { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePaymentSuccessfulBot.cs b/TdLib.Api/Objects/MessagePaymentSuccessfulBot.cs index cd5fab8a..db63cca1 100644 --- a/TdLib.Api/Objects/MessagePaymentSuccessfulBot.cs +++ b/TdLib.Api/Objects/MessagePaymentSuccessfulBot.cs @@ -2,102 +2,101 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A payment has been received by the bot or the business account + /// + public class MessagePaymentSuccessfulBot : MessageContent { /// - /// A payment has been received by the bot or the business account + /// Data type for serialization /// - public class MessagePaymentSuccessfulBot : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePaymentSuccessfulBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePaymentSuccessfulBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Currency for price of the product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for price of the product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Total price for the product, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_amount")] - public long TotalAmount { get; set; } + /// + /// Total price for the product, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_amount")] + public long TotalAmount { get; set; } - /// - /// Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_until_date")] - public int SubscriptionUntilDate { get; set; } + /// + /// Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn't recurring + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_until_date")] + public int SubscriptionUntilDate { get; set; } - /// - /// True, if this is a recurring payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_recurring")] - public bool IsRecurring { get; set; } + /// + /// True, if this is a recurring payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_recurring")] + public bool IsRecurring { get; set; } - /// - /// True, if this is the first recurring payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_first_recurring")] - public bool IsFirstRecurring { get; set; } + /// + /// True, if this is the first recurring payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_first_recurring")] + public bool IsFirstRecurring { get; set; } - /// - /// Invoice payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_payload")] - public byte[] InvoicePayload { get; set; } + /// + /// Invoice payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_payload")] + public byte[] InvoicePayload { get; set; } - /// - /// Identifier of the shipping option chosen by the user; may be empty if not applicable; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shipping_option_id")] - public string ShippingOptionId { get; set; } + /// + /// Identifier of the shipping option chosen by the user; may be empty if not applicable; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shipping_option_id")] + public string ShippingOptionId { get; set; } - /// - /// Information about the order; may be null; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order_info")] - public OrderInfo OrderInfo { get; set; } + /// + /// Information about the order; may be null; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order_info")] + public OrderInfo OrderInfo { get; set; } - /// - /// Telegram payment identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("telegram_payment_charge_id")] - public string TelegramPaymentChargeId { get; set; } + /// + /// Telegram payment identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("telegram_payment_charge_id")] + public string TelegramPaymentChargeId { get; set; } - /// - /// Provider payment identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("provider_payment_charge_id")] - public string ProviderPaymentChargeId { get; set; } - } + /// + /// Provider payment identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_payment_charge_id")] + public string ProviderPaymentChargeId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePhoto.cs b/TdLib.Api/Objects/MessagePhoto.cs index d55f3d81..56e75775 100644 --- a/TdLib.Api/Objects/MessagePhoto.cs +++ b/TdLib.Api/Objects/MessagePhoto.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A photo message + /// + public class MessagePhoto : MessageContent { /// - /// A photo message + /// Data type for serialization /// - public class MessagePhoto : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// The photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// The video representing the live photo; may be null if the photo is static - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// The video representing the live photo; may be null if the photo is static + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Photo caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Photo caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } + /// + /// True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } - /// - /// True, if the photo preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } + /// + /// True, if the photo preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } - /// - /// True, if the photo must be blurred and must be shown only while tapped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_secret")] - public bool IsSecret { get; set; } - } + /// + /// True, if the photo must be blurred and must be shown only while tapped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_secret")] + public bool IsSecret { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePinMessage.cs b/TdLib.Api/Objects/MessagePinMessage.cs index 0d3ef164..e0c4fcee 100644 --- a/TdLib.Api/Objects/MessagePinMessage.cs +++ b/TdLib.Api/Objects/MessagePinMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message has been pinned + /// + public class MessagePinMessage : MessageContent { /// - /// A message has been pinned + /// Data type for serialization /// - public class MessagePinMessage : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePinMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePinMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the pinned message, can be an identifier of a deleted message or 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the pinned message, can be an identifier of a deleted message or 0 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePoll.cs b/TdLib.Api/Objects/MessagePoll.cs index 56ff2bdc..7fa846f2 100644 --- a/TdLib.Api/Objects/MessagePoll.cs +++ b/TdLib.Api/Objects/MessagePoll.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with a poll + /// + public class MessagePoll : MessageContent { /// - /// A message with a poll + /// Data type for serialization /// - public class MessagePoll : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePoll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePoll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll")] - public Poll Poll { get; set; } + /// + /// Information about the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll")] + public Poll Poll { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public FormattedText Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public FormattedText Description { get; set; } - /// - /// Media attached to the poll; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media")] - public PollMedia Media { get; set; } + /// + /// Media attached to the poll; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media")] + public PollMedia Media { get; set; } - /// - /// True, if an option can be added to the poll using addPollOption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_add_option")] - public bool CanAddOption { get; set; } - } + /// + /// True, if an option can be added to the poll using addPollOption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_add_option")] + public bool CanAddOption { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePollOptionAdded.cs b/TdLib.Api/Objects/MessagePollOptionAdded.cs index 86302326..79d8dc4b 100644 --- a/TdLib.Api/Objects/MessagePollOptionAdded.cs +++ b/TdLib.Api/Objects/MessagePollOptionAdded.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with information about an added poll option + /// + public class MessagePollOptionAdded : MessageContent { /// - /// A message with information about an added poll option + /// Data type for serialization /// - public class MessagePollOptionAdded : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePollOptionAdded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePollOptionAdded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the poll; can be an identifier of a deleted message or 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_message_id")] - public long PollMessageId { get; set; } + /// + /// Identifier of the message with the poll; can be an identifier of a deleted message or 0 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_message_id")] + public long PollMessageId { get; set; } - /// - /// Identifier of the added option in the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public string OptionId { get; set; } + /// + /// Identifier of the added option in the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public string OptionId { get; set; } - /// - /// Text of the option; 1-100 characters; may contain only custom emoji entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Text of the option; 1-100 characters; may contain only custom emoji entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePollOptionDeleted.cs b/TdLib.Api/Objects/MessagePollOptionDeleted.cs index 61c6e8e9..151de3ce 100644 --- a/TdLib.Api/Objects/MessagePollOptionDeleted.cs +++ b/TdLib.Api/Objects/MessagePollOptionDeleted.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with information about a deleted poll option + /// + public class MessagePollOptionDeleted : MessageContent { /// - /// A message with information about a deleted poll option + /// Data type for serialization /// - public class MessagePollOptionDeleted : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePollOptionDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePollOptionDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the poll; can be an identifier of a deleted message or 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_message_id")] - public long PollMessageId { get; set; } + /// + /// Identifier of the message with the poll; can be an identifier of a deleted message or 0 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_message_id")] + public long PollMessageId { get; set; } - /// - /// Identifier of the deleted option in the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public string OptionId { get; set; } + /// + /// Identifier of the deleted option in the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public string OptionId { get; set; } - /// - /// Text of the option; 1-100 characters; may contain only custom emoji entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Text of the option; 1-100 characters; may contain only custom emoji entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/MessagePosition.cs b/TdLib.Api/Objects/MessagePosition.cs index 972525a0..87d726f4 100644 --- a/TdLib.Api/Objects/MessagePosition.cs +++ b/TdLib.Api/Objects/MessagePosition.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a message in a specific position /// - public static partial class TdApi + public partial class MessagePosition : Object { /// - /// Contains information about a message in a specific position + /// Data type for serialization /// - public partial class MessagePosition : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePosition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePosition"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// 0-based message position in the full list of suitable messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public int Position { get; set; } + /// + /// 0-based message position in the full list of suitable messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public int Position { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Point in time (Unix timestamp) when the message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Point in time (Unix timestamp) when the message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessagePositions.cs b/TdLib.Api/Objects/MessagePositions.cs index 06abe40a..dcaeb576 100644 --- a/TdLib.Api/Objects/MessagePositions.cs +++ b/TdLib.Api/Objects/MessagePositions.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of message positions /// - public static partial class TdApi + public partial class MessagePositions : Object { /// - /// Contains a list of message positions + /// Data type for serialization /// - public partial class MessagePositions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePositions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePositions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total number of messages found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of messages found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of message positions - /// - [JsonProperty("positions", ItemConverterType = typeof(Converter))] - public MessagePosition[] Positions { get; set; } - } + /// + /// List of message positions + /// + [JsonProperty("positions", ItemConverterType = typeof(Converter))] + public MessagePosition[] Positions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessagePremiumGiftCode.cs b/TdLib.Api/Objects/MessagePremiumGiftCode.cs index 15b06627..fc62c8ca 100644 --- a/TdLib.Api/Objects/MessagePremiumGiftCode.cs +++ b/TdLib.Api/Objects/MessagePremiumGiftCode.cs @@ -2,116 +2,115 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A Telegram Premium gift code was created for the user + /// + public class MessagePremiumGiftCode : MessageContent { /// - /// A Telegram Premium gift code was created for the user + /// Data type for serialization /// - public class MessagePremiumGiftCode : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messagePremiumGiftCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messagePremiumGiftCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a chat or a user who created the gift code; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_id")] - public MessageSender CreatorId { get; set; } + /// + /// Identifier of a chat or a user who created the gift code; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_id")] + public MessageSender CreatorId { get; set; } - /// - /// Message added to the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Message added to the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// True, if the gift code was created for a giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_from_giveaway")] - public bool IsFromGiveaway { get; set; } + /// + /// True, if the gift code was created for a giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_from_giveaway")] + public bool IsFromGiveaway { get; set; } - /// - /// True, if the winner for the corresponding Telegram Premium subscription wasn't chosen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_unclaimed")] - public bool IsUnclaimed { get; set; } + /// + /// True, if the winner for the corresponding Telegram Premium subscription wasn't chosen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_unclaimed")] + public bool IsUnclaimed { get; set; } - /// - /// Currency for the paid amount; empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the paid amount; empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The paid amount, in the smallest units of the currency; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The paid amount, in the smallest units of the currency; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Cryptocurrency used to pay for the gift; may be empty if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cryptocurrency")] - public string Cryptocurrency { get; set; } + /// + /// Cryptocurrency used to pay for the gift; may be empty if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency")] + public string Cryptocurrency { get; set; } - /// - /// The paid amount, in the smallest units of the cryptocurrency; 0 if unknown - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("cryptocurrency_amount")] - public long CryptocurrencyAmount { get; set; } + /// + /// The paid amount, in the smallest units of the cryptocurrency; 0 if unknown + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("cryptocurrency_amount")] + public long CryptocurrencyAmount { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Number of days the Telegram Premium subscription will be active after code activation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("day_count")] - public int DayCount { get; set; } + /// + /// Number of days the Telegram Premium subscription will be active after code activation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("day_count")] + public int DayCount { get; set; } - /// - /// A sticker to be shown in the message; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } + /// + /// A sticker to be shown in the message; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } - /// - /// The gift code - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("code")] - public string Code { get; set; } - } + /// + /// The gift code + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("code")] + public string Code { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageProperties.cs b/TdLib.Api/Objects/MessageProperties.cs index 87ac4db5..d4c90e2d 100644 --- a/TdLib.Api/Objects/MessageProperties.cs +++ b/TdLib.Api/Objects/MessageProperties.cs @@ -2,303 +2,308 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains properties of a message and describes actions that can be done with the message right now /// - public static partial class TdApi + public partial class MessageProperties : Object { /// - /// Contains properties of a message and describes actions that can be done with the message right now - /// - public partial class MessageProperties : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageProperties"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// True, if an offer can be added to the message using addOffer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_add_offer")] - public bool CanAddOffer { get; set; } - - /// - /// True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_add_tasks")] - public bool CanAddTasks { get; set; } - - /// - /// True, if the message is a suggested post that can be approved by the user using approveSuggestedPost - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_approved")] - public bool CanBeApproved { get; set; } - - /// - /// True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_copied")] - public bool CanBeCopied { get; set; } - - /// - /// True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_copied_to_secret_chat")] - public bool CanBeCopiedToSecretChat { get; set; } - - /// - /// True, if the message is a suggested post that can be declined by the user using declineSuggestedPost - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_declined")] - public bool CanBeDeclined { get; set; } - - /// - /// True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted_only_for_self")] - public bool CanBeDeletedOnlyForSelf { get; set; } - - /// - /// True, if the message can be deleted for all users using the method deleteMessages with revoke == true - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted_for_all_users")] - public bool CanBeDeletedForAllUsers { get; set; } - - /// - /// True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_edited")] - public bool CanBeEdited { get; set; } - - /// - /// True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_forwarded")] - public bool CanBeForwarded { get; set; } - - /// - /// True, if the message can be paid using inputInvoiceMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_paid")] - public bool CanBePaid { get; set; } - - /// - /// True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_pinned")] - public bool CanBePinned { get; set; } - - /// - /// True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage. Ephemeral messages can be replied only by other ephemeral messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_replied")] - public bool CanBeReplied { get; set; } - - /// - /// True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_replied_in_another_chat")] - public bool CanBeRepliedInAnotherChat { get; set; } - - /// - /// True, if content of the message can be saved locally - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_saved")] - public bool CanBeSaved { get; set; } - - /// - /// True, if the message can be shared in a story using inputStoryAreaTypeMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_shared_in_story")] - public bool CanBeSharedInStory { get; set; } - - /// - /// True, if the user can delete reactions of other users in the message using the method deleteMessageReactionsFromSender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_delete_reactions")] - public bool CanDeleteReactions { get; set; } - - /// - /// True, if the message can be edited using the method editMessageMedia - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_media")] - public bool CanEditMedia { get; set; } - - /// - /// True, if scheduling state of the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_scheduling_state")] - public bool CanEditSchedulingState { get; set; } - - /// - /// True, if another price or post send time can be suggested using addOffer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_edit_suggested_post_info")] - public bool CanEditSuggestedPostInfo { get; set; } - - /// - /// True, if author of the message sent on behalf of a chat can be received through getMessageAuthor - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_author")] - public bool CanGetAuthor { get; set; } - - /// - /// True, if code for message embedding can be received using getMessageEmbeddingCode - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_embedding_code")] - public bool CanGetEmbeddingCode { get; set; } - - /// - /// True, if a link can be generated for the message using getMessageLink - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_link")] - public bool CanGetLink { get; set; } - - /// - /// True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_media_timestamp_links")] - public bool CanGetMediaTimestampLinks { get; set; } - - /// - /// True, if information about the message thread is available through getMessageThread and getMessageThreadHistory - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_message_thread")] - public bool CanGetMessageThread { get; set; } - - /// - /// True, if the message is a poll and vote statistics are available through getPollVoteStatistics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_poll_vote_statistics")] - public bool CanGetPollVoteStatistics { get; set; } - - /// - /// True, if read date of the message can be received through getMessageReadDate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_read_date")] - public bool CanGetReadDate { get; set; } - - /// - /// True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_statistics")] - public bool CanGetStatistics { get; set; } - - /// - /// True, if advertisements for video of the message can be received through getVideoMessageAdvertisements - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_video_advertisements")] - public bool CanGetVideoAdvertisements { get; set; } - - /// - /// True, if chat members already viewed the message can be received through getMessageViewers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_viewers")] - public bool CanGetViewers { get; set; } - - /// - /// True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_mark_tasks_as_done")] - public bool CanMarkTasksAsDone { get; set; } - - /// - /// True, if speech can be recognized for the message through recognizeSpeech - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_recognize_speech")] - public bool CanRecognizeSpeech { get; set; } - - /// - /// True, if the message can be reported using reportChat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_report_chat")] - public bool CanReportChat { get; set; } - - /// - /// True, if reactions on the message can be reported through reportMessageReactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_report_reactions")] - public bool CanReportReactions { get; set; } - - /// - /// True, if the message can be reported using reportSupergroupSpam - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_report_supergroup_spam")] - public bool CanReportSupergroupSpam { get; set; } - - /// - /// True, if fact check for the message can be changed through setMessageFactCheck - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_fact_check")] - public bool CanSetFactCheck { get; set; } - - /// - /// True, if content of the message can't be saved locally, because it is protected by the current user; if true, then can_be_saved is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_protected_content_by_current_user")] - public bool HasProtectedContentByCurrentUser { get; set; } - - /// - /// True, if content of the message can't be saved locally, because it is protected by the other user; if true, then can_be_saved is false - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_protected_content_by_other_user")] - public bool HasProtectedContentByOtherUser { get; set; } - - /// - /// True, if message statistics must be available from context menu of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_show_statistics")] - public bool NeedShowStatistics { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageProperties"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if an offer can be added to the message using addOffer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_add_offer")] + public bool CanAddOffer { get; set; } + + /// + /// True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_add_tasks")] + public bool CanAddTasks { get; set; } + + /// + /// True, if the message is a suggested post that can be approved by the user using approveSuggestedPost + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_approved")] + public bool CanBeApproved { get; set; } + + /// + /// True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_copied")] + public bool CanBeCopied { get; set; } + + /// + /// True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_copied_to_secret_chat")] + public bool CanBeCopiedToSecretChat { get; set; } + + /// + /// True, if the message is a suggested post that can be declined by the user using declineSuggestedPost + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_declined")] + public bool CanBeDeclined { get; set; } + + /// + /// True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted_only_for_self")] + public bool CanBeDeletedOnlyForSelf { get; set; } + + /// + /// True, if the message can be deleted for all users using the method deleteMessages with revoke == true + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted_for_all_users")] + public bool CanBeDeletedForAllUsers { get; set; } + + /// + /// True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_edited")] + public bool CanBeEdited { get; set; } + + /// + /// True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_forwarded")] + public bool CanBeForwarded { get; set; } + + /// + /// True, if the message can be paid using inputInvoiceMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_paid")] + public bool CanBePaid { get; set; } + + /// + /// True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_pinned")] + public bool CanBePinned { get; set; } + + /// + /// True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage. Ephemeral messages can be replied only by other ephemeral messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_replied")] + public bool CanBeReplied { get; set; } + + /// + /// True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_replied_in_another_chat")] + public bool CanBeRepliedInAnotherChat { get; set; } + + /// + /// True, if content of the message can be saved locally + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_saved")] + public bool CanBeSaved { get; set; } + + /// + /// True, if the message can be shared in a story using inputStoryAreaTypeMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_shared_in_story")] + public bool CanBeSharedInStory { get; set; } + + /// + /// True, if the user can delete reactions of other users in the message using the method deleteMessageReactionsFromSender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_delete_reactions")] + public bool CanDeleteReactions { get; set; } + + /// + /// True, if the message can be edited using the method editMessageMedia + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_media")] + public bool CanEditMedia { get; set; } + + /// + /// True, if scheduling state of the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_scheduling_state")] + public bool CanEditSchedulingState { get; set; } + + /// + /// True, if another price or post send time can be suggested using addOffer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_edit_suggested_post_info")] + public bool CanEditSuggestedPostInfo { get; set; } + + /// + /// True, if author of the message sent on behalf of a chat can be received through getMessageAuthor + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_author")] + public bool CanGetAuthor { get; set; } + + /// + /// True, if code for message embedding can be received using getMessageEmbeddingCode + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_embedding_code")] + public bool CanGetEmbeddingCode { get; set; } + + /// + /// True, if a link can be generated for the message using getMessageLink + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_link")] + public bool CanGetLink { get; set; } + + /// + /// True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_media_timestamp_links")] + public bool CanGetMediaTimestampLinks { get; set; } + + /// + /// True, if information about the message thread is available through getMessageThread and getMessageThreadHistory + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_message_thread")] + public bool CanGetMessageThread { get; set; } + + /// + /// True, if the message is a poll and vote statistics are available through getPollVoteStatistics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_poll_vote_statistics")] + public bool CanGetPollVoteStatistics { get; set; } + + /// + /// True, if read date of the message can be received through getMessageReadDate + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_read_date")] + public bool CanGetReadDate { get; set; } + + /// + /// True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_statistics")] + public bool CanGetStatistics { get; set; } + + /// + /// True, if advertisements for video of the message can be received through getVideoMessageAdvertisements + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_video_advertisements")] + public bool CanGetVideoAdvertisements { get; set; } + + /// + /// True, if chat members already viewed the message can be received through getMessageViewers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_viewers")] + public bool CanGetViewers { get; set; } + + /// + /// True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_mark_tasks_as_done")] + public bool CanMarkTasksAsDone { get; set; } + + /// + /// True, if speech can be recognized for the message through recognizeSpeech + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_recognize_speech")] + public bool CanRecognizeSpeech { get; set; } + + /// + /// True, if the message can be reported using reportChat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_report_chat")] + public bool CanReportChat { get; set; } + + /// + /// True, if reactions on the message can be reported through reportMessageReactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_report_reactions")] + public bool CanReportReactions { get; set; } + + /// + /// True, if the message can be reported using reportSupergroupSpam + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_report_supergroup_spam")] + public bool CanReportSupergroupSpam { get; set; } + + /// + /// True, if fact check for the message can be changed through setMessageFactCheck + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_fact_check")] + public bool CanSetFactCheck { get; set; } + + /// + /// Identifiers of custom emoji used in the message + /// + [JsonProperty("custom_emoji_ids", ItemConverterType = typeof(Converter))] + public long[] CustomEmojiIds { get; set; } + + /// + /// True, if content of the message can't be saved locally, because it is protected by the current user; if true, then can_be_saved is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_protected_content_by_current_user")] + public bool HasProtectedContentByCurrentUser { get; set; } + + /// + /// True, if content of the message can't be saved locally, because it is protected by the other user; if true, then can_be_saved is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_protected_content_by_other_user")] + public bool HasProtectedContentByOtherUser { get; set; } + + /// + /// True, if message statistics must be available from context menu of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_show_statistics")] + public bool NeedShowStatistics { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageProximityAlertTriggered.cs b/TdLib.Api/Objects/MessageProximityAlertTriggered.cs index 0d2d1ce9..0ffdc451 100644 --- a/TdLib.Api/Objects/MessageProximityAlertTriggered.cs +++ b/TdLib.Api/Objects/MessageProximityAlertTriggered.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A user in the chat came within proximity alert range + /// + public class MessageProximityAlertTriggered : MessageContent { /// - /// A user in the chat came within proximity alert range + /// Data type for serialization /// - public class MessageProximityAlertTriggered : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageProximityAlertTriggered"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageProximityAlertTriggered"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of a user or chat that triggered the proximity alert - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("traveler_id")] - public MessageSender TravelerId { get; set; } + /// + /// The identifier of a user or chat that triggered the proximity alert + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("traveler_id")] + public MessageSender TravelerId { get; set; } - /// - /// The identifier of a user or chat that subscribed for the proximity alert - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("watcher_id")] - public MessageSender WatcherId { get; set; } + /// + /// The identifier of a user or chat that subscribed for the proximity alert + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("watcher_id")] + public MessageSender WatcherId { get; set; } - /// - /// The distance between the users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("distance")] - public int Distance { get; set; } - } + /// + /// The distance between the users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("distance")] + public int Distance { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageReaction.cs b/TdLib.Api/Objects/MessageReaction.cs index d1c44c43..fdb7506f 100644 --- a/TdLib.Api/Objects/MessageReaction.cs +++ b/TdLib.Api/Objects/MessageReaction.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a reaction to a message /// - public static partial class TdApi + public partial class MessageReaction : Object { /// - /// Contains information about a reaction to a message + /// Data type for serialization /// - public partial class MessageReaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ReactionType Type { get; set; } + /// + /// Type of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ReactionType Type { get; set; } - /// - /// Number of times the reaction was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Number of times the reaction was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// True, if the reaction is chosen by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_chosen")] - public bool IsChosen { get; set; } + /// + /// True, if the reaction is chosen by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_chosen")] + public bool IsChosen { get; set; } - /// - /// Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction isn't chosen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("used_sender_id")] - public MessageSender UsedSenderId { get; set; } + /// + /// Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction isn't chosen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("used_sender_id")] + public MessageSender UsedSenderId { get; set; } - /// - /// Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats - /// - [JsonProperty("recent_sender_ids", ItemConverterType = typeof(Converter))] - public MessageSender[] RecentSenderIds { get; set; } - } + /// + /// Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats + /// + [JsonProperty("recent_sender_ids", ItemConverterType = typeof(Converter))] + public MessageSender[] RecentSenderIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageReactions.cs b/TdLib.Api/Objects/MessageReactions.cs index 5e020689..0a63858a 100644 --- a/TdLib.Api/Objects/MessageReactions.cs +++ b/TdLib.Api/Objects/MessageReactions.cs @@ -2,56 +2,55 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of reactions added to a message /// - public static partial class TdApi + public partial class MessageReactions : Object { /// - /// Contains a list of reactions added to a message + /// Data type for serialization /// - public partial class MessageReactions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReactions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of added reactions - /// - [JsonProperty("reactions", ItemConverterType = typeof(Converter))] - public MessageReaction[] Reactions { get; set; } + /// + /// List of added reactions + /// + [JsonProperty("reactions", ItemConverterType = typeof(Converter))] + public MessageReaction[] Reactions { get; set; } - /// - /// True, if the reactions are tags and Telegram Premium users can filter messages by them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_tags")] - public bool AreTags { get; set; } + /// + /// True, if the reactions are tags and Telegram Premium users can filter messages by them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("are_tags")] + public bool AreTags { get; set; } - /// - /// Information about top users that added the paid reaction - /// - [JsonProperty("paid_reactors", ItemConverterType = typeof(Converter))] - public PaidReactor[] PaidReactors { get; set; } + /// + /// Information about top users that added the paid reaction + /// + [JsonProperty("paid_reactors", ItemConverterType = typeof(Converter))] + public PaidReactor[] PaidReactors { get; set; } - /// - /// True, if the list of added reactions is available using getMessageAddedReactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_added_reactions")] - public bool CanGetAddedReactions { get; set; } - } + /// + /// True, if the list of added reactions is available using getMessageAddedReactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_added_reactions")] + public bool CanGetAddedReactions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageReadDateMyPrivacyRestricted.cs b/TdLib.Api/Objects/MessageReadDateMyPrivacyRestricted.cs index efd09daf..fd2378af 100644 --- a/TdLib.Api/Objects/MessageReadDateMyPrivacyRestricted.cs +++ b/TdLib.Api/Objects/MessageReadDateMyPrivacyRestricted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageReadDate : Object { - public partial class MessageReadDate : Object + /// + /// The read date is unknown due to privacy settings of the current user, but will be known if the user subscribes to Telegram Premium + /// + public class MessageReadDateMyPrivacyRestricted : MessageReadDate { /// - /// The read date is unknown due to privacy settings of the current user, but will be known if the user subscribes to Telegram Premium + /// Data type for serialization /// - public class MessageReadDateMyPrivacyRestricted : MessageReadDate - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReadDateMyPrivacyRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReadDateMyPrivacyRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageReadDateRead.cs b/TdLib.Api/Objects/MessageReadDateRead.cs index 70effb30..fe8aa24b 100644 --- a/TdLib.Api/Objects/MessageReadDateRead.cs +++ b/TdLib.Api/Objects/MessageReadDateRead.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageReadDate : Object { - public partial class MessageReadDate : Object + /// + /// Describes read date of a recent outgoing message in a private chat + /// + public class MessageReadDateRead : MessageReadDate { /// - /// Describes read date of a recent outgoing message in a private chat + /// Data type for serialization /// - public class MessageReadDateRead : MessageReadDate - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReadDateRead"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReadDateRead"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the message was read by the other user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("read_date")] - public int ReadDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the message was read by the other user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("read_date")] + public int ReadDate { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageReadDateTooOld.cs b/TdLib.Api/Objects/MessageReadDateTooOld.cs index 424dcf15..7bf23806 100644 --- a/TdLib.Api/Objects/MessageReadDateTooOld.cs +++ b/TdLib.Api/Objects/MessageReadDateTooOld.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageReadDate : Object { - public partial class MessageReadDate : Object + /// + /// The message is too old to get read date + /// + public class MessageReadDateTooOld : MessageReadDate { /// - /// The message is too old to get read date + /// Data type for serialization /// - public class MessageReadDateTooOld : MessageReadDate - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReadDateTooOld"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReadDateTooOld"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageReadDateUnread.cs b/TdLib.Api/Objects/MessageReadDateUnread.cs index 2d275019..77e135ac 100644 --- a/TdLib.Api/Objects/MessageReadDateUnread.cs +++ b/TdLib.Api/Objects/MessageReadDateUnread.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageReadDate : Object { - public partial class MessageReadDate : Object + /// + /// The message is unread yet + /// + public class MessageReadDateUnread : MessageReadDate { /// - /// The message is unread yet + /// Data type for serialization /// - public class MessageReadDateUnread : MessageReadDate - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReadDateUnread"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReadDateUnread"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageReadDateUserPrivacyRestricted.cs b/TdLib.Api/Objects/MessageReadDateUserPrivacyRestricted.cs index a4b12c47..e35c3216 100644 --- a/TdLib.Api/Objects/MessageReadDateUserPrivacyRestricted.cs +++ b/TdLib.Api/Objects/MessageReadDateUserPrivacyRestricted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageReadDate : Object { - public partial class MessageReadDate : Object + /// + /// The read date is unknown due to privacy settings of the other user + /// + public class MessageReadDateUserPrivacyRestricted : MessageReadDate { /// - /// The read date is unknown due to privacy settings of the other user + /// Data type for serialization /// - public class MessageReadDateUserPrivacyRestricted : MessageReadDate - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReadDateUserPrivacyRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReadDateUserPrivacyRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageRefundedUpgradedGift.cs b/TdLib.Api/Objects/MessageRefundedUpgradedGift.cs index bab75c3b..d76626f7 100644 --- a/TdLib.Api/Objects/MessageRefundedUpgradedGift.cs +++ b/TdLib.Api/Objects/MessageRefundedUpgradedGift.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A gift which purchase, upgrade or transfer were refunded + /// + public class MessageRefundedUpgradedGift : MessageContent { /// - /// A gift which purchase, upgrade or transfer were refunded + /// Data type for serialization /// - public class MessageRefundedUpgradedGift : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageRefundedUpgradedGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageRefundedUpgradedGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } - /// - /// Sender of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Sender of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_id")] - public MessageSender ReceiverId { get; set; } + /// + /// Receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_id")] + public MessageSender ReceiverId { get; set; } - /// - /// Origin of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("origin")] - public UpgradedGiftOrigin Origin { get; set; } - } + /// + /// Origin of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("origin")] + public UpgradedGiftOrigin Origin { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageReplyInfo.cs b/TdLib.Api/Objects/MessageReplyInfo.cs index cfc34754..8e5bda06 100644 --- a/TdLib.Api/Objects/MessageReplyInfo.cs +++ b/TdLib.Api/Objects/MessageReplyInfo.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about replies to a message /// - public static partial class TdApi + public partial class MessageReplyInfo : Object { /// - /// Contains information about replies to a message + /// Data type for serialization /// - public partial class MessageReplyInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReplyInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReplyInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of times the message was directly or indirectly replied - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_count")] - public int ReplyCount { get; set; } + /// + /// Number of times the message was directly or indirectly replied + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_count")] + public int ReplyCount { get; set; } - /// - /// Identifiers of at most 3 recent repliers to the message; available in channels with a discussion supergroup. The users and chats are expected to be inaccessible: only their photo and name will be available - /// - [JsonProperty("recent_replier_ids", ItemConverterType = typeof(Converter))] - public MessageSender[] RecentReplierIds { get; set; } + /// + /// Identifiers of at most 3 recent repliers to the message; available in channels with a discussion supergroup. The users and chats are expected to be inaccessible: only their photo and name will be available + /// + [JsonProperty("recent_replier_ids", ItemConverterType = typeof(Converter))] + public MessageSender[] RecentReplierIds { get; set; } - /// - /// Identifier of the last read incoming reply to the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_inbox_message_id")] - public long LastReadInboxMessageId { get; set; } + /// + /// Identifier of the last read incoming reply to the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_inbox_message_id")] + public long LastReadInboxMessageId { get; set; } - /// - /// Identifier of the last read outgoing reply to the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_outbox_message_id")] - public long LastReadOutboxMessageId { get; set; } + /// + /// Identifier of the last read outgoing reply to the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_outbox_message_id")] + public long LastReadOutboxMessageId { get; set; } - /// - /// Identifier of the last reply to the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_message_id")] - public long LastMessageId { get; set; } - } + /// + /// Identifier of the last reply to the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_message_id")] + public long LastMessageId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageReplyToMessage.cs b/TdLib.Api/Objects/MessageReplyToMessage.cs index 11f605a7..2c37a584 100644 --- a/TdLib.Api/Objects/MessageReplyToMessage.cs +++ b/TdLib.Api/Objects/MessageReplyToMessage.cs @@ -2,91 +2,90 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageReplyTo : Object { - public partial class MessageReplyTo : Object + /// + /// Contains information about the message or the story a message is replying to + /// + public class MessageReplyToMessage : MessageReplyTo { /// - /// Contains information about the message or the story a message is replying to + /// Data type for serialization /// - public class MessageReplyToMessage : MessageReplyTo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReplyToMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReplyToMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// The identifier of the chat to which the message belongs; may be 0 if the replied message is in unknown chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The identifier of the message; may be 0 if the replied message is in unknown chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The identifier of the message; may be 0 if the replied message is in unknown chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Chosen quote from the replied message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("quote")] - public TextQuote Quote { get; set; } + /// + /// Chosen quote from the replied message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("quote")] + public TextQuote Quote { get; set; } - /// - /// Identifier of the checklist task in the original message that was replied; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("checklist_task_id")] - public int ChecklistTaskId { get; set; } + /// + /// Identifier of the checklist task in the original message that was replied; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("checklist_task_id")] + public int ChecklistTaskId { get; set; } - /// - /// Identifier of the poll option in the original message that was replied; empty if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_option_id")] - public string PollOptionId { get; set; } + /// + /// Identifier of the poll option in the original message that was replied; empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_option_id")] + public string PollOptionId { get; set; } - /// - /// Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("origin")] - public MessageOrigin Origin { get; set; } + /// + /// Information about origin of the message if the message was from another chat or topic; may be null for messages from the same chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("origin")] + public MessageOrigin Origin { get; set; } - /// - /// Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("origin_send_date")] - public int OriginSendDate { get; set; } + /// + /// Point in time (Unix timestamp) when the message was sent if the message was from another chat or topic; 0 for messages from the same chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("origin_send_date")] + public int OriginSendDate { get; set; } - /// - /// Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. - /// Can be only one of the following types: messageAnimation, messageAudio, messageChecklist, messageContact, messageDice, messageDocument, messageGame, - /// messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageStakeDice, - /// messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } - } + /// + /// Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media. + /// Can be only one of the following types: messageAnimation, messageAudio, messageChecklist, messageContact, messageDice, messageDocument, messageGame, + /// messageGiveaway, messageGiveawayWinners, messageInvoice, messageLocation, messagePaidMedia, messagePhoto, messagePoll, messageStakeDice, + /// messageSticker, messageStory, messageText (for link preview), messageVenue, messageVideo, messageVideoNote, or messageVoiceNote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageReplyToStory.cs b/TdLib.Api/Objects/MessageReplyToStory.cs index b9c6a0ab..ae747ad1 100644 --- a/TdLib.Api/Objects/MessageReplyToStory.cs +++ b/TdLib.Api/Objects/MessageReplyToStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageReplyTo : Object { - public partial class MessageReplyTo : Object + /// + /// Describes a story replied by a given message + /// + public class MessageReplyToStory : MessageReplyTo { /// - /// Describes a story replied by a given message + /// Data type for serialization /// - public class MessageReplyToStory : MessageReplyTo - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageReplyToStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageReplyToStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the poster of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// The identifier of the poster of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// The identifier of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// The identifier of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageRichMessage.cs b/TdLib.Api/Objects/MessageRichMessage.cs index 0dd99549..7ebf1f39 100644 --- a/TdLib.Api/Objects/MessageRichMessage.cs +++ b/TdLib.Api/Objects/MessageRichMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A rich message; the message can have multiple media of the same type, all of which must be shown in the corresponding profile tab + /// + public class MessageRichMessage : MessageContent { /// - /// A rich message; the message can have multiple media of the same type, all of which must be shown in the corresponding profile tab + /// Data type for serialization /// - public class MessageRichMessage : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageRichMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageRichMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The rich message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public RichMessage Message { get; set; } - } + /// + /// The rich message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public RichMessage Message { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSchedulingStateSendAtDate.cs b/TdLib.Api/Objects/MessageSchedulingStateSendAtDate.cs index cc15ab37..a3dd3fa5 100644 --- a/TdLib.Api/Objects/MessageSchedulingStateSendAtDate.cs +++ b/TdLib.Api/Objects/MessageSchedulingStateSendAtDate.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSchedulingState : Object { - public partial class MessageSchedulingState : Object + /// + /// Contains information about the time when a scheduled message will be sent + /// + public class MessageSchedulingStateSendAtDate : MessageSchedulingState { /// - /// Contains information about the time when a scheduled message will be sent + /// Data type for serialization /// - public class MessageSchedulingStateSendAtDate : MessageSchedulingState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSchedulingStateSendAtDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSchedulingStateSendAtDate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the message will be sent. The date must be within 367 days in the future - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_date")] - public int SendDate { get; set; } + /// + /// Point in time (Unix timestamp) when the message will be sent. The date must be within 367 days in the future + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_date")] + public int SendDate { get; set; } - /// - /// Period after which the message will be sent again; in seconds; 0 if never; for Telegram Premium users only; may be non-zero only in sendMessage and forwardMessages with one message requests; - /// must be one of 0, 86400, 7 * 86400, 14 * 86400, 30 * 86400, 91 * 86400, 182 * 86400, 365 * 86400, or additionally 60, or 300 in the Test DC - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("repeat_period")] - public int RepeatPeriod { get; set; } - } + /// + /// Period after which the message will be sent again; in seconds; 0 if never; for Telegram Premium users only; may be non-zero only in sendMessage and forwardMessages with one message requests; + /// must be one of 0, 86400, 7 * 86400, 14 * 86400, 30 * 86400, 91 * 86400, 182 * 86400, 365 * 86400, or additionally 60, or 300 in the Test DC + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("repeat_period")] + public int RepeatPeriod { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSchedulingStateSendWhenOnline.cs b/TdLib.Api/Objects/MessageSchedulingStateSendWhenOnline.cs index 47c682cb..046e7685 100644 --- a/TdLib.Api/Objects/MessageSchedulingStateSendWhenOnline.cs +++ b/TdLib.Api/Objects/MessageSchedulingStateSendWhenOnline.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSchedulingState : Object { - public partial class MessageSchedulingState : Object + /// + /// The message will be sent when the other user is online. Applicable to private chats only and when the exact online status of the other user is known + /// + public class MessageSchedulingStateSendWhenOnline : MessageSchedulingState { /// - /// The message will be sent when the other user is online. Applicable to private chats only and when the exact online status of the other user is known + /// Data type for serialization /// - public class MessageSchedulingStateSendWhenOnline : MessageSchedulingState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSchedulingStateSendWhenOnline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSchedulingStateSendWhenOnline"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSchedulingStateSendWhenVideoProcessed.cs b/TdLib.Api/Objects/MessageSchedulingStateSendWhenVideoProcessed.cs index 4c71af8f..71312303 100644 --- a/TdLib.Api/Objects/MessageSchedulingStateSendWhenVideoProcessed.cs +++ b/TdLib.Api/Objects/MessageSchedulingStateSendWhenVideoProcessed.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSchedulingState : Object { - public partial class MessageSchedulingState : Object + /// + /// The message will be sent when the video in the message is converted and optimized; can be used only by the server + /// + public class MessageSchedulingStateSendWhenVideoProcessed : MessageSchedulingState { /// - /// The message will be sent when the video in the message is converted and optimized; can be used only by the server + /// Data type for serialization /// - public class MessageSchedulingStateSendWhenVideoProcessed : MessageSchedulingState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSchedulingStateSendWhenVideoProcessed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSchedulingStateSendWhenVideoProcessed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate point in time (Unix timestamp) when the message is expected to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_date")] - public int SendDate { get; set; } - } + /// + /// Approximate point in time (Unix timestamp) when the message is expected to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_date")] + public int SendDate { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageScreenshotTaken.cs b/TdLib.Api/Objects/MessageScreenshotTaken.cs index 056a9733..2ca93f68 100644 --- a/TdLib.Api/Objects/MessageScreenshotTaken.cs +++ b/TdLib.Api/Objects/MessageScreenshotTaken.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A screenshot of a message in the chat has been taken + /// + public class MessageScreenshotTaken : MessageContent { /// - /// A screenshot of a message in the chat has been taken + /// Data type for serialization /// - public class MessageScreenshotTaken : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageScreenshotTaken"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageScreenshotTaken"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSelfDestructTypeImmediately.cs b/TdLib.Api/Objects/MessageSelfDestructTypeImmediately.cs index 77738c49..ebaaf431 100644 --- a/TdLib.Api/Objects/MessageSelfDestructTypeImmediately.cs +++ b/TdLib.Api/Objects/MessageSelfDestructTypeImmediately.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSelfDestructType : Object { - public partial class MessageSelfDestructType : Object + /// + /// The message can be opened only once and will be self-destructed once closed + /// + public class MessageSelfDestructTypeImmediately : MessageSelfDestructType { /// - /// The message can be opened only once and will be self-destructed once closed + /// Data type for serialization /// - public class MessageSelfDestructTypeImmediately : MessageSelfDestructType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSelfDestructTypeImmediately"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSelfDestructTypeImmediately"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSelfDestructTypeTimer.cs b/TdLib.Api/Objects/MessageSelfDestructTypeTimer.cs index 31ad3365..dddd1f64 100644 --- a/TdLib.Api/Objects/MessageSelfDestructTypeTimer.cs +++ b/TdLib.Api/Objects/MessageSelfDestructTypeTimer.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSelfDestructType : Object { - public partial class MessageSelfDestructType : Object + /// + /// Describes when a message will be self-destructed + /// + public class MessageSelfDestructTypeTimer : MessageSelfDestructType { /// - /// Describes when a message will be self-destructed + /// Data type for serialization /// - public class MessageSelfDestructTypeTimer : MessageSelfDestructType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSelfDestructTypeTimer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSelfDestructTypeTimer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message's self-destruct time, in seconds; must be between 0 and 60 in private chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("self_destruct_time")] - public int SelfDestructTime { get; set; } - } + /// + /// The message's self-destruct time, in seconds; must be between 0 and 60 in private chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("self_destruct_time")] + public int SelfDestructTime { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSendOptions.cs b/TdLib.Api/Objects/MessageSendOptions.cs index 9c28770e..31d89183 100644 --- a/TdLib.Api/Objects/MessageSendOptions.cs +++ b/TdLib.Api/Objects/MessageSendOptions.cs @@ -2,108 +2,107 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Options to be used when a message is sent /// - public static partial class TdApi + public partial class MessageSendOptions : Object { /// - /// Options to be used when a message is sent + /// Data type for serialization /// - public partial class MessageSendOptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSendOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSendOptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the suggested post; pass null if none. For messages to channel direct messages chat only. Applicable only to sendMessage and addOffer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_info")] - public InputSuggestedPostInfo SuggestedPostInfo { get; set; } + /// + /// Information about the suggested post; pass null if none. For messages to channel direct messages chat only. Applicable only to sendMessage and addOffer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_info")] + public InputSuggestedPostInfo SuggestedPostInfo { get; set; } - /// - /// Pass true to disable notification for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_notification")] - public bool DisableNotification { get; set; } + /// + /// Pass true to disable notification for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_notification")] + public bool DisableNotification { get; set; } - /// - /// Pass true if the message is sent from the background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_background")] - public bool FromBackground { get; set; } + /// + /// Pass true if the message is sent from the background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_background")] + public bool FromBackground { get; set; } - /// - /// Pass true if the content of the message must be protected from forwarding and saving; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("protect_content")] - public bool ProtectContent { get; set; } + /// + /// Pass true if the content of the message must be protected from forwarding and saving; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("protect_content")] + public bool ProtectContent { get; set; } - /// - /// Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_paid_broadcast")] - public bool AllowPaidBroadcast { get; set; } + /// + /// Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_paid_broadcast")] + public bool AllowPaidBroadcast { get; set; } - /// - /// The number of Telegram Stars the user agreed to pay to send the messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } + /// + /// The number of Telegram Stars the user agreed to pay to send the messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } - /// - /// Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("update_order_of_installed_sticker_sets")] - public bool UpdateOrderOfInstalledStickerSets { get; set; } + /// + /// Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("update_order_of_installed_sticker_sets")] + public bool UpdateOrderOfInstalledStickerSets { get; set; } - /// - /// Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, to a chat with paid messages, to a channel direct messages chat, - /// live location messages and self-destructing messages can't be scheduled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scheduling_state")] - public MessageSchedulingState SchedulingState { get; set; } + /// + /// Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, to a chat with paid messages, to a channel direct messages chat, + /// live location messages and self-destructing messages can't be scheduled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scheduling_state")] + public MessageSchedulingState SchedulingState { get; set; } - /// - /// Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage, sendMessageAlbum in private chats and forwardMessages with one message to private chats - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("effect_id")] - public long EffectId { get; set; } + /// + /// Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage, sendMessageAlbum in private chats and forwardMessages with one message to private chats + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("effect_id")] + public long EffectId { get; set; } - /// - /// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sending_id")] - public int SendingId { get; set; } + /// + /// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sending_id")] + public int SendingId { get; set; } - /// - /// Pass true to get a fake message instead of actually sending them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("only_preview")] - public bool OnlyPreview { get; set; } - } + /// + /// Pass true to get a fake message instead of actually sending them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("only_preview")] + public bool OnlyPreview { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageSenderChat.cs b/TdLib.Api/Objects/MessageSenderChat.cs index 7be649ae..214f0ecb 100644 --- a/TdLib.Api/Objects/MessageSenderChat.cs +++ b/TdLib.Api/Objects/MessageSenderChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSender : Object { - public partial class MessageSender : Object + /// + /// The message was sent on behalf of a chat + /// + public class MessageSenderChat : MessageSender { /// - /// The message was sent on behalf of a chat + /// Data type for serialization /// - public class MessageSenderChat : MessageSender - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSenderChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSenderChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that sent the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat that sent the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSenderUser.cs b/TdLib.Api/Objects/MessageSenderUser.cs index 8c018b9a..efec1ee2 100644 --- a/TdLib.Api/Objects/MessageSenderUser.cs +++ b/TdLib.Api/Objects/MessageSenderUser.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSender : Object { - public partial class MessageSender : Object + /// + /// Contains information about the sender of a message + /// + public class MessageSenderUser : MessageSender { /// - /// Contains information about the sender of a message + /// Data type for serialization /// - public class MessageSenderUser : MessageSender - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSenderUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSenderUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who sent the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the user who sent the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSenders.cs b/TdLib.Api/Objects/MessageSenders.cs index 0736f1ed..1a7d5b25 100644 --- a/TdLib.Api/Objects/MessageSenders.cs +++ b/TdLib.Api/Objects/MessageSenders.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of message senders /// - public static partial class TdApi + public partial class MessageSenders : Object { /// - /// Represents a list of message senders + /// Data type for serialization /// - public partial class MessageSenders : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSenders"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSenders"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of message senders found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of message senders found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of message senders - /// - [JsonProperty("senders", ItemConverterType = typeof(Converter))] - public MessageSender[] Senders { get; set; } - } + /// + /// List of message senders + /// + [JsonProperty("senders", ItemConverterType = typeof(Converter))] + public MessageSender[] Senders { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageSendingStateFailed.cs b/TdLib.Api/Objects/MessageSendingStateFailed.cs index 2e929357..e64ea90b 100644 --- a/TdLib.Api/Objects/MessageSendingStateFailed.cs +++ b/TdLib.Api/Objects/MessageSendingStateFailed.cs @@ -2,81 +2,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSendingState : Object { - public partial class MessageSendingState : Object + /// + /// The message failed to be sent + /// + public class MessageSendingStateFailed : MessageSendingState { /// - /// The message failed to be sent + /// Data type for serialization /// - public class MessageSendingStateFailed : MessageSendingState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSendingStateFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSendingStateFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The cause of the message sending failure - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } + /// + /// The cause of the message sending failure + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } - /// - /// True, if the message can be re-sent using resendMessages or readdQuickReplyShortcutMessages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_retry")] - public bool CanRetry { get; set; } + /// + /// True, if the message can be re-sent using resendMessages or readdQuickReplyShortcutMessages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_retry")] + public bool CanRetry { get; set; } - /// - /// True, if the message can be re-sent only on behalf of a different sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_another_sender")] - public bool NeedAnotherSender { get; set; } + /// + /// True, if the message can be re-sent only on behalf of a different sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_another_sender")] + public bool NeedAnotherSender { get; set; } - /// - /// True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_another_reply_quote")] - public bool NeedAnotherReplyQuote { get; set; } + /// + /// True, if the message can be re-sent only if another quote is chosen in the message that is replied by the given message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_another_reply_quote")] + public bool NeedAnotherReplyQuote { get; set; } - /// - /// True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_drop_reply")] - public bool NeedDropReply { get; set; } + /// + /// True, if the message can be re-sent only if the message to be replied is removed. This will be done automatically by resendMessages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_drop_reply")] + public bool NeedDropReply { get; set; } - /// - /// The number of Telegram Stars that must be paid to send the message; 0 if the current amount is correct - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("required_paid_message_star_count")] - public long RequiredPaidMessageStarCount { get; set; } + /// + /// The number of Telegram Stars that must be paid to send the message; 0 if the current amount is correct + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("required_paid_message_star_count")] + public long RequiredPaidMessageStarCount { get; set; } - /// - /// Time left before the message can be re-sent, in seconds. No update is sent when this field changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("retry_after")] - public double? RetryAfter { get; set; } - } + /// + /// Time left before the message can be re-sent, in seconds. No update is sent when this field changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("retry_after")] + public double? RetryAfter { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSendingStatePending.cs b/TdLib.Api/Objects/MessageSendingStatePending.cs index 8af56fdf..ec50cd72 100644 --- a/TdLib.Api/Objects/MessageSendingStatePending.cs +++ b/TdLib.Api/Objects/MessageSendingStatePending.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSendingState : Object { - public partial class MessageSendingState : Object + /// + /// Contains information about the sending state of the message + /// + public class MessageSendingStatePending : MessageSendingState { /// - /// Contains information about the sending state of the message + /// Data type for serialization /// - public class MessageSendingStatePending : MessageSendingState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSendingStatePending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSendingStatePending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Non-persistent message sending identifier, specified by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sending_id")] - public int SendingId { get; set; } - } + /// + /// Non-persistent message sending identifier, specified by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sending_id")] + public int SendingId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSourceChatEventLog.cs b/TdLib.Api/Objects/MessageSourceChatEventLog.cs index 019a45b7..e3fd979a 100644 --- a/TdLib.Api/Objects/MessageSourceChatEventLog.cs +++ b/TdLib.Api/Objects/MessageSourceChatEventLog.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from a chat event log + /// + public class MessageSourceChatEventLog : MessageSource { /// - /// The message is from a chat event log + /// Data type for serialization /// - public class MessageSourceChatEventLog : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceChatEventLog"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceChatEventLog"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceChatHistory.cs b/TdLib.Api/Objects/MessageSourceChatHistory.cs index 1f98744d..5127fd56 100644 --- a/TdLib.Api/Objects/MessageSourceChatHistory.cs +++ b/TdLib.Api/Objects/MessageSourceChatHistory.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// Describes source of a message + /// + public class MessageSourceChatHistory : MessageSource { /// - /// Describes source of a message + /// Data type for serialization /// - public class MessageSourceChatHistory : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceChatHistory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceChatHistory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceChatList.cs b/TdLib.Api/Objects/MessageSourceChatList.cs index b9bd02c4..d79d828a 100644 --- a/TdLib.Api/Objects/MessageSourceChatList.cs +++ b/TdLib.Api/Objects/MessageSourceChatList.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from a chat list or a forum topic list + /// + public class MessageSourceChatList : MessageSource { /// - /// The message is from a chat list or a forum topic list + /// Data type for serialization /// - public class MessageSourceChatList : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceChatList"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceChatList"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceDirectMessagesChatTopicHistory.cs b/TdLib.Api/Objects/MessageSourceDirectMessagesChatTopicHistory.cs index 2f3fb0c7..e5cc026e 100644 --- a/TdLib.Api/Objects/MessageSourceDirectMessagesChatTopicHistory.cs +++ b/TdLib.Api/Objects/MessageSourceDirectMessagesChatTopicHistory.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from history of a topic in a channel direct messages chat administered by the current user + /// + public class MessageSourceDirectMessagesChatTopicHistory : MessageSource { /// - /// The message is from history of a topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public class MessageSourceDirectMessagesChatTopicHistory : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceDirectMessagesChatTopicHistory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceDirectMessagesChatTopicHistory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceForumTopicHistory.cs b/TdLib.Api/Objects/MessageSourceForumTopicHistory.cs index e0aafb3a..917c42de 100644 --- a/TdLib.Api/Objects/MessageSourceForumTopicHistory.cs +++ b/TdLib.Api/Objects/MessageSourceForumTopicHistory.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from history of a forum topic + /// + public class MessageSourceForumTopicHistory : MessageSource { /// - /// The message is from history of a forum topic + /// Data type for serialization /// - public class MessageSourceForumTopicHistory : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceForumTopicHistory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceForumTopicHistory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceHistoryPreview.cs b/TdLib.Api/Objects/MessageSourceHistoryPreview.cs index 566abe7c..dd02ec0d 100644 --- a/TdLib.Api/Objects/MessageSourceHistoryPreview.cs +++ b/TdLib.Api/Objects/MessageSourceHistoryPreview.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from chat, message thread or forum topic history preview + /// + public class MessageSourceHistoryPreview : MessageSource { /// - /// The message is from chat, message thread or forum topic history preview + /// Data type for serialization /// - public class MessageSourceHistoryPreview : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceHistoryPreview"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceHistoryPreview"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceMessageThreadHistory.cs b/TdLib.Api/Objects/MessageSourceMessageThreadHistory.cs index d20ffd55..d8dd1e75 100644 --- a/TdLib.Api/Objects/MessageSourceMessageThreadHistory.cs +++ b/TdLib.Api/Objects/MessageSourceMessageThreadHistory.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from history of a message thread + /// + public class MessageSourceMessageThreadHistory : MessageSource { /// - /// The message is from history of a message thread + /// Data type for serialization /// - public class MessageSourceMessageThreadHistory : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceMessageThreadHistory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceMessageThreadHistory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceNotification.cs b/TdLib.Api/Objects/MessageSourceNotification.cs index 773d0f1a..2e6debf6 100644 --- a/TdLib.Api/Objects/MessageSourceNotification.cs +++ b/TdLib.Api/Objects/MessageSourceNotification.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from a notification + /// + public class MessageSourceNotification : MessageSource { /// - /// The message is from a notification + /// Data type for serialization /// - public class MessageSourceNotification : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceNotification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceNotification"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceOther.cs b/TdLib.Api/Objects/MessageSourceOther.cs index ed923642..cd4148a5 100644 --- a/TdLib.Api/Objects/MessageSourceOther.cs +++ b/TdLib.Api/Objects/MessageSourceOther.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from some other source + /// + public class MessageSourceOther : MessageSource { /// - /// The message is from some other source + /// Data type for serialization /// - public class MessageSourceOther : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceOther"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceOther"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceScreenshot.cs b/TdLib.Api/Objects/MessageSourceScreenshot.cs index cfd21dd6..150d46db 100644 --- a/TdLib.Api/Objects/MessageSourceScreenshot.cs +++ b/TdLib.Api/Objects/MessageSourceScreenshot.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message was screenshotted; the source must be used only if the message content was visible during the screenshot + /// + public class MessageSourceScreenshot : MessageSource { /// - /// The message was screenshotted; the source must be used only if the message content was visible during the screenshot + /// Data type for serialization /// - public class MessageSourceScreenshot : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceScreenshot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceScreenshot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageSourceSearch.cs b/TdLib.Api/Objects/MessageSourceSearch.cs index 5b3b0e73..b2614483 100644 --- a/TdLib.Api/Objects/MessageSourceSearch.cs +++ b/TdLib.Api/Objects/MessageSourceSearch.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageSource : Object { - public partial class MessageSource : Object + /// + /// The message is from search results, including file downloads, local file list, outgoing document messages, calendar + /// + public class MessageSourceSearch : MessageSource { /// - /// The message is from search results, including file downloads, local file list, outgoing document messages, calendar + /// Data type for serialization /// - public class MessageSourceSearch : MessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSourceSearch"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSourceSearch"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageStakeDice.cs b/TdLib.Api/Objects/MessageStakeDice.cs index 74a0380a..f735c455 100644 --- a/TdLib.Api/Objects/MessageStakeDice.cs +++ b/TdLib.Api/Objects/MessageStakeDice.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A stake dice message. The dice value is randomly generated by the server + /// + public class MessageStakeDice : MessageContent { /// - /// A stake dice message. The dice value is randomly generated by the server + /// Data type for serialization /// - public class MessageStakeDice : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageStakeDice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageStakeDice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("initial_state")] - public DiceStickers InitialState { get; set; } + /// + /// The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("initial_state")] + public DiceStickers InitialState { get; set; } - /// - /// The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("final_state")] - public DiceStickers FinalState { get; set; } + /// + /// The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("final_state")] + public DiceStickers FinalState { get; set; } - /// - /// The dice value. If the value is 0, then the dice don't have final state yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public int Value { get; set; } + /// + /// The dice value. If the value is 0, then the dice don't have final state yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public int Value { get; set; } - /// - /// The TON Gram amount that was staked; in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("stake_gram_amount")] - public long StakeGramAmount { get; set; } + /// + /// The TON Gram amount that was staked; in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("stake_gram_amount")] + public long StakeGramAmount { get; set; } - /// - /// The TON Gram amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prize_gram_amount")] - public long PrizeGramAmount { get; set; } - } + /// + /// The TON Gram amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prize_gram_amount")] + public long PrizeGramAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageStatistics.cs b/TdLib.Api/Objects/MessageStatistics.cs index 072ea7f2..fc837901 100644 --- a/TdLib.Api/Objects/MessageStatistics.cs +++ b/TdLib.Api/Objects/MessageStatistics.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A detailed statistics about a message /// - public static partial class TdApi + public partial class MessageStatistics : Object { /// - /// A detailed statistics about a message + /// Data type for serialization /// - public partial class MessageStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A graph containing number of message views and shares - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_interaction_graph")] - public StatisticalGraph MessageInteractionGraph { get; set; } + /// + /// A graph containing number of message views and shares + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_interaction_graph")] + public StatisticalGraph MessageInteractionGraph { get; set; } - /// - /// A graph containing number of message reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_reaction_graph")] - public StatisticalGraph MessageReactionGraph { get; set; } - } + /// + /// A graph containing number of message reactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_reaction_graph")] + public StatisticalGraph MessageReactionGraph { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageSticker.cs b/TdLib.Api/Objects/MessageSticker.cs index 6cd814be..0fcf85d5 100644 --- a/TdLib.Api/Objects/MessageSticker.cs +++ b/TdLib.Api/Objects/MessageSticker.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A sticker message + /// + public class MessageSticker : MessageContent { /// - /// A sticker message + /// Data type for serialization /// - public class MessageSticker : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The sticker description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } + /// + /// The sticker description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } - /// - /// True, if premium animation of the sticker must be played - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_premium")] - public bool IsPremium { get; set; } - } + /// + /// True, if premium animation of the sticker must be played + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_premium")] + public bool IsPremium { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageStory.cs b/TdLib.Api/Objects/MessageStory.cs index ccf4c411..a428a5cf 100644 --- a/TdLib.Api/Objects/MessageStory.cs +++ b/TdLib.Api/Objects/MessageStory.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with a forwarded story + /// + public class MessageStory : MessageContent { /// - /// A message with a forwarded story + /// Data type for serialization /// - public class MessageStory : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// True, if the story was automatically forwarded because of a mention of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_mention")] - public bool ViaMention { get; set; } - } + /// + /// True, if the story was automatically forwarded because of a mention of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_mention")] + public bool ViaMention { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSuggestBirthdate.cs b/TdLib.Api/Objects/MessageSuggestBirthdate.cs index e20a158c..0426f0bb 100644 --- a/TdLib.Api/Objects/MessageSuggestBirthdate.cs +++ b/TdLib.Api/Objects/MessageSuggestBirthdate.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A birthdate was suggested to be set + /// + public class MessageSuggestBirthdate : MessageContent { /// - /// A birthdate was suggested to be set + /// Data type for serialization /// - public class MessageSuggestBirthdate : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSuggestBirthdate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSuggestBirthdate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The suggested birthdate. Use the method setBirthdate to apply the birthdate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("birthdate")] - public Birthdate Birthdate { get; set; } - } + /// + /// The suggested birthdate. Use the method setBirthdate to apply the birthdate + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("birthdate")] + public Birthdate Birthdate { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSuggestProfilePhoto.cs b/TdLib.Api/Objects/MessageSuggestProfilePhoto.cs index fab5565e..a8e7c7bb 100644 --- a/TdLib.Api/Objects/MessageSuggestProfilePhoto.cs +++ b/TdLib.Api/Objects/MessageSuggestProfilePhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A profile photo was suggested to a user in a private chat + /// + public class MessageSuggestProfilePhoto : MessageContent { /// - /// A profile photo was suggested to a user in a private chat + /// Data type for serialization /// - public class MessageSuggestProfilePhoto : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSuggestProfilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSuggestProfilePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The suggested chat photo. Use the method setProfilePhoto with inputChatPhotoPrevious to apply the photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } - } + /// + /// The suggested chat photo. Use the method setProfilePhoto with inputChatPhotoPrevious to apply the photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSuggestedPostApprovalFailed.cs b/TdLib.Api/Objects/MessageSuggestedPostApprovalFailed.cs index 3da9a698..c0cf6988 100644 --- a/TdLib.Api/Objects/MessageSuggestedPostApprovalFailed.cs +++ b/TdLib.Api/Objects/MessageSuggestedPostApprovalFailed.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Approval of suggested post has failed, because the user who proposed the post didn't have enough funds + /// + public class MessageSuggestedPostApprovalFailed : MessageContent { /// - /// Approval of suggested post has failed, because the user who proposed the post didn't have enough funds + /// Data type for serialization /// - public class MessageSuggestedPostApprovalFailed : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSuggestedPostApprovalFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSuggestedPostApprovalFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_message_id")] - public long SuggestedPostMessageId { get; set; } + /// + /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_message_id")] + public long SuggestedPostMessageId { get; set; } - /// - /// Price of the suggested post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public SuggestedPostPrice Price { get; set; } - } + /// + /// Price of the suggested post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public SuggestedPostPrice Price { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSuggestedPostApproved.cs b/TdLib.Api/Objects/MessageSuggestedPostApproved.cs index 20c02599..bcc54392 100644 --- a/TdLib.Api/Objects/MessageSuggestedPostApproved.cs +++ b/TdLib.Api/Objects/MessageSuggestedPostApproved.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A suggested post was approved + /// + public class MessageSuggestedPostApproved : MessageContent { /// - /// A suggested post was approved + /// Data type for serialization /// - public class MessageSuggestedPostApproved : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSuggestedPostApproved"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSuggestedPostApproved"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_message_id")] - public long SuggestedPostMessageId { get; set; } + /// + /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_message_id")] + public long SuggestedPostMessageId { get; set; } - /// - /// Price of the suggested post; may be null if the post is non-paid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public SuggestedPostPrice Price { get; set; } + /// + /// Price of the suggested post; may be null if the post is non-paid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public SuggestedPostPrice Price { get; set; } - /// - /// Point in time (Unix timestamp) when the post is expected to be published - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_date")] - public int SendDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the post is expected to be published + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_date")] + public int SendDate { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSuggestedPostDeclined.cs b/TdLib.Api/Objects/MessageSuggestedPostDeclined.cs index f3ee9eb6..375a1337 100644 --- a/TdLib.Api/Objects/MessageSuggestedPostDeclined.cs +++ b/TdLib.Api/Objects/MessageSuggestedPostDeclined.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A suggested post was declined + /// + public class MessageSuggestedPostDeclined : MessageContent { /// - /// A suggested post was declined + /// Data type for serialization /// - public class MessageSuggestedPostDeclined : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSuggestedPostDeclined"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSuggestedPostDeclined"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_message_id")] - public long SuggestedPostMessageId { get; set; } + /// + /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_message_id")] + public long SuggestedPostMessageId { get; set; } - /// - /// Comment added by administrator of the channel when the post was declined - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("comment")] - public string Comment { get; set; } - } + /// + /// Comment added by administrator of the channel when the post was declined + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSuggestedPostPaid.cs b/TdLib.Api/Objects/MessageSuggestedPostPaid.cs index 32276204..612f4aa9 100644 --- a/TdLib.Api/Objects/MessageSuggestedPostPaid.cs +++ b/TdLib.Api/Objects/MessageSuggestedPostPaid.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A suggested post was published for getOption("suggested_post_lifetime_min") seconds and payment for the post was received + /// + public class MessageSuggestedPostPaid : MessageContent { /// - /// A suggested post was published for getOption("suggested_post_lifetime_min") seconds and payment for the post was received + /// Data type for serialization /// - public class MessageSuggestedPostPaid : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSuggestedPostPaid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSuggestedPostPaid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_message_id")] - public long SuggestedPostMessageId { get; set; } + /// + /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_message_id")] + public long SuggestedPostMessageId { get; set; } - /// - /// The amount of received Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_amount")] - public StarAmount StarAmount { get; set; } + /// + /// The amount of received Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_amount")] + public StarAmount StarAmount { get; set; } - /// - /// The amount of received TON Grams; in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_amount")] - public long GramAmount { get; set; } - } + /// + /// The amount of received TON Grams; in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSuggestedPostRefunded.cs b/TdLib.Api/Objects/MessageSuggestedPostRefunded.cs index 4d350f4a..a89b7bb6 100644 --- a/TdLib.Api/Objects/MessageSuggestedPostRefunded.cs +++ b/TdLib.Api/Objects/MessageSuggestedPostRefunded.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A suggested post was refunded + /// + public class MessageSuggestedPostRefunded : MessageContent { /// - /// A suggested post was refunded + /// Data type for serialization /// - public class MessageSuggestedPostRefunded : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSuggestedPostRefunded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSuggestedPostRefunded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_message_id")] - public long SuggestedPostMessageId { get; set; } + /// + /// Identifier of the message with the suggested post; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_message_id")] + public long SuggestedPostMessageId { get; set; } - /// - /// Reason of the refund - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reason")] - public SuggestedPostRefundReason Reason { get; set; } - } + /// + /// Reason of the refund + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reason")] + public SuggestedPostRefundReason Reason { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageSupergroupChatCreate.cs b/TdLib.Api/Objects/MessageSupergroupChatCreate.cs index 5ab129bd..5c4e6653 100644 --- a/TdLib.Api/Objects/MessageSupergroupChatCreate.cs +++ b/TdLib.Api/Objects/MessageSupergroupChatCreate.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A newly created supergroup or channel + /// + public class MessageSupergroupChatCreate : MessageContent { /// - /// A newly created supergroup or channel + /// Data type for serialization /// - public class MessageSupergroupChatCreate : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageSupergroupChatCreate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageSupergroupChatCreate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Title of the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageText.cs b/TdLib.Api/Objects/MessageText.cs index 67309032..2bf723d4 100644 --- a/TdLib.Api/Objects/MessageText.cs +++ b/TdLib.Api/Objects/MessageText.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Contains the content of a message + /// + public class MessageText : MessageContent { /// - /// Contains the content of a message + /// Data type for serialization /// - public class MessageText : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageText"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// A link preview attached to the message; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_preview")] - public LinkPreview LinkPreview { get; set; } + /// + /// A link preview attached to the message; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link_preview")] + public LinkPreview LinkPreview { get; set; } - /// - /// Options which were used for generation of the link preview; may be null if default options were used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_preview_options")] - public LinkPreviewOptions LinkPreviewOptions { get; set; } - } + /// + /// Options which were used for generation of the link preview; may be null if default options were used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link_preview_options")] + public LinkPreviewOptions LinkPreviewOptions { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageThreadInfo.cs b/TdLib.Api/Objects/MessageThreadInfo.cs index 045474b4..c6fbec58 100644 --- a/TdLib.Api/Objects/MessageThreadInfo.cs +++ b/TdLib.Api/Objects/MessageThreadInfo.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a message thread /// - public static partial class TdApi + public partial class MessageThreadInfo : Object { /// - /// Contains information about a message thread + /// Data type for serialization /// - public partial class MessageThreadInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageThreadInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageThreadInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat to which the message thread belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat to which the message thread belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message thread identifier, unique within the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_thread_id")] - public long MessageThreadId { get; set; } + /// + /// Message thread identifier, unique within the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_thread_id")] + public long MessageThreadId { get; set; } - /// - /// Information about the message thread; may be null for forum topic threads - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_info")] - public MessageReplyInfo ReplyInfo { get; set; } + /// + /// Information about the message thread; may be null for forum topic threads + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_info")] + public MessageReplyInfo ReplyInfo { get; set; } - /// - /// Approximate number of unread messages in the message thread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_message_count")] - public int UnreadMessageCount { get; set; } + /// + /// Approximate number of unread messages in the message thread + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_message_count")] + public int UnreadMessageCount { get; set; } - /// - /// The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public Message[] Messages { get; set; } + /// + /// The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message_id) + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public Message[] Messages { get; set; } - /// - /// A draft of a message in the message thread; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } - } + /// + /// A draft of a message in the message thread; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageTonConnectRequest.cs b/TdLib.Api/Objects/MessageTonConnectRequest.cs new file mode 100644 index 00000000..44049560 --- /dev/null +++ b/TdLib.Api/Objects/MessageTonConnectRequest.cs @@ -0,0 +1,68 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class MessageContent : Object + { + /// + /// A request from a dApp was received through TON Connect + /// + public class MessageTonConnectRequest : MessageContent + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageTonConnectRequest"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the TON Connect session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + + /// + /// State of the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public TonConnectRequestState State { get; set; } + + /// + /// Name of the dApp; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dapp_name")] + public string DappName { get; set; } + + /// + /// Topic of the request; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic")] + public string Topic { get; set; } + + /// + /// Identifier to trace the request; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("trace_id")] + public string TraceId { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageTonWalletTransfer.cs b/TdLib.Api/Objects/MessageTonWalletTransfer.cs new file mode 100644 index 00000000..3688089b --- /dev/null +++ b/TdLib.Api/Objects/MessageTonWalletTransfer.cs @@ -0,0 +1,75 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class MessageContent : Object + { + /// + /// Represents a transfer with the TON wallet of the current user + /// + public class MessageTonWalletTransfer : MessageContent + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageTonWalletTransfer"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Sender of the transfer; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } + + /// + /// Unique identifier of the transaction; may be empty if the transfer isn't send yet. Use getTonWalletTransaction to get additional information about the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction_id")] + public string TransactionId { get; set; } + + /// + /// Address in the TON blockchain of the transaction peer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("peer_address")] + public string PeerAddress { get; set; } + + /// + /// The amount of received cryptocurrency, in the smallest units of the cryptocurrency; negative for outgoing transactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } + + /// + /// Comment added to the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + + /// + /// True, if the comment is encrypted and must be decrypted using the receiver's or sender's private key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_comment_encrypted")] + public bool IsCommentEncrypted { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageTopicDirectMessages.cs b/TdLib.Api/Objects/MessageTopicDirectMessages.cs index cde23153..9807818e 100644 --- a/TdLib.Api/Objects/MessageTopicDirectMessages.cs +++ b/TdLib.Api/Objects/MessageTopicDirectMessages.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageTopic : Object { - public partial class MessageTopic : Object + /// + /// A topic in a channel direct messages chat administered by the current user + /// + public class MessageTopicDirectMessages : MessageTopic { /// - /// A topic in a channel direct messages chat administered by the current user + /// Data type for serialization /// - public class MessageTopicDirectMessages : MessageTopic - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageTopicDirectMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageTopicDirectMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("direct_messages_chat_topic_id")] - public long DirectMessagesChatTopicId { get; set; } - } + /// + /// Unique identifier of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("direct_messages_chat_topic_id")] + public long DirectMessagesChatTopicId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageTopicForum.cs b/TdLib.Api/Objects/MessageTopicForum.cs index c43381b1..fffd7606 100644 --- a/TdLib.Api/Objects/MessageTopicForum.cs +++ b/TdLib.Api/Objects/MessageTopicForum.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageTopic : Object { - public partial class MessageTopic : Object + /// + /// A topic in a forum supergroup chat or a chat with a bot + /// + public class MessageTopicForum : MessageTopic { /// - /// A topic in a forum supergroup chat or a chat with a bot + /// Data type for serialization /// - public class MessageTopicForum : MessageTopic - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageTopicForum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageTopicForum"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the forum topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } - } + /// + /// Unique identifier of the forum topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageTopicSavedMessages.cs b/TdLib.Api/Objects/MessageTopicSavedMessages.cs index 47970cec..8c9aeb9e 100644 --- a/TdLib.Api/Objects/MessageTopicSavedMessages.cs +++ b/TdLib.Api/Objects/MessageTopicSavedMessages.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageTopic : Object { - public partial class MessageTopic : Object + /// + /// A topic in Saved Messages chat + /// + public class MessageTopicSavedMessages : MessageTopic { /// - /// A topic in Saved Messages chat + /// Data type for serialization /// - public class MessageTopicSavedMessages : MessageTopic - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageTopicSavedMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageTopicSavedMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the Saved Messages topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } - } + /// + /// Unique identifier of the Saved Messages topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageTopicThread.cs b/TdLib.Api/Objects/MessageTopicThread.cs index 10ec8d29..009d0279 100644 --- a/TdLib.Api/Objects/MessageTopicThread.cs +++ b/TdLib.Api/Objects/MessageTopicThread.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageTopic : Object { - public partial class MessageTopic : Object + /// + /// Describes a topic of messages in a chat + /// + public class MessageTopicThread : MessageTopic { /// - /// Describes a topic of messages in a chat + /// Data type for serialization /// - public class MessageTopicThread : MessageTopic - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageTopicThread"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageTopicThread"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the message thread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_thread_id")] - public long MessageThreadId { get; set; } - } + /// + /// Unique identifier of the message thread + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_thread_id")] + public long MessageThreadId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageUnsupported.cs b/TdLib.Api/Objects/MessageUnsupported.cs index a7f2ac9e..96e74bff 100644 --- a/TdLib.Api/Objects/MessageUnsupported.cs +++ b/TdLib.Api/Objects/MessageUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message content that is not supported in the current TDLib version + /// + public class MessageUnsupported : MessageContent { /// - /// A message content that is not supported in the current TDLib version + /// Data type for serialization /// - public class MessageUnsupported : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/MessageUpgradedGift.cs b/TdLib.Api/Objects/MessageUpgradedGift.cs index 32e604ba..6d22e177 100644 --- a/TdLib.Api/Objects/MessageUpgradedGift.cs +++ b/TdLib.Api/Objects/MessageUpgradedGift.cs @@ -2,144 +2,143 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift + /// + public class MessageUpgradedGift : MessageContent { /// - /// An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift - /// - public class MessageUpgradedGift : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageUpgradedGift"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - - /// - /// Sender of the gift; may be null for anonymous gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - - /// - /// Receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_id")] - public MessageSender ReceiverId { get; set; } - - /// - /// Origin of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("origin")] - public UpgradedGiftOrigin Origin { get; set; } - - /// - /// Unique identifier of the received gift for the current user; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - - /// - /// Message added to the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - - /// - /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_private")] - public bool IsPrivate { get; set; } - - /// - /// True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_saved")] - public bool IsSaved { get; set; } - - /// - /// True, if the gift can be transferred to another owner; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_transferred")] - public bool CanBeTransferred { get; set; } - - /// - /// True, if the gift has already been transferred to another owner; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_transferred")] - public bool WasTransferred { get; set; } - - /// - /// Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transfer_star_count")] - public long TransferStarCount { get; set; } - - /// - /// Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("drop_original_details_star_count")] - public long DropOriginalDetailsStarCount { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_transfer_date")] - public int NextTransferDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_resale_date")] - public int NextResaleDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("export_date")] - public int ExportDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("craft_date")] - public int CraftDate { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageUpgradedGift"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } + + /// + /// Sender of the gift; may be null for anonymous gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + + /// + /// Receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_id")] + public MessageSender ReceiverId { get; set; } + + /// + /// Origin of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("origin")] + public UpgradedGiftOrigin Origin { get; set; } + + /// + /// Unique identifier of the received gift for the current user; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } + + /// + /// Message added to the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + + /// + /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_private")] + public bool IsPrivate { get; set; } + + /// + /// True, if the gift is displayed on the user's or the channel's profile page; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_saved")] + public bool IsSaved { get; set; } + + /// + /// True, if the gift can be transferred to another owner; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_transferred")] + public bool CanBeTransferred { get; set; } + + /// + /// True, if the gift has already been transferred to another owner; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_transferred")] + public bool WasTransferred { get; set; } + + /// + /// Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transfer_star_count")] + public long TransferStarCount { get; set; } + + /// + /// Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("drop_original_details_star_count")] + public long DropOriginalDetailsStarCount { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_transfer_date")] + public int NextTransferDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_resale_date")] + public int NextResaleDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("export_date")] + public int ExportDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("craft_date")] + public int CraftDate { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOffer.cs b/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOffer.cs index f9a4020b..786bfe89 100644 --- a/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOffer.cs +++ b/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOffer.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// An offer to purchase an upgraded gift was sent or received + /// + public class MessageUpgradedGiftPurchaseOffer : MessageContent { /// - /// An offer to purchase an upgraded gift was sent or received + /// Data type for serialization /// - public class MessageUpgradedGiftPurchaseOffer : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageUpgradedGiftPurchaseOffer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageUpgradedGiftPurchaseOffer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// State of the offer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public GiftPurchaseOfferState State { get; set; } + /// + /// State of the offer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public GiftPurchaseOfferState State { get; set; } - /// - /// The proposed price - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } + /// + /// The proposed price + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } - /// - /// Point in time (Unix timestamp) when the offer will expire or has expired - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the offer will expire or has expired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOfferRejected.cs b/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOfferRejected.cs index 6135767e..7a253a0c 100644 --- a/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOfferRejected.cs +++ b/TdLib.Api/Objects/MessageUpgradedGiftPurchaseOfferRejected.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// An offer to purchase a gift was rejected or expired + /// + public class MessageUpgradedGiftPurchaseOfferRejected : MessageContent { /// - /// An offer to purchase a gift was rejected or expired + /// Data type for serialization /// - public class MessageUpgradedGiftPurchaseOfferRejected : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageUpgradedGiftPurchaseOfferRejected"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageUpgradedGiftPurchaseOfferRejected"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// The proposed price - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } + /// + /// The proposed price + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } - /// - /// Identifier of the message with purchase offer which was rejected or expired; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offer_message_id")] - public long OfferMessageId { get; set; } + /// + /// Identifier of the message with purchase offer which was rejected or expired; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offer_message_id")] + public long OfferMessageId { get; set; } - /// - /// True, if the offer has expired; otherwise, the offer was explicitly rejected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_expired")] - public bool WasExpired { get; set; } - } + /// + /// True, if the offer has expired; otherwise, the offer was explicitly rejected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_expired")] + public bool WasExpired { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageUsersShared.cs b/TdLib.Api/Objects/MessageUsersShared.cs index 4873cf91..dcd8585c 100644 --- a/TdLib.Api/Objects/MessageUsersShared.cs +++ b/TdLib.Api/Objects/MessageUsersShared.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// The current user shared users who were requested by the bot + /// + public class MessageUsersShared : MessageContent { /// - /// The current user shared users who were requested by the bot + /// Data type for serialization /// - public class MessageUsersShared : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageUsersShared"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageUsersShared"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The shared users - /// - [JsonProperty("users", ItemConverterType = typeof(Converter))] - public SharedUser[] Users { get; set; } + /// + /// The shared users + /// + [JsonProperty("users", ItemConverterType = typeof(Converter))] + public SharedUser[] Users { get; set; } - /// - /// Identifier of the keyboard button with the request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_id")] - public int ButtonId { get; set; } - } + /// + /// Identifier of the keyboard button with the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_id")] + public int ButtonId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageVenue.cs b/TdLib.Api/Objects/MessageVenue.cs index 205667d2..00a9f3c5 100644 --- a/TdLib.Api/Objects/MessageVenue.cs +++ b/TdLib.Api/Objects/MessageVenue.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with information about a venue + /// + public class MessageVenue : MessageContent { /// - /// A message with information about a venue + /// Data type for serialization /// - public class MessageVenue : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The venue description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue")] - public Venue Venue { get; set; } - } + /// + /// The venue description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue")] + public Venue Venue { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageVideo.cs b/TdLib.Api/Objects/MessageVideo.cs index 18eebe4c..682de3bd 100644 --- a/TdLib.Api/Objects/MessageVideo.cs +++ b/TdLib.Api/Objects/MessageVideo.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A video message + /// + public class MessageVideo : MessageContent { /// - /// A video message + /// Data type for serialization /// - public class MessageVideo : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// The video description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Alternative qualities of the video - /// - [JsonProperty("alternative_videos", ItemConverterType = typeof(Converter))] - public AlternativeVideo[] AlternativeVideos { get; set; } + /// + /// Alternative qualities of the video + /// + [JsonProperty("alternative_videos", ItemConverterType = typeof(Converter))] + public AlternativeVideo[] AlternativeVideos { get; set; } - /// - /// Available storyboards for the video - /// - [JsonProperty("storyboards", ItemConverterType = typeof(Converter))] - public VideoStoryboard[] Storyboards { get; set; } + /// + /// Available storyboards for the video + /// + [JsonProperty("storyboards", ItemConverterType = typeof(Converter))] + public VideoStoryboard[] Storyboards { get; set; } - /// - /// Cover of the video; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover")] - public Photo Cover { get; set; } + /// + /// Cover of the video; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover")] + public Photo Cover { get; set; } - /// - /// Timestamp from which the video playing must start, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_timestamp")] - public int StartTimestamp { get; set; } + /// + /// Timestamp from which the video playing must start, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_timestamp")] + public int StartTimestamp { get; set; } - /// - /// Video caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Video caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if the caption must be shown above the video; otherwise, the caption must be shown below the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_caption_above_media")] - public bool ShowCaptionAboveMedia { get; set; } + /// + /// True, if the caption must be shown above the video; otherwise, the caption must be shown below the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_caption_above_media")] + public bool ShowCaptionAboveMedia { get; set; } - /// - /// True, if the video preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } + /// + /// True, if the video preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } - /// - /// True, if the video thumbnail must be blurred and the video must be shown only while tapped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_secret")] - public bool IsSecret { get; set; } - } + /// + /// True, if the video thumbnail must be blurred and the video must be shown only while tapped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_secret")] + public bool IsSecret { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageVideoChatEnded.cs b/TdLib.Api/Objects/MessageVideoChatEnded.cs index 8f4b4817..a6eee5fe 100644 --- a/TdLib.Api/Objects/MessageVideoChatEnded.cs +++ b/TdLib.Api/Objects/MessageVideoChatEnded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A message with information about an ended video chat + /// + public class MessageVideoChatEnded : MessageContent { /// - /// A message with information about an ended video chat + /// Data type for serialization /// - public class MessageVideoChatEnded : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageVideoChatEnded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageVideoChatEnded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Call duration, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } - } + /// + /// Call duration, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageVideoChatScheduled.cs b/TdLib.Api/Objects/MessageVideoChatScheduled.cs index 3925a69f..8944c6da 100644 --- a/TdLib.Api/Objects/MessageVideoChatScheduled.cs +++ b/TdLib.Api/Objects/MessageVideoChatScheduled.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A new video chat was scheduled + /// + public class MessageVideoChatScheduled : MessageContent { /// - /// A new video chat was scheduled + /// Data type for serialization /// - public class MessageVideoChatScheduled : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageVideoChatScheduled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageVideoChatScheduled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the video chat. The video chat can be received through the method getGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the video chat. The video chat can be received through the method getGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Point in time (Unix timestamp) when the group call is expected to be started by an administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_date")] - public int StartDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the group call is expected to be started by an administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_date")] + public int StartDate { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageVideoChatStarted.cs b/TdLib.Api/Objects/MessageVideoChatStarted.cs index 5552df75..9a330a1c 100644 --- a/TdLib.Api/Objects/MessageVideoChatStarted.cs +++ b/TdLib.Api/Objects/MessageVideoChatStarted.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A newly created video chat + /// + public class MessageVideoChatStarted : MessageContent { /// - /// A newly created video chat + /// Data type for serialization /// - public class MessageVideoChatStarted : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageVideoChatStarted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageVideoChatStarted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the video chat. The video chat can be received through the method getGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } - } + /// + /// Identifier of the video chat. The video chat can be received through the method getGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageVideoNote.cs b/TdLib.Api/Objects/MessageVideoNote.cs index f7589b03..c86e8d04 100644 --- a/TdLib.Api/Objects/MessageVideoNote.cs +++ b/TdLib.Api/Objects/MessageVideoNote.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A video note message + /// + public class MessageVideoNote : MessageContent { /// - /// A video note message + /// Data type for serialization /// - public class MessageVideoNote : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video note description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_note")] - public VideoNote VideoNote { get; set; } + /// + /// The video note description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_note")] + public VideoNote VideoNote { get; set; } - /// - /// True, if at least one of the recipients has viewed the video note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_viewed")] - public bool IsViewed { get; set; } + /// + /// True, if at least one of the recipients has viewed the video note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_viewed")] + public bool IsViewed { get; set; } - /// - /// True, if the video note thumbnail must be blurred and the video note must be shown only while tapped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_secret")] - public bool IsSecret { get; set; } - } + /// + /// True, if the video note thumbnail must be blurred and the video note must be shown only while tapped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_secret")] + public bool IsSecret { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageViewer.cs b/TdLib.Api/Objects/MessageViewer.cs index 3607dfc0..e0cddf22 100644 --- a/TdLib.Api/Objects/MessageViewer.cs +++ b/TdLib.Api/Objects/MessageViewer.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a viewer of a message /// - public static partial class TdApi + public partial class MessageViewer : Object { /// - /// Represents a viewer of a message + /// Data type for serialization /// - public partial class MessageViewer : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageViewer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageViewer"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the viewer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier of the viewer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Approximate point in time (Unix timestamp) when the message was viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_date")] - public int ViewDate { get; set; } - } + /// + /// Approximate point in time (Unix timestamp) when the message was viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_date")] + public int ViewDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageViewers.cs b/TdLib.Api/Objects/MessageViewers.cs index ff041f1a..6a65687e 100644 --- a/TdLib.Api/Objects/MessageViewers.cs +++ b/TdLib.Api/Objects/MessageViewers.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of message viewers /// - public static partial class TdApi + public partial class MessageViewers : Object { /// - /// Represents a list of message viewers + /// Data type for serialization /// - public partial class MessageViewers : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageViewers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageViewers"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of message viewers - /// - [JsonProperty("viewers", ItemConverterType = typeof(Converter))] - public MessageViewer[] Viewers { get; set; } - } + /// + /// List of message viewers + /// + [JsonProperty("viewers", ItemConverterType = typeof(Converter))] + public MessageViewer[] Viewers { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/MessageVoiceNote.cs b/TdLib.Api/Objects/MessageVoiceNote.cs index b9cb3a1d..7912f031 100644 --- a/TdLib.Api/Objects/MessageVoiceNote.cs +++ b/TdLib.Api/Objects/MessageVoiceNote.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// A voice note message + /// + public class MessageVoiceNote : MessageContent { /// - /// A voice note message + /// Data type for serialization /// - public class MessageVoiceNote : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The voice note description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public VoiceNote VoiceNote { get; set; } + /// + /// The voice note description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public VoiceNote VoiceNote { get; set; } - /// - /// Voice note caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } + /// + /// Voice note caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } - /// - /// True, if at least one of the recipients has listened to the voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_listened")] - public bool IsListened { get; set; } - } + /// + /// True, if at least one of the recipients has listened to the voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_listened")] + public bool IsListened { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageWebAppDataReceived.cs b/TdLib.Api/Objects/MessageWebAppDataReceived.cs index a16f6765..0cbe4c20 100644 --- a/TdLib.Api/Objects/MessageWebAppDataReceived.cs +++ b/TdLib.Api/Objects/MessageWebAppDataReceived.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Data from a Web App has been received; for bots only + /// + public class MessageWebAppDataReceived : MessageContent { /// - /// Data from a Web App has been received; for bots only + /// Data type for serialization /// - public class MessageWebAppDataReceived : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageWebAppDataReceived"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageWebAppDataReceived"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the keyboardButtonTypeWebApp button, which opened the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_text")] - public string ButtonText { get; set; } + /// + /// Text of the keyboardButtonTypeWebApp button, which opened the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_text")] + public string ButtonText { get; set; } - /// - /// The data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } - } + /// + /// The data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } } } } diff --git a/TdLib.Api/Objects/MessageWebAppDataSent.cs b/TdLib.Api/Objects/MessageWebAppDataSent.cs index a8c54dd7..b9aea5aa 100644 --- a/TdLib.Api/Objects/MessageWebAppDataSent.cs +++ b/TdLib.Api/Objects/MessageWebAppDataSent.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class MessageContent : Object { - public partial class MessageContent : Object + /// + /// Data from a Web App has been sent to a bot + /// + public class MessageWebAppDataSent : MessageContent { /// - /// Data from a Web App has been sent to a bot + /// Data type for serialization /// - public class MessageWebAppDataSent : MessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messageWebAppDataSent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messageWebAppDataSent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the keyboardButtonTypeWebApp button, which opened the Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_text")] - public string ButtonText { get; set; } - } + /// + /// Text of the keyboardButtonTypeWebApp button, which opened the Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_text")] + public string ButtonText { get; set; } } } } diff --git a/TdLib.Api/Objects/Messages.cs b/TdLib.Api/Objects/Messages.cs index b53a26d9..1b155ed8 100644 --- a/TdLib.Api/Objects/Messages.cs +++ b/TdLib.Api/Objects/Messages.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of messages /// - public static partial class TdApi + public partial class Messages : Object { /// - /// Contains a list of messages + /// Data type for serialization /// - public partial class Messages : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "messages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "messages"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of messages found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of messages found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of messages; messages may be null - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public Message[] Messages_ { get; set; } - } + /// + /// List of messages; messages may be null + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public Message[] Messages_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Minithumbnail.cs b/TdLib.Api/Objects/Minithumbnail.cs index 39fda45a..e8b67d41 100644 --- a/TdLib.Api/Objects/Minithumbnail.cs +++ b/TdLib.Api/Objects/Minithumbnail.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Thumbnail image of a very poor quality and low resolution /// - public static partial class TdApi + public partial class Minithumbnail : Object { /// - /// Thumbnail image of a very poor quality and low resolution + /// Data type for serialization /// - public partial class Minithumbnail : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "minithumbnail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "minithumbnail"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Thumbnail width, usually doesn't exceed 40 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Thumbnail width, usually doesn't exceed 40 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Thumbnail height, usually doesn't exceed 40 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Thumbnail height, usually doesn't exceed 40 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// The thumbnail in JPEG format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// The thumbnail in JPEG format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/NetworkStatistics.cs b/TdLib.Api/Objects/NetworkStatistics.cs index 7ebf0e50..393d741a 100644 --- a/TdLib.Api/Objects/NetworkStatistics.cs +++ b/TdLib.Api/Objects/NetworkStatistics.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A full list of available network statistic entries /// - public static partial class TdApi + public partial class NetworkStatistics : Object { /// - /// A full list of available network statistic entries + /// Data type for serialization /// - public partial class NetworkStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) from which the statistics are collected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("since_date")] - public int SinceDate { get; set; } + /// + /// Point in time (Unix timestamp) from which the statistics are collected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("since_date")] + public int SinceDate { get; set; } - /// - /// Network statistics entries - /// - [JsonProperty("entries", ItemConverterType = typeof(Converter))] - public NetworkStatisticsEntry[] Entries { get; set; } - } + /// + /// Network statistics entries + /// + [JsonProperty("entries", ItemConverterType = typeof(Converter))] + public NetworkStatisticsEntry[] Entries { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/NetworkStatisticsEntryCall.cs b/TdLib.Api/Objects/NetworkStatisticsEntryCall.cs index 0c8d8cfe..430dcc4c 100644 --- a/TdLib.Api/Objects/NetworkStatisticsEntryCall.cs +++ b/TdLib.Api/Objects/NetworkStatisticsEntryCall.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NetworkStatisticsEntry : Object { - public partial class NetworkStatisticsEntry : Object + /// + /// Contains information about the total amount of data that was used for calls + /// + public class NetworkStatisticsEntryCall : NetworkStatisticsEntry { /// - /// Contains information about the total amount of data that was used for calls + /// Data type for serialization /// - public class NetworkStatisticsEntryCall : NetworkStatisticsEntry - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkStatisticsEntryCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkStatisticsEntryCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the network the data was sent through. Call setNetworkType to maintain the actual network type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("network_type")] - public NetworkType NetworkType { get; set; } + /// + /// Type of the network the data was sent through. Call setNetworkType to maintain the actual network type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("network_type")] + public NetworkType NetworkType { get; set; } - /// - /// Total number of bytes sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sent_bytes")] - public long SentBytes { get; set; } + /// + /// Total number of bytes sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sent_bytes")] + public long SentBytes { get; set; } - /// - /// Total number of bytes received - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_bytes")] - public long ReceivedBytes { get; set; } + /// + /// Total number of bytes received + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_bytes")] + public long ReceivedBytes { get; set; } - /// - /// Total call duration, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public double? Duration { get; set; } - } + /// + /// Total call duration, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public double? Duration { get; set; } } } } diff --git a/TdLib.Api/Objects/NetworkStatisticsEntryFile.cs b/TdLib.Api/Objects/NetworkStatisticsEntryFile.cs index c7cb55d0..e8ebed98 100644 --- a/TdLib.Api/Objects/NetworkStatisticsEntryFile.cs +++ b/TdLib.Api/Objects/NetworkStatisticsEntryFile.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NetworkStatisticsEntry : Object { - public partial class NetworkStatisticsEntry : Object + /// + /// Contains statistics about network usage + /// + public class NetworkStatisticsEntryFile : NetworkStatisticsEntry { /// - /// Contains statistics about network usage + /// Data type for serialization /// - public class NetworkStatisticsEntryFile : NetworkStatisticsEntry - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkStatisticsEntryFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkStatisticsEntryFile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the file the data is part of; pass null if the data isn't related to files - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_type")] - public FileType FileType { get; set; } + /// + /// Type of the file the data is part of; pass null if the data isn't related to files + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_type")] + public FileType FileType { get; set; } - /// - /// Type of the network the data was sent through. Call setNetworkType to maintain the actual network type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("network_type")] - public NetworkType NetworkType { get; set; } + /// + /// Type of the network the data was sent through. Call setNetworkType to maintain the actual network type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("network_type")] + public NetworkType NetworkType { get; set; } - /// - /// Total number of bytes sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sent_bytes")] - public long SentBytes { get; set; } + /// + /// Total number of bytes sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sent_bytes")] + public long SentBytes { get; set; } - /// - /// Total number of bytes received - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_bytes")] - public long ReceivedBytes { get; set; } - } + /// + /// Total number of bytes received + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_bytes")] + public long ReceivedBytes { get; set; } } } } diff --git a/TdLib.Api/Objects/NetworkTypeMobile.cs b/TdLib.Api/Objects/NetworkTypeMobile.cs index 177ff5ab..8aa090bc 100644 --- a/TdLib.Api/Objects/NetworkTypeMobile.cs +++ b/TdLib.Api/Objects/NetworkTypeMobile.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NetworkType : Object { - public partial class NetworkType : Object + /// + /// A mobile network + /// + public class NetworkTypeMobile : NetworkType { /// - /// A mobile network + /// Data type for serialization /// - public class NetworkTypeMobile : NetworkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkTypeMobile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkTypeMobile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NetworkTypeMobileRoaming.cs b/TdLib.Api/Objects/NetworkTypeMobileRoaming.cs index b2e5635c..575749e3 100644 --- a/TdLib.Api/Objects/NetworkTypeMobileRoaming.cs +++ b/TdLib.Api/Objects/NetworkTypeMobileRoaming.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NetworkType : Object { - public partial class NetworkType : Object + /// + /// A mobile roaming network + /// + public class NetworkTypeMobileRoaming : NetworkType { /// - /// A mobile roaming network + /// Data type for serialization /// - public class NetworkTypeMobileRoaming : NetworkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkTypeMobileRoaming"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkTypeMobileRoaming"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NetworkTypeNone.cs b/TdLib.Api/Objects/NetworkTypeNone.cs index d6b82dbb..e3889036 100644 --- a/TdLib.Api/Objects/NetworkTypeNone.cs +++ b/TdLib.Api/Objects/NetworkTypeNone.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NetworkType : Object { - public partial class NetworkType : Object + /// + /// Represents the type of network + /// + public class NetworkTypeNone : NetworkType { /// - /// Represents the type of network + /// Data type for serialization /// - public class NetworkTypeNone : NetworkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkTypeNone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkTypeNone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NetworkTypeOther.cs b/TdLib.Api/Objects/NetworkTypeOther.cs index ae38cb67..ba71e580 100644 --- a/TdLib.Api/Objects/NetworkTypeOther.cs +++ b/TdLib.Api/Objects/NetworkTypeOther.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NetworkType : Object { - public partial class NetworkType : Object + /// + /// A different network type (e.g., Ethernet network) + /// + public class NetworkTypeOther : NetworkType { /// - /// A different network type (e.g., Ethernet network) + /// Data type for serialization /// - public class NetworkTypeOther : NetworkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkTypeOther"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkTypeOther"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NetworkTypeWiFi.cs b/TdLib.Api/Objects/NetworkTypeWiFi.cs index 92538a67..34a19bab 100644 --- a/TdLib.Api/Objects/NetworkTypeWiFi.cs +++ b/TdLib.Api/Objects/NetworkTypeWiFi.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NetworkType : Object { - public partial class NetworkType : Object + /// + /// A Wi-Fi network + /// + public class NetworkTypeWiFi : NetworkType { /// - /// A Wi-Fi network + /// Data type for serialization /// - public class NetworkTypeWiFi : NetworkType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "networkTypeWiFi"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "networkTypeWiFi"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NewChatPrivacySettings.cs b/TdLib.Api/Objects/NewChatPrivacySettings.cs index 6958cd8a..a4ac58bf 100644 --- a/TdLib.Api/Objects/NewChatPrivacySettings.cs +++ b/TdLib.Api/Objects/NewChatPrivacySettings.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains privacy settings for chats with non-contacts /// - public static partial class TdApi + public partial class NewChatPrivacySettings : Object { /// - /// Contains privacy settings for chats with non-contacts + /// Data type for serialization /// - public partial class NewChatPrivacySettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "newChatPrivacySettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "newChatPrivacySettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_new_chats_from_unknown_users")] - public bool AllowNewChatsFromUnknownUsers { get; set; } + /// + /// True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_new_chats_from_unknown_users")] + public bool AllowNewChatsFromUnknownUsers { get; set; } - /// - /// Number of Telegram Stars that must be paid for every incoming private message by non-contacts; 0-getOption("paid_message_star_count_max"). - /// If positive, then allow_new_chats_from_unknown_users must be true. The current user will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending. - /// Can be positive, only if getOption("can_enable_paid_messages") is true - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("incoming_paid_message_star_count")] - public long IncomingPaidMessageStarCount { get; set; } - } + /// + /// Number of Telegram Stars that must be paid for every incoming private message by non-contacts; 0-getOption("paid_message_star_count_max"). + /// If positive, then allow_new_chats_from_unknown_users must be true. The current user will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending. + /// Can be positive, only if getOption("can_enable_paid_messages") is true + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("incoming_paid_message_star_count")] + public long IncomingPaidMessageStarCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/NewSticker.cs b/TdLib.Api/Objects/NewSticker.cs index 34af7d34..9e7451e5 100644 --- a/TdLib.Api/Objects/NewSticker.cs +++ b/TdLib.Api/Objects/NewSticker.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A sticker to be added to a sticker set /// - public static partial class TdApi + public partial class NewSticker : Object { /// - /// A sticker to be added to a sticker set + /// Data type for serialization /// - public partial class NewSticker : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "newSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "newSticker"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public InputFile Sticker { get; set; } + /// + /// File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public InputFile Sticker { get; set; } - /// - /// Format of the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("format")] - public StickerFormat Format { get; set; } + /// + /// Format of the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("format")] + public StickerFormat Format { get; set; } - /// - /// String with 1-20 emoji corresponding to the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emojis")] - public string Emojis { get; set; } + /// + /// String with 1-20 emoji corresponding to the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emojis")] + public string Emojis { get; set; } - /// - /// Position where the mask is placed; pass null if not specified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mask_position")] - public MaskPosition MaskPosition { get; set; } + /// + /// Position where the mask is placed; pass null if not specified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mask_position")] + public MaskPosition MaskPosition { get; set; } - /// - /// List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker - /// - [JsonProperty("keywords", ItemConverterType = typeof(Converter))] - public string[] Keywords { get; set; } - } + /// + /// List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker + /// + [JsonProperty("keywords", ItemConverterType = typeof(Converter))] + public string[] Keywords { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Notification.cs b/TdLib.Api/Objects/Notification.cs index 47c38914..7add8ff9 100644 --- a/TdLib.Api/Objects/Notification.cs +++ b/TdLib.Api/Objects/Notification.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a notification /// - public static partial class TdApi + public partial class Notification : Object { /// - /// Contains information about a notification + /// Data type for serialization /// - public partial class Notification : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notification"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique persistent identifier of this notification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique persistent identifier of this notification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Notification date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Notification date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// True, if the notification was explicitly sent without sound - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_silent")] - public bool IsSilent { get; set; } + /// + /// True, if the notification was explicitly sent without sound + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_silent")] + public bool IsSilent { get; set; } - /// - /// Notification type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public NotificationType Type { get; set; } - } + /// + /// Notification type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public NotificationType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/NotificationGroup.cs b/TdLib.Api/Objects/NotificationGroup.cs index 5cb0aca6..15ac88db 100644 --- a/TdLib.Api/Objects/NotificationGroup.cs +++ b/TdLib.Api/Objects/NotificationGroup.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a group of notifications /// - public static partial class TdApi + public partial class NotificationGroup : Object { /// - /// Describes a group of notifications + /// Data type for serialization /// - public partial class NotificationGroup : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationGroup"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique persistent auto-incremented from 1 identifier of the notification group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique persistent auto-incremented from 1 identifier of the notification group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Type of the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public NotificationGroupType Type { get; set; } + /// + /// Type of the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public NotificationGroupType Type { get; set; } - /// - /// Identifier of a chat to which all notifications in the group belong - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of a chat to which all notifications in the group belong + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Total number of active notifications in the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of active notifications in the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The list of active notifications - /// - [JsonProperty("notifications", ItemConverterType = typeof(Converter))] - public Notification[] Notifications { get; set; } - } + /// + /// The list of active notifications + /// + [JsonProperty("notifications", ItemConverterType = typeof(Converter))] + public Notification[] Notifications { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/NotificationGroupTypeCalls.cs b/TdLib.Api/Objects/NotificationGroupTypeCalls.cs index a6d694f5..c5eb1466 100644 --- a/TdLib.Api/Objects/NotificationGroupTypeCalls.cs +++ b/TdLib.Api/Objects/NotificationGroupTypeCalls.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationGroupType : Object { - public partial class NotificationGroupType : Object + /// + /// A group containing notifications of type notificationTypeNewCall + /// + public class NotificationGroupTypeCalls : NotificationGroupType { /// - /// A group containing notifications of type notificationTypeNewCall + /// Data type for serialization /// - public class NotificationGroupTypeCalls : NotificationGroupType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationGroupTypeCalls"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationGroupTypeCalls"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NotificationGroupTypeMentions.cs b/TdLib.Api/Objects/NotificationGroupTypeMentions.cs index d5f33534..a999172a 100644 --- a/TdLib.Api/Objects/NotificationGroupTypeMentions.cs +++ b/TdLib.Api/Objects/NotificationGroupTypeMentions.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationGroupType : Object { - public partial class NotificationGroupType : Object + /// + /// A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread mentions of the current user, replies to their messages, or a pinned message + /// + public class NotificationGroupTypeMentions : NotificationGroupType { /// - /// A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread mentions of the current user, replies to their messages, or a pinned message + /// Data type for serialization /// - public class NotificationGroupTypeMentions : NotificationGroupType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationGroupTypeMentions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationGroupTypeMentions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NotificationGroupTypeMessages.cs b/TdLib.Api/Objects/NotificationGroupTypeMessages.cs index 0075b8c4..e94a1ef8 100644 --- a/TdLib.Api/Objects/NotificationGroupTypeMessages.cs +++ b/TdLib.Api/Objects/NotificationGroupTypeMessages.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationGroupType : Object { - public partial class NotificationGroupType : Object + /// + /// Describes the type of notifications in a notification group + /// + public class NotificationGroupTypeMessages : NotificationGroupType { /// - /// Describes the type of notifications in a notification group + /// Data type for serialization /// - public class NotificationGroupTypeMessages : NotificationGroupType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationGroupTypeMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationGroupTypeMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NotificationGroupTypeSecretChat.cs b/TdLib.Api/Objects/NotificationGroupTypeSecretChat.cs index 503af3a1..43ebb4f4 100644 --- a/TdLib.Api/Objects/NotificationGroupTypeSecretChat.cs +++ b/TdLib.Api/Objects/NotificationGroupTypeSecretChat.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationGroupType : Object { - public partial class NotificationGroupType : Object + /// + /// A group containing a notification of type notificationTypeNewSecretChat + /// + public class NotificationGroupTypeSecretChat : NotificationGroupType { /// - /// A group containing a notification of type notificationTypeNewSecretChat + /// Data type for serialization /// - public class NotificationGroupTypeSecretChat : NotificationGroupType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationGroupTypeSecretChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationGroupTypeSecretChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NotificationSettingsScopeChannelChats.cs b/TdLib.Api/Objects/NotificationSettingsScopeChannelChats.cs index f8babeaf..34c104c0 100644 --- a/TdLib.Api/Objects/NotificationSettingsScopeChannelChats.cs +++ b/TdLib.Api/Objects/NotificationSettingsScopeChannelChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationSettingsScope : Object { - public partial class NotificationSettingsScope : Object + /// + /// Notification settings applied to all channel chats when the corresponding chat setting has a default value + /// + public class NotificationSettingsScopeChannelChats : NotificationSettingsScope { /// - /// Notification settings applied to all channel chats when the corresponding chat setting has a default value + /// Data type for serialization /// - public class NotificationSettingsScopeChannelChats : NotificationSettingsScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationSettingsScopeChannelChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationSettingsScopeChannelChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NotificationSettingsScopeGroupChats.cs b/TdLib.Api/Objects/NotificationSettingsScopeGroupChats.cs index eed77a36..809aee1c 100644 --- a/TdLib.Api/Objects/NotificationSettingsScopeGroupChats.cs +++ b/TdLib.Api/Objects/NotificationSettingsScopeGroupChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationSettingsScope : Object { - public partial class NotificationSettingsScope : Object + /// + /// Notification settings applied to all basic group and supergroup chats when the corresponding chat setting has a default value + /// + public class NotificationSettingsScopeGroupChats : NotificationSettingsScope { /// - /// Notification settings applied to all basic group and supergroup chats when the corresponding chat setting has a default value + /// Data type for serialization /// - public class NotificationSettingsScopeGroupChats : NotificationSettingsScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationSettingsScopeGroupChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationSettingsScopeGroupChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NotificationSettingsScopePrivateChats.cs b/TdLib.Api/Objects/NotificationSettingsScopePrivateChats.cs index 897fa071..51b38adf 100644 --- a/TdLib.Api/Objects/NotificationSettingsScopePrivateChats.cs +++ b/TdLib.Api/Objects/NotificationSettingsScopePrivateChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationSettingsScope : Object { - public partial class NotificationSettingsScope : Object + /// + /// Describes the types of chats to which notification settings are relevant + /// + public class NotificationSettingsScopePrivateChats : NotificationSettingsScope { /// - /// Describes the types of chats to which notification settings are relevant + /// Data type for serialization /// - public class NotificationSettingsScopePrivateChats : NotificationSettingsScope - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationSettingsScopePrivateChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationSettingsScopePrivateChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/NotificationSound.cs b/TdLib.Api/Objects/NotificationSound.cs index 4b345e7b..5e80546d 100644 --- a/TdLib.Api/Objects/NotificationSound.cs +++ b/TdLib.Api/Objects/NotificationSound.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a notification sound in MP3 format /// - public static partial class TdApi + public partial class NotificationSound : Object { /// - /// Describes a notification sound in MP3 format + /// Data type for serialization /// - public partial class NotificationSound : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationSound"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationSound"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the notification sound - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique identifier of the notification sound + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Duration of the sound, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the sound, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Point in time (Unix timestamp) when the sound was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the sound was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Title of the notification sound - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the notification sound + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Arbitrary data, defined while the sound was uploaded - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } + /// + /// Arbitrary data, defined while the sound was uploaded + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } - /// - /// File containing the sound - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sound")] - public File Sound { get; set; } - } + /// + /// File containing the sound + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sound")] + public File Sound { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/NotificationSounds.cs b/TdLib.Api/Objects/NotificationSounds.cs index d63a6f34..c9b40380 100644 --- a/TdLib.Api/Objects/NotificationSounds.cs +++ b/TdLib.Api/Objects/NotificationSounds.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of notification sounds /// - public static partial class TdApi + public partial class NotificationSounds : Object { /// - /// Contains a list of notification sounds + /// Data type for serialization /// - public partial class NotificationSounds : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationSounds"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationSounds"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of notification sounds - /// - [JsonProperty("notification_sounds", ItemConverterType = typeof(Converter))] - public NotificationSound[] NotificationSounds_ { get; set; } - } + /// + /// A list of notification sounds + /// + [JsonProperty("notification_sounds", ItemConverterType = typeof(Converter))] + public NotificationSound[] NotificationSounds_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/NotificationTypeNewCall.cs b/TdLib.Api/Objects/NotificationTypeNewCall.cs index d766ea8d..9ec70236 100644 --- a/TdLib.Api/Objects/NotificationTypeNewCall.cs +++ b/TdLib.Api/Objects/NotificationTypeNewCall.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationType : Object { - public partial class NotificationType : Object + /// + /// New call was received + /// + public class NotificationTypeNewCall : NotificationType { /// - /// New call was received + /// Data type for serialization /// - public class NotificationTypeNewCall : NotificationType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationTypeNewCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationTypeNewCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public int CallId { get; set; } - } + /// + /// Call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public int CallId { get; set; } } } } diff --git a/TdLib.Api/Objects/NotificationTypeNewMessage.cs b/TdLib.Api/Objects/NotificationTypeNewMessage.cs index 3efe23b5..bf1ea63a 100644 --- a/TdLib.Api/Objects/NotificationTypeNewMessage.cs +++ b/TdLib.Api/Objects/NotificationTypeNewMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationType : Object { - public partial class NotificationType : Object + /// + /// Contains detailed information about a notification + /// + public class NotificationTypeNewMessage : NotificationType { /// - /// Contains detailed information about a notification + /// Data type for serialization /// - public class NotificationTypeNewMessage : NotificationType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationTypeNewMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationTypeNewMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// The message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// True, if message content must be displayed in notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_preview")] - public bool ShowPreview { get; set; } - } + /// + /// True, if message content must be displayed in notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_preview")] + public bool ShowPreview { get; set; } } } } diff --git a/TdLib.Api/Objects/NotificationTypeNewPushMessage.cs b/TdLib.Api/Objects/NotificationTypeNewPushMessage.cs index 40ef2fc4..81ca6111 100644 --- a/TdLib.Api/Objects/NotificationTypeNewPushMessage.cs +++ b/TdLib.Api/Objects/NotificationTypeNewPushMessage.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationType : Object { - public partial class NotificationType : Object + /// + /// New message was received through a push notification + /// + public class NotificationTypeNewPushMessage : NotificationType { /// - /// New message was received through a push notification + /// Data type for serialization /// - public class NotificationTypeNewPushMessage : NotificationType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationTypeNewPushMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationTypeNewPushMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message identifier. The message will not be available in the chat history, but the identifier can be used in viewMessages, or as a message to be replied in the same chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The message identifier. The message will not be available in the chat history, but the identifier can be used in viewMessages, or as a message to be replied in the same chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Identifier of the sender of the message. Corresponding user or chat may be inaccessible - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender of the message. Corresponding user or chat may be inaccessible + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Name of the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_name")] - public string SenderName { get; set; } + /// + /// Name of the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_name")] + public string SenderName { get; set; } - /// - /// True, if the message is outgoing - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_outgoing")] - public bool IsOutgoing { get; set; } + /// + /// True, if the message is outgoing + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outgoing")] + public bool IsOutgoing { get; set; } - /// - /// Push message content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public PushMessageContent Content { get; set; } - } + /// + /// Push message content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public PushMessageContent Content { get; set; } } } } diff --git a/TdLib.Api/Objects/NotificationTypeNewSecretChat.cs b/TdLib.Api/Objects/NotificationTypeNewSecretChat.cs index ee552d60..7d3efcb0 100644 --- a/TdLib.Api/Objects/NotificationTypeNewSecretChat.cs +++ b/TdLib.Api/Objects/NotificationTypeNewSecretChat.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class NotificationType : Object { - public partial class NotificationType : Object + /// + /// New secret chat was created + /// + public class NotificationTypeNewSecretChat : NotificationType { /// - /// New secret chat was created + /// Data type for serialization /// - public class NotificationTypeNewSecretChat : NotificationType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "notificationTypeNewSecretChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "notificationTypeNewSecretChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/OauthLinkInfo.cs b/TdLib.Api/Objects/OauthLinkInfo.cs index 217b31b4..e76cd486 100644 --- a/TdLib.Api/Objects/OauthLinkInfo.cs +++ b/TdLib.Api/Objects/OauthLinkInfo.cs @@ -2,127 +2,126 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Information about the OAuth authorization /// - public static partial class TdApi + public partial class OauthLinkInfo : Object { /// - /// Information about the OAuth authorization - /// - public partial class OauthLinkInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "oauthLinkInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the user for which the link was generated; may be 0 if unknown. The corresponding user may be unknown. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - - /// - /// An HTTP URL where the user authorizes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - - /// - /// A domain of the URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("domain")] - public string Domain { get; set; } - - /// - /// True, if the authorization originates from an application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_app")] - public bool FromApp { get; set; } - - /// - /// Verified name of the application; if empty, then "Unverified App" must be shown instead - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verified_app_name")] - public string VerifiedAppName { get; set; } - - /// - /// User identifier of a bot linked with the website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - - /// - /// True, if the user must be asked for the permission to the bot to send them messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_write_access")] - public bool RequestWriteAccess { get; set; } - - /// - /// True, if the user must be asked for the permission to share their phone number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_phone_number_access")] - public bool RequestPhoneNumberAccess { get; set; } - - /// - /// The version of a browser used for the authorization - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("browser")] - public string Browser { get; set; } - - /// - /// Operating system the browser is running on - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("platform")] - public string Platform { get; set; } - - /// - /// IP address from which the authorization is performed, in human-readable format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ip_address")] - public string IpAddress { get; set; } - - /// - /// Human-readable description of a country and a region from which the authorization is performed, based on the IP address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public string Location { get; set; } - - /// - /// True, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("match_code_first")] - public bool MatchCodeFirst { get; set; } - - /// - /// The list of codes to match; may be empty if irrelevant - /// - [JsonProperty("match_codes", ItemConverterType = typeof(Converter))] - public string[] MatchCodes { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "oauthLinkInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the user for which the link was generated; may be 0 if unknown. The corresponding user may be unknown. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + + /// + /// An HTTP URL where the user authorizes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + + /// + /// A domain of the URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("domain")] + public string Domain { get; set; } + + /// + /// True, if the authorization originates from an application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_app")] + public bool FromApp { get; set; } + + /// + /// Verified name of the application; if empty, then "Unverified App" must be shown instead + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verified_app_name")] + public string VerifiedAppName { get; set; } + + /// + /// User identifier of a bot linked with the website + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } + + /// + /// True, if the user must be asked for the permission to the bot to send them messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_write_access")] + public bool RequestWriteAccess { get; set; } + + /// + /// True, if the user must be asked for the permission to share their phone number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_phone_number_access")] + public bool RequestPhoneNumberAccess { get; set; } + + /// + /// The version of a browser used for the authorization + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("browser")] + public string Browser { get; set; } + + /// + /// Operating system the browser is running on + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("platform")] + public string Platform { get; set; } + + /// + /// IP address from which the authorization is performed, in human-readable format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ip_address")] + public string IpAddress { get; set; } + + /// + /// Human-readable description of a country and a region from which the authorization is performed, based on the IP address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public string Location { get; set; } + + /// + /// True, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("match_code_first")] + public bool MatchCodeFirst { get; set; } + + /// + /// The list of codes to match; may be empty if irrelevant + /// + [JsonProperty("match_codes", ItemConverterType = typeof(Converter))] + public string[] MatchCodes { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Ok.cs b/TdLib.Api/Objects/Ok.cs index 2259a116..90c14ba9 100644 --- a/TdLib.Api/Objects/Ok.cs +++ b/TdLib.Api/Objects/Ok.cs @@ -2,32 +2,31 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// An object of this type is returned on a successful function call for certain functions /// - public static partial class TdApi + public partial class Ok : Object { /// - /// An object of this type is returned on a successful function call for certain functions + /// Data type for serialization /// - public partial class Ok : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "ok"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "ok"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OnRampPaymentAvailability.cs b/TdLib.Api/Objects/OnRampPaymentAvailability.cs new file mode 100644 index 00000000..d7ad97e2 --- /dev/null +++ b/TdLib.Api/Objects/OnRampPaymentAvailability.cs @@ -0,0 +1,64 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes availability of cryptocurrency purchase through an on-ramp provider + /// + public partial class OnRampPaymentAvailability : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "onRampPaymentAvailability"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if the current user can use the provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_allowed")] + public bool IsAllowed { get; set; } + + /// + /// True, if the current user can purchase through the provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_purchase_allowed")] + public bool IsPurchaseAllowed { get; set; } + + /// + /// The list of available payment methods + /// + [JsonProperty("methods", ItemConverterType = typeof(Converter))] + public OnRampPaymentMethod[] Methods { get; set; } + + /// + /// A two-letter ISO 3166-1 alpha-2 country code of the current user's country + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } + + /// + /// Code of the state of the current user; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public string State { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OnRampPaymentLimits.cs b/TdLib.Api/Objects/OnRampPaymentLimits.cs new file mode 100644 index 00000000..7eb08bf7 --- /dev/null +++ b/TdLib.Api/Objects/OnRampPaymentLimits.cs @@ -0,0 +1,65 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes limits for an on-ramp purchase + /// + public partial class OnRampPaymentLimits : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "onRampPaymentLimits"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The payment method to be used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_method")] + public string PaymentMethod { get; set; } + + /// + /// The minimum allowed amount of the base currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency_min_amount")] + public string BaseCurrencyMinAmount { get; set; } + + /// + /// The maximum allowed amount of the base currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency_max_amount")] + public string BaseCurrencyMaxAmount { get; set; } + + /// + /// The minimum allowed amount of the bought cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency_min_amount")] + public string CryptocurrencyMinAmount { get; set; } + + /// + /// The maximum allowed amount of the bought cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency_max_amount")] + public string CryptocurrencyMaxAmount { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OnRampPaymentMethod.cs b/TdLib.Api/Objects/OnRampPaymentMethod.cs new file mode 100644 index 00000000..1c5d3610 --- /dev/null +++ b/TdLib.Api/Objects/OnRampPaymentMethod.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes a payment method of an on-ramp provider + /// + public partial class OnRampPaymentMethod : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "onRampPaymentMethod"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Name of the method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// True, if the method is available to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_available")] + public bool IsAvailable { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OnRampPaymentQuote.cs b/TdLib.Api/Objects/OnRampPaymentQuote.cs new file mode 100644 index 00000000..0d6f3cea --- /dev/null +++ b/TdLib.Api/Objects/OnRampPaymentQuote.cs @@ -0,0 +1,93 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes a quote for an on-ramp purchase + /// + public partial class OnRampPaymentQuote : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "onRampPaymentQuote"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The payment method to be used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_method")] + public string PaymentMethod { get; set; } + + /// + /// Point in time (Unix timestamp) when the quote will expire + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } + + /// + /// Paid amount of the base currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_currency_amount")] + public string BaseCurrencyAmount { get; set; } + + /// + /// Purchased amount of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency_amount")] + public string CryptocurrencyAmount { get; set; } + + /// + /// The price of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cryptocurrency_price")] + public string CryptocurrencyPrice { get; set; } + + /// + /// Fee amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fee_amount")] + public string FeeAmount { get; set; } + + /// + /// Extra fee amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("extra_fee_amount")] + public string ExtraFeeAmount { get; set; } + + /// + /// Network fee amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("network_fee_amount")] + public string NetworkFeeAmount { get; set; } + + /// + /// Total paid amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_amount")] + public string TotalAmount { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OnRampPaymentSession.cs b/TdLib.Api/Objects/OnRampPaymentSession.cs new file mode 100644 index 00000000..d6fd738c --- /dev/null +++ b/TdLib.Api/Objects/OnRampPaymentSession.cs @@ -0,0 +1,51 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes a session for an on-ramp purchase + /// + public partial class OnRampPaymentSession : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "onRampPaymentSession"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("session_id")] + public string SessionId { get; set; } + + /// + /// Point in time (Unix timestamp) when the session will expire + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } + + /// + /// HTTPS URL to be opened in a WebView to complete the purchase + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OnRampProvider.cs b/TdLib.Api/Objects/OnRampProvider.cs new file mode 100644 index 00000000..7858521b --- /dev/null +++ b/TdLib.Api/Objects/OnRampProvider.cs @@ -0,0 +1,71 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes an on-ramp provider + /// + public partial class OnRampProvider : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "onRampProvider"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } + + /// + /// Name of the provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// List of cryptocurrencies supported by the provider + /// + [JsonProperty("cryptocurrencies", ItemConverterType = typeof(Converter))] + public string[] Cryptocurrencies { get; set; } + + /// + /// True, if the provider supports base currencies and can be used in the method getOnRampProviderBaseCurrencies + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_base_currencies")] + public bool SupportsBaseCurrencies { get; set; } + + /// + /// True, if the provider supports limits retrieval using the method getOnRampPaymentLimits + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_limits")] + public bool SupportsLimits { get; set; } + + /// + /// True, if the provider supports quote retrieval using the method getOnRampPaymentQuote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_quote")] + public bool SupportsQuote { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OnRampProviders.cs b/TdLib.Api/Objects/OnRampProviders.cs new file mode 100644 index 00000000..68cf1133 --- /dev/null +++ b/TdLib.Api/Objects/OnRampProviders.cs @@ -0,0 +1,36 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a list of on-ramp providers + /// + public partial class OnRampProviders : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "onRampProviders"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// A list of providers + /// + [JsonProperty("providers", ItemConverterType = typeof(Converter))] + public OnRampProvider[] Providers { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/OptionValueBoolean.cs b/TdLib.Api/Objects/OptionValueBoolean.cs index 515e6551..43d3bda1 100644 --- a/TdLib.Api/Objects/OptionValueBoolean.cs +++ b/TdLib.Api/Objects/OptionValueBoolean.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class OptionValue : Object { - public partial class OptionValue : Object + /// + /// Represents the value of an option + /// + public class OptionValueBoolean : OptionValue { /// - /// Represents the value of an option + /// Data type for serialization /// - public class OptionValueBoolean : OptionValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "optionValueBoolean"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "optionValueBoolean"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The value of the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public bool Value { get; set; } - } + /// + /// The value of the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public bool Value { get; set; } } } } diff --git a/TdLib.Api/Objects/OptionValueEmpty.cs b/TdLib.Api/Objects/OptionValueEmpty.cs index 0d65c79c..9439f2a9 100644 --- a/TdLib.Api/Objects/OptionValueEmpty.cs +++ b/TdLib.Api/Objects/OptionValueEmpty.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class OptionValue : Object { - public partial class OptionValue : Object + /// + /// Represents an unknown option or an option which has a default value + /// + public class OptionValueEmpty : OptionValue { /// - /// Represents an unknown option or an option which has a default value + /// Data type for serialization /// - public class OptionValueEmpty : OptionValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "optionValueEmpty"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "optionValueEmpty"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/OptionValueInteger.cs b/TdLib.Api/Objects/OptionValueInteger.cs index 7258f49a..898a447a 100644 --- a/TdLib.Api/Objects/OptionValueInteger.cs +++ b/TdLib.Api/Objects/OptionValueInteger.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class OptionValue : Object { - public partial class OptionValue : Object + /// + /// Represents an integer option + /// + public class OptionValueInteger : OptionValue { /// - /// Represents an integer option + /// Data type for serialization /// - public class OptionValueInteger : OptionValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "optionValueInteger"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "optionValueInteger"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The value of the option - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("value")] - public long Value { get; set; } - } + /// + /// The value of the option + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("value")] + public long Value { get; set; } } } } diff --git a/TdLib.Api/Objects/OptionValueString.cs b/TdLib.Api/Objects/OptionValueString.cs index 843b1dd6..05ac8814 100644 --- a/TdLib.Api/Objects/OptionValueString.cs +++ b/TdLib.Api/Objects/OptionValueString.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class OptionValue : Object { - public partial class OptionValue : Object + /// + /// Represents a string option + /// + public class OptionValueString : OptionValue { /// - /// Represents a string option + /// Data type for serialization /// - public class OptionValueString : OptionValue - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "optionValueString"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "optionValueString"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The value of the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public string Value { get; set; } - } + /// + /// The value of the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public string Value { get; set; } } } } diff --git a/TdLib.Api/Objects/OrderInfo.cs b/TdLib.Api/Objects/OrderInfo.cs index e2af9bb8..78bd4ac2 100644 --- a/TdLib.Api/Objects/OrderInfo.cs +++ b/TdLib.Api/Objects/OrderInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Order information /// - public static partial class TdApi + public partial class OrderInfo : Object { /// - /// Order information + /// Data type for serialization /// - public partial class OrderInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "orderInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "orderInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Phone number of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } + /// + /// Phone number of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } - /// - /// Email address of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address")] - public string EmailAddress { get; set; } + /// + /// Email address of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address")] + public string EmailAddress { get; set; } - /// - /// Shipping address for this order; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shipping_address")] - public Address ShippingAddress { get; set; } - } + /// + /// Shipping address for this order; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shipping_address")] + public Address ShippingAddress { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Outline.cs b/TdLib.Api/Objects/Outline.cs index fbd4751c..601b9328 100644 --- a/TdLib.Api/Objects/Outline.cs +++ b/TdLib.Api/Objects/Outline.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents outline of an image /// - public static partial class TdApi + public partial class Outline : Object { /// - /// Represents outline of an image + /// Data type for serialization /// - public partial class Outline : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "outline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "outline"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of closed vector paths - /// - [JsonProperty("paths", ItemConverterType = typeof(Converter))] - public ClosedVectorPath[] Paths { get; set; } - } + /// + /// The list of closed vector paths + /// + [JsonProperty("paths", ItemConverterType = typeof(Converter))] + public ClosedVectorPath[] Paths { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PageBlockAnchor.cs b/TdLib.Api/Objects/PageBlockAnchor.cs index d3b45d9c..09e3ac21 100644 --- a/TdLib.Api/Objects/PageBlockAnchor.cs +++ b/TdLib.Api/Objects/PageBlockAnchor.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor + /// + public class PageBlockAnchor : PageBlock { /// - /// An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor + /// Data type for serialization /// - public class PageBlockAnchor : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockAnchor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockAnchor"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the anchor - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Name of the anchor + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockAnimation.cs b/TdLib.Api/Objects/PageBlockAnimation.cs index d0265249..dacd6efa 100644 --- a/TdLib.Api/Objects/PageBlockAnimation.cs +++ b/TdLib.Api/Objects/PageBlockAnimation.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// An animation + /// + public class PageBlockAnimation : PageBlock { /// - /// An animation + /// Data type for serialization /// - public class PageBlockAnimation : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Animation file; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } + /// + /// Animation file; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } - /// - /// Animation caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } + /// + /// Animation caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } - /// - /// True, if the animation must be played automatically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_autoplay")] - public bool NeedAutoplay { get; set; } + /// + /// True, if the animation must be played automatically + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_autoplay")] + public bool NeedAutoplay { get; set; } - /// - /// True, if the animation preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the animation preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockAudio.cs b/TdLib.Api/Objects/PageBlockAudio.cs index cb37b4e3..cac2b673 100644 --- a/TdLib.Api/Objects/PageBlockAudio.cs +++ b/TdLib.Api/Objects/PageBlockAudio.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// An audio file + /// + public class PageBlockAudio : PageBlock { /// - /// An audio file + /// Data type for serialization /// - public class PageBlockAudio : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public Audio Audio { get; set; } + /// + /// Audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public Audio Audio { get; set; } - /// - /// Audio file caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Audio file caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockAuthorDate.cs b/TdLib.Api/Objects/PageBlockAuthorDate.cs index 1907ff44..94052f4c 100644 --- a/TdLib.Api/Objects/PageBlockAuthorDate.cs +++ b/TdLib.Api/Objects/PageBlockAuthorDate.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// The author and publishing date of a page; instant view only + /// + public class PageBlockAuthorDate : PageBlock { /// - /// The author and publishing date of a page; instant view only + /// Data type for serialization /// - public class PageBlockAuthorDate : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockAuthorDate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockAuthorDate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Author - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author")] - public RichText Author { get; set; } + /// + /// Author + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author")] + public RichText Author { get; set; } - /// - /// Point in time (Unix timestamp) when the article was published; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("publish_date")] - public int PublishDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the article was published; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("publish_date")] + public int PublishDate { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockBlockQuote.cs b/TdLib.Api/Objects/PageBlockBlockQuote.cs index 289c6e1e..9a61d666 100644 --- a/TdLib.Api/Objects/PageBlockBlockQuote.cs +++ b/TdLib.Api/Objects/PageBlockBlockQuote.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A block quote + /// + public class PageBlockBlockQuote : PageBlock { /// - /// A block quote + /// Data type for serialization /// - public class PageBlockBlockQuote : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockBlockQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockBlockQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Quote blocks - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Quote blocks + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// Quote credit; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credit")] - public RichText Credit { get; set; } - } + /// + /// Quote credit; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credit")] + public RichText Credit { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockButtonRow.cs b/TdLib.Api/Objects/PageBlockButtonRow.cs index 881f6aab..1d988750 100644 --- a/TdLib.Api/Objects/PageBlockButtonRow.cs +++ b/TdLib.Api/Objects/PageBlockButtonRow.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A list of buttons shown in a row + /// + public class PageBlockButtonRow : PageBlock { /// - /// A list of buttons shown in a row + /// Data type for serialization /// - public class PageBlockButtonRow : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockButtonRow"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockButtonRow"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The buttons - /// - [JsonProperty("buttons", ItemConverterType = typeof(Converter))] - public InlineButton[] Buttons { get; set; } + /// + /// The buttons + /// + [JsonProperty("buttons", ItemConverterType = typeof(Converter))] + public InlineButton[] Buttons { get; set; } - /// - /// Horizontal alignment of the buttons; may be null if the buttons must be shown full-width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("align")] - public PageBlockHorizontalAlignment Align { get; set; } - } + /// + /// Horizontal alignment of the buttons; may be null if the buttons must be shown full-width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("align")] + public PageBlockHorizontalAlignment Align { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockCaption.cs b/TdLib.Api/Objects/PageBlockCaption.cs index 79df80a9..d6c5822f 100644 --- a/TdLib.Api/Objects/PageBlockCaption.cs +++ b/TdLib.Api/Objects/PageBlockCaption.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a caption of another block /// - public static partial class TdApi + public partial class PageBlockCaption : Object { /// - /// Contains a caption of another block + /// Data type for serialization /// - public partial class PageBlockCaption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockCaption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockCaption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Content of the caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Content of the caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Block credit (like HTML tag <cite>); may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credit")] - public RichText Credit { get; set; } - } + /// + /// Block credit (like HTML tag <cite>); may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credit")] + public RichText Credit { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PageBlockChatLink.cs b/TdLib.Api/Objects/PageBlockChatLink.cs index e0277dbe..26b5d30a 100644 --- a/TdLib.Api/Objects/PageBlockChatLink.cs +++ b/TdLib.Api/Objects/PageBlockChatLink.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A link to a chat; instant view only + /// + public class PageBlockChatLink : PageBlock { /// - /// A link to a chat; instant view only + /// Data type for serialization /// - public class PageBlockChatLink : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockChatLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockChatLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Chat photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhotoInfo Photo { get; set; } + /// + /// Chat photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhotoInfo Photo { get; set; } - /// - /// Identifier of the accent color for chat title and background of chat photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } + /// + /// Identifier of the accent color for chat title and background of chat photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } - /// - /// Chat username by which all other information about the chat can be resolved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// Chat username by which all other information about the chat can be resolved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockCollage.cs b/TdLib.Api/Objects/PageBlockCollage.cs index 477f0c3f..42939b43 100644 --- a/TdLib.Api/Objects/PageBlockCollage.cs +++ b/TdLib.Api/Objects/PageBlockCollage.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A collage + /// + public class PageBlockCollage : PageBlock { /// - /// A collage + /// Data type for serialization /// - public class PageBlockCollage : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockCollage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockCollage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Collage item contents - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Collage item contents + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// Block caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Block caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockCover.cs b/TdLib.Api/Objects/PageBlockCover.cs index e5be910e..d0a52e38 100644 --- a/TdLib.Api/Objects/PageBlockCover.cs +++ b/TdLib.Api/Objects/PageBlockCover.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A page cover; instant view only + /// + public class PageBlockCover : PageBlock { /// - /// A page cover; instant view only + /// Data type for serialization /// - public class PageBlockCover : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockCover"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockCover"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Cover - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover")] - public PageBlock Cover { get; set; } - } + /// + /// Cover + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover")] + public PageBlock Cover { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockDetails.cs b/TdLib.Api/Objects/PageBlockDetails.cs index fc90f27e..ed1f8f79 100644 --- a/TdLib.Api/Objects/PageBlockDetails.cs +++ b/TdLib.Api/Objects/PageBlockDetails.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A collapsible block + /// + public class PageBlockDetails : PageBlock { /// - /// A collapsible block + /// Data type for serialization /// - public class PageBlockDetails : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockDetails"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Always visible heading for the block - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("header")] - public RichText Header { get; set; } + /// + /// Always visible heading for the block + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("header")] + public RichText Header { get; set; } - /// - /// Block contents - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Block contents + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// True, if the block is open by default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_open")] - public bool IsOpen { get; set; } - } + /// + /// True, if the block is open by default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_open")] + public bool IsOpen { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockDivider.cs b/TdLib.Api/Objects/PageBlockDivider.cs index 6c23c1f1..56480f5e 100644 --- a/TdLib.Api/Objects/PageBlockDivider.cs +++ b/TdLib.Api/Objects/PageBlockDivider.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// An empty block separating a page + /// + public class PageBlockDivider : PageBlock { /// - /// An empty block separating a page + /// Data type for serialization /// - public class PageBlockDivider : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockDivider"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockDivider"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockDocument.cs b/TdLib.Api/Objects/PageBlockDocument.cs index 419a84f9..49519d5f 100644 --- a/TdLib.Api/Objects/PageBlockDocument.cs +++ b/TdLib.Api/Objects/PageBlockDocument.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A general file + /// + public class PageBlockDocument : PageBlock { /// - /// A general file + /// Data type for serialization /// - public class PageBlockDocument : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } + /// + /// The file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } - /// - /// File caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// File caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockEmbedded.cs b/TdLib.Api/Objects/PageBlockEmbedded.cs index cbe0e150..639caeb4 100644 --- a/TdLib.Api/Objects/PageBlockEmbedded.cs +++ b/TdLib.Api/Objects/PageBlockEmbedded.cs @@ -2,88 +2,87 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// An embedded web page; instant view only + /// + public class PageBlockEmbedded : PageBlock { /// - /// An embedded web page; instant view only + /// Data type for serialization /// - public class PageBlockEmbedded : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockEmbedded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockEmbedded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the embedded page, if available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the embedded page, if available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// HTML-markup of the embedded page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("html")] - public string Html { get; set; } + /// + /// HTML-markup of the embedded page + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("html")] + public string Html { get; set; } - /// - /// Poster photo, if available; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poster_photo")] - public Photo PosterPhoto { get; set; } + /// + /// Poster photo, if available; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poster_photo")] + public Photo PosterPhoto { get; set; } - /// - /// Block width; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Block width; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Block height; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Block height; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Block caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } + /// + /// Block caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } - /// - /// True, if the block must be full width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_full_width")] - public bool IsFullWidth { get; set; } + /// + /// True, if the block must be full width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_full_width")] + public bool IsFullWidth { get; set; } - /// - /// True, if scrolling needs to be allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_scrolling")] - public bool AllowScrolling { get; set; } - } + /// + /// True, if scrolling needs to be allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_scrolling")] + public bool AllowScrolling { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockEmbeddedPost.cs b/TdLib.Api/Objects/PageBlockEmbeddedPost.cs index 2150d4f2..28ebb754 100644 --- a/TdLib.Api/Objects/PageBlockEmbeddedPost.cs +++ b/TdLib.Api/Objects/PageBlockEmbeddedPost.cs @@ -2,73 +2,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// An embedded post; instant view only + /// + public class PageBlockEmbeddedPost : PageBlock { /// - /// An embedded post; instant view only + /// Data type for serialization /// - public class PageBlockEmbeddedPost : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockEmbeddedPost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockEmbeddedPost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the embedded post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the embedded post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Post author - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author")] - public string Author { get; set; } + /// + /// Post author + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author")] + public string Author { get; set; } - /// - /// Post author photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author_photo")] - public Photo AuthorPhoto { get; set; } + /// + /// Post author photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author_photo")] + public Photo AuthorPhoto { get; set; } - /// - /// Point in time (Unix timestamp) when the post was created; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the post was created; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Post content - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Post content + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// Post caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Post caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockExpandableBlockQuote.cs b/TdLib.Api/Objects/PageBlockExpandableBlockQuote.cs index 1887ab6b..e6b71561 100644 --- a/TdLib.Api/Objects/PageBlockExpandableBlockQuote.cs +++ b/TdLib.Api/Objects/PageBlockExpandableBlockQuote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// An expandable block quote + /// + public class PageBlockExpandableBlockQuote : PageBlock { /// - /// An expandable block quote + /// Data type for serialization /// - public class PageBlockExpandableBlockQuote : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockExpandableBlockQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockExpandableBlockQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the quote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text of the quote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Quote credit; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credit")] - public RichText Credit { get; set; } - } + /// + /// Quote credit; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credit")] + public RichText Credit { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockFooter.cs b/TdLib.Api/Objects/PageBlockFooter.cs index 81cdaaef..966496bc 100644 --- a/TdLib.Api/Objects/PageBlockFooter.cs +++ b/TdLib.Api/Objects/PageBlockFooter.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// The footer of a page + /// + public class PageBlockFooter : PageBlock { /// - /// The footer of a page + /// Data type for serialization /// - public class PageBlockFooter : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockFooter"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockFooter"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Footer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("footer")] - public RichText Footer { get; set; } - } + /// + /// Footer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("footer")] + public RichText Footer { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockHeader.cs b/TdLib.Api/Objects/PageBlockHeader.cs index 25471363..994c321f 100644 --- a/TdLib.Api/Objects/PageBlockHeader.cs +++ b/TdLib.Api/Objects/PageBlockHeader.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A header; instant view only + /// + public class PageBlockHeader : PageBlock { /// - /// A header; instant view only + /// Data type for serialization /// - public class PageBlockHeader : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockHeader"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockHeader"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Header - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("header")] - public RichText Header { get; set; } - } + /// + /// Header + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("header")] + public RichText Header { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockHorizontalAlignmentCenter.cs b/TdLib.Api/Objects/PageBlockHorizontalAlignmentCenter.cs index 75ace49a..3c64e672 100644 --- a/TdLib.Api/Objects/PageBlockHorizontalAlignmentCenter.cs +++ b/TdLib.Api/Objects/PageBlockHorizontalAlignmentCenter.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlockHorizontalAlignment : Object { - public partial class PageBlockHorizontalAlignment : Object + /// + /// The content must be center-aligned + /// + public class PageBlockHorizontalAlignmentCenter : PageBlockHorizontalAlignment { /// - /// The content must be center-aligned + /// Data type for serialization /// - public class PageBlockHorizontalAlignmentCenter : PageBlockHorizontalAlignment - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockHorizontalAlignmentCenter"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockHorizontalAlignmentCenter"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockHorizontalAlignmentLeft.cs b/TdLib.Api/Objects/PageBlockHorizontalAlignmentLeft.cs index 923e5d1d..6f46b6ef 100644 --- a/TdLib.Api/Objects/PageBlockHorizontalAlignmentLeft.cs +++ b/TdLib.Api/Objects/PageBlockHorizontalAlignmentLeft.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlockHorizontalAlignment : Object { - public partial class PageBlockHorizontalAlignment : Object + /// + /// Describes a horizontal alignment of a table cell content + /// + public class PageBlockHorizontalAlignmentLeft : PageBlockHorizontalAlignment { /// - /// Describes a horizontal alignment of a table cell content + /// Data type for serialization /// - public class PageBlockHorizontalAlignmentLeft : PageBlockHorizontalAlignment - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockHorizontalAlignmentLeft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockHorizontalAlignmentLeft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockHorizontalAlignmentRight.cs b/TdLib.Api/Objects/PageBlockHorizontalAlignmentRight.cs index 163f64e3..fe4c0ba9 100644 --- a/TdLib.Api/Objects/PageBlockHorizontalAlignmentRight.cs +++ b/TdLib.Api/Objects/PageBlockHorizontalAlignmentRight.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlockHorizontalAlignment : Object { - public partial class PageBlockHorizontalAlignment : Object + /// + /// The content must be right-aligned + /// + public class PageBlockHorizontalAlignmentRight : PageBlockHorizontalAlignment { /// - /// The content must be right-aligned + /// Data type for serialization /// - public class PageBlockHorizontalAlignmentRight : PageBlockHorizontalAlignment - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockHorizontalAlignmentRight"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockHorizontalAlignmentRight"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockKicker.cs b/TdLib.Api/Objects/PageBlockKicker.cs index d6fadb54..1bd7c4a3 100644 --- a/TdLib.Api/Objects/PageBlockKicker.cs +++ b/TdLib.Api/Objects/PageBlockKicker.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A kicker; instant view only + /// + public class PageBlockKicker : PageBlock { /// - /// A kicker; instant view only + /// Data type for serialization /// - public class PageBlockKicker : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockKicker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockKicker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Kicker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("kicker")] - public RichText Kicker { get; set; } - } + /// + /// Kicker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("kicker")] + public RichText Kicker { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockList.cs b/TdLib.Api/Objects/PageBlockList.cs index 6d9b09b9..3dffc041 100644 --- a/TdLib.Api/Objects/PageBlockList.cs +++ b/TdLib.Api/Objects/PageBlockList.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A list of data blocks + /// + public class PageBlockList : PageBlock { /// - /// A list of data blocks + /// Data type for serialization /// - public class PageBlockList : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockList"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockList"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The items of the list - /// - [JsonProperty("items", ItemConverterType = typeof(Converter))] - public PageBlockListItem[] Items { get; set; } - } + /// + /// The items of the list + /// + [JsonProperty("items", ItemConverterType = typeof(Converter))] + public PageBlockListItem[] Items { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockListItem.cs b/TdLib.Api/Objects/PageBlockListItem.cs index 5372d043..4095f2f0 100644 --- a/TdLib.Api/Objects/PageBlockListItem.cs +++ b/TdLib.Api/Objects/PageBlockListItem.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an item of a list page block /// - public static partial class TdApi + public partial class PageBlockListItem : Object { /// - /// Describes an item of a list page block + /// Data type for serialization /// - public partial class PageBlockListItem : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockListItem"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockListItem"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Item label - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("label")] - public string Label { get; set; } + /// + /// Item label + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("label")] + public string Label { get; set; } - /// - /// Item blocks - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Item blocks + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// True, if the item has a checkbox - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_checkbox")] - public bool HasCheckbox { get; set; } + /// + /// True, if the item has a checkbox + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_checkbox")] + public bool HasCheckbox { get; set; } - /// - /// True, if the item is checked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_checked")] - public bool IsChecked { get; set; } + /// + /// True, if the item is checked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_checked")] + public bool IsChecked { get; set; } - /// - /// Value of the item; 0 for unordered lists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public int Value { get; set; } + /// + /// Value of the item; 0 for unordered lists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public int Value { get; set; } - /// - /// Type of the item numbering type; must be one of "a" for lowercase letters, "A" for uppercase letters, "i" for lowercase Roman numerals, "I" for uppercase Roman numerals, - /// "1" for decimal numbers, or empty for unordered lists - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public string Type { get; set; } - } + /// + /// Type of the item numbering type; must be one of "a" for lowercase letters, "A" for uppercase letters, "i" for lowercase Roman numerals, "I" for uppercase Roman numerals, + /// "1" for decimal numbers, or empty for unordered lists + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public string Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PageBlockMap.cs b/TdLib.Api/Objects/PageBlockMap.cs index 4fe84df7..3e93e262 100644 --- a/TdLib.Api/Objects/PageBlockMap.cs +++ b/TdLib.Api/Objects/PageBlockMap.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A map + /// + public class PageBlockMap : PageBlock { /// - /// A map + /// Data type for serialization /// - public class PageBlockMap : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockMap"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockMap"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Location of the map center - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// Location of the map center + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Map zoom level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("zoom")] - public int Zoom { get; set; } + /// + /// Map zoom level + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("zoom")] + public int Zoom { get; set; } - /// - /// Map width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Map width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Map height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Map height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Block caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Block caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockMathematicalExpression.cs b/TdLib.Api/Objects/PageBlockMathematicalExpression.cs index 2e1b8cbd..51c11e7f 100644 --- a/TdLib.Api/Objects/PageBlockMathematicalExpression.cs +++ b/TdLib.Api/Objects/PageBlockMathematicalExpression.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A mathematical expression + /// + public class PageBlockMathematicalExpression : PageBlock { /// - /// A mathematical expression + /// Data type for serialization /// - public class PageBlockMathematicalExpression : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockMathematicalExpression"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockMathematicalExpression"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The expression in LaTeX format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expression")] - public string Expression { get; set; } - } + /// + /// The expression in LaTeX format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expression")] + public string Expression { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockParagraph.cs b/TdLib.Api/Objects/PageBlockParagraph.cs index cd52ab38..9daf6cd0 100644 --- a/TdLib.Api/Objects/PageBlockParagraph.cs +++ b/TdLib.Api/Objects/PageBlockParagraph.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A text paragraph + /// + public class PageBlockParagraph : PageBlock { /// - /// A text paragraph + /// Data type for serialization /// - public class PageBlockParagraph : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockParagraph"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockParagraph"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Paragraph text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Paragraph text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockPhoto.cs b/TdLib.Api/Objects/PageBlockPhoto.cs index 6e34fabf..e0481388 100644 --- a/TdLib.Api/Objects/PageBlockPhoto.cs +++ b/TdLib.Api/Objects/PageBlockPhoto.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A photo + /// + public class PageBlockPhoto : PageBlock { /// - /// A photo + /// Data type for serialization /// - public class PageBlockPhoto : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo file; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Photo file; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// Photo caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } + /// + /// Photo caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } - /// - /// URL that needs to be opened when the photo is clicked; instant view only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL that needs to be opened when the photo is clicked; instant view only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// True, if the photo preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the photo preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockPreformatted.cs b/TdLib.Api/Objects/PageBlockPreformatted.cs index 8cbe60b7..809cbf64 100644 --- a/TdLib.Api/Objects/PageBlockPreformatted.cs +++ b/TdLib.Api/Objects/PageBlockPreformatted.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A preformatted text paragraph + /// + public class PageBlockPreformatted : PageBlock { /// - /// A preformatted text paragraph + /// Data type for serialization /// - public class PageBlockPreformatted : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockPreformatted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockPreformatted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Paragraph text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Paragraph text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Programming language for which the text needs to be formatted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language")] - public string Language { get; set; } - } + /// + /// Programming language for which the text needs to be formatted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language")] + public string Language { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockPullQuote.cs b/TdLib.Api/Objects/PageBlockPullQuote.cs index 88d4fe44..39325ae3 100644 --- a/TdLib.Api/Objects/PageBlockPullQuote.cs +++ b/TdLib.Api/Objects/PageBlockPullQuote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A pull quote + /// + public class PageBlockPullQuote : PageBlock { /// - /// A pull quote + /// Data type for serialization /// - public class PageBlockPullQuote : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockPullQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockPullQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Quote text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Quote text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Quote credit; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credit")] - public RichText Credit { get; set; } - } + /// + /// Quote credit; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credit")] + public RichText Credit { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockRelatedArticle.cs b/TdLib.Api/Objects/PageBlockRelatedArticle.cs index 2c942268..319055ce 100644 --- a/TdLib.Api/Objects/PageBlockRelatedArticle.cs +++ b/TdLib.Api/Objects/PageBlockRelatedArticle.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a related article /// - public static partial class TdApi + public partial class PageBlockRelatedArticle : Object { /// - /// Contains information about a related article + /// Data type for serialization /// - public partial class PageBlockRelatedArticle : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockRelatedArticle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockRelatedArticle"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Related article URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// Related article URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Article title; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Article title; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// Article photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Article photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// Article author; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author")] - public string Author { get; set; } + /// + /// Article author; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author")] + public string Author { get; set; } - /// - /// Point in time (Unix timestamp) when the article was published; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("publish_date")] - public int PublishDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the article was published; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("publish_date")] + public int PublishDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PageBlockRelatedArticles.cs b/TdLib.Api/Objects/PageBlockRelatedArticles.cs index 7f2101e0..6c4a1abf 100644 --- a/TdLib.Api/Objects/PageBlockRelatedArticles.cs +++ b/TdLib.Api/Objects/PageBlockRelatedArticles.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// Related articles; instant view only + /// + public class PageBlockRelatedArticles : PageBlock { /// - /// Related articles; instant view only + /// Data type for serialization /// - public class PageBlockRelatedArticles : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockRelatedArticles"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockRelatedArticles"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Block header - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("header")] - public RichText Header { get; set; } + /// + /// Block header + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("header")] + public RichText Header { get; set; } - /// - /// List of related articles - /// - [JsonProperty("articles", ItemConverterType = typeof(Converter))] - public PageBlockRelatedArticle[] Articles { get; set; } - } + /// + /// List of related articles + /// + [JsonProperty("articles", ItemConverterType = typeof(Converter))] + public PageBlockRelatedArticle[] Articles { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockSectionHeading.cs b/TdLib.Api/Objects/PageBlockSectionHeading.cs index 8f36f086..903c2469 100644 --- a/TdLib.Api/Objects/PageBlockSectionHeading.cs +++ b/TdLib.Api/Objects/PageBlockSectionHeading.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A section heading + /// + public class PageBlockSectionHeading : PageBlock { /// - /// A section heading + /// Data type for serialization /// - public class PageBlockSectionHeading : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockSectionHeading"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockSectionHeading"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the section heading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text of the section heading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public int Size { get; set; } - } + /// + /// Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public int Size { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockSlideshow.cs b/TdLib.Api/Objects/PageBlockSlideshow.cs index 37631f7a..e1578f1a 100644 --- a/TdLib.Api/Objects/PageBlockSlideshow.cs +++ b/TdLib.Api/Objects/PageBlockSlideshow.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A slideshow + /// + public class PageBlockSlideshow : PageBlock { /// - /// A slideshow + /// Data type for serialization /// - public class PageBlockSlideshow : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockSlideshow"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockSlideshow"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Slideshow item contents - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Slideshow item contents + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// Block caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Block caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockSubheader.cs b/TdLib.Api/Objects/PageBlockSubheader.cs index d838f96a..e741af01 100644 --- a/TdLib.Api/Objects/PageBlockSubheader.cs +++ b/TdLib.Api/Objects/PageBlockSubheader.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A subheader; instant view only + /// + public class PageBlockSubheader : PageBlock { /// - /// A subheader; instant view only + /// Data type for serialization /// - public class PageBlockSubheader : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockSubheader"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockSubheader"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subheader - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subheader")] - public RichText Subheader { get; set; } - } + /// + /// Subheader + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subheader")] + public RichText Subheader { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockSubtitle.cs b/TdLib.Api/Objects/PageBlockSubtitle.cs index 309e3daf..a4c99a46 100644 --- a/TdLib.Api/Objects/PageBlockSubtitle.cs +++ b/TdLib.Api/Objects/PageBlockSubtitle.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// The subtitle of a page; instant view only + /// + public class PageBlockSubtitle : PageBlock { /// - /// The subtitle of a page; instant view only + /// Data type for serialization /// - public class PageBlockSubtitle : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockSubtitle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockSubtitle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subtitle - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subtitle")] - public RichText Subtitle { get; set; } - } + /// + /// Subtitle + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subtitle")] + public RichText Subtitle { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockTable.cs b/TdLib.Api/Objects/PageBlockTable.cs index 4cd906fd..5d7787ec 100644 --- a/TdLib.Api/Objects/PageBlockTable.cs +++ b/TdLib.Api/Objects/PageBlockTable.cs @@ -2,66 +2,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A table + /// + public class PageBlockTable : PageBlock { /// - /// A table + /// Data type for serialization /// - public class PageBlockTable : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockTable"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockTable"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Table caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public RichText Caption { get; set; } + /// + /// Table caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public RichText Caption { get; set; } - /// - /// Table cells - /// - [JsonProperty("cells", ItemConverterType = typeof(Converter))] - public PageBlockTableCell[][] Cells { get; set; } + /// + /// Table cells + /// + [JsonProperty("cells", ItemConverterType = typeof(Converter))] + public PageBlockTableCell[][] Cells { get; set; } - /// - /// True, if the table is bordered - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_bordered")] - public bool IsBordered { get; set; } + /// + /// True, if the table is bordered + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_bordered")] + public bool IsBordered { get; set; } - /// - /// True, if the table is striped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_striped")] - public bool IsStriped { get; set; } + /// + /// True, if the table is striped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_striped")] + public bool IsStriped { get; set; } - /// - /// True, if table cells must have smaller indents - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_compact")] - public bool IsCompact { get; set; } - } + /// + /// True, if table cells must have smaller indents + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_compact")] + public bool IsCompact { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockTableCell.cs b/TdLib.Api/Objects/PageBlockTableCell.cs index 0f726d31..dad5637a 100644 --- a/TdLib.Api/Objects/PageBlockTableCell.cs +++ b/TdLib.Api/Objects/PageBlockTableCell.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a cell of a table /// - public static partial class TdApi + public partial class PageBlockTableCell : Object { /// - /// Represents a cell of a table + /// Data type for serialization /// - public partial class PageBlockTableCell : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockTableCell"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockTableCell"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Cell text; may be null. If the text is null, then the cell must be invisible - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Cell text; may be null. If the text is null, then the cell must be invisible + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// True, if it is a header cell - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_header")] - public bool IsHeader { get; set; } + /// + /// True, if it is a header cell + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_header")] + public bool IsHeader { get; set; } - /// - /// The number of columns the cell spans - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("colspan")] - public int Colspan { get; set; } + /// + /// The number of columns the cell spans + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("colspan")] + public int Colspan { get; set; } - /// - /// The number of rows the cell spans - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rowspan")] - public int Rowspan { get; set; } + /// + /// The number of rows the cell spans + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rowspan")] + public int Rowspan { get; set; } - /// - /// Horizontal cell content alignment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("align")] - public PageBlockHorizontalAlignment Align { get; set; } + /// + /// Horizontal cell content alignment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("align")] + public PageBlockHorizontalAlignment Align { get; set; } - /// - /// Vertical cell content alignment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("valign")] - public PageBlockVerticalAlignment Valign { get; set; } - } + /// + /// Vertical cell content alignment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("valign")] + public PageBlockVerticalAlignment Valign { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PageBlockThinking.cs b/TdLib.Api/Objects/PageBlockThinking.cs index ab6b1eae..7a280493 100644 --- a/TdLib.Api/Objects/PageBlockThinking.cs +++ b/TdLib.Api/Objects/PageBlockThinking.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A "Thinking..." placeholder; for pending rich messages only + /// + public class PageBlockThinking : PageBlock { /// - /// A "Thinking..." placeholder; for pending rich messages only + /// Data type for serialization /// - public class PageBlockThinking : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockThinking"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockThinking"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the placeholder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text of the placeholder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockTitle.cs b/TdLib.Api/Objects/PageBlockTitle.cs index eb436531..a01f9921 100644 --- a/TdLib.Api/Objects/PageBlockTitle.cs +++ b/TdLib.Api/Objects/PageBlockTitle.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// Describes a block of an instant view for a web page or a block of a rich message + /// + public class PageBlockTitle : PageBlock { /// - /// Describes a block of an instant view for a web page or a block of a rich message + /// Data type for serialization /// - public class PageBlockTitle : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockTitle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockTitle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public RichText Title { get; set; } - } + /// + /// Title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public RichText Title { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockUnsupported.cs b/TdLib.Api/Objects/PageBlockUnsupported.cs index 878a1d79..643156d1 100644 --- a/TdLib.Api/Objects/PageBlockUnsupported.cs +++ b/TdLib.Api/Objects/PageBlockUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// Represents a block unsupported by the current application version + /// + public class PageBlockUnsupported : PageBlock { /// - /// Represents a block unsupported by the current application version + /// Data type for serialization /// - public class PageBlockUnsupported : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockVerticalAlignmentBottom.cs b/TdLib.Api/Objects/PageBlockVerticalAlignmentBottom.cs index 29a2ce99..7e614631 100644 --- a/TdLib.Api/Objects/PageBlockVerticalAlignmentBottom.cs +++ b/TdLib.Api/Objects/PageBlockVerticalAlignmentBottom.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlockVerticalAlignment : Object { - public partial class PageBlockVerticalAlignment : Object + /// + /// The content must be bottom-aligned + /// + public class PageBlockVerticalAlignmentBottom : PageBlockVerticalAlignment { /// - /// The content must be bottom-aligned + /// Data type for serialization /// - public class PageBlockVerticalAlignmentBottom : PageBlockVerticalAlignment - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockVerticalAlignmentBottom"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockVerticalAlignmentBottom"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockVerticalAlignmentMiddle.cs b/TdLib.Api/Objects/PageBlockVerticalAlignmentMiddle.cs index 821403eb..6a56df71 100644 --- a/TdLib.Api/Objects/PageBlockVerticalAlignmentMiddle.cs +++ b/TdLib.Api/Objects/PageBlockVerticalAlignmentMiddle.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlockVerticalAlignment : Object { - public partial class PageBlockVerticalAlignment : Object + /// + /// The content must be middle-aligned + /// + public class PageBlockVerticalAlignmentMiddle : PageBlockVerticalAlignment { /// - /// The content must be middle-aligned + /// Data type for serialization /// - public class PageBlockVerticalAlignmentMiddle : PageBlockVerticalAlignment - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockVerticalAlignmentMiddle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockVerticalAlignmentMiddle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockVerticalAlignmentTop.cs b/TdLib.Api/Objects/PageBlockVerticalAlignmentTop.cs index ca39835a..0e245c28 100644 --- a/TdLib.Api/Objects/PageBlockVerticalAlignmentTop.cs +++ b/TdLib.Api/Objects/PageBlockVerticalAlignmentTop.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlockVerticalAlignment : Object { - public partial class PageBlockVerticalAlignment : Object + /// + /// Describes a Vertical alignment of a table cell content + /// + public class PageBlockVerticalAlignmentTop : PageBlockVerticalAlignment { /// - /// Describes a Vertical alignment of a table cell content + /// Data type for serialization /// - public class PageBlockVerticalAlignmentTop : PageBlockVerticalAlignment - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockVerticalAlignmentTop"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockVerticalAlignmentTop"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PageBlockVideo.cs b/TdLib.Api/Objects/PageBlockVideo.cs index 54512e14..6763760f 100644 --- a/TdLib.Api/Objects/PageBlockVideo.cs +++ b/TdLib.Api/Objects/PageBlockVideo.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A video + /// + public class PageBlockVideo : PageBlock { /// - /// A video + /// Data type for serialization /// - public class PageBlockVideo : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Video file; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// Video file; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Video caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } + /// + /// Video caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } - /// - /// True, if the video must be played automatically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_autoplay")] - public bool NeedAutoplay { get; set; } + /// + /// True, if the video must be played automatically + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_autoplay")] + public bool NeedAutoplay { get; set; } - /// - /// True, if the video must be looped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_looped")] - public bool IsLooped { get; set; } + /// + /// True, if the video must be looped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_looped")] + public bool IsLooped { get; set; } - /// - /// True, if the video preview must be covered by a spoiler animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_spoiler")] - public bool HasSpoiler { get; set; } - } + /// + /// True, if the video preview must be covered by a spoiler animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_spoiler")] + public bool HasSpoiler { get; set; } } } } diff --git a/TdLib.Api/Objects/PageBlockVoiceNote.cs b/TdLib.Api/Objects/PageBlockVoiceNote.cs index b000a4a0..9d5dba7c 100644 --- a/TdLib.Api/Objects/PageBlockVoiceNote.cs +++ b/TdLib.Api/Objects/PageBlockVoiceNote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PageBlock : Object { - public partial class PageBlock : Object + /// + /// A voice note + /// + public class PageBlockVoiceNote : PageBlock { /// - /// A voice note + /// Data type for serialization /// - public class PageBlockVoiceNote : PageBlock - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pageBlockVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pageBlockVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public VoiceNote VoiceNote { get; set; } + /// + /// Voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public VoiceNote VoiceNote { get; set; } - /// - /// Voice note caption; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public PageBlockCaption Caption { get; set; } - } + /// + /// Voice note caption; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public PageBlockCaption Caption { get; set; } } } } diff --git a/TdLib.Api/Objects/PaidMediaPhoto.cs b/TdLib.Api/Objects/PaidMediaPhoto.cs index e698984e..cf2e7fd6 100644 --- a/TdLib.Api/Objects/PaidMediaPhoto.cs +++ b/TdLib.Api/Objects/PaidMediaPhoto.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaidMedia : Object { - public partial class PaidMedia : Object + /// + /// The media is a photo + /// + public class PaidMediaPhoto : PaidMedia { /// - /// The media is a photo + /// Data type for serialization /// - public class PaidMediaPhoto : PaidMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidMediaPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidMediaPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// The photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// The video representing the live photo; may be null if the photo is static - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } - } + /// + /// The video representing the live photo; may be null if the photo is static + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } } } } diff --git a/TdLib.Api/Objects/PaidMediaPreview.cs b/TdLib.Api/Objects/PaidMediaPreview.cs index d3432ac2..1d88f639 100644 --- a/TdLib.Api/Objects/PaidMediaPreview.cs +++ b/TdLib.Api/Objects/PaidMediaPreview.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaidMedia : Object { - public partial class PaidMedia : Object + /// + /// Describes a paid media + /// + public class PaidMediaPreview : PaidMedia { /// - /// Describes a paid media + /// Data type for serialization /// - public class PaidMediaPreview : PaidMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidMediaPreview"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidMediaPreview"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Media width; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Media width; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Media height; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Media height; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Media duration, in seconds; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Media duration, in seconds; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Media minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } - } + /// + /// Media minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } } } } diff --git a/TdLib.Api/Objects/PaidMediaUnsupported.cs b/TdLib.Api/Objects/PaidMediaUnsupported.cs index 03c2d507..b289a08c 100644 --- a/TdLib.Api/Objects/PaidMediaUnsupported.cs +++ b/TdLib.Api/Objects/PaidMediaUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaidMedia : Object { - public partial class PaidMedia : Object + /// + /// The media is unsupported + /// + public class PaidMediaUnsupported : PaidMedia { /// - /// The media is unsupported + /// Data type for serialization /// - public class PaidMediaUnsupported : PaidMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidMediaUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidMediaUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PaidMediaVideo.cs b/TdLib.Api/Objects/PaidMediaVideo.cs index 88456ee1..a39bd29b 100644 --- a/TdLib.Api/Objects/PaidMediaVideo.cs +++ b/TdLib.Api/Objects/PaidMediaVideo.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaidMedia : Object { - public partial class PaidMedia : Object + /// + /// The media is a video + /// + public class PaidMediaVideo : PaidMedia { /// - /// The media is a video + /// Data type for serialization /// - public class PaidMediaVideo : PaidMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidMediaVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidMediaVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// The video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Cover of the video; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover")] - public Photo Cover { get; set; } + /// + /// Cover of the video; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover")] + public Photo Cover { get; set; } - /// - /// Timestamp from which the video playing must start, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_timestamp")] - public int StartTimestamp { get; set; } - } + /// + /// Timestamp from which the video playing must start, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_timestamp")] + public int StartTimestamp { get; set; } } } } diff --git a/TdLib.Api/Objects/PaidReactionTypeAnonymous.cs b/TdLib.Api/Objects/PaidReactionTypeAnonymous.cs index 5629aba9..b7dedcf4 100644 --- a/TdLib.Api/Objects/PaidReactionTypeAnonymous.cs +++ b/TdLib.Api/Objects/PaidReactionTypeAnonymous.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaidReactionType : Object { - public partial class PaidReactionType : Object + /// + /// An anonymous paid reaction + /// + public class PaidReactionTypeAnonymous : PaidReactionType { /// - /// An anonymous paid reaction + /// Data type for serialization /// - public class PaidReactionTypeAnonymous : PaidReactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidReactionTypeAnonymous"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidReactionTypeAnonymous"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PaidReactionTypeChat.cs b/TdLib.Api/Objects/PaidReactionTypeChat.cs index 552734c9..db6d3ec7 100644 --- a/TdLib.Api/Objects/PaidReactionTypeChat.cs +++ b/TdLib.Api/Objects/PaidReactionTypeChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaidReactionType : Object { - public partial class PaidReactionType : Object + /// + /// A paid reaction on behalf of an owned chat + /// + public class PaidReactionTypeChat : PaidReactionType { /// - /// A paid reaction on behalf of an owned chat + /// Data type for serialization /// - public class PaidReactionTypeChat : PaidReactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidReactionTypeChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidReactionTypeChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/PaidReactionTypeRegular.cs b/TdLib.Api/Objects/PaidReactionTypeRegular.cs index dd7f5642..c2488229 100644 --- a/TdLib.Api/Objects/PaidReactionTypeRegular.cs +++ b/TdLib.Api/Objects/PaidReactionTypeRegular.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaidReactionType : Object { - public partial class PaidReactionType : Object + /// + /// Describes type of paid message reaction + /// + public class PaidReactionTypeRegular : PaidReactionType { /// - /// Describes type of paid message reaction + /// Data type for serialization /// - public class PaidReactionTypeRegular : PaidReactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidReactionTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidReactionTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PaidReactor.cs b/TdLib.Api/Objects/PaidReactor.cs index eed4bf33..e363fa95 100644 --- a/TdLib.Api/Objects/PaidReactor.cs +++ b/TdLib.Api/Objects/PaidReactor.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a user who added paid reactions /// - public static partial class TdApi + public partial class PaidReactor : Object { /// - /// Contains information about a user who added paid reactions + /// Data type for serialization /// - public partial class PaidReactor : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paidReactor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paidReactor"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or chat that added the reactions; may be null for anonymous reactors that aren't the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the user or chat that added the reactions; may be null for anonymous reactors that aren't the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Number of Telegram Stars added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// True, if the reactor is one of the most active reactors; may be false if the reactor is the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_top")] - public bool IsTop { get; set; } + /// + /// True, if the reactor is one of the most active reactors; may be false if the reactor is the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_top")] + public bool IsTop { get; set; } - /// - /// True, if the paid reaction was added by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_me")] - public bool IsMe { get; set; } + /// + /// True, if the paid reaction was added by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_me")] + public bool IsMe { get; set; } - /// - /// True, if the reactor is anonymous - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_anonymous")] - public bool IsAnonymous { get; set; } - } + /// + /// True, if the reactor is anonymous + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_anonymous")] + public bool IsAnonymous { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Passkey.cs b/TdLib.Api/Objects/Passkey.cs index e384c129..9b6abfc3 100644 --- a/TdLib.Api/Objects/Passkey.cs +++ b/TdLib.Api/Objects/Passkey.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a passkey /// - public static partial class TdApi + public partial class Passkey : Object { /// - /// Describes a passkey + /// Data type for serialization /// - public partial class Passkey : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passkey"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passkey"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the passkey - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the passkey + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Name of the passkey - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the passkey + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Point in time (Unix timestamp) when the passkey was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("addition_date")] - public int AdditionDate { get; set; } + /// + /// Point in time (Unix timestamp) when the passkey was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("addition_date")] + public int AdditionDate { get; set; } - /// - /// Point in time (Unix timestamp) when the passkey was used last time; 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_usage_date")] - public int LastUsageDate { get; set; } + /// + /// Point in time (Unix timestamp) when the passkey was used last time; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_usage_date")] + public int LastUsageDate { get; set; } - /// - /// Identifier of the custom emoji that is used as the icon of the software that created the passkey; 0 if unknown - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("software_icon_custom_emoji_id")] - public long SoftwareIconCustomEmojiId { get; set; } - } + /// + /// Identifier of the custom emoji that is used as the icon of the software that created the passkey; 0 if unknown + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("software_icon_custom_emoji_id")] + public long SoftwareIconCustomEmojiId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Passkeys.cs b/TdLib.Api/Objects/Passkeys.cs index 01e7ab6f..24f7b711 100644 --- a/TdLib.Api/Objects/Passkeys.cs +++ b/TdLib.Api/Objects/Passkeys.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of passkeys /// - public static partial class TdApi + public partial class Passkeys : Object { /// - /// Contains a list of passkeys + /// Data type for serialization /// - public partial class Passkeys : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passkeys"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passkeys"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of passkeys - /// - [JsonProperty("passkeys", ItemConverterType = typeof(Converter))] - public Passkey[] Passkeys_ { get; set; } - } + /// + /// List of passkeys + /// + [JsonProperty("passkeys", ItemConverterType = typeof(Converter))] + public Passkey[] Passkeys_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PassportAuthorizationForm.cs b/TdLib.Api/Objects/PassportAuthorizationForm.cs index a3f7040c..2f4a654f 100644 --- a/TdLib.Api/Objects/PassportAuthorizationForm.cs +++ b/TdLib.Api/Objects/PassportAuthorizationForm.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Telegram Passport authorization form that was requested /// - public static partial class TdApi + public partial class PassportAuthorizationForm : Object { /// - /// Contains information about a Telegram Passport authorization form that was requested + /// Data type for serialization /// - public partial class PassportAuthorizationForm : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportAuthorizationForm"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportAuthorizationForm"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the authorization form - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique identifier of the authorization form + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Telegram Passport elements that must be provided to complete the form - /// - [JsonProperty("required_elements", ItemConverterType = typeof(Converter))] - public PassportRequiredElement[] RequiredElements { get; set; } + /// + /// Telegram Passport elements that must be provided to complete the form + /// + [JsonProperty("required_elements", ItemConverterType = typeof(Converter))] + public PassportRequiredElement[] RequiredElements { get; set; } - /// - /// URL for the privacy policy of the service; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("privacy_policy_url")] - public string PrivacyPolicyUrl { get; set; } - } + /// + /// URL for the privacy policy of the service; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("privacy_policy_url")] + public string PrivacyPolicyUrl { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PassportElementAddress.cs b/TdLib.Api/Objects/PassportElementAddress.cs index 0effb8ee..cba04f6f 100644 --- a/TdLib.Api/Objects/PassportElementAddress.cs +++ b/TdLib.Api/Objects/PassportElementAddress.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's address + /// + public class PassportElementAddress : PassportElement { /// - /// A Telegram Passport element containing the user's address + /// Data type for serialization /// - public class PassportElementAddress : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public Address Address { get; set; } - } + /// + /// Address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public Address Address { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementBankStatement.cs b/TdLib.Api/Objects/PassportElementBankStatement.cs index d34d8470..92c5f6f4 100644 --- a/TdLib.Api/Objects/PassportElementBankStatement.cs +++ b/TdLib.Api/Objects/PassportElementBankStatement.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's bank statement + /// + public class PassportElementBankStatement : PassportElement { /// - /// A Telegram Passport element containing the user's bank statement + /// Data type for serialization /// - public class PassportElementBankStatement : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementBankStatement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementBankStatement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Bank statement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bank_statement")] - public PersonalDocument BankStatement { get; set; } - } + /// + /// Bank statement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bank_statement")] + public PersonalDocument BankStatement { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementDriverLicense.cs b/TdLib.Api/Objects/PassportElementDriverLicense.cs index 4517ffbb..0cad4ceb 100644 --- a/TdLib.Api/Objects/PassportElementDriverLicense.cs +++ b/TdLib.Api/Objects/PassportElementDriverLicense.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's driver license + /// + public class PassportElementDriverLicense : PassportElement { /// - /// A Telegram Passport element containing the user's driver license + /// Data type for serialization /// - public class PassportElementDriverLicense : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementDriverLicense"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementDriverLicense"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Driver license - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("driver_license")] - public IdentityDocument DriverLicense { get; set; } - } + /// + /// Driver license + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("driver_license")] + public IdentityDocument DriverLicense { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementEmailAddress.cs b/TdLib.Api/Objects/PassportElementEmailAddress.cs index 7a889805..3ad1c791 100644 --- a/TdLib.Api/Objects/PassportElementEmailAddress.cs +++ b/TdLib.Api/Objects/PassportElementEmailAddress.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's email address + /// + public class PassportElementEmailAddress : PassportElement { /// - /// A Telegram Passport element containing the user's email address + /// Data type for serialization /// - public class PassportElementEmailAddress : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementEmailAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address")] - public string EmailAddress { get; set; } - } + /// + /// Email address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address")] + public string EmailAddress { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementError.cs b/TdLib.Api/Objects/PassportElementError.cs index b0de35c4..ae38a630 100644 --- a/TdLib.Api/Objects/PassportElementError.cs +++ b/TdLib.Api/Objects/PassportElementError.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the description of an error in a Telegram Passport element /// - public static partial class TdApi + public partial class PassportElementError : Object { /// - /// Contains the description of an error in a Telegram Passport element + /// Data type for serialization /// - public partial class PassportElementError : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementError"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementError"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the Telegram Passport element which has the error - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PassportElementType Type { get; set; } + /// + /// Type of the Telegram Passport element which has the error + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PassportElementType Type { get; set; } - /// - /// Error message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public string Message { get; set; } + /// + /// Error message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public string Message { get; set; } - /// - /// Error source - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source")] - public PassportElementErrorSource Source { get; set; } - } + /// + /// Error source + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source")] + public PassportElementErrorSource Source { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PassportElementErrorSourceDataField.cs b/TdLib.Api/Objects/PassportElementErrorSourceDataField.cs index a30ed055..8d225ec0 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceDataField.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceDataField.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// One of the data fields contains an error. The error will be considered resolved when the value of the field changes + /// + public class PassportElementErrorSourceDataField : PassportElementErrorSource { /// - /// One of the data fields contains an error. The error will be considered resolved when the value of the field changes + /// Data type for serialization /// - public class PassportElementErrorSourceDataField : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceDataField"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceDataField"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Field name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("field_name")] - public string FieldName { get; set; } - } + /// + /// Field name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("field_name")] + public string FieldName { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceFile.cs b/TdLib.Api/Objects/PassportElementErrorSourceFile.cs index dca62f12..fd4452f0 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceFile.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceFile.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// The file contains an error. The error will be considered resolved when the file changes + /// + public class PassportElementErrorSourceFile : PassportElementErrorSource { /// - /// The file contains an error. The error will be considered resolved when the file changes + /// Data type for serialization /// - public class PassportElementErrorSourceFile : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceFile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Index of a file with the error - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_index")] - public int FileIndex { get; set; } - } + /// + /// Index of a file with the error + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_index")] + public int FileIndex { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceFiles.cs b/TdLib.Api/Objects/PassportElementErrorSourceFiles.cs index e145ea1e..78a0eb2b 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceFiles.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceFiles.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// The list of attached files contains an error. The error will be considered resolved when the list of files changes + /// + public class PassportElementErrorSourceFiles : PassportElementErrorSource { /// - /// The list of attached files contains an error. The error will be considered resolved when the list of files changes + /// Data type for serialization /// - public class PassportElementErrorSourceFiles : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceFiles"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceFiles"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceFrontSide.cs b/TdLib.Api/Objects/PassportElementErrorSourceFrontSide.cs index 482c4476..36c47e8f 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceFrontSide.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceFrontSide.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// The front side of the document contains an error. The error will be considered resolved when the file with the front side changes + /// + public class PassportElementErrorSourceFrontSide : PassportElementErrorSource { /// - /// The front side of the document contains an error. The error will be considered resolved when the file with the front side changes + /// Data type for serialization /// - public class PassportElementErrorSourceFrontSide : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceFrontSide"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceFrontSide"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceReverseSide.cs b/TdLib.Api/Objects/PassportElementErrorSourceReverseSide.cs index 4f5e47e8..a4780eeb 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceReverseSide.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceReverseSide.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes + /// + public class PassportElementErrorSourceReverseSide : PassportElementErrorSource { /// - /// The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes + /// Data type for serialization /// - public class PassportElementErrorSourceReverseSide : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceReverseSide"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceReverseSide"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceSelfie.cs b/TdLib.Api/Objects/PassportElementErrorSourceSelfie.cs index 8d0661bd..e2c47f0b 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceSelfie.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceSelfie.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes + /// + public class PassportElementErrorSourceSelfie : PassportElementErrorSource { /// - /// The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes + /// Data type for serialization /// - public class PassportElementErrorSourceSelfie : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceSelfie"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceSelfie"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceTranslationFile.cs b/TdLib.Api/Objects/PassportElementErrorSourceTranslationFile.cs index 13fa1fa9..d242662b 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceTranslationFile.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceTranslationFile.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// One of files with the translation of the document contains an error. The error will be considered resolved when the file changes + /// + public class PassportElementErrorSourceTranslationFile : PassportElementErrorSource { /// - /// One of files with the translation of the document contains an error. The error will be considered resolved when the file changes + /// Data type for serialization /// - public class PassportElementErrorSourceTranslationFile : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceTranslationFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceTranslationFile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Index of a file with the error - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_index")] - public int FileIndex { get; set; } - } + /// + /// Index of a file with the error + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_index")] + public int FileIndex { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceTranslationFiles.cs b/TdLib.Api/Objects/PassportElementErrorSourceTranslationFiles.cs index faafba60..12de2fb1 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceTranslationFiles.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceTranslationFiles.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// The translation of the document contains an error. The error will be considered resolved when the list of translation files changes + /// + public class PassportElementErrorSourceTranslationFiles : PassportElementErrorSource { /// - /// The translation of the document contains an error. The error will be considered resolved when the list of translation files changes + /// Data type for serialization /// - public class PassportElementErrorSourceTranslationFiles : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceTranslationFiles"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceTranslationFiles"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementErrorSourceUnspecified.cs b/TdLib.Api/Objects/PassportElementErrorSourceUnspecified.cs index 4105583a..076184ff 100644 --- a/TdLib.Api/Objects/PassportElementErrorSourceUnspecified.cs +++ b/TdLib.Api/Objects/PassportElementErrorSourceUnspecified.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementErrorSource : Object { - public partial class PassportElementErrorSource : Object + /// + /// Contains the description of an error in a Telegram Passport element + /// + public class PassportElementErrorSourceUnspecified : PassportElementErrorSource { /// - /// Contains the description of an error in a Telegram Passport element + /// Data type for serialization /// - public class PassportElementErrorSourceUnspecified : PassportElementErrorSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementErrorSourceUnspecified"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementErrorSourceUnspecified"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementIdentityCard.cs b/TdLib.Api/Objects/PassportElementIdentityCard.cs index 1264ffd8..702f880f 100644 --- a/TdLib.Api/Objects/PassportElementIdentityCard.cs +++ b/TdLib.Api/Objects/PassportElementIdentityCard.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's identity card + /// + public class PassportElementIdentityCard : PassportElement { /// - /// A Telegram Passport element containing the user's identity card + /// Data type for serialization /// - public class PassportElementIdentityCard : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementIdentityCard"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementIdentityCard"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identity card - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("identity_card")] - public IdentityDocument IdentityCard { get; set; } - } + /// + /// Identity card + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("identity_card")] + public IdentityDocument IdentityCard { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementInternalPassport.cs b/TdLib.Api/Objects/PassportElementInternalPassport.cs index 96c5bf95..d13b8127 100644 --- a/TdLib.Api/Objects/PassportElementInternalPassport.cs +++ b/TdLib.Api/Objects/PassportElementInternalPassport.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's internal passport + /// + public class PassportElementInternalPassport : PassportElement { /// - /// A Telegram Passport element containing the user's internal passport + /// Data type for serialization /// - public class PassportElementInternalPassport : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementInternalPassport"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementInternalPassport"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Internal passport - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("internal_passport")] - public IdentityDocument InternalPassport { get; set; } - } + /// + /// Internal passport + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("internal_passport")] + public IdentityDocument InternalPassport { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementPassport.cs b/TdLib.Api/Objects/PassportElementPassport.cs index 326d4319..7fec5ca8 100644 --- a/TdLib.Api/Objects/PassportElementPassport.cs +++ b/TdLib.Api/Objects/PassportElementPassport.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's passport + /// + public class PassportElementPassport : PassportElement { /// - /// A Telegram Passport element containing the user's passport + /// Data type for serialization /// - public class PassportElementPassport : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementPassport"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementPassport"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Passport - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("passport")] - public IdentityDocument Passport { get; set; } - } + /// + /// Passport + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("passport")] + public IdentityDocument Passport { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementPassportRegistration.cs b/TdLib.Api/Objects/PassportElementPassportRegistration.cs index 5201eede..da974e7c 100644 --- a/TdLib.Api/Objects/PassportElementPassportRegistration.cs +++ b/TdLib.Api/Objects/PassportElementPassportRegistration.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's passport registration pages + /// + public class PassportElementPassportRegistration : PassportElement { /// - /// A Telegram Passport element containing the user's passport registration pages + /// Data type for serialization /// - public class PassportElementPassportRegistration : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementPassportRegistration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementPassportRegistration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Passport registration pages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("passport_registration")] - public PersonalDocument PassportRegistration { get; set; } - } + /// + /// Passport registration pages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("passport_registration")] + public PersonalDocument PassportRegistration { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementPersonalDetails.cs b/TdLib.Api/Objects/PassportElementPersonalDetails.cs index 128c19cf..826c86a4 100644 --- a/TdLib.Api/Objects/PassportElementPersonalDetails.cs +++ b/TdLib.Api/Objects/PassportElementPersonalDetails.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// Contains information about a Telegram Passport element + /// + public class PassportElementPersonalDetails : PassportElement { /// - /// Contains information about a Telegram Passport element + /// Data type for serialization /// - public class PassportElementPersonalDetails : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementPersonalDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementPersonalDetails"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Personal details of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("personal_details")] - public PersonalDetails PersonalDetails { get; set; } - } + /// + /// Personal details of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("personal_details")] + public PersonalDetails PersonalDetails { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementPhoneNumber.cs b/TdLib.Api/Objects/PassportElementPhoneNumber.cs index 181432d0..ee187243 100644 --- a/TdLib.Api/Objects/PassportElementPhoneNumber.cs +++ b/TdLib.Api/Objects/PassportElementPhoneNumber.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's phone number + /// + public class PassportElementPhoneNumber : PassportElement { /// - /// A Telegram Passport element containing the user's phone number + /// Data type for serialization /// - public class PassportElementPhoneNumber : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Phone number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } - } + /// + /// Phone number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementRentalAgreement.cs b/TdLib.Api/Objects/PassportElementRentalAgreement.cs index c90ce2db..ba979a7d 100644 --- a/TdLib.Api/Objects/PassportElementRentalAgreement.cs +++ b/TdLib.Api/Objects/PassportElementRentalAgreement.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's rental agreement + /// + public class PassportElementRentalAgreement : PassportElement { /// - /// A Telegram Passport element containing the user's rental agreement + /// Data type for serialization /// - public class PassportElementRentalAgreement : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementRentalAgreement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementRentalAgreement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Rental agreement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rental_agreement")] - public PersonalDocument RentalAgreement { get; set; } - } + /// + /// Rental agreement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rental_agreement")] + public PersonalDocument RentalAgreement { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementTemporaryRegistration.cs b/TdLib.Api/Objects/PassportElementTemporaryRegistration.cs index 1b288e2d..2ce18db0 100644 --- a/TdLib.Api/Objects/PassportElementTemporaryRegistration.cs +++ b/TdLib.Api/Objects/PassportElementTemporaryRegistration.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's temporary registration + /// + public class PassportElementTemporaryRegistration : PassportElement { /// - /// A Telegram Passport element containing the user's temporary registration + /// Data type for serialization /// - public class PassportElementTemporaryRegistration : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTemporaryRegistration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTemporaryRegistration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Temporary registration - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("temporary_registration")] - public PersonalDocument TemporaryRegistration { get; set; } - } + /// + /// Temporary registration + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("temporary_registration")] + public PersonalDocument TemporaryRegistration { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeAddress.cs b/TdLib.Api/Objects/PassportElementTypeAddress.cs index c1615b41..54d1b185 100644 --- a/TdLib.Api/Objects/PassportElementTypeAddress.cs +++ b/TdLib.Api/Objects/PassportElementTypeAddress.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's address + /// + public class PassportElementTypeAddress : PassportElementType { /// - /// A Telegram Passport element containing the user's address + /// Data type for serialization /// - public class PassportElementTypeAddress : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeBankStatement.cs b/TdLib.Api/Objects/PassportElementTypeBankStatement.cs index 8d5a4be0..debf307b 100644 --- a/TdLib.Api/Objects/PassportElementTypeBankStatement.cs +++ b/TdLib.Api/Objects/PassportElementTypeBankStatement.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's bank statement + /// + public class PassportElementTypeBankStatement : PassportElementType { /// - /// A Telegram Passport element containing the user's bank statement + /// Data type for serialization /// - public class PassportElementTypeBankStatement : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeBankStatement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeBankStatement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeDriverLicense.cs b/TdLib.Api/Objects/PassportElementTypeDriverLicense.cs index e3a67bfb..59f56213 100644 --- a/TdLib.Api/Objects/PassportElementTypeDriverLicense.cs +++ b/TdLib.Api/Objects/PassportElementTypeDriverLicense.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's driver license + /// + public class PassportElementTypeDriverLicense : PassportElementType { /// - /// A Telegram Passport element containing the user's driver license + /// Data type for serialization /// - public class PassportElementTypeDriverLicense : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeDriverLicense"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeDriverLicense"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeEmailAddress.cs b/TdLib.Api/Objects/PassportElementTypeEmailAddress.cs index 96bd7b63..fdbcef81 100644 --- a/TdLib.Api/Objects/PassportElementTypeEmailAddress.cs +++ b/TdLib.Api/Objects/PassportElementTypeEmailAddress.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's email address + /// + public class PassportElementTypeEmailAddress : PassportElementType { /// - /// A Telegram Passport element containing the user's email address + /// Data type for serialization /// - public class PassportElementTypeEmailAddress : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeEmailAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeIdentityCard.cs b/TdLib.Api/Objects/PassportElementTypeIdentityCard.cs index 93544ef7..6d3c76c3 100644 --- a/TdLib.Api/Objects/PassportElementTypeIdentityCard.cs +++ b/TdLib.Api/Objects/PassportElementTypeIdentityCard.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's identity card + /// + public class PassportElementTypeIdentityCard : PassportElementType { /// - /// A Telegram Passport element containing the user's identity card + /// Data type for serialization /// - public class PassportElementTypeIdentityCard : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeIdentityCard"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeIdentityCard"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeInternalPassport.cs b/TdLib.Api/Objects/PassportElementTypeInternalPassport.cs index 6c45d07f..709433d6 100644 --- a/TdLib.Api/Objects/PassportElementTypeInternalPassport.cs +++ b/TdLib.Api/Objects/PassportElementTypeInternalPassport.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's internal passport + /// + public class PassportElementTypeInternalPassport : PassportElementType { /// - /// A Telegram Passport element containing the user's internal passport + /// Data type for serialization /// - public class PassportElementTypeInternalPassport : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeInternalPassport"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeInternalPassport"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypePassport.cs b/TdLib.Api/Objects/PassportElementTypePassport.cs index 220d7297..29df1c79 100644 --- a/TdLib.Api/Objects/PassportElementTypePassport.cs +++ b/TdLib.Api/Objects/PassportElementTypePassport.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's passport + /// + public class PassportElementTypePassport : PassportElementType { /// - /// A Telegram Passport element containing the user's passport + /// Data type for serialization /// - public class PassportElementTypePassport : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypePassport"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypePassport"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypePassportRegistration.cs b/TdLib.Api/Objects/PassportElementTypePassportRegistration.cs index 50b0bde0..91c64c75 100644 --- a/TdLib.Api/Objects/PassportElementTypePassportRegistration.cs +++ b/TdLib.Api/Objects/PassportElementTypePassportRegistration.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the registration page of the user's passport + /// + public class PassportElementTypePassportRegistration : PassportElementType { /// - /// A Telegram Passport element containing the registration page of the user's passport + /// Data type for serialization /// - public class PassportElementTypePassportRegistration : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypePassportRegistration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypePassportRegistration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypePersonalDetails.cs b/TdLib.Api/Objects/PassportElementTypePersonalDetails.cs index 6b288c1d..0f687cfb 100644 --- a/TdLib.Api/Objects/PassportElementTypePersonalDetails.cs +++ b/TdLib.Api/Objects/PassportElementTypePersonalDetails.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// Contains the type of Telegram Passport element + /// + public class PassportElementTypePersonalDetails : PassportElementType { /// - /// Contains the type of Telegram Passport element + /// Data type for serialization /// - public class PassportElementTypePersonalDetails : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypePersonalDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypePersonalDetails"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypePhoneNumber.cs b/TdLib.Api/Objects/PassportElementTypePhoneNumber.cs index bff89339..e985ec97 100644 --- a/TdLib.Api/Objects/PassportElementTypePhoneNumber.cs +++ b/TdLib.Api/Objects/PassportElementTypePhoneNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's phone number + /// + public class PassportElementTypePhoneNumber : PassportElementType { /// - /// A Telegram Passport element containing the user's phone number + /// Data type for serialization /// - public class PassportElementTypePhoneNumber : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypePhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypePhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeRentalAgreement.cs b/TdLib.Api/Objects/PassportElementTypeRentalAgreement.cs index 1fd001d0..51258c2a 100644 --- a/TdLib.Api/Objects/PassportElementTypeRentalAgreement.cs +++ b/TdLib.Api/Objects/PassportElementTypeRentalAgreement.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's rental agreement + /// + public class PassportElementTypeRentalAgreement : PassportElementType { /// - /// A Telegram Passport element containing the user's rental agreement + /// Data type for serialization /// - public class PassportElementTypeRentalAgreement : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeRentalAgreement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeRentalAgreement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeTemporaryRegistration.cs b/TdLib.Api/Objects/PassportElementTypeTemporaryRegistration.cs index 18b0440b..732b8c1f 100644 --- a/TdLib.Api/Objects/PassportElementTypeTemporaryRegistration.cs +++ b/TdLib.Api/Objects/PassportElementTypeTemporaryRegistration.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's temporary registration + /// + public class PassportElementTypeTemporaryRegistration : PassportElementType { /// - /// A Telegram Passport element containing the user's temporary registration + /// Data type for serialization /// - public class PassportElementTypeTemporaryRegistration : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeTemporaryRegistration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeTemporaryRegistration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementTypeUtilityBill.cs b/TdLib.Api/Objects/PassportElementTypeUtilityBill.cs index 6e2946c8..69f32352 100644 --- a/TdLib.Api/Objects/PassportElementTypeUtilityBill.cs +++ b/TdLib.Api/Objects/PassportElementTypeUtilityBill.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElementType : Object { - public partial class PassportElementType : Object + /// + /// A Telegram Passport element containing the user's utility bill + /// + public class PassportElementTypeUtilityBill : PassportElementType { /// - /// A Telegram Passport element containing the user's utility bill + /// Data type for serialization /// - public class PassportElementTypeUtilityBill : PassportElementType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementTypeUtilityBill"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementTypeUtilityBill"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PassportElementUtilityBill.cs b/TdLib.Api/Objects/PassportElementUtilityBill.cs index 6f548c71..6833298a 100644 --- a/TdLib.Api/Objects/PassportElementUtilityBill.cs +++ b/TdLib.Api/Objects/PassportElementUtilityBill.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PassportElement : Object { - public partial class PassportElement : Object + /// + /// A Telegram Passport element containing the user's utility bill + /// + public class PassportElementUtilityBill : PassportElement { /// - /// A Telegram Passport element containing the user's utility bill + /// Data type for serialization /// - public class PassportElementUtilityBill : PassportElement - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementUtilityBill"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementUtilityBill"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Utility bill - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("utility_bill")] - public PersonalDocument UtilityBill { get; set; } - } + /// + /// Utility bill + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("utility_bill")] + public PersonalDocument UtilityBill { get; set; } } } } diff --git a/TdLib.Api/Objects/PassportElements.cs b/TdLib.Api/Objects/PassportElements.cs index ce5aaa1e..4dfe2dcd 100644 --- a/TdLib.Api/Objects/PassportElements.cs +++ b/TdLib.Api/Objects/PassportElements.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about saved Telegram Passport elements /// - public static partial class TdApi + public partial class PassportElements : Object { /// - /// Contains information about saved Telegram Passport elements + /// Data type for serialization /// - public partial class PassportElements : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElements"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElements"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Telegram Passport elements - /// - [JsonProperty("elements", ItemConverterType = typeof(Converter))] - public PassportElement[] Elements { get; set; } - } + /// + /// Telegram Passport elements + /// + [JsonProperty("elements", ItemConverterType = typeof(Converter))] + public PassportElement[] Elements { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PassportElementsWithErrors.cs b/TdLib.Api/Objects/PassportElementsWithErrors.cs index 2879994d..536d1318 100644 --- a/TdLib.Api/Objects/PassportElementsWithErrors.cs +++ b/TdLib.Api/Objects/PassportElementsWithErrors.cs @@ -2,42 +2,41 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Telegram Passport elements and corresponding errors /// - public static partial class TdApi + public partial class PassportElementsWithErrors : Object { /// - /// Contains information about a Telegram Passport elements and corresponding errors + /// Data type for serialization /// - public partial class PassportElementsWithErrors : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportElementsWithErrors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportElementsWithErrors"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Telegram Passport elements - /// - [JsonProperty("elements", ItemConverterType = typeof(Converter))] - public PassportElement[] Elements { get; set; } + /// + /// Telegram Passport elements + /// + [JsonProperty("elements", ItemConverterType = typeof(Converter))] + public PassportElement[] Elements { get; set; } - /// - /// Errors in the elements that are already available - /// - [JsonProperty("errors", ItemConverterType = typeof(Converter))] - public PassportElementError[] Errors { get; set; } - } + /// + /// Errors in the elements that are already available + /// + [JsonProperty("errors", ItemConverterType = typeof(Converter))] + public PassportElementError[] Errors { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PassportRequiredElement.cs b/TdLib.Api/Objects/PassportRequiredElement.cs index 4fd0a5ab..286d40c7 100644 --- a/TdLib.Api/Objects/PassportRequiredElement.cs +++ b/TdLib.Api/Objects/PassportRequiredElement.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a description of the required Telegram Passport element that was requested by a service /// - public static partial class TdApi + public partial class PassportRequiredElement : Object { /// - /// Contains a description of the required Telegram Passport element that was requested by a service + /// Data type for serialization /// - public partial class PassportRequiredElement : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportRequiredElement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportRequiredElement"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of Telegram Passport elements any of which is enough to provide - /// - [JsonProperty("suitable_elements", ItemConverterType = typeof(Converter))] - public PassportSuitableElement[] SuitableElements { get; set; } - } + /// + /// List of Telegram Passport elements any of which is enough to provide + /// + [JsonProperty("suitable_elements", ItemConverterType = typeof(Converter))] + public PassportSuitableElement[] SuitableElements { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PassportSuitableElement.cs b/TdLib.Api/Objects/PassportSuitableElement.cs index f4f69c42..f4f4de98 100644 --- a/TdLib.Api/Objects/PassportSuitableElement.cs +++ b/TdLib.Api/Objects/PassportSuitableElement.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Telegram Passport element that was requested by a service /// - public static partial class TdApi + public partial class PassportSuitableElement : Object { /// - /// Contains information about a Telegram Passport element that was requested by a service + /// Data type for serialization /// - public partial class PassportSuitableElement : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passportSuitableElement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passportSuitableElement"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the element - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PassportElementType Type { get; set; } + /// + /// Type of the element + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PassportElementType Type { get; set; } - /// - /// True, if a selfie is required with the identity document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_selfie_required")] - public bool IsSelfieRequired { get; set; } + /// + /// True, if a selfie is required with the identity document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_selfie_required")] + public bool IsSelfieRequired { get; set; } - /// - /// True, if a certified English translation is required with the document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_translation_required")] - public bool IsTranslationRequired { get; set; } + /// + /// True, if a certified English translation is required with the document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_translation_required")] + public bool IsTranslationRequired { get; set; } - /// - /// True, if personal details must include the user's name in the language of their country of residence - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_native_name_required")] - public bool IsNativeNameRequired { get; set; } - } + /// + /// True, if personal details must include the user's name in the language of their country of residence + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_native_name_required")] + public bool IsNativeNameRequired { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PasswordState.cs b/TdLib.Api/Objects/PasswordState.cs index ed2f6c6f..8a6b82d0 100644 --- a/TdLib.Api/Objects/PasswordState.cs +++ b/TdLib.Api/Objects/PasswordState.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents the current state of 2-step verification /// - public static partial class TdApi + public partial class PasswordState : Object { /// - /// Represents the current state of 2-step verification + /// Data type for serialization /// - public partial class PasswordState : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "passwordState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "passwordState"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if a 2-step verification password is set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_password")] - public bool HasPassword { get; set; } + /// + /// True, if a 2-step verification password is set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_password")] + public bool HasPassword { get; set; } - /// - /// Hint for the password; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password_hint")] - public string PasswordHint { get; set; } + /// + /// Hint for the password; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password_hint")] + public string PasswordHint { get; set; } - /// - /// True, if a recovery email is set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_recovery_email_address")] - public bool HasRecoveryEmailAddress { get; set; } + /// + /// True, if a recovery email is set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_recovery_email_address")] + public bool HasRecoveryEmailAddress { get; set; } - /// - /// True, if some Telegram Passport elements were saved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_passport_data")] - public bool HasPassportData { get; set; } + /// + /// True, if some Telegram Passport elements were saved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_passport_data")] + public bool HasPassportData { get; set; } - /// - /// Information about the recovery email address to which the confirmation email was sent; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recovery_email_address_code_info")] - public EmailAddressAuthenticationCodeInfo RecoveryEmailAddressCodeInfo { get; set; } + /// + /// Information about the recovery email address to which the confirmation email was sent; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recovery_email_address_code_info")] + public EmailAddressAuthenticationCodeInfo RecoveryEmailAddressCodeInfo { get; set; } - /// - /// Pattern of the email address set up for logging in - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("login_email_address_pattern")] - public string LoginEmailAddressPattern { get; set; } + /// + /// Pattern of the email address set up for logging in + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("login_email_address_pattern")] + public string LoginEmailAddressPattern { get; set; } - /// - /// If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_reset_date")] - public int PendingResetDate { get; set; } - } + /// + /// If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_reset_date")] + public int PendingResetDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PaymentForm.cs b/TdLib.Api/Objects/PaymentForm.cs index 7c40a9f7..5e750f66 100644 --- a/TdLib.Api/Objects/PaymentForm.cs +++ b/TdLib.Api/Objects/PaymentForm.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an invoice payment form /// - public static partial class TdApi + public partial class PaymentForm : Object { /// - /// Contains information about an invoice payment form + /// Data type for serialization /// - public partial class PaymentForm : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentForm"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentForm"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The payment form identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// The payment form identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Type of the payment form - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PaymentFormType Type { get; set; } + /// + /// Type of the payment form + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PaymentFormType Type { get; set; } - /// - /// User identifier of the seller bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("seller_bot_user_id")] - public long SellerBotUserId { get; set; } + /// + /// User identifier of the seller bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("seller_bot_user_id")] + public long SellerBotUserId { get; set; } - /// - /// Information about the product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("product_info")] - public ProductInfo ProductInfo { get; set; } - } + /// + /// Information about the product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("product_info")] + public ProductInfo ProductInfo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PaymentFormTypeRegular.cs b/TdLib.Api/Objects/PaymentFormTypeRegular.cs index 1721a578..199c48e7 100644 --- a/TdLib.Api/Objects/PaymentFormTypeRegular.cs +++ b/TdLib.Api/Objects/PaymentFormTypeRegular.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentFormType : Object { - public partial class PaymentFormType : Object + /// + /// Describes type of payment form + /// + public class PaymentFormTypeRegular : PaymentFormType { /// - /// Describes type of payment form + /// Data type for serialization /// - public class PaymentFormTypeRegular : PaymentFormType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentFormTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentFormTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Full information about the invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice")] - public Invoice Invoice { get; set; } + /// + /// Full information about the invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice")] + public Invoice Invoice { get; set; } - /// - /// User identifier of the payment provider bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payment_provider_user_id")] - public long PaymentProviderUserId { get; set; } + /// + /// User identifier of the payment provider bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_provider_user_id")] + public long PaymentProviderUserId { get; set; } - /// - /// Information about the payment provider - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payment_provider")] - public PaymentProvider PaymentProvider { get; set; } + /// + /// Information about the payment provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_provider")] + public PaymentProvider PaymentProvider { get; set; } - /// - /// The list of additional payment options - /// - [JsonProperty("additional_payment_options", ItemConverterType = typeof(Converter))] - public PaymentOption[] AdditionalPaymentOptions { get; set; } + /// + /// The list of additional payment options + /// + [JsonProperty("additional_payment_options", ItemConverterType = typeof(Converter))] + public PaymentOption[] AdditionalPaymentOptions { get; set; } - /// - /// Saved server-side order information; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_order_info")] - public OrderInfo SavedOrderInfo { get; set; } + /// + /// Saved server-side order information; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_order_info")] + public OrderInfo SavedOrderInfo { get; set; } - /// - /// The list of saved payment credentials - /// - [JsonProperty("saved_credentials", ItemConverterType = typeof(Converter))] - public SavedCredentials[] SavedCredentials { get; set; } + /// + /// The list of saved payment credentials + /// + [JsonProperty("saved_credentials", ItemConverterType = typeof(Converter))] + public SavedCredentials[] SavedCredentials { get; set; } - /// - /// True, if the user can choose to save credentials - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_save_credentials")] - public bool CanSaveCredentials { get; set; } + /// + /// True, if the user can choose to save credentials + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_save_credentials")] + public bool CanSaveCredentials { get; set; } - /// - /// True, if the user will be able to save credentials, if sets up a 2-step verification password - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_password")] - public bool NeedPassword { get; set; } - } + /// + /// True, if the user will be able to save credentials, if sets up a 2-step verification password + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_password")] + public bool NeedPassword { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentFormTypeStarSubscription.cs b/TdLib.Api/Objects/PaymentFormTypeStarSubscription.cs index 670a0837..3f0ff0b6 100644 --- a/TdLib.Api/Objects/PaymentFormTypeStarSubscription.cs +++ b/TdLib.Api/Objects/PaymentFormTypeStarSubscription.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentFormType : Object { - public partial class PaymentFormType : Object + /// + /// The payment form is for a payment in Telegram Stars for subscription + /// + public class PaymentFormTypeStarSubscription : PaymentFormType { /// - /// The payment form is for a payment in Telegram Stars for subscription + /// Data type for serialization /// - public class PaymentFormTypeStarSubscription : PaymentFormType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentFormTypeStarSubscription"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentFormTypeStarSubscription"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about subscription plan - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pricing")] - public StarSubscriptionPricing Pricing { get; set; } - } + /// + /// Information about subscription plan + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pricing")] + public StarSubscriptionPricing Pricing { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentFormTypeStars.cs b/TdLib.Api/Objects/PaymentFormTypeStars.cs index 62b65d67..e22af480 100644 --- a/TdLib.Api/Objects/PaymentFormTypeStars.cs +++ b/TdLib.Api/Objects/PaymentFormTypeStars.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentFormType : Object { - public partial class PaymentFormType : Object + /// + /// The payment form is for a payment in Telegram Stars + /// + public class PaymentFormTypeStars : PaymentFormType { /// - /// The payment form is for a payment in Telegram Stars + /// Data type for serialization /// - public class PaymentFormTypeStars : PaymentFormType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentFormTypeStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentFormTypeStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars that will be paid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Number of Telegram Stars that will be paid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentOption.cs b/TdLib.Api/Objects/PaymentOption.cs index eeecf52a..8641a1d5 100644 --- a/TdLib.Api/Objects/PaymentOption.cs +++ b/TdLib.Api/Objects/PaymentOption.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an additional payment option /// - public static partial class TdApi + public partial class PaymentOption : Object { /// - /// Describes an additional payment option + /// Data type for serialization /// - public partial class PaymentOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title for the payment option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title for the payment option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Payment form URL to be opened in a web view - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Payment form URL to be opened in a web view + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PaymentProviderOther.cs b/TdLib.Api/Objects/PaymentProviderOther.cs index 855a6b42..b84c44b6 100644 --- a/TdLib.Api/Objects/PaymentProviderOther.cs +++ b/TdLib.Api/Objects/PaymentProviderOther.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentProvider : Object { - public partial class PaymentProvider : Object + /// + /// Some other payment provider, for which a web payment form must be shown + /// + public class PaymentProviderOther : PaymentProvider { /// - /// Some other payment provider, for which a web payment form must be shown + /// Data type for serialization /// - public class PaymentProviderOther : PaymentProvider - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentProviderOther"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentProviderOther"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Payment form URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// Payment form URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentProviderSmartGlocal.cs b/TdLib.Api/Objects/PaymentProviderSmartGlocal.cs index ddcbad78..3efb7821 100644 --- a/TdLib.Api/Objects/PaymentProviderSmartGlocal.cs +++ b/TdLib.Api/Objects/PaymentProviderSmartGlocal.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentProvider : Object { - public partial class PaymentProvider : Object + /// + /// Contains information about a payment provider + /// + public class PaymentProviderSmartGlocal : PaymentProvider { /// - /// Contains information about a payment provider + /// Data type for serialization /// - public class PaymentProviderSmartGlocal : PaymentProvider - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentProviderSmartGlocal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentProviderSmartGlocal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Public payment token - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("public_token")] - public string PublicToken { get; set; } + /// + /// Public payment token + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_token")] + public string PublicToken { get; set; } - /// - /// URL for sending card tokenization requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tokenize_url")] - public string TokenizeUrl { get; set; } - } + /// + /// URL for sending card tokenization requests + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tokenize_url")] + public string TokenizeUrl { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentProviderStripe.cs b/TdLib.Api/Objects/PaymentProviderStripe.cs index ce4c658b..e0f41c68 100644 --- a/TdLib.Api/Objects/PaymentProviderStripe.cs +++ b/TdLib.Api/Objects/PaymentProviderStripe.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentProvider : Object { - public partial class PaymentProvider : Object + /// + /// Stripe payment provider + /// + public class PaymentProviderStripe : PaymentProvider { /// - /// Stripe payment provider + /// Data type for serialization /// - public class PaymentProviderStripe : PaymentProvider - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentProviderStripe"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentProviderStripe"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Stripe API publishable key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("publishable_key")] - public string PublishableKey { get; set; } + /// + /// Stripe API publishable key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("publishable_key")] + public string PublishableKey { get; set; } - /// - /// True, if the user country must be provided - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_country")] - public bool NeedCountry { get; set; } + /// + /// True, if the user country must be provided + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_country")] + public bool NeedCountry { get; set; } - /// - /// True, if the user ZIP/postal code must be provided - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_postal_code")] - public bool NeedPostalCode { get; set; } + /// + /// True, if the user ZIP/postal code must be provided + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_postal_code")] + public bool NeedPostalCode { get; set; } - /// - /// True, if the cardholder name must be provided - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_cardholder_name")] - public bool NeedCardholderName { get; set; } - } + /// + /// True, if the cardholder name must be provided + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_cardholder_name")] + public bool NeedCardholderName { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentReceipt.cs b/TdLib.Api/Objects/PaymentReceipt.cs index 021782a0..51adbacf 100644 --- a/TdLib.Api/Objects/PaymentReceipt.cs +++ b/TdLib.Api/Objects/PaymentReceipt.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a successful payment /// - public static partial class TdApi + public partial class PaymentReceipt : Object { /// - /// Contains information about a successful payment + /// Data type for serialization /// - public partial class PaymentReceipt : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentReceipt"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentReceipt"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("product_info")] - public ProductInfo ProductInfo { get; set; } + /// + /// Information about the product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("product_info")] + public ProductInfo ProductInfo { get; set; } - /// - /// Point in time (Unix timestamp) when the payment was made - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the payment was made + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// User identifier of the seller bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("seller_bot_user_id")] - public long SellerBotUserId { get; set; } + /// + /// User identifier of the seller bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("seller_bot_user_id")] + public long SellerBotUserId { get; set; } - /// - /// Type of the payment receipt - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PaymentReceiptType Type { get; set; } - } + /// + /// Type of the payment receipt + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PaymentReceiptType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PaymentReceiptTypeRegular.cs b/TdLib.Api/Objects/PaymentReceiptTypeRegular.cs index 02c83ee7..11b5258a 100644 --- a/TdLib.Api/Objects/PaymentReceiptTypeRegular.cs +++ b/TdLib.Api/Objects/PaymentReceiptTypeRegular.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentReceiptType : Object { - public partial class PaymentReceiptType : Object + /// + /// Describes type of successful payment + /// + public class PaymentReceiptTypeRegular : PaymentReceiptType { /// - /// Describes type of successful payment + /// Data type for serialization /// - public class PaymentReceiptTypeRegular : PaymentReceiptType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentReceiptTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentReceiptTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the payment provider bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payment_provider_user_id")] - public long PaymentProviderUserId { get; set; } + /// + /// User identifier of the payment provider bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_provider_user_id")] + public long PaymentProviderUserId { get; set; } - /// - /// Information about the invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice")] - public Invoice Invoice { get; set; } + /// + /// Information about the invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice")] + public Invoice Invoice { get; set; } - /// - /// Order information; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order_info")] - public OrderInfo OrderInfo { get; set; } + /// + /// Order information; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order_info")] + public OrderInfo OrderInfo { get; set; } - /// - /// Chosen shipping option; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shipping_option")] - public ShippingOption ShippingOption { get; set; } + /// + /// Chosen shipping option; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shipping_option")] + public ShippingOption ShippingOption { get; set; } - /// - /// Title of the saved credentials chosen by the buyer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("credentials_title")] - public string CredentialsTitle { get; set; } + /// + /// Title of the saved credentials chosen by the buyer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("credentials_title")] + public string CredentialsTitle { get; set; } - /// - /// The amount of tip chosen by the buyer in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tip_amount")] - public long TipAmount { get; set; } - } + /// + /// The amount of tip chosen by the buyer in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tip_amount")] + public long TipAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentReceiptTypeStars.cs b/TdLib.Api/Objects/PaymentReceiptTypeStars.cs index b59bdaf0..9d3592e3 100644 --- a/TdLib.Api/Objects/PaymentReceiptTypeStars.cs +++ b/TdLib.Api/Objects/PaymentReceiptTypeStars.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PaymentReceiptType : Object { - public partial class PaymentReceiptType : Object + /// + /// The payment was done using Telegram Stars + /// + public class PaymentReceiptTypeStars : PaymentReceiptType { /// - /// The payment was done using Telegram Stars + /// Data type for serialization /// - public class PaymentReceiptTypeStars : PaymentReceiptType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentReceiptTypeStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentReceiptTypeStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars that were paid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars that were paid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Unique identifier of the transaction that can be used to dispute it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transaction_id")] - public string TransactionId { get; set; } - } + /// + /// Unique identifier of the transaction that can be used to dispute it + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction_id")] + public string TransactionId { get; set; } } } } diff --git a/TdLib.Api/Objects/PaymentResult.cs b/TdLib.Api/Objects/PaymentResult.cs index e997b8ab..819d917e 100644 --- a/TdLib.Api/Objects/PaymentResult.cs +++ b/TdLib.Api/Objects/PaymentResult.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the result of a payment request /// - public static partial class TdApi + public partial class PaymentResult : Object { /// - /// Contains the result of a payment request + /// Data type for serialization /// - public partial class PaymentResult : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "paymentResult"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "paymentResult"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the payment request was successful; otherwise, the verification_url will be non-empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("success")] - public bool Success { get; set; } + /// + /// True, if the payment request was successful; otherwise, the verification_url will be non-empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("success")] + public bool Success { get; set; } - /// - /// URL for additional payment credentials verification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_url")] - public string VerificationUrl { get; set; } - } + /// + /// URL for additional payment credentials verification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_url")] + public string VerificationUrl { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PersonalDetails.cs b/TdLib.Api/Objects/PersonalDetails.cs index 819779ac..8fa9a1ad 100644 --- a/TdLib.Api/Objects/PersonalDetails.cs +++ b/TdLib.Api/Objects/PersonalDetails.cs @@ -2,100 +2,99 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the user's personal details /// - public static partial class TdApi + public partial class PersonalDetails : Object { /// - /// Contains the user's personal details + /// Data type for serialization /// - public partial class PersonalDetails : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "personalDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "personalDetails"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// First name of the user written in English; 1-255 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } + /// + /// First name of the user written in English; 1-255 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } - /// - /// Middle name of the user written in English; 0-255 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("middle_name")] - public string MiddleName { get; set; } + /// + /// Middle name of the user written in English; 0-255 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("middle_name")] + public string MiddleName { get; set; } - /// - /// Last name of the user written in English; 1-255 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } + /// + /// Last name of the user written in English; 1-255 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } - /// - /// Native first name of the user; 1-255 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("native_first_name")] - public string NativeFirstName { get; set; } + /// + /// Native first name of the user; 1-255 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("native_first_name")] + public string NativeFirstName { get; set; } - /// - /// Native middle name of the user; 0-255 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("native_middle_name")] - public string NativeMiddleName { get; set; } + /// + /// Native middle name of the user; 0-255 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("native_middle_name")] + public string NativeMiddleName { get; set; } - /// - /// Native last name of the user; 1-255 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("native_last_name")] - public string NativeLastName { get; set; } + /// + /// Native last name of the user; 1-255 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("native_last_name")] + public string NativeLastName { get; set; } - /// - /// Birthdate of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("birthdate")] - public Date Birthdate { get; set; } + /// + /// Birthdate of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("birthdate")] + public Date Birthdate { get; set; } - /// - /// Gender of the user, "male" or "female" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gender")] - public string Gender { get; set; } + /// + /// Gender of the user, "male" or "female" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gender")] + public string Gender { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code of the user's country - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } + /// + /// A two-letter ISO 3166-1 alpha-2 country code of the user's country + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } - /// - /// A two-letter ISO 3166-1 alpha-2 country code of the user's residence country - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("residence_country_code")] - public string ResidenceCountryCode { get; set; } - } + /// + /// A two-letter ISO 3166-1 alpha-2 country code of the user's residence country + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("residence_country_code")] + public string ResidenceCountryCode { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PersonalDocument.cs b/TdLib.Api/Objects/PersonalDocument.cs index d26b0248..4ba22743 100644 --- a/TdLib.Api/Objects/PersonalDocument.cs +++ b/TdLib.Api/Objects/PersonalDocument.cs @@ -2,42 +2,41 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A personal document, containing some information about a user /// - public static partial class TdApi + public partial class PersonalDocument : Object { /// - /// A personal document, containing some information about a user + /// Data type for serialization /// - public partial class PersonalDocument : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "personalDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "personalDocument"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of files containing the pages of the document - /// - [JsonProperty("files", ItemConverterType = typeof(Converter))] - public DatedFile[] Files { get; set; } + /// + /// List of files containing the pages of the document + /// + [JsonProperty("files", ItemConverterType = typeof(Converter))] + public DatedFile[] Files { get; set; } - /// - /// List of files containing a certified English translation of the document - /// - [JsonProperty("translation", ItemConverterType = typeof(Converter))] - public DatedFile[] Translation { get; set; } - } + /// + /// List of files containing a certified English translation of the document + /// + [JsonProperty("translation", ItemConverterType = typeof(Converter))] + public DatedFile[] Translation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PhoneNumberAuthenticationSettings.cs b/TdLib.Api/Objects/PhoneNumberAuthenticationSettings.cs index 0aec3448..48e19dcc 100644 --- a/TdLib.Api/Objects/PhoneNumberAuthenticationSettings.cs +++ b/TdLib.Api/Objects/PhoneNumberAuthenticationSettings.cs @@ -2,78 +2,77 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains settings for the authentication of the user's phone number /// - public static partial class TdApi + public partial class PhoneNumberAuthenticationSettings : Object { /// - /// Contains settings for the authentication of the user's phone number + /// Data type for serialization /// - public partial class PhoneNumberAuthenticationSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "phoneNumberAuthenticationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "phoneNumberAuthenticationSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if the authentication code may be sent via a flash call to the specified phone number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_flash_call")] - public bool AllowFlashCall { get; set; } + /// + /// Pass true if the authentication code may be sent via a flash call to the specified phone number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_flash_call")] + public bool AllowFlashCall { get; set; } - /// - /// Pass true if the authentication code may be sent via a missed call to the specified phone number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_missed_call")] - public bool AllowMissedCall { get; set; } + /// + /// Pass true if the authentication code may be sent via a missed call to the specified phone number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_missed_call")] + public bool AllowMissedCall { get; set; } - /// - /// Pass true if the authenticated phone number is used on the current device - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current_phone_number")] - public bool IsCurrentPhoneNumber { get; set; } + /// + /// Pass true if the authenticated phone number is used on the current device + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current_phone_number")] + public bool IsCurrentPhoneNumber { get; set; } - /// - /// Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_unknown_phone_number")] - public bool HasUnknownPhoneNumber { get; set; } + /// + /// Pass true if there is a SIM card in the current device, but it is not possible to check whether phone number matches + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_unknown_phone_number")] + public bool HasUnknownPhoneNumber { get; set; } - /// - /// For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_sms_retriever_api")] - public bool AllowSmsRetrieverApi { get; set; } + /// + /// For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_sms_retriever_api")] + public bool AllowSmsRetrieverApi { get; set; } - /// - /// For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("firebase_authentication_settings")] - public FirebaseAuthenticationSettings FirebaseAuthenticationSettings { get; set; } + /// + /// For official Android and iOS applications only; pass null otherwise. Settings for Firebase Authentication + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("firebase_authentication_settings")] + public FirebaseAuthenticationSettings FirebaseAuthenticationSettings { get; set; } - /// - /// List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions; for setAuthenticationPhoneNumber only - /// - [JsonProperty("authentication_tokens", ItemConverterType = typeof(Converter))] - public string[] AuthenticationTokens { get; set; } - } + /// + /// List of up to 20 authentication tokens, recently received in updateOption("authentication_token") in previously logged out sessions; for setAuthenticationPhoneNumber only + /// + [JsonProperty("authentication_tokens", ItemConverterType = typeof(Converter))] + public string[] AuthenticationTokens { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PhoneNumberCodeTypeChange.cs b/TdLib.Api/Objects/PhoneNumberCodeTypeChange.cs index 38981865..3f44809b 100644 --- a/TdLib.Api/Objects/PhoneNumberCodeTypeChange.cs +++ b/TdLib.Api/Objects/PhoneNumberCodeTypeChange.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PhoneNumberCodeType : Object { - public partial class PhoneNumberCodeType : Object + /// + /// Describes type of the request for which a code is sent to a phone number + /// + public class PhoneNumberCodeTypeChange : PhoneNumberCodeType { /// - /// Describes type of the request for which a code is sent to a phone number + /// Data type for serialization /// - public class PhoneNumberCodeTypeChange : PhoneNumberCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "phoneNumberCodeTypeChange"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "phoneNumberCodeTypeChange"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PhoneNumberCodeTypeConfirmOwnership.cs b/TdLib.Api/Objects/PhoneNumberCodeTypeConfirmOwnership.cs index ecd189f1..0913931d 100644 --- a/TdLib.Api/Objects/PhoneNumberCodeTypeConfirmOwnership.cs +++ b/TdLib.Api/Objects/PhoneNumberCodeTypeConfirmOwnership.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PhoneNumberCodeType : Object { - public partial class PhoneNumberCodeType : Object + /// + /// Confirms ownership of a phone number to prevent account deletion while handling links of the type internalLinkTypePhoneNumberConfirmation + /// + public class PhoneNumberCodeTypeConfirmOwnership : PhoneNumberCodeType { /// - /// Confirms ownership of a phone number to prevent account deletion while handling links of the type internalLinkTypePhoneNumberConfirmation + /// Data type for serialization /// - public class PhoneNumberCodeTypeConfirmOwnership : PhoneNumberCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "phoneNumberCodeTypeConfirmOwnership"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "phoneNumberCodeTypeConfirmOwnership"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Hash value from the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hash")] - public string Hash { get; set; } - } + /// + /// Hash value from the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hash")] + public string Hash { get; set; } } } } diff --git a/TdLib.Api/Objects/PhoneNumberCodeTypeVerify.cs b/TdLib.Api/Objects/PhoneNumberCodeTypeVerify.cs index 19a84f55..e1c55f1a 100644 --- a/TdLib.Api/Objects/PhoneNumberCodeTypeVerify.cs +++ b/TdLib.Api/Objects/PhoneNumberCodeTypeVerify.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PhoneNumberCodeType : Object { - public partial class PhoneNumberCodeType : Object + /// + /// Verifies ownership of a phone number to be added to the user's Telegram Passport + /// + public class PhoneNumberCodeTypeVerify : PhoneNumberCodeType { /// - /// Verifies ownership of a phone number to be added to the user's Telegram Passport + /// Data type for serialization /// - public class PhoneNumberCodeTypeVerify : PhoneNumberCodeType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "phoneNumberCodeTypeVerify"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "phoneNumberCodeTypeVerify"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PhoneNumberInfo.cs b/TdLib.Api/Objects/PhoneNumberInfo.cs index f6cffa3c..1e45fc65 100644 --- a/TdLib.Api/Objects/PhoneNumberInfo.cs +++ b/TdLib.Api/Objects/PhoneNumberInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a phone number /// - public static partial class TdApi + public partial class PhoneNumberInfo : Object { /// - /// Contains information about a phone number + /// Data type for serialization /// - public partial class PhoneNumberInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "phoneNumberInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "phoneNumberInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the country to which the phone number belongs; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country")] - public CountryInfo Country { get; set; } + /// + /// Information about the country to which the phone number belongs; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country")] + public CountryInfo Country { get; set; } - /// - /// The part of the phone number denoting country calling code or its part - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_calling_code")] - public string CountryCallingCode { get; set; } + /// + /// The part of the phone number denoting country calling code or its part + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_calling_code")] + public string CountryCallingCode { get; set; } - /// - /// The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as '-', but even more digits might be entered by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("formatted_phone_number")] - public string FormattedPhoneNumber { get; set; } + /// + /// The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as '-', but even more digits might be entered by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("formatted_phone_number")] + public string FormattedPhoneNumber { get; set; } - /// - /// True, if the phone number was bought at https://fragment.com and isn't tied to a SIM card. Information about the phone number can be received using getCollectibleItemInfo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_anonymous")] - public bool IsAnonymous { get; set; } - } + /// + /// True, if the phone number was bought at https://fragment.com and isn't tied to a SIM card. Information about the phone number can be received using getCollectibleItemInfo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_anonymous")] + public bool IsAnonymous { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Photo.cs b/TdLib.Api/Objects/Photo.cs index 535f8159..2a52f51e 100644 --- a/TdLib.Api/Objects/Photo.cs +++ b/TdLib.Api/Objects/Photo.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a photo /// - public static partial class TdApi + public partial class Photo : Object { /// - /// Describes a photo + /// Data type for serialization /// - public partial class Photo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "photo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "photo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if stickers were added to the photo. The list of corresponding sticker sets can be received using getAttachedStickerSets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_stickers")] - public bool HasStickers { get; set; } + /// + /// True, if stickers were added to the photo. The list of corresponding sticker sets can be received using getAttachedStickerSets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_stickers")] + public bool HasStickers { get; set; } - /// - /// Photo minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Photo minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// Available variants of the photo, in different sizes - /// - [JsonProperty("sizes", ItemConverterType = typeof(Converter))] - public PhotoSize[] Sizes { get; set; } - } + /// + /// Available variants of the photo, in different sizes + /// + [JsonProperty("sizes", ItemConverterType = typeof(Converter))] + public PhotoSize[] Sizes { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PhotoSize.cs b/TdLib.Api/Objects/PhotoSize.cs index d6b6be6a..fc698213 100644 --- a/TdLib.Api/Objects/PhotoSize.cs +++ b/TdLib.Api/Objects/PhotoSize.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an image in JPEG format /// - public static partial class TdApi + public partial class PhotoSize : Object { /// - /// Describes an image in JPEG format + /// Data type for serialization /// - public partial class PhotoSize : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "photoSize"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "photoSize"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Image type (see https://core.telegram.org/constructor/photoSize) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public string Type { get; set; } + /// + /// Image type (see https://core.telegram.org/constructor/photoSize) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public string Type { get; set; } - /// - /// Information about the image file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public File Photo { get; set; } + /// + /// Information about the image file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public File Photo { get; set; } - /// - /// Image width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Image width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Image height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Image height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image; in bytes - /// - [JsonProperty("progressive_sizes", ItemConverterType = typeof(Converter))] - public int[] ProgressiveSizes { get; set; } - } + /// + /// Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image; in bytes + /// + [JsonProperty("progressive_sizes", ItemConverterType = typeof(Converter))] + public int[] ProgressiveSizes { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Point.cs b/TdLib.Api/Objects/Point.cs index 00e05c05..985ecacf 100644 --- a/TdLib.Api/Objects/Point.cs +++ b/TdLib.Api/Objects/Point.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A point on a Cartesian plane /// - public static partial class TdApi + public partial class Point : Object { /// - /// A point on a Cartesian plane + /// Data type for serialization /// - public partial class Point : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "point"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "point"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The point's first coordinate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("x")] - public double? X { get; set; } + /// + /// The point's first coordinate + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("x")] + public double? X { get; set; } - /// - /// The point's second coordinate - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("y")] - public double? Y { get; set; } - } + /// + /// The point's second coordinate + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("y")] + public double? Y { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Poll.cs b/TdLib.Api/Objects/Poll.cs index a72cb5c6..dcaefb15 100644 --- a/TdLib.Api/Objects/Poll.cs +++ b/TdLib.Api/Objects/Poll.cs @@ -2,152 +2,151 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a poll /// - public static partial class TdApi + public partial class Poll : Object { /// - /// Describes a poll - /// - public partial class Poll : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "poll"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique poll identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Poll question; 1-300 characters; may contain only custom emoji entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("question")] - public FormattedText Question { get; set; } - - /// - /// List of poll answer options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public PollOption[] Options { get; set; } - - /// - /// Total number of voters, participating in the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_voter_count")] - public int TotalVoterCount { get; set; } - - /// - /// Identifiers of recent voters, if the poll is non-anonymous and poll results are available - /// - [JsonProperty("recent_voter_ids", ItemConverterType = typeof(Converter))] - public MessageSender[] RecentVoterIds { get; set; } - - /// - /// True, if the current user can get voters in the poll using getPollVoters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_voters")] - public bool CanGetVoters { get; set; } - - /// - /// True, if the current user can see results of the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_see_results")] - public bool CanSeeResults { get; set; } - - /// - /// True, if the poll is anonymous - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_anonymous")] - public bool IsAnonymous { get; set; } - - /// - /// True, if multiple answer options can be chosen simultaneously - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allows_multiple_answers")] - public bool AllowsMultipleAnswers { get; set; } - - /// - /// True, if the poll can be answered multiple times - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allows_revoting")] - public bool AllowsRevoting { get; set; } - - /// - /// True, if only the users that are members of the chat for more than a day will be able to vote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("members_only")] - public bool MembersOnly { get; set; } - - /// - /// The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be able to vote. If empty, then all users can participate in the poll - /// - [JsonProperty("country_codes", ItemConverterType = typeof(Converter))] - public string[] CountryCodes { get; set; } - - /// - /// The list of 0-based poll identifiers in which the options of the poll must be shown; empty if the order of options must not be changed - /// - [JsonProperty("option_order", ItemConverterType = typeof(Converter))] - public int[] OptionOrder { get; set; } - - /// - /// Type of the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PollType Type { get; set; } - - /// - /// Amount of time the poll will be active after creation, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("open_period")] - public int OpenPeriod { get; set; } - - /// - /// Point in time (Unix timestamp) when the poll will automatically be closed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("close_date")] - public int CloseDate { get; set; } - - /// - /// True, if the poll is closed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_closed")] - public bool IsClosed { get; set; } - - /// - /// The reason describing, why the current user can't vote in the poll; may be null if the user can vote in the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("vote_restriction_reason")] - public PollVoteRestrictionReason VoteRestrictionReason { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "poll"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique poll identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Poll question; 1-300 characters; may contain only custom emoji entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("question")] + public FormattedText Question { get; set; } + + /// + /// List of poll answer options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public PollOption[] Options { get; set; } + + /// + /// Total number of voters, participating in the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_voter_count")] + public int TotalVoterCount { get; set; } + + /// + /// Identifiers of recent voters, if the poll is non-anonymous and poll results are available + /// + [JsonProperty("recent_voter_ids", ItemConverterType = typeof(Converter))] + public MessageSender[] RecentVoterIds { get; set; } + + /// + /// True, if the current user can get voters in the poll using getPollVoters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_voters")] + public bool CanGetVoters { get; set; } + + /// + /// True, if the current user can see results of the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_see_results")] + public bool CanSeeResults { get; set; } + + /// + /// True, if the poll is anonymous + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_anonymous")] + public bool IsAnonymous { get; set; } + + /// + /// True, if multiple answer options can be chosen simultaneously + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allows_multiple_answers")] + public bool AllowsMultipleAnswers { get; set; } + + /// + /// True, if the poll can be answered multiple times + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allows_revoting")] + public bool AllowsRevoting { get; set; } + + /// + /// True, if only the users that are members of the chat for more than a day will be able to vote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("members_only")] + public bool MembersOnly { get; set; } + + /// + /// The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be able to vote. If empty, then all users can participate in the poll + /// + [JsonProperty("country_codes", ItemConverterType = typeof(Converter))] + public string[] CountryCodes { get; set; } + + /// + /// The list of 0-based poll identifiers in which the options of the poll must be shown; empty if the order of options must not be changed + /// + [JsonProperty("option_order", ItemConverterType = typeof(Converter))] + public int[] OptionOrder { get; set; } + + /// + /// Type of the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PollType Type { get; set; } + + /// + /// Amount of time the poll will be active after creation, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("open_period")] + public int OpenPeriod { get; set; } + + /// + /// Point in time (Unix timestamp) when the poll will automatically be closed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("close_date")] + public int CloseDate { get; set; } + + /// + /// True, if the poll is closed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_closed")] + public bool IsClosed { get; set; } + + /// + /// The reason describing, why the current user can't vote in the poll; may be null if the user can vote in the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("vote_restriction_reason")] + public PollVoteRestrictionReason VoteRestrictionReason { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PollMediaAnimation.cs b/TdLib.Api/Objects/PollMediaAnimation.cs index 5bb95701..0073b82b 100644 --- a/TdLib.Api/Objects/PollMediaAnimation.cs +++ b/TdLib.Api/Objects/PollMediaAnimation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// Contains the media in a poll + /// + public class PollMediaAnimation : PollMedia { /// - /// Contains the media in a poll + /// Data type for serialization /// - public class PollMediaAnimation : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } - } + /// + /// The animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaAudio.cs b/TdLib.Api/Objects/PollMediaAudio.cs index 8a023257..c857b169 100644 --- a/TdLib.Api/Objects/PollMediaAudio.cs +++ b/TdLib.Api/Objects/PollMediaAudio.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// An audio + /// + public class PollMediaAudio : PollMedia { /// - /// An audio + /// Data type for serialization /// - public class PollMediaAudio : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The audio - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public Audio Audio { get; set; } - } + /// + /// The audio + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public Audio Audio { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaDocument.cs b/TdLib.Api/Objects/PollMediaDocument.cs index 4ba1d080..3fe51424 100644 --- a/TdLib.Api/Objects/PollMediaDocument.cs +++ b/TdLib.Api/Objects/PollMediaDocument.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// A document (general file) + /// + public class PollMediaDocument : PollMedia { /// - /// A document (general file) + /// Data type for serialization /// - public class PollMediaDocument : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } - } + /// + /// The document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaLink.cs b/TdLib.Api/Objects/PollMediaLink.cs index 1dac030a..b9ed2a8f 100644 --- a/TdLib.Api/Objects/PollMediaLink.cs +++ b/TdLib.Api/Objects/PollMediaLink.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// A link + /// + public class PollMediaLink : PollMedia { /// - /// A link + /// Data type for serialization /// - public class PollMediaLink : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL of the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL of the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Preview of the link; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_preview")] - public LinkPreview LinkPreview { get; set; } - } + /// + /// Preview of the link; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link_preview")] + public LinkPreview LinkPreview { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaLocation.cs b/TdLib.Api/Objects/PollMediaLocation.cs index e4c2d518..9e289cc1 100644 --- a/TdLib.Api/Objects/PollMediaLocation.cs +++ b/TdLib.Api/Objects/PollMediaLocation.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// A location + /// + public class PollMediaLocation : PollMedia { /// - /// A location + /// Data type for serialization /// - public class PollMediaLocation : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } - } + /// + /// The location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaPhoto.cs b/TdLib.Api/Objects/PollMediaPhoto.cs index 20dd77e8..89ef73a7 100644 --- a/TdLib.Api/Objects/PollMediaPhoto.cs +++ b/TdLib.Api/Objects/PollMediaPhoto.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// A photo + /// + public class PollMediaPhoto : PollMedia { /// - /// A photo + /// Data type for serialization /// - public class PollMediaPhoto : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// The photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// The video representing the live photo; may be null if the photo is static - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } - } + /// + /// The video representing the live photo; may be null if the photo is static + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaSticker.cs b/TdLib.Api/Objects/PollMediaSticker.cs index 71bd9409..b3fb5296 100644 --- a/TdLib.Api/Objects/PollMediaSticker.cs +++ b/TdLib.Api/Objects/PollMediaSticker.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// A sticker + /// + public class PollMediaSticker : PollMedia { /// - /// A sticker + /// Data type for serialization /// - public class PollMediaSticker : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// The sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaVenue.cs b/TdLib.Api/Objects/PollMediaVenue.cs index b19c0f75..7d308f67 100644 --- a/TdLib.Api/Objects/PollMediaVenue.cs +++ b/TdLib.Api/Objects/PollMediaVenue.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// A venue + /// + public class PollMediaVenue : PollMedia { /// - /// A venue + /// Data type for serialization /// - public class PollMediaVenue : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The venue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue")] - public Venue Venue { get; set; } - } + /// + /// The venue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue")] + public Venue Venue { get; set; } } } } diff --git a/TdLib.Api/Objects/PollMediaVideo.cs b/TdLib.Api/Objects/PollMediaVideo.cs index 2bc5f1d0..7ce64a44 100644 --- a/TdLib.Api/Objects/PollMediaVideo.cs +++ b/TdLib.Api/Objects/PollMediaVideo.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollMedia : Object { - public partial class PollMedia : Object + /// + /// A video + /// + public class PollMediaVideo : PollMedia { /// - /// A video + /// Data type for serialization /// - public class PollMediaVideo : PollMedia - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollMediaVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollMediaVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video description - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// The video description + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Alternative qualities of the video - /// - [JsonProperty("alternative_videos", ItemConverterType = typeof(Converter))] - public AlternativeVideo[] AlternativeVideos { get; set; } + /// + /// Alternative qualities of the video + /// + [JsonProperty("alternative_videos", ItemConverterType = typeof(Converter))] + public AlternativeVideo[] AlternativeVideos { get; set; } - /// - /// Available storyboards for the video - /// - [JsonProperty("storyboards", ItemConverterType = typeof(Converter))] - public VideoStoryboard[] Storyboards { get; set; } + /// + /// Available storyboards for the video + /// + [JsonProperty("storyboards", ItemConverterType = typeof(Converter))] + public VideoStoryboard[] Storyboards { get; set; } - /// - /// Cover of the video; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover")] - public Photo Cover { get; set; } + /// + /// Cover of the video; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover")] + public Photo Cover { get; set; } - /// - /// Timestamp from which the video playing must start, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_timestamp")] - public int StartTimestamp { get; set; } - } + /// + /// Timestamp from which the video playing must start, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_timestamp")] + public int StartTimestamp { get; set; } } } } diff --git a/TdLib.Api/Objects/PollOption.cs b/TdLib.Api/Objects/PollOption.cs index 1ec2b613..a80189cd 100644 --- a/TdLib.Api/Objects/PollOption.cs +++ b/TdLib.Api/Objects/PollOption.cs @@ -2,99 +2,98 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes one answer option of a poll /// - public static partial class TdApi + public partial class PollOption : Object { /// - /// Describes one answer option of a poll + /// Data type for serialization /// - public partial class PollOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the option in the poll; may be empty if yet unassigned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the option in the poll; may be empty if yet unassigned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Option text; 1-100 characters; may contain only custom emoji entities - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Option text; 1-100 characters; may contain only custom emoji entities + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Option media; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaLink, pollMediaLocation, pollMediaPhoto, pollMediaSticker, pollMediaVenue, or pollMediaVideo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media")] - public PollMedia Media { get; set; } + /// + /// Option media; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaLink, pollMediaLocation, pollMediaPhoto, pollMediaSticker, pollMediaVenue, or pollMediaVideo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media")] + public PollMedia Media { get; set; } - /// - /// Number of voters for this option, available only for closed or voted polls, or if the current user is the creator of the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voter_count")] - public int VoterCount { get; set; } + /// + /// Number of voters for this option, available only for closed or voted polls, or if the current user is the creator of the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voter_count")] + public int VoterCount { get; set; } - /// - /// The percentage of votes for this option; 0-100 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("vote_percentage")] - public int VotePercentage { get; set; } + /// + /// The percentage of votes for this option; 0-100 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("vote_percentage")] + public int VotePercentage { get; set; } - /// - /// Identifiers of recent voters for the option, if the poll is non-anonymous and poll results are available - /// - [JsonProperty("recent_voter_ids", ItemConverterType = typeof(Converter))] - public MessageSender[] RecentVoterIds { get; set; } + /// + /// Identifiers of recent voters for the option, if the poll is non-anonymous and poll results are available + /// + [JsonProperty("recent_voter_ids", ItemConverterType = typeof(Converter))] + public MessageSender[] RecentVoterIds { get; set; } - /// - /// True, if the option was chosen by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_chosen")] - public bool IsChosen { get; set; } + /// + /// True, if the option was chosen by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_chosen")] + public bool IsChosen { get; set; } - /// - /// True, if the option is being chosen by a pending setPollAnswer request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_being_chosen")] - public bool IsBeingChosen { get; set; } + /// + /// True, if the option is being chosen by a pending setPollAnswer request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_being_chosen")] + public bool IsBeingChosen { get; set; } - /// - /// Identifier of the user or chat who added the option; may be null if the option existed from creation of the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author")] - public MessageSender Author { get; set; } + /// + /// Identifier of the user or chat who added the option; may be null if the option existed from creation of the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author")] + public MessageSender Author { get; set; } - /// - /// Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("addition_date")] - public int AdditionDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("addition_date")] + public int AdditionDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PollOptionProperties.cs b/TdLib.Api/Objects/PollOptionProperties.cs index cce03484..e979d782 100644 --- a/TdLib.Api/Objects/PollOptionProperties.cs +++ b/TdLib.Api/Objects/PollOptionProperties.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains properties of a poll option and describes actions that can be done with the option right now /// - public static partial class TdApi + public partial class PollOptionProperties : Object { /// - /// Contains properties of a poll option and describes actions that can be done with the option right now + /// Data type for serialization /// - public partial class PollOptionProperties : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollOptionProperties"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollOptionProperties"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the option can be deleted using deletePollOption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted")] - public bool CanBeDeleted { get; set; } + /// + /// True, if the option can be deleted using deletePollOption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted")] + public bool CanBeDeleted { get; set; } - /// - /// True, if the poll option can be replied in the same chat and forum topic using inputMessageReplyToMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_replied")] - public bool CanBeReplied { get; set; } + /// + /// True, if the poll option can be replied in the same chat and forum topic using inputMessageReplyToMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_replied")] + public bool CanBeReplied { get; set; } - /// - /// True, if the poll option can be replied in another chat or forum topic using inputMessageReplyToExternalMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_replied_in_another_chat")] - public bool CanBeRepliedInAnotherChat { get; set; } + /// + /// True, if the poll option can be replied in another chat or forum topic using inputMessageReplyToExternalMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_replied_in_another_chat")] + public bool CanBeRepliedInAnotherChat { get; set; } - /// - /// True, if a link can be generated for the poll option using getMessageLink - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_link")] - public bool CanGetLink { get; set; } - } + /// + /// True, if a link can be generated for the poll option using getMessageLink + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_link")] + public bool CanGetLink { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PollTypeQuiz.cs b/TdLib.Api/Objects/PollTypeQuiz.cs index fb3d4e68..4db27730 100644 --- a/TdLib.Api/Objects/PollTypeQuiz.cs +++ b/TdLib.Api/Objects/PollTypeQuiz.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollType : Object { - public partial class PollType : Object + /// + /// A poll in quiz mode, which has predefined correct answers + /// + public class PollTypeQuiz : PollType { /// - /// A poll in quiz mode, which has predefined correct answers + /// Data type for serialization /// - public class PollTypeQuiz : PollType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollTypeQuiz"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollTypeQuiz"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll - /// - [JsonProperty("correct_option_ids", ItemConverterType = typeof(Converter))] - public int[] CorrectOptionIds { get; set; } + /// + /// Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll + /// + [JsonProperty("correct_option_ids", ItemConverterType = typeof(Converter))] + public int[] CorrectOptionIds { get; set; } - /// - /// Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("explanation")] - public FormattedText Explanation { get; set; } + /// + /// Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("explanation")] + public FormattedText Explanation { get; set; } - /// - /// Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("explanation_media")] - public PollMedia ExplanationMedia { get; set; } - } + /// + /// Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("explanation_media")] + public PollMedia ExplanationMedia { get; set; } } } } diff --git a/TdLib.Api/Objects/PollTypeRegular.cs b/TdLib.Api/Objects/PollTypeRegular.cs index 31e43eae..f0b1bc7e 100644 --- a/TdLib.Api/Objects/PollTypeRegular.cs +++ b/TdLib.Api/Objects/PollTypeRegular.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollType : Object { - public partial class PollType : Object + /// + /// Describes the type of poll + /// + public class PollTypeRegular : PollType { /// - /// Describes the type of poll + /// Data type for serialization /// - public class PollTypeRegular : PollType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PollVoteRestrictionReasonClosed.cs b/TdLib.Api/Objects/PollVoteRestrictionReasonClosed.cs index 4beaf854..4db4fc3f 100644 --- a/TdLib.Api/Objects/PollVoteRestrictionReasonClosed.cs +++ b/TdLib.Api/Objects/PollVoteRestrictionReasonClosed.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollVoteRestrictionReason : Object { - public partial class PollVoteRestrictionReason : Object + /// + /// Reason of vote restriction in the poll for the current user + /// + public class PollVoteRestrictionReasonClosed : PollVoteRestrictionReason { /// - /// Reason of vote restriction in the poll for the current user + /// Data type for serialization /// - public class PollVoteRestrictionReasonClosed : PollVoteRestrictionReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoteRestrictionReasonClosed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoteRestrictionReasonClosed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PollVoteRestrictionReasonCountryRestricted.cs b/TdLib.Api/Objects/PollVoteRestrictionReasonCountryRestricted.cs index d0c95b9c..b10bf819 100644 --- a/TdLib.Api/Objects/PollVoteRestrictionReasonCountryRestricted.cs +++ b/TdLib.Api/Objects/PollVoteRestrictionReasonCountryRestricted.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollVoteRestrictionReason : Object { - public partial class PollVoteRestrictionReason : Object + /// + /// The user is from a country, users from which aren't allowed to vote + /// + public class PollVoteRestrictionReasonCountryRestricted : PollVoteRestrictionReason { /// - /// The user is from a country, users from which aren't allowed to vote + /// Data type for serialization /// - public class PollVoteRestrictionReasonCountryRestricted : PollVoteRestrictionReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoteRestrictionReasonCountryRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoteRestrictionReasonCountryRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Two-letter ISO 3166-1 alpha-2 code of the current user's country - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("country_code")] - public string CountryCode { get; set; } - } + /// + /// Two-letter ISO 3166-1 alpha-2 code of the current user's country + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("country_code")] + public string CountryCode { get; set; } } } } diff --git a/TdLib.Api/Objects/PollVoteRestrictionReasonMembershipRequired.cs b/TdLib.Api/Objects/PollVoteRestrictionReasonMembershipRequired.cs index cf120588..cc6f6e71 100644 --- a/TdLib.Api/Objects/PollVoteRestrictionReasonMembershipRequired.cs +++ b/TdLib.Api/Objects/PollVoteRestrictionReasonMembershipRequired.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollVoteRestrictionReason : Object { - public partial class PollVoteRestrictionReason : Object + /// + /// The user must be a member of the chat for at least a day to vote + /// + public class PollVoteRestrictionReasonMembershipRequired : PollVoteRestrictionReason { /// - /// The user must be a member of the chat for at least a day to vote + /// Data type for serialization /// - public class PollVoteRestrictionReasonMembershipRequired : PollVoteRestrictionReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoteRestrictionReasonMembershipRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoteRestrictionReasonMembershipRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat which must be joined for at least a day before the user can vote - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat which must be joined for at least a day before the user can vote + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/PollVoteRestrictionReasonOther.cs b/TdLib.Api/Objects/PollVoteRestrictionReasonOther.cs index 3bd203a5..583cf084 100644 --- a/TdLib.Api/Objects/PollVoteRestrictionReasonOther.cs +++ b/TdLib.Api/Objects/PollVoteRestrictionReasonOther.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollVoteRestrictionReason : Object { - public partial class PollVoteRestrictionReason : Object + /// + /// The poll can't be voted by the user due to some other reason + /// + public class PollVoteRestrictionReasonOther : PollVoteRestrictionReason { /// - /// The poll can't be voted by the user due to some other reason + /// Data type for serialization /// - public class PollVoteRestrictionReasonOther : PollVoteRestrictionReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoteRestrictionReasonOther"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoteRestrictionReasonOther"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PollVoteRestrictionReasonScheduled.cs b/TdLib.Api/Objects/PollVoteRestrictionReasonScheduled.cs index 0aa69ecd..df0d8461 100644 --- a/TdLib.Api/Objects/PollVoteRestrictionReasonScheduled.cs +++ b/TdLib.Api/Objects/PollVoteRestrictionReasonScheduled.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollVoteRestrictionReason : Object { - public partial class PollVoteRestrictionReason : Object + /// + /// The poll is from a scheduled message + /// + public class PollVoteRestrictionReasonScheduled : PollVoteRestrictionReason { /// - /// The poll is from a scheduled message + /// Data type for serialization /// - public class PollVoteRestrictionReasonScheduled : PollVoteRestrictionReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoteRestrictionReasonScheduled"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoteRestrictionReasonScheduled"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PollVoteRestrictionReasonYetUnsent.cs b/TdLib.Api/Objects/PollVoteRestrictionReasonYetUnsent.cs index 9483904f..9fb8f42b 100644 --- a/TdLib.Api/Objects/PollVoteRestrictionReasonYetUnsent.cs +++ b/TdLib.Api/Objects/PollVoteRestrictionReasonYetUnsent.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PollVoteRestrictionReason : Object { - public partial class PollVoteRestrictionReason : Object + /// + /// The poll isn't sent yet + /// + public class PollVoteRestrictionReasonYetUnsent : PollVoteRestrictionReason { /// - /// The poll isn't sent yet + /// Data type for serialization /// - public class PollVoteRestrictionReasonYetUnsent : PollVoteRestrictionReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoteRestrictionReasonYetUnsent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoteRestrictionReasonYetUnsent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PollVoteStatistics.cs b/TdLib.Api/Objects/PollVoteStatistics.cs index 1e55b461..6ca60528 100644 --- a/TdLib.Api/Objects/PollVoteStatistics.cs +++ b/TdLib.Api/Objects/PollVoteStatistics.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A detailed statistics about poll votes /// - public static partial class TdApi + public partial class PollVoteStatistics : Object { /// - /// A detailed statistics about poll votes + /// Data type for serialization /// - public partial class PollVoteStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoteStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoteStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A graph containing distribution of votes in the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("vote_graph")] - public StatisticalGraph VoteGraph { get; set; } - } + /// + /// A graph containing distribution of votes in the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("vote_graph")] + public StatisticalGraph VoteGraph { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PollVoter.cs b/TdLib.Api/Objects/PollVoter.cs index 1084484c..88393a20 100644 --- a/TdLib.Api/Objects/PollVoter.cs +++ b/TdLib.Api/Objects/PollVoter.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a poll voter /// - public static partial class TdApi + public partial class PollVoter : Object { /// - /// Represents a poll voter + /// Data type for serialization /// - public partial class PollVoter : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoter"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoter"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The voter identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voter_id")] - public MessageSender VoterId { get; set; } + /// + /// The voter identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voter_id")] + public MessageSender VoterId { get; set; } - /// - /// Point in time (Unix timestamp) when the vote was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Point in time (Unix timestamp) when the vote was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PollVoters.cs b/TdLib.Api/Objects/PollVoters.cs index f1c08efb..d0640d22 100644 --- a/TdLib.Api/Objects/PollVoters.cs +++ b/TdLib.Api/Objects/PollVoters.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of poll voters /// - public static partial class TdApi + public partial class PollVoters : Object { /// - /// Represents a list of poll voters + /// Data type for serialization /// - public partial class PollVoters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pollVoters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pollVoters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of poll voters found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of poll voters found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of poll voters - /// - [JsonProperty("voters", ItemConverterType = typeof(Converter))] - public PollVoter[] Voters { get; set; } - } + /// + /// List of poll voters + /// + [JsonProperty("voters", ItemConverterType = typeof(Converter))] + public PollVoter[] Voters { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumFeatureAccentColor.cs b/TdLib.Api/Objects/PremiumFeatureAccentColor.cs index 6bbb77f6..0b3bea0a 100644 --- a/TdLib.Api/Objects/PremiumFeatureAccentColor.cs +++ b/TdLib.Api/Objects/PremiumFeatureAccentColor.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to choose accent color for replies and user profile + /// + public class PremiumFeatureAccentColor : PremiumFeature { /// - /// The ability to choose accent color for replies and user profile + /// Data type for serialization /// - public class PremiumFeatureAccentColor : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureAccentColor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureAccentColor"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureAdvancedChatManagement.cs b/TdLib.Api/Objects/PremiumFeatureAdvancedChatManagement.cs index 6295289e..cc45bb44 100644 --- a/TdLib.Api/Objects/PremiumFeatureAdvancedChatManagement.cs +++ b/TdLib.Api/Objects/PremiumFeatureAdvancedChatManagement.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Ability to change position of the main chat list, archive and mute all new chats from non-contacts, and completely disable notifications about the user's contacts joined Telegram + /// + public class PremiumFeatureAdvancedChatManagement : PremiumFeature { /// - /// Ability to change position of the main chat list, archive and mute all new chats from non-contacts, and completely disable notifications about the user's contacts joined Telegram + /// Data type for serialization /// - public class PremiumFeatureAdvancedChatManagement : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureAdvancedChatManagement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureAdvancedChatManagement"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureAnimatedProfilePhoto.cs b/TdLib.Api/Objects/PremiumFeatureAnimatedProfilePhoto.cs index a33f3011..54eda02a 100644 --- a/TdLib.Api/Objects/PremiumFeatureAnimatedProfilePhoto.cs +++ b/TdLib.Api/Objects/PremiumFeatureAnimatedProfilePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Profile photo animation on message and chat screens + /// + public class PremiumFeatureAnimatedProfilePhoto : PremiumFeature { /// - /// Profile photo animation on message and chat screens + /// Data type for serialization /// - public class PremiumFeatureAnimatedProfilePhoto : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureAnimatedProfilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureAnimatedProfilePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureAppIcons.cs b/TdLib.Api/Objects/PremiumFeatureAppIcons.cs index b18ce9a1..e566d9ec 100644 --- a/TdLib.Api/Objects/PremiumFeatureAppIcons.cs +++ b/TdLib.Api/Objects/PremiumFeatureAppIcons.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Allowed to set a premium application icons + /// + public class PremiumFeatureAppIcons : PremiumFeature { /// - /// Allowed to set a premium application icons + /// Data type for serialization /// - public class PremiumFeatureAppIcons : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureAppIcons"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureAppIcons"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureBackgroundForBoth.cs b/TdLib.Api/Objects/PremiumFeatureBackgroundForBoth.cs index d002d98b..c6072583 100644 --- a/TdLib.Api/Objects/PremiumFeatureBackgroundForBoth.cs +++ b/TdLib.Api/Objects/PremiumFeatureBackgroundForBoth.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to set private chat background for both users + /// + public class PremiumFeatureBackgroundForBoth : PremiumFeature { /// - /// The ability to set private chat background for both users + /// Data type for serialization /// - public class PremiumFeatureBackgroundForBoth : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureBackgroundForBoth"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureBackgroundForBoth"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureBusiness.cs b/TdLib.Api/Objects/PremiumFeatureBusiness.cs index 2236f595..f0586b0e 100644 --- a/TdLib.Api/Objects/PremiumFeatureBusiness.cs +++ b/TdLib.Api/Objects/PremiumFeatureBusiness.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to use Business features + /// + public class PremiumFeatureBusiness : PremiumFeature { /// - /// The ability to use Business features + /// Data type for serialization /// - public class PremiumFeatureBusiness : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureBusiness"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureBusiness"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureChatBoost.cs b/TdLib.Api/Objects/PremiumFeatureChatBoost.cs index 37396f11..1121d9c1 100644 --- a/TdLib.Api/Objects/PremiumFeatureChatBoost.cs +++ b/TdLib.Api/Objects/PremiumFeatureChatBoost.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to boost chats + /// + public class PremiumFeatureChatBoost : PremiumFeature { /// - /// The ability to boost chats + /// Data type for serialization /// - public class PremiumFeatureChatBoost : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureChatBoost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureChatBoost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureChecklists.cs b/TdLib.Api/Objects/PremiumFeatureChecklists.cs index d6d91006..9ee7ef0a 100644 --- a/TdLib.Api/Objects/PremiumFeatureChecklists.cs +++ b/TdLib.Api/Objects/PremiumFeatureChecklists.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to create and use checklist messages + /// + public class PremiumFeatureChecklists : PremiumFeature { /// - /// The ability to create and use checklist messages + /// Data type for serialization /// - public class PremiumFeatureChecklists : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureChecklists"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureChecklists"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureCustomEmoji.cs b/TdLib.Api/Objects/PremiumFeatureCustomEmoji.cs index 06d8d759..68a8d24d 100644 --- a/TdLib.Api/Objects/PremiumFeatureCustomEmoji.cs +++ b/TdLib.Api/Objects/PremiumFeatureCustomEmoji.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Allowed to use custom emoji stickers in message texts and captions + /// + public class PremiumFeatureCustomEmoji : PremiumFeature { /// - /// Allowed to use custom emoji stickers in message texts and captions + /// Data type for serialization /// - public class PremiumFeatureCustomEmoji : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureDisabledAds.cs b/TdLib.Api/Objects/PremiumFeatureDisabledAds.cs index 8a1a0416..bbc1e74d 100644 --- a/TdLib.Api/Objects/PremiumFeatureDisabledAds.cs +++ b/TdLib.Api/Objects/PremiumFeatureDisabledAds.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Disabled ads + /// + public class PremiumFeatureDisabledAds : PremiumFeature { /// - /// Disabled ads + /// Data type for serialization /// - public class PremiumFeatureDisabledAds : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureDisabledAds"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureDisabledAds"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureEmojiStatus.cs b/TdLib.Api/Objects/PremiumFeatureEmojiStatus.cs index 6d6ea901..7ac2de34 100644 --- a/TdLib.Api/Objects/PremiumFeatureEmojiStatus.cs +++ b/TdLib.Api/Objects/PremiumFeatureEmojiStatus.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to show an emoji status along with the user's name + /// + public class PremiumFeatureEmojiStatus : PremiumFeature { /// - /// The ability to show an emoji status along with the user's name + /// Data type for serialization /// - public class PremiumFeatureEmojiStatus : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureEmojiStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureEmojiStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureForumTopicIcon.cs b/TdLib.Api/Objects/PremiumFeatureForumTopicIcon.cs index dd837a30..9425a6d9 100644 --- a/TdLib.Api/Objects/PremiumFeatureForumTopicIcon.cs +++ b/TdLib.Api/Objects/PremiumFeatureForumTopicIcon.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to set a custom emoji as a forum topic icon + /// + public class PremiumFeatureForumTopicIcon : PremiumFeature { /// - /// The ability to set a custom emoji as a forum topic icon + /// Data type for serialization /// - public class PremiumFeatureForumTopicIcon : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureForumTopicIcon"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureForumTopicIcon"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureImprovedDownloadSpeed.cs b/TdLib.Api/Objects/PremiumFeatureImprovedDownloadSpeed.cs index f6293a5f..048a0cff 100644 --- a/TdLib.Api/Objects/PremiumFeatureImprovedDownloadSpeed.cs +++ b/TdLib.Api/Objects/PremiumFeatureImprovedDownloadSpeed.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Improved download speed + /// + public class PremiumFeatureImprovedDownloadSpeed : PremiumFeature { /// - /// Improved download speed + /// Data type for serialization /// - public class PremiumFeatureImprovedDownloadSpeed : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureImprovedDownloadSpeed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureImprovedDownloadSpeed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureIncreasedLimits.cs b/TdLib.Api/Objects/PremiumFeatureIncreasedLimits.cs index 132f944f..9eaaa516 100644 --- a/TdLib.Api/Objects/PremiumFeatureIncreasedLimits.cs +++ b/TdLib.Api/Objects/PremiumFeatureIncreasedLimits.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Describes a feature available to Premium users + /// + public class PremiumFeatureIncreasedLimits : PremiumFeature { /// - /// Describes a feature available to Premium users + /// Data type for serialization /// - public class PremiumFeatureIncreasedLimits : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureIncreasedLimits"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureIncreasedLimits"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureIncreasedUploadFileSize.cs b/TdLib.Api/Objects/PremiumFeatureIncreasedUploadFileSize.cs index 89e11e8c..ce4d4428 100644 --- a/TdLib.Api/Objects/PremiumFeatureIncreasedUploadFileSize.cs +++ b/TdLib.Api/Objects/PremiumFeatureIncreasedUploadFileSize.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Increased maximum upload file size + /// + public class PremiumFeatureIncreasedUploadFileSize : PremiumFeature { /// - /// Increased maximum upload file size + /// Data type for serialization /// - public class PremiumFeatureIncreasedUploadFileSize : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureIncreasedUploadFileSize"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureIncreasedUploadFileSize"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureLastSeenTimes.cs b/TdLib.Api/Objects/PremiumFeatureLastSeenTimes.cs index 114683de..d00e6c89 100644 --- a/TdLib.Api/Objects/PremiumFeatureLastSeenTimes.cs +++ b/TdLib.Api/Objects/PremiumFeatureLastSeenTimes.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to view last seen and read times of other users even if they can't view last seen or read time for the current user + /// + public class PremiumFeatureLastSeenTimes : PremiumFeature { /// - /// The ability to view last seen and read times of other users even if they can't view last seen or read time for the current user + /// Data type for serialization /// - public class PremiumFeatureLastSeenTimes : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureLastSeenTimes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureLastSeenTimes"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureMessageEffects.cs b/TdLib.Api/Objects/PremiumFeatureMessageEffects.cs index 90b863dd..d1426d02 100644 --- a/TdLib.Api/Objects/PremiumFeatureMessageEffects.cs +++ b/TdLib.Api/Objects/PremiumFeatureMessageEffects.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to use all available message effects + /// + public class PremiumFeatureMessageEffects : PremiumFeature { /// - /// The ability to use all available message effects + /// Data type for serialization /// - public class PremiumFeatureMessageEffects : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureMessageEffects"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureMessageEffects"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureMessagePrivacy.cs b/TdLib.Api/Objects/PremiumFeatureMessagePrivacy.cs index da0d7180..3f19fb77 100644 --- a/TdLib.Api/Objects/PremiumFeatureMessagePrivacy.cs +++ b/TdLib.Api/Objects/PremiumFeatureMessagePrivacy.cs @@ -2,35 +2,34 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to disallow incoming voice and video note messages in private chats using setUserPrivacySettingRules with userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages + /// and to restrict incoming messages from non-contacts using setNewChatPrivacySettings + /// + public class PremiumFeatureMessagePrivacy : PremiumFeature { /// - /// The ability to disallow incoming voice and video note messages in private chats using setUserPrivacySettingRules with userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages - /// and to restrict incoming messages from non-contacts using setNewChatPrivacySettings + /// Data type for serialization /// - public class PremiumFeatureMessagePrivacy : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureMessagePrivacy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureMessagePrivacy"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeaturePaidMessages.cs b/TdLib.Api/Objects/PremiumFeaturePaidMessages.cs index 5702880f..f0a955d5 100644 --- a/TdLib.Api/Objects/PremiumFeaturePaidMessages.cs +++ b/TdLib.Api/Objects/PremiumFeaturePaidMessages.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to require a payment for incoming messages in new chats + /// + public class PremiumFeaturePaidMessages : PremiumFeature { /// - /// The ability to require a payment for incoming messages in new chats + /// Data type for serialization /// - public class PremiumFeaturePaidMessages : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeaturePaidMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeaturePaidMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureProfileBadge.cs b/TdLib.Api/Objects/PremiumFeatureProfileBadge.cs index 24aa9416..77059b77 100644 --- a/TdLib.Api/Objects/PremiumFeatureProfileBadge.cs +++ b/TdLib.Api/Objects/PremiumFeatureProfileBadge.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// A badge in the user's profile + /// + public class PremiumFeatureProfileBadge : PremiumFeature { /// - /// A badge in the user's profile + /// Data type for serialization /// - public class PremiumFeatureProfileBadge : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureProfileBadge"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureProfileBadge"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeaturePromotionAnimation.cs b/TdLib.Api/Objects/PremiumFeaturePromotionAnimation.cs index 7de3d5bc..1793b54c 100644 --- a/TdLib.Api/Objects/PremiumFeaturePromotionAnimation.cs +++ b/TdLib.Api/Objects/PremiumFeaturePromotionAnimation.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a promotion animation for a Premium feature /// - public static partial class TdApi + public partial class PremiumFeaturePromotionAnimation : Object { /// - /// Describes a promotion animation for a Premium feature + /// Data type for serialization /// - public partial class PremiumFeaturePromotionAnimation : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeaturePromotionAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeaturePromotionAnimation"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Premium feature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("feature")] - public PremiumFeature Feature { get; set; } + /// + /// Premium feature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("feature")] + public PremiumFeature Feature { get; set; } - /// - /// Promotion animation for the feature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } - } + /// + /// Promotion animation for the feature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumFeatureProtectPrivateChatContent.cs b/TdLib.Api/Objects/PremiumFeatureProtectPrivateChatContent.cs index 5448b3a9..915c7939 100644 --- a/TdLib.Api/Objects/PremiumFeatureProtectPrivateChatContent.cs +++ b/TdLib.Api/Objects/PremiumFeatureProtectPrivateChatContent.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to enable content protection in private chats + /// + public class PremiumFeatureProtectPrivateChatContent : PremiumFeature { /// - /// The ability to enable content protection in private chats + /// Data type for serialization /// - public class PremiumFeatureProtectPrivateChatContent : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureProtectPrivateChatContent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureProtectPrivateChatContent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureRealTimeChatTranslation.cs b/TdLib.Api/Objects/PremiumFeatureRealTimeChatTranslation.cs index a0bd9311..192ae70c 100644 --- a/TdLib.Api/Objects/PremiumFeatureRealTimeChatTranslation.cs +++ b/TdLib.Api/Objects/PremiumFeatureRealTimeChatTranslation.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Allowed to translate chat messages real-time + /// + public class PremiumFeatureRealTimeChatTranslation : PremiumFeature { /// - /// Allowed to translate chat messages real-time + /// Data type for serialization /// - public class PremiumFeatureRealTimeChatTranslation : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureRealTimeChatTranslation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureRealTimeChatTranslation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureRichMessages.cs b/TdLib.Api/Objects/PremiumFeatureRichMessages.cs index f7dc88ad..3b3db307 100644 --- a/TdLib.Api/Objects/PremiumFeatureRichMessages.cs +++ b/TdLib.Api/Objects/PremiumFeatureRichMessages.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to send rich messages + /// + public class PremiumFeatureRichMessages : PremiumFeature { /// - /// The ability to send rich messages + /// Data type for serialization /// - public class PremiumFeatureRichMessages : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureRichMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureRichMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureSavedMessagesTags.cs b/TdLib.Api/Objects/PremiumFeatureSavedMessagesTags.cs index ebbd8e61..bd2ff4e2 100644 --- a/TdLib.Api/Objects/PremiumFeatureSavedMessagesTags.cs +++ b/TdLib.Api/Objects/PremiumFeatureSavedMessagesTags.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to use tags in Saved Messages + /// + public class PremiumFeatureSavedMessagesTags : PremiumFeature { /// - /// The ability to use tags in Saved Messages + /// Data type for serialization /// - public class PremiumFeatureSavedMessagesTags : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureSavedMessagesTags"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureSavedMessagesTags"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureTextComposition.cs b/TdLib.Api/Objects/PremiumFeatureTextComposition.cs index 79f173d9..a3c25776 100644 --- a/TdLib.Api/Objects/PremiumFeatureTextComposition.cs +++ b/TdLib.Api/Objects/PremiumFeatureTextComposition.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to compose text with AI + /// + public class PremiumFeatureTextComposition : PremiumFeature { /// - /// The ability to compose text with AI + /// Data type for serialization /// - public class PremiumFeatureTextComposition : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureTextComposition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureTextComposition"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureUniqueReactions.cs b/TdLib.Api/Objects/PremiumFeatureUniqueReactions.cs index e7812ac4..cd9a4adc 100644 --- a/TdLib.Api/Objects/PremiumFeatureUniqueReactions.cs +++ b/TdLib.Api/Objects/PremiumFeatureUniqueReactions.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Allowed to use more reactions + /// + public class PremiumFeatureUniqueReactions : PremiumFeature { /// - /// Allowed to use more reactions + /// Data type for serialization /// - public class PremiumFeatureUniqueReactions : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureUniqueReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureUniqueReactions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureUniqueStickers.cs b/TdLib.Api/Objects/PremiumFeatureUniqueStickers.cs index 158883eb..63469304 100644 --- a/TdLib.Api/Objects/PremiumFeatureUniqueStickers.cs +++ b/TdLib.Api/Objects/PremiumFeatureUniqueStickers.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Allowed to use premium stickers with unique effects + /// + public class PremiumFeatureUniqueStickers : PremiumFeature { /// - /// Allowed to use premium stickers with unique effects + /// Data type for serialization /// - public class PremiumFeatureUniqueStickers : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureUniqueStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureUniqueStickers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureUpgradedStories.cs b/TdLib.Api/Objects/PremiumFeatureUpgradedStories.cs index f98e47d6..b686a3ee 100644 --- a/TdLib.Api/Objects/PremiumFeatureUpgradedStories.cs +++ b/TdLib.Api/Objects/PremiumFeatureUpgradedStories.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// Allowed to use many additional features for stories + /// + public class PremiumFeatureUpgradedStories : PremiumFeature { /// - /// Allowed to use many additional features for stories + /// Data type for serialization /// - public class PremiumFeatureUpgradedStories : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureUpgradedStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureUpgradedStories"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatureVoiceRecognition.cs b/TdLib.Api/Objects/PremiumFeatureVoiceRecognition.cs index fa866df3..9f8dcac3 100644 --- a/TdLib.Api/Objects/PremiumFeatureVoiceRecognition.cs +++ b/TdLib.Api/Objects/PremiumFeatureVoiceRecognition.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumFeature : Object { - public partial class PremiumFeature : Object + /// + /// The ability to convert voice notes to text + /// + public class PremiumFeatureVoiceRecognition : PremiumFeature { /// - /// The ability to convert voice notes to text + /// Data type for serialization /// - public class PremiumFeatureVoiceRecognition : PremiumFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatureVoiceRecognition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatureVoiceRecognition"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumFeatures.cs b/TdLib.Api/Objects/PremiumFeatures.cs index f5dc838b..f37108a8 100644 --- a/TdLib.Api/Objects/PremiumFeatures.cs +++ b/TdLib.Api/Objects/PremiumFeatures.cs @@ -2,49 +2,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about features, available to Premium users /// - public static partial class TdApi + public partial class PremiumFeatures : Object { /// - /// Contains information about features, available to Premium users + /// Data type for serialization /// - public partial class PremiumFeatures : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumFeatures"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumFeatures"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of available features - /// - [JsonProperty("features", ItemConverterType = typeof(Converter))] - public PremiumFeature[] Features { get; set; } + /// + /// The list of available features + /// + [JsonProperty("features", ItemConverterType = typeof(Converter))] + public PremiumFeature[] Features { get; set; } - /// - /// The list of limits, increased for Premium users - /// - [JsonProperty("limits", ItemConverterType = typeof(Converter))] - public PremiumLimit[] Limits { get; set; } + /// + /// The list of limits, increased for Premium users + /// + [JsonProperty("limits", ItemConverterType = typeof(Converter))] + public PremiumLimit[] Limits { get; set; } - /// - /// An internal link to be opened to pay for Telegram Premium if store payment isn't possible; may be null if direct payment isn't available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payment_link")] - public InternalLinkType PaymentLink { get; set; } - } + /// + /// An internal link to be opened to pay for Telegram Premium if store payment isn't possible; may be null if direct payment isn't available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_link")] + public InternalLinkType PaymentLink { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumGiftCodeInfo.cs b/TdLib.Api/Objects/PremiumGiftCodeInfo.cs index 1aac4813..458a4c60 100644 --- a/TdLib.Api/Objects/PremiumGiftCodeInfo.cs +++ b/TdLib.Api/Objects/PremiumGiftCodeInfo.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Telegram Premium gift code /// - public static partial class TdApi + public partial class PremiumGiftCodeInfo : Object { /// - /// Contains information about a Telegram Premium gift code + /// Data type for serialization /// - public partial class PremiumGiftCodeInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumGiftCodeInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumGiftCodeInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a chat or a user who created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creator_id from the message can be used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_id")] - public MessageSender CreatorId { get; set; } + /// + /// Identifier of a chat or a user who created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creator_id from the message can be used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_id")] + public MessageSender CreatorId { get; set; } - /// - /// Point in time (Unix timestamp) when the code was created - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creation_date")] - public int CreationDate { get; set; } + /// + /// Point in time (Unix timestamp) when the code was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creation_date")] + public int CreationDate { get; set; } - /// - /// True, if the gift code was created for a giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_from_giveaway")] - public bool IsFromGiveaway { get; set; } + /// + /// True, if the gift code was created for a giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_from_giveaway")] + public bool IsFromGiveaway { get; set; } - /// - /// Identifier of the corresponding giveaway message in the creator_id chat; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("giveaway_message_id")] - public long GiveawayMessageId { get; set; } + /// + /// Identifier of the corresponding giveaway message in the creator_id chat; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("giveaway_message_id")] + public long GiveawayMessageId { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Number of days the Telegram Premium subscription will be active after code activation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("day_count")] - public int DayCount { get; set; } + /// + /// Number of days the Telegram Premium subscription will be active after code activation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("day_count")] + public int DayCount { get; set; } - /// - /// Identifier of a user for which the code was created; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of a user for which the code was created; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Point in time (Unix timestamp) when the code was activated; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_date")] - public int UseDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the code was activated; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_date")] + public int UseDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumGiftPaymentOption.cs b/TdLib.Api/Objects/PremiumGiftPaymentOption.cs index 6c5f94aa..eb259fa3 100644 --- a/TdLib.Api/Objects/PremiumGiftPaymentOption.cs +++ b/TdLib.Api/Objects/PremiumGiftPaymentOption.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option for gifting Telegram Premium to a user. Use telegramPaymentPurposePremiumGift for out-of-store payments or payments in Telegram Stars /// - public static partial class TdApi + public partial class PremiumGiftPaymentOption : Object { /// - /// Describes an option for gifting Telegram Premium to a user. Use telegramPaymentPurposePremiumGift for out-of-store payments or payments in Telegram Stars + /// Data type for serialization /// - public partial class PremiumGiftPaymentOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumGiftPaymentOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumGiftPaymentOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code for the payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code for the payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The amount to pay, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The amount to pay, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// The alternative Telegram Star amount to pay; 0 if payment in Telegram Stars is not possible - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// The alternative Telegram Star amount to pay; 0 if payment in Telegram Stars is not possible + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// The discount associated with this option, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("discount_percentage")] - public int DiscountPercentage { get; set; } + /// + /// The discount associated with this option, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("discount_percentage")] + public int DiscountPercentage { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Identifier of the store product associated with the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_id")] - public string StoreProductId { get; set; } + /// + /// Identifier of the store product associated with the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_id")] + public string StoreProductId { get; set; } - /// - /// A sticker to be shown along with the option; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// A sticker to be shown along with the option; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumGiftPaymentOptions.cs b/TdLib.Api/Objects/PremiumGiftPaymentOptions.cs index 8e6821bd..0a9622af 100644 --- a/TdLib.Api/Objects/PremiumGiftPaymentOptions.cs +++ b/TdLib.Api/Objects/PremiumGiftPaymentOptions.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of options for gifting Telegram Premium to a user /// - public static partial class TdApi + public partial class PremiumGiftPaymentOptions : Object { /// - /// Contains a list of options for gifting Telegram Premium to a user + /// Data type for serialization /// - public partial class PremiumGiftPaymentOptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumGiftPaymentOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumGiftPaymentOptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of options sorted by Telegram Premium subscription duration - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public PremiumGiftPaymentOption[] Options { get; set; } - } + /// + /// The list of options sorted by Telegram Premium subscription duration + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public PremiumGiftPaymentOption[] Options { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumGiveawayPaymentOption.cs b/TdLib.Api/Objects/PremiumGiveawayPaymentOption.cs index f03c3125..4ca9f808 100644 --- a/TdLib.Api/Objects/PremiumGiveawayPaymentOption.cs +++ b/TdLib.Api/Objects/PremiumGiveawayPaymentOption.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments /// - public static partial class TdApi + public partial class PremiumGiveawayPaymentOption : Object { /// - /// Describes an option for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members. Use telegramPaymentPurposePremiumGiftCodes or telegramPaymentPurposePremiumGiveaway for out-of-store payments + /// Data type for serialization /// - public partial class PremiumGiveawayPaymentOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumGiveawayPaymentOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumGiveawayPaymentOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code for Telegram Premium gift code payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code for Telegram Premium gift code payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The amount to pay, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The amount to pay, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of users who will be able to activate the gift codes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Number of users who will be able to activate the gift codes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Identifier of the store product associated with the option; may be empty if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_id")] - public string StoreProductId { get; set; } + /// + /// Identifier of the store product associated with the option; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_id")] + public string StoreProductId { get; set; } - /// - /// Number of times the store product must be paid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_quantity")] - public int StoreProductQuantity { get; set; } - } + /// + /// Number of times the store product must be paid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_quantity")] + public int StoreProductQuantity { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumGiveawayPaymentOptions.cs b/TdLib.Api/Objects/PremiumGiveawayPaymentOptions.cs index e630fca9..f6003220 100644 --- a/TdLib.Api/Objects/PremiumGiveawayPaymentOptions.cs +++ b/TdLib.Api/Objects/PremiumGiveawayPaymentOptions.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members /// - public static partial class TdApi + public partial class PremiumGiveawayPaymentOptions : Object { /// - /// Contains a list of options for creating of Telegram Premium giveaway or manual distribution of Telegram Premium among chat members + /// Data type for serialization /// - public partial class PremiumGiveawayPaymentOptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumGiveawayPaymentOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumGiveawayPaymentOptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public PremiumGiveawayPaymentOption[] Options { get; set; } - } + /// + /// The list of options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public PremiumGiveawayPaymentOption[] Options { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumLimit.cs b/TdLib.Api/Objects/PremiumLimit.cs index fbaaa9dc..8ac4c945 100644 --- a/TdLib.Api/Objects/PremiumLimit.cs +++ b/TdLib.Api/Objects/PremiumLimit.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a limit, increased for Premium users /// - public static partial class TdApi + public partial class PremiumLimit : Object { /// - /// Contains information about a limit, increased for Premium users + /// Data type for serialization /// - public partial class PremiumLimit : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimit"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The type of the limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PremiumLimitType Type { get; set; } + /// + /// The type of the limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PremiumLimitType Type { get; set; } - /// - /// Default value of the limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_value")] - public int DefaultValue { get; set; } + /// + /// Default value of the limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_value")] + public int DefaultValue { get; set; } - /// - /// Value of the limit for Premium users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_value")] - public int PremiumValue { get; set; } - } + /// + /// Value of the limit for Premium users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_value")] + public int PremiumValue { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumLimitTypeActiveStoryCount.cs b/TdLib.Api/Objects/PremiumLimitTypeActiveStoryCount.cs index 11dd0894..35cb48cc 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeActiveStoryCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeActiveStoryCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of active stories + /// + public class PremiumLimitTypeActiveStoryCount : PremiumLimitType { /// - /// The maximum number of active stories + /// Data type for serialization /// - public class PremiumLimitTypeActiveStoryCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeActiveStoryCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeActiveStoryCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeBioLength.cs b/TdLib.Api/Objects/PremiumLimitTypeBioLength.cs index dd58b7b7..84ead0cb 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeBioLength.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeBioLength.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum length of the user's bio + /// + public class PremiumLimitTypeBioLength : PremiumLimitType { /// - /// The maximum length of the user's bio + /// Data type for serialization /// - public class PremiumLimitTypeBioLength : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeBioLength"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeBioLength"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeCaptionLength.cs b/TdLib.Api/Objects/PremiumLimitTypeCaptionLength.cs index 7135183b..304ba3f6 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeCaptionLength.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeCaptionLength.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum length of sent media caption + /// + public class PremiumLimitTypeCaptionLength : PremiumLimitType { /// - /// The maximum length of sent media caption + /// Data type for serialization /// - public class PremiumLimitTypeCaptionLength : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeCaptionLength"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeCaptionLength"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeChatFolderChosenChatCount.cs b/TdLib.Api/Objects/PremiumLimitTypeChatFolderChosenChatCount.cs index ee6c7ff2..f811d005 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeChatFolderChosenChatCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeChatFolderChosenChatCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of pinned and always included, or always excluded chats in a chat folder + /// + public class PremiumLimitTypeChatFolderChosenChatCount : PremiumLimitType { /// - /// The maximum number of pinned and always included, or always excluded chats in a chat folder + /// Data type for serialization /// - public class PremiumLimitTypeChatFolderChosenChatCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeChatFolderChosenChatCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeChatFolderChosenChatCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeChatFolderCount.cs b/TdLib.Api/Objects/PremiumLimitTypeChatFolderCount.cs index ab0e89bc..c47fc59e 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeChatFolderCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeChatFolderCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of chat folders + /// + public class PremiumLimitTypeChatFolderCount : PremiumLimitType { /// - /// The maximum number of chat folders + /// Data type for serialization /// - public class PremiumLimitTypeChatFolderCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeChatFolderCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeChatFolderCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeChatFolderInviteLinkCount.cs b/TdLib.Api/Objects/PremiumLimitTypeChatFolderInviteLinkCount.cs index 1060a79a..6c128d4d 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeChatFolderInviteLinkCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeChatFolderInviteLinkCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of invite links for a chat folder + /// + public class PremiumLimitTypeChatFolderInviteLinkCount : PremiumLimitType { /// - /// The maximum number of invite links for a chat folder + /// Data type for serialization /// - public class PremiumLimitTypeChatFolderInviteLinkCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeChatFolderInviteLinkCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeChatFolderInviteLinkCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeCreatedPublicChatCount.cs b/TdLib.Api/Objects/PremiumLimitTypeCreatedPublicChatCount.cs index ad784b0f..bb0ba605 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeCreatedPublicChatCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeCreatedPublicChatCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of created public chats + /// + public class PremiumLimitTypeCreatedPublicChatCount : PremiumLimitType { /// - /// The maximum number of created public chats + /// Data type for serialization /// - public class PremiumLimitTypeCreatedPublicChatCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeCreatedPublicChatCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeCreatedPublicChatCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeCustomTextCompositionStyleCount.cs b/TdLib.Api/Objects/PremiumLimitTypeCustomTextCompositionStyleCount.cs index da06db8a..9e6bab2d 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeCustomTextCompositionStyleCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeCustomTextCompositionStyleCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of added text composition styles + /// + public class PremiumLimitTypeCustomTextCompositionStyleCount : PremiumLimitType { /// - /// The maximum number of added text composition styles + /// Data type for serialization /// - public class PremiumLimitTypeCustomTextCompositionStyleCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeCustomTextCompositionStyleCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeCustomTextCompositionStyleCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeFavoriteStickerCount.cs b/TdLib.Api/Objects/PremiumLimitTypeFavoriteStickerCount.cs index 9d67ec96..f76c82af 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeFavoriteStickerCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeFavoriteStickerCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of favorite stickers + /// + public class PremiumLimitTypeFavoriteStickerCount : PremiumLimitType { /// - /// The maximum number of favorite stickers + /// Data type for serialization /// - public class PremiumLimitTypeFavoriteStickerCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeFavoriteStickerCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeFavoriteStickerCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeMessageTextLength.cs b/TdLib.Api/Objects/PremiumLimitTypeMessageTextLength.cs index f643203e..84c46ed1 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeMessageTextLength.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeMessageTextLength.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum length of text of sent messages + /// + public class PremiumLimitTypeMessageTextLength : PremiumLimitType { /// - /// The maximum length of text of sent messages + /// Data type for serialization /// - public class PremiumLimitTypeMessageTextLength : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeMessageTextLength"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeMessageTextLength"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeMonthlyPostedStoryCount.cs b/TdLib.Api/Objects/PremiumLimitTypeMonthlyPostedStoryCount.cs index c7f29545..a5208975 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeMonthlyPostedStoryCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeMonthlyPostedStoryCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of stories posted per month + /// + public class PremiumLimitTypeMonthlyPostedStoryCount : PremiumLimitType { /// - /// The maximum number of stories posted per month + /// Data type for serialization /// - public class PremiumLimitTypeMonthlyPostedStoryCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeMonthlyPostedStoryCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeMonthlyPostedStoryCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeOwnedBotCount.cs b/TdLib.Api/Objects/PremiumLimitTypeOwnedBotCount.cs index 779ef361..4832bc31 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeOwnedBotCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeOwnedBotCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of owned bots + /// + public class PremiumLimitTypeOwnedBotCount : PremiumLimitType { /// - /// The maximum number of owned bots + /// Data type for serialization /// - public class PremiumLimitTypeOwnedBotCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeOwnedBotCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeOwnedBotCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypePinnedArchivedChatCount.cs b/TdLib.Api/Objects/PremiumLimitTypePinnedArchivedChatCount.cs index 59f52fcb..4753cea7 100644 --- a/TdLib.Api/Objects/PremiumLimitTypePinnedArchivedChatCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypePinnedArchivedChatCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of pinned chats in the archive chat list + /// + public class PremiumLimitTypePinnedArchivedChatCount : PremiumLimitType { /// - /// The maximum number of pinned chats in the archive chat list + /// Data type for serialization /// - public class PremiumLimitTypePinnedArchivedChatCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypePinnedArchivedChatCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypePinnedArchivedChatCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypePinnedChatCount.cs b/TdLib.Api/Objects/PremiumLimitTypePinnedChatCount.cs index cc6eddb6..cb854ed1 100644 --- a/TdLib.Api/Objects/PremiumLimitTypePinnedChatCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypePinnedChatCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of pinned chats in the main chat list + /// + public class PremiumLimitTypePinnedChatCount : PremiumLimitType { /// - /// The maximum number of pinned chats in the main chat list + /// Data type for serialization /// - public class PremiumLimitTypePinnedChatCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypePinnedChatCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypePinnedChatCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypePinnedSavedMessagesTopicCount.cs b/TdLib.Api/Objects/PremiumLimitTypePinnedSavedMessagesTopicCount.cs index 44bcc9df..65af4d2b 100644 --- a/TdLib.Api/Objects/PremiumLimitTypePinnedSavedMessagesTopicCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypePinnedSavedMessagesTopicCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of pinned Saved Messages topics + /// + public class PremiumLimitTypePinnedSavedMessagesTopicCount : PremiumLimitType { /// - /// The maximum number of pinned Saved Messages topics + /// Data type for serialization /// - public class PremiumLimitTypePinnedSavedMessagesTopicCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypePinnedSavedMessagesTopicCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypePinnedSavedMessagesTopicCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeSavedAnimationCount.cs b/TdLib.Api/Objects/PremiumLimitTypeSavedAnimationCount.cs index bf5bd15b..36c48edd 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeSavedAnimationCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeSavedAnimationCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of saved animations + /// + public class PremiumLimitTypeSavedAnimationCount : PremiumLimitType { /// - /// The maximum number of saved animations + /// Data type for serialization /// - public class PremiumLimitTypeSavedAnimationCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeSavedAnimationCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeSavedAnimationCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeShareableChatFolderCount.cs b/TdLib.Api/Objects/PremiumLimitTypeShareableChatFolderCount.cs index a140172a..2f9af4c2 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeShareableChatFolderCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeShareableChatFolderCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of added shareable chat folders + /// + public class PremiumLimitTypeShareableChatFolderCount : PremiumLimitType { /// - /// The maximum number of added shareable chat folders + /// Data type for serialization /// - public class PremiumLimitTypeShareableChatFolderCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeShareableChatFolderCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeShareableChatFolderCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeSimilarChatCount.cs b/TdLib.Api/Objects/PremiumLimitTypeSimilarChatCount.cs index af4b0948..e0e76348 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeSimilarChatCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeSimilarChatCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of received similar chats + /// + public class PremiumLimitTypeSimilarChatCount : PremiumLimitType { /// - /// The maximum number of received similar chats + /// Data type for serialization /// - public class PremiumLimitTypeSimilarChatCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeSimilarChatCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeSimilarChatCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeStoryCaptionLength.cs b/TdLib.Api/Objects/PremiumLimitTypeStoryCaptionLength.cs index 7aa7156b..b7b40a4e 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeStoryCaptionLength.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeStoryCaptionLength.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum length of captions of posted stories + /// + public class PremiumLimitTypeStoryCaptionLength : PremiumLimitType { /// - /// The maximum length of captions of posted stories + /// Data type for serialization /// - public class PremiumLimitTypeStoryCaptionLength : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeStoryCaptionLength"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeStoryCaptionLength"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeStorySuggestedReactionAreaCount.cs b/TdLib.Api/Objects/PremiumLimitTypeStorySuggestedReactionAreaCount.cs index 10e69978..9dd8dd83 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeStorySuggestedReactionAreaCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeStorySuggestedReactionAreaCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of suggested reaction areas on a story + /// + public class PremiumLimitTypeStorySuggestedReactionAreaCount : PremiumLimitType { /// - /// The maximum number of suggested reaction areas on a story + /// Data type for serialization /// - public class PremiumLimitTypeStorySuggestedReactionAreaCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeStorySuggestedReactionAreaCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeStorySuggestedReactionAreaCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeSupergroupCount.cs b/TdLib.Api/Objects/PremiumLimitTypeSupergroupCount.cs index e1e55852..7eebd96f 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeSupergroupCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeSupergroupCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// Describes type of limit, increased for Premium users + /// + public class PremiumLimitTypeSupergroupCount : PremiumLimitType { /// - /// Describes type of limit, increased for Premium users + /// Data type for serialization /// - public class PremiumLimitTypeSupergroupCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeSupergroupCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeSupergroupCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumLimitTypeWeeklyPostedStoryCount.cs b/TdLib.Api/Objects/PremiumLimitTypeWeeklyPostedStoryCount.cs index 4ecc7099..9c4c5e14 100644 --- a/TdLib.Api/Objects/PremiumLimitTypeWeeklyPostedStoryCount.cs +++ b/TdLib.Api/Objects/PremiumLimitTypeWeeklyPostedStoryCount.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumLimitType : Object { - public partial class PremiumLimitType : Object + /// + /// The maximum number of stories posted per week + /// + public class PremiumLimitTypeWeeklyPostedStoryCount : PremiumLimitType { /// - /// The maximum number of stories posted per week + /// Data type for serialization /// - public class PremiumLimitTypeWeeklyPostedStoryCount : PremiumLimitType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumLimitTypeWeeklyPostedStoryCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumLimitTypeWeeklyPostedStoryCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumPaymentOption.cs b/TdLib.Api/Objects/PremiumPaymentOption.cs index d27aa8f9..3e66a223 100644 --- a/TdLib.Api/Objects/PremiumPaymentOption.cs +++ b/TdLib.Api/Objects/PremiumPaymentOption.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option for buying Telegram Premium to a user /// - public static partial class TdApi + public partial class PremiumPaymentOption : Object { /// - /// Describes an option for buying Telegram Premium to a user + /// Data type for serialization /// - public partial class PremiumPaymentOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumPaymentOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumPaymentOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code for Telegram Premium subscription payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code for Telegram Premium subscription payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The amount to pay, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The amount to pay, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// The discount associated with this option, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("discount_percentage")] - public int DiscountPercentage { get; set; } + /// + /// The discount associated with this option, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("discount_percentage")] + public int DiscountPercentage { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active. Use getPremiumInfoSticker to get the sticker to be used as representation of the Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active. Use getPremiumInfoSticker to get the sticker to be used as representation of the Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Identifier of the store product associated with the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_id")] - public string StoreProductId { get; set; } + /// + /// Identifier of the store product associated with the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_id")] + public string StoreProductId { get; set; } - /// - /// An internal link to be opened for buying Telegram Premium to the user if store payment isn't possible; may be null if direct payment isn't available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payment_link")] - public InternalLinkType PaymentLink { get; set; } - } + /// + /// An internal link to be opened for buying Telegram Premium to the user if store payment isn't possible; may be null if direct payment isn't available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_link")] + public InternalLinkType PaymentLink { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumSourceBusinessFeature.cs b/TdLib.Api/Objects/PremiumSourceBusinessFeature.cs index e0634cb4..2ab02371 100644 --- a/TdLib.Api/Objects/PremiumSourceBusinessFeature.cs +++ b/TdLib.Api/Objects/PremiumSourceBusinessFeature.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumSource : Object { - public partial class PremiumSource : Object + /// + /// A user tried to use a Business feature + /// + public class PremiumSourceBusinessFeature : PremiumSource { /// - /// A user tried to use a Business feature + /// Data type for serialization /// - public class PremiumSourceBusinessFeature : PremiumSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumSourceBusinessFeature"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumSourceBusinessFeature"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The used feature; pass null if none specific feature was used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("feature")] - public BusinessFeature Feature { get; set; } - } + /// + /// The used feature; pass null if none specific feature was used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("feature")] + public BusinessFeature Feature { get; set; } } } } diff --git a/TdLib.Api/Objects/PremiumSourceFeature.cs b/TdLib.Api/Objects/PremiumSourceFeature.cs index c6924fb6..54d0af89 100644 --- a/TdLib.Api/Objects/PremiumSourceFeature.cs +++ b/TdLib.Api/Objects/PremiumSourceFeature.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumSource : Object { - public partial class PremiumSource : Object + /// + /// A user tried to use a Premium feature + /// + public class PremiumSourceFeature : PremiumSource { /// - /// A user tried to use a Premium feature + /// Data type for serialization /// - public class PremiumSourceFeature : PremiumSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumSourceFeature"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumSourceFeature"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The used feature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("feature")] - public PremiumFeature Feature { get; set; } - } + /// + /// The used feature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("feature")] + public PremiumFeature Feature { get; set; } } } } diff --git a/TdLib.Api/Objects/PremiumSourceLimitExceeded.cs b/TdLib.Api/Objects/PremiumSourceLimitExceeded.cs index 55c01fa1..b3c025fa 100644 --- a/TdLib.Api/Objects/PremiumSourceLimitExceeded.cs +++ b/TdLib.Api/Objects/PremiumSourceLimitExceeded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumSource : Object { - public partial class PremiumSource : Object + /// + /// Describes a source from which the Premium features screen is opened + /// + public class PremiumSourceLimitExceeded : PremiumSource { /// - /// Describes a source from which the Premium features screen is opened + /// Data type for serialization /// - public class PremiumSourceLimitExceeded : PremiumSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumSourceLimitExceeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumSourceLimitExceeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the exceeded limit - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("limit_type")] - public PremiumLimitType LimitType { get; set; } - } + /// + /// Type of the exceeded limit + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("limit_type")] + public PremiumLimitType LimitType { get; set; } } } } diff --git a/TdLib.Api/Objects/PremiumSourceLink.cs b/TdLib.Api/Objects/PremiumSourceLink.cs index b1c50089..9e7a9b47 100644 --- a/TdLib.Api/Objects/PremiumSourceLink.cs +++ b/TdLib.Api/Objects/PremiumSourceLink.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumSource : Object { - public partial class PremiumSource : Object + /// + /// A user opened an internal link of the type internalLinkTypePremiumFeaturesPage + /// + public class PremiumSourceLink : PremiumSource { /// - /// A user opened an internal link of the type internalLinkTypePremiumFeaturesPage + /// Data type for serialization /// - public class PremiumSourceLink : PremiumSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumSourceLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumSourceLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The referrer from the link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("referrer")] - public string Referrer { get; set; } - } + /// + /// The referrer from the link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("referrer")] + public string Referrer { get; set; } } } } diff --git a/TdLib.Api/Objects/PremiumSourceSettings.cs b/TdLib.Api/Objects/PremiumSourceSettings.cs index 7c203509..dec54ead 100644 --- a/TdLib.Api/Objects/PremiumSourceSettings.cs +++ b/TdLib.Api/Objects/PremiumSourceSettings.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumSource : Object { - public partial class PremiumSource : Object + /// + /// A user opened the Premium features screen from settings + /// + public class PremiumSourceSettings : PremiumSource { /// - /// A user opened the Premium features screen from settings + /// Data type for serialization /// - public class PremiumSourceSettings : PremiumSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumSourceSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumSourceSettings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumSourceStoryFeature.cs b/TdLib.Api/Objects/PremiumSourceStoryFeature.cs index ead7c325..104d64c2 100644 --- a/TdLib.Api/Objects/PremiumSourceStoryFeature.cs +++ b/TdLib.Api/Objects/PremiumSourceStoryFeature.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumSource : Object { - public partial class PremiumSource : Object + /// + /// A user tried to use a Premium story feature + /// + public class PremiumSourceStoryFeature : PremiumSource { /// - /// A user tried to use a Premium story feature + /// Data type for serialization /// - public class PremiumSourceStoryFeature : PremiumSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumSourceStoryFeature"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumSourceStoryFeature"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The used feature - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("feature")] - public PremiumStoryFeature Feature { get; set; } - } + /// + /// The used feature + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("feature")] + public PremiumStoryFeature Feature { get; set; } } } } diff --git a/TdLib.Api/Objects/PremiumState.cs b/TdLib.Api/Objects/PremiumState.cs index 9a1fc1e6..24c7ad07 100644 --- a/TdLib.Api/Objects/PremiumState.cs +++ b/TdLib.Api/Objects/PremiumState.cs @@ -2,55 +2,54 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains state of Telegram Premium subscription and promotion videos for Premium features /// - public static partial class TdApi + public partial class PremiumState : Object { /// - /// Contains state of Telegram Premium subscription and promotion videos for Premium features + /// Data type for serialization /// - public partial class PremiumState : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumState"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text description of the state of the current Premium subscription; may be empty if the current user has no Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public FormattedText State { get; set; } + /// + /// Text description of the state of the current Premium subscription; may be empty if the current user has no Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public FormattedText State { get; set; } - /// - /// The list of available options for buying Telegram Premium - /// - [JsonProperty("payment_options", ItemConverterType = typeof(Converter))] - public PremiumStatePaymentOption[] PaymentOptions { get; set; } + /// + /// The list of available options for buying Telegram Premium + /// + [JsonProperty("payment_options", ItemConverterType = typeof(Converter))] + public PremiumStatePaymentOption[] PaymentOptions { get; set; } - /// - /// The list of available promotion animations for Premium features - /// - [JsonProperty("animations", ItemConverterType = typeof(Converter))] - public PremiumFeaturePromotionAnimation[] Animations { get; set; } + /// + /// The list of available promotion animations for Premium features + /// + [JsonProperty("animations", ItemConverterType = typeof(Converter))] + public PremiumFeaturePromotionAnimation[] Animations { get; set; } - /// - /// The list of available promotion animations for Business features - /// - [JsonProperty("business_animations", ItemConverterType = typeof(Converter))] - public BusinessFeaturePromotionAnimation[] BusinessAnimations { get; set; } - } + /// + /// The list of available promotion animations for Business features + /// + [JsonProperty("business_animations", ItemConverterType = typeof(Converter))] + public BusinessFeaturePromotionAnimation[] BusinessAnimations { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumStatePaymentOption.cs b/TdLib.Api/Objects/PremiumStatePaymentOption.cs index c627d55c..8b6210ab 100644 --- a/TdLib.Api/Objects/PremiumStatePaymentOption.cs +++ b/TdLib.Api/Objects/PremiumStatePaymentOption.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option for buying or upgrading Telegram Premium for self /// - public static partial class TdApi + public partial class PremiumStatePaymentOption : Object { /// - /// Describes an option for buying or upgrading Telegram Premium for self + /// Data type for serialization /// - public partial class PremiumStatePaymentOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStatePaymentOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStatePaymentOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the payment option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payment_option")] - public PremiumPaymentOption PaymentOption { get; set; } + /// + /// Information about the payment option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_option")] + public PremiumPaymentOption PaymentOption { get; set; } - /// - /// True, if this is the currently used Telegram Premium subscription option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current")] - public bool IsCurrent { get; set; } + /// + /// True, if this is the currently used Telegram Premium subscription option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current")] + public bool IsCurrent { get; set; } - /// - /// True, if the payment option can be used to upgrade the existing Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_upgrade")] - public bool IsUpgrade { get; set; } + /// + /// True, if the payment option can be used to upgrade the existing Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_upgrade")] + public bool IsUpgrade { get; set; } - /// - /// Identifier of the last in-store transaction for the currently used option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_transaction_id")] - public string LastTransactionId { get; set; } - } + /// + /// Identifier of the last in-store transaction for the currently used option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_transaction_id")] + public string LastTransactionId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PremiumStoryFeatureCustomExpirationDuration.cs b/TdLib.Api/Objects/PremiumStoryFeatureCustomExpirationDuration.cs index c4ea53eb..30a2c11b 100644 --- a/TdLib.Api/Objects/PremiumStoryFeatureCustomExpirationDuration.cs +++ b/TdLib.Api/Objects/PremiumStoryFeatureCustomExpirationDuration.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumStoryFeature : Object { - public partial class PremiumStoryFeature : Object + /// + /// The ability to set custom expiration duration for stories + /// + public class PremiumStoryFeatureCustomExpirationDuration : PremiumStoryFeature { /// - /// The ability to set custom expiration duration for stories + /// Data type for serialization /// - public class PremiumStoryFeatureCustomExpirationDuration : PremiumStoryFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStoryFeatureCustomExpirationDuration"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStoryFeatureCustomExpirationDuration"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumStoryFeatureLinksAndFormatting.cs b/TdLib.Api/Objects/PremiumStoryFeatureLinksAndFormatting.cs index 961956aa..0a90934d 100644 --- a/TdLib.Api/Objects/PremiumStoryFeatureLinksAndFormatting.cs +++ b/TdLib.Api/Objects/PremiumStoryFeatureLinksAndFormatting.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumStoryFeature : Object { - public partial class PremiumStoryFeature : Object + /// + /// The ability to use links and formatting in story caption, and use inputStoryAreaTypeLink areas + /// + public class PremiumStoryFeatureLinksAndFormatting : PremiumStoryFeature { /// - /// The ability to use links and formatting in story caption, and use inputStoryAreaTypeLink areas + /// Data type for serialization /// - public class PremiumStoryFeatureLinksAndFormatting : PremiumStoryFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStoryFeatureLinksAndFormatting"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStoryFeatureLinksAndFormatting"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumStoryFeaturePermanentViewsHistory.cs b/TdLib.Api/Objects/PremiumStoryFeaturePermanentViewsHistory.cs index 47ce9265..f5c6efd7 100644 --- a/TdLib.Api/Objects/PremiumStoryFeaturePermanentViewsHistory.cs +++ b/TdLib.Api/Objects/PremiumStoryFeaturePermanentViewsHistory.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumStoryFeature : Object { - public partial class PremiumStoryFeature : Object + /// + /// The ability to check who opened the current user's stories after they expire + /// + public class PremiumStoryFeaturePermanentViewsHistory : PremiumStoryFeature { /// - /// The ability to check who opened the current user's stories after they expire + /// Data type for serialization /// - public class PremiumStoryFeaturePermanentViewsHistory : PremiumStoryFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStoryFeaturePermanentViewsHistory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStoryFeaturePermanentViewsHistory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumStoryFeaturePriorityOrder.cs b/TdLib.Api/Objects/PremiumStoryFeaturePriorityOrder.cs index 9ca43aa0..cd2f4a88 100644 --- a/TdLib.Api/Objects/PremiumStoryFeaturePriorityOrder.cs +++ b/TdLib.Api/Objects/PremiumStoryFeaturePriorityOrder.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumStoryFeature : Object { - public partial class PremiumStoryFeature : Object + /// + /// Describes a story feature available to Premium users + /// + public class PremiumStoryFeaturePriorityOrder : PremiumStoryFeature { /// - /// Describes a story feature available to Premium users + /// Data type for serialization /// - public class PremiumStoryFeaturePriorityOrder : PremiumStoryFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStoryFeaturePriorityOrder"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStoryFeaturePriorityOrder"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumStoryFeatureSaveStories.cs b/TdLib.Api/Objects/PremiumStoryFeatureSaveStories.cs index 698563ad..64638540 100644 --- a/TdLib.Api/Objects/PremiumStoryFeatureSaveStories.cs +++ b/TdLib.Api/Objects/PremiumStoryFeatureSaveStories.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumStoryFeature : Object { - public partial class PremiumStoryFeature : Object + /// + /// The ability to save other's unprotected stories + /// + public class PremiumStoryFeatureSaveStories : PremiumStoryFeature { /// - /// The ability to save other's unprotected stories + /// Data type for serialization /// - public class PremiumStoryFeatureSaveStories : PremiumStoryFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStoryFeatureSaveStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStoryFeatureSaveStories"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumStoryFeatureStealthMode.cs b/TdLib.Api/Objects/PremiumStoryFeatureStealthMode.cs index 46f364cc..041cdd27 100644 --- a/TdLib.Api/Objects/PremiumStoryFeatureStealthMode.cs +++ b/TdLib.Api/Objects/PremiumStoryFeatureStealthMode.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumStoryFeature : Object { - public partial class PremiumStoryFeature : Object + /// + /// The ability to hide the fact that the user viewed other's stories + /// + public class PremiumStoryFeatureStealthMode : PremiumStoryFeature { /// - /// The ability to hide the fact that the user viewed other's stories + /// Data type for serialization /// - public class PremiumStoryFeatureStealthMode : PremiumStoryFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStoryFeatureStealthMode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStoryFeatureStealthMode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PremiumStoryFeatureVideoQuality.cs b/TdLib.Api/Objects/PremiumStoryFeatureVideoQuality.cs index a1af82ad..e1868a14 100644 --- a/TdLib.Api/Objects/PremiumStoryFeatureVideoQuality.cs +++ b/TdLib.Api/Objects/PremiumStoryFeatureVideoQuality.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PremiumStoryFeature : Object { - public partial class PremiumStoryFeature : Object + /// + /// The ability to choose better quality for viewed stories + /// + public class PremiumStoryFeatureVideoQuality : PremiumStoryFeature { /// - /// The ability to choose better quality for viewed stories + /// Data type for serialization /// - public class PremiumStoryFeatureVideoQuality : PremiumStoryFeature - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "premiumStoryFeatureVideoQuality"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "premiumStoryFeatureVideoQuality"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PrepaidGiveaway.cs b/TdLib.Api/Objects/PrepaidGiveaway.cs index a3c67b3e..c9d2ccaa 100644 --- a/TdLib.Api/Objects/PrepaidGiveaway.cs +++ b/TdLib.Api/Objects/PrepaidGiveaway.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a prepaid giveaway /// - public static partial class TdApi + public partial class PrepaidGiveaway : Object { /// - /// Describes a prepaid giveaway + /// Data type for serialization /// - public partial class PrepaidGiveaway : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "prepaidGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "prepaidGiveaway"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the prepaid giveaway - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique identifier of the prepaid giveaway + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Number of users who will receive giveaway prize - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Number of users who will receive giveaway prize + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// Prize of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prize")] - public GiveawayPrize Prize { get; set; } + /// + /// Prize of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prize")] + public GiveawayPrize Prize { get; set; } - /// - /// The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boost_count")] - public int BoostCount { get; set; } + /// + /// The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boost_count")] + public int BoostCount { get; set; } - /// - /// Point in time (Unix timestamp) when the giveaway was paid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payment_date")] - public int PaymentDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the giveaway was paid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payment_date")] + public int PaymentDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PreparedInlineMessage.cs b/TdLib.Api/Objects/PreparedInlineMessage.cs index 95ff638c..a66dd11a 100644 --- a/TdLib.Api/Objects/PreparedInlineMessage.cs +++ b/TdLib.Api/Objects/PreparedInlineMessage.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a ready to send inline message. Use sendInlineQueryResultMessage to send the message /// - public static partial class TdApi + public partial class PreparedInlineMessage : Object { /// - /// Represents a ready to send inline message. Use sendInlineQueryResultMessage to send the message + /// Data type for serialization /// - public partial class PreparedInlineMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "preparedInlineMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "preparedInlineMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the inline query to pass to sendInlineQueryResultMessage - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("inline_query_id")] - public long InlineQueryId { get; set; } + /// + /// Unique identifier of the inline query to pass to sendInlineQueryResultMessage + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("inline_query_id")] + public long InlineQueryId { get; set; } - /// - /// Resulted inline message of the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result")] - public InlineQueryResult Result { get; set; } + /// + /// Resulted inline message of the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result")] + public InlineQueryResult Result { get; set; } - /// - /// Types of the chats to which the message can be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_types")] - public TargetChatTypes ChatTypes { get; set; } - } + /// + /// Types of the chats to which the message can be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_types")] + public TargetChatTypes ChatTypes { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PreparedInlineMessageId.cs b/TdLib.Api/Objects/PreparedInlineMessageId.cs index 5fde547b..dbbcc60b 100644 --- a/TdLib.Api/Objects/PreparedInlineMessageId.cs +++ b/TdLib.Api/Objects/PreparedInlineMessageId.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents an inline message that can be sent via the bot /// - public static partial class TdApi + public partial class PreparedInlineMessageId : Object { /// - /// Represents an inline message that can be sent via the bot + /// Data type for serialization /// - public partial class PreparedInlineMessageId : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "preparedInlineMessageId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "preparedInlineMessageId"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier for the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier for the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Point in time (Unix timestamp) when the message can't be used anymore - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the message can't be used anymore + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ProductInfo.cs b/TdLib.Api/Objects/ProductInfo.cs index d1c7266f..9c20c4ad 100644 --- a/TdLib.Api/Objects/ProductInfo.cs +++ b/TdLib.Api/Objects/ProductInfo.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a product that can be paid with invoice /// - public static partial class TdApi + public partial class ProductInfo : Object { /// - /// Contains information about a product that can be paid with invoice + /// Data type for serialization /// - public partial class ProductInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "productInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "productInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Product title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Product title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public FormattedText Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public FormattedText Description { get; set; } - /// - /// Product photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// Product photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ProfileAccentColor.cs b/TdLib.Api/Objects/ProfileAccentColor.cs index 58dd34ff..4d838ee6 100644 --- a/TdLib.Api/Objects/ProfileAccentColor.cs +++ b/TdLib.Api/Objects/ProfileAccentColor.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about supported accent color for user profile photo background /// - public static partial class TdApi + public partial class ProfileAccentColor : Object { /// - /// Contains information about supported accent color for user profile photo background + /// Data type for serialization /// - public partial class ProfileAccentColor : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileAccentColor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileAccentColor"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Profile accent color identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Profile accent color identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Accent colors expected to be used in light themes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("light_theme_colors")] - public ProfileAccentColors LightThemeColors { get; set; } + /// + /// Accent colors expected to be used in light themes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("light_theme_colors")] + public ProfileAccentColors LightThemeColors { get; set; } - /// - /// Accent colors expected to be used in dark themes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dark_theme_colors")] - public ProfileAccentColors DarkThemeColors { get; set; } + /// + /// Accent colors expected to be used in dark themes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dark_theme_colors")] + public ProfileAccentColors DarkThemeColors { get; set; } - /// - /// The minimum chat boost level required to use the color in a supergroup chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_supergroup_chat_boost_level")] - public int MinSupergroupChatBoostLevel { get; set; } + /// + /// The minimum chat boost level required to use the color in a supergroup chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_supergroup_chat_boost_level")] + public int MinSupergroupChatBoostLevel { get; set; } - /// - /// The minimum chat boost level required to use the color in a channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_channel_chat_boost_level")] - public int MinChannelChatBoostLevel { get; set; } - } + /// + /// The minimum chat boost level required to use the color in a channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_channel_chat_boost_level")] + public int MinChannelChatBoostLevel { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ProfileAccentColors.cs b/TdLib.Api/Objects/ProfileAccentColors.cs index 19d39154..9fc364af 100644 --- a/TdLib.Api/Objects/ProfileAccentColors.cs +++ b/TdLib.Api/Objects/ProfileAccentColors.cs @@ -2,48 +2,47 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about supported accent colors for user profile photo background in RGB format /// - public static partial class TdApi + public partial class ProfileAccentColors : Object { /// - /// Contains information about supported accent colors for user profile photo background in RGB format + /// Data type for serialization /// - public partial class ProfileAccentColors : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileAccentColors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileAccentColors"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of 1-2 colors in RGB format, describing the colors, as expected to be shown in the color palette settings - /// - [JsonProperty("palette_colors", ItemConverterType = typeof(Converter))] - public int[] PaletteColors { get; set; } + /// + /// The list of 1-2 colors in RGB format, describing the colors, as expected to be shown in the color palette settings + /// + [JsonProperty("palette_colors", ItemConverterType = typeof(Converter))] + public int[] PaletteColors { get; set; } - /// - /// The list of 1-2 colors in RGB format, describing the colors, as expected to be used for the profile photo background - /// - [JsonProperty("background_colors", ItemConverterType = typeof(Converter))] - public int[] BackgroundColors { get; set; } + /// + /// The list of 1-2 colors in RGB format, describing the colors, as expected to be used for the profile photo background + /// + [JsonProperty("background_colors", ItemConverterType = typeof(Converter))] + public int[] BackgroundColors { get; set; } - /// - /// The list of 2 colors in RGB format, describing the colors of the gradient to be used for the unread active story indicator around profile photo - /// - [JsonProperty("story_colors", ItemConverterType = typeof(Converter))] - public int[] StoryColors { get; set; } - } + /// + /// The list of 2 colors in RGB format, describing the colors of the gradient to be used for the unread active story indicator around profile photo + /// + [JsonProperty("story_colors", ItemConverterType = typeof(Converter))] + public int[] StoryColors { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ProfilePhoto.cs b/TdLib.Api/Objects/ProfilePhoto.cs index 8d38f26e..a816819c 100644 --- a/TdLib.Api/Objects/ProfilePhoto.cs +++ b/TdLib.Api/Objects/ProfilePhoto.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a user profile photo /// - public static partial class TdApi + public partial class ProfilePhoto : Object { /// - /// Describes a user profile photo + /// Data type for serialization /// - public partial class ProfilePhoto : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profilePhoto"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// A small (160x160) user profile photo. The file can be downloaded only before the photo is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("small")] - public File Small { get; set; } + /// + /// A small (160x160) user profile photo. The file can be downloaded only before the photo is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("small")] + public File Small { get; set; } - /// - /// A big (640x640) user profile photo. The file can be downloaded only before the photo is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("big")] - public File Big { get; set; } + /// + /// A big (640x640) user profile photo. The file can be downloaded only before the photo is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("big")] + public File Big { get; set; } - /// - /// User profile photo minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// User profile photo minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// True, if the photo has animated variant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_animation")] - public bool HasAnimation { get; set; } + /// + /// True, if the photo has animated variant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_animation")] + public bool HasAnimation { get; set; } - /// - /// True, if the photo is visible only for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_personal")] - public bool IsPersonal { get; set; } - } + /// + /// True, if the photo is visible only for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_personal")] + public bool IsPersonal { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ProfileTabFiles.cs b/TdLib.Api/Objects/ProfileTabFiles.cs index faa366b2..7b562c20 100644 --- a/TdLib.Api/Objects/ProfileTabFiles.cs +++ b/TdLib.Api/Objects/ProfileTabFiles.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// A tab with documents posted by the channel + /// + public class ProfileTabFiles : ProfileTab { /// - /// A tab with documents posted by the channel + /// Data type for serialization /// - public class ProfileTabFiles : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabFiles"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabFiles"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ProfileTabGifs.cs b/TdLib.Api/Objects/ProfileTabGifs.cs index 276ae6bd..8298090f 100644 --- a/TdLib.Api/Objects/ProfileTabGifs.cs +++ b/TdLib.Api/Objects/ProfileTabGifs.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// A tab with animations posted by the channel + /// + public class ProfileTabGifs : ProfileTab { /// - /// A tab with animations posted by the channel + /// Data type for serialization /// - public class ProfileTabGifs : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabGifs"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabGifs"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ProfileTabGifts.cs b/TdLib.Api/Objects/ProfileTabGifts.cs index 50fa6f73..ec132a79 100644 --- a/TdLib.Api/Objects/ProfileTabGifts.cs +++ b/TdLib.Api/Objects/ProfileTabGifts.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// A tab with gifts received by the user or the channel chat + /// + public class ProfileTabGifts : ProfileTab { /// - /// A tab with gifts received by the user or the channel chat + /// Data type for serialization /// - public class ProfileTabGifts : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabGifts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ProfileTabLinks.cs b/TdLib.Api/Objects/ProfileTabLinks.cs index 27cba7af..da492468 100644 --- a/TdLib.Api/Objects/ProfileTabLinks.cs +++ b/TdLib.Api/Objects/ProfileTabLinks.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// A tab with messages posted by the channel and containing links + /// + public class ProfileTabLinks : ProfileTab { /// - /// A tab with messages posted by the channel and containing links + /// Data type for serialization /// - public class ProfileTabLinks : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabLinks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabLinks"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ProfileTabMedia.cs b/TdLib.Api/Objects/ProfileTabMedia.cs index b3836c6d..3fd3ab95 100644 --- a/TdLib.Api/Objects/ProfileTabMedia.cs +++ b/TdLib.Api/Objects/ProfileTabMedia.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// A tab with photos and videos posted by the channel + /// + public class ProfileTabMedia : ProfileTab { /// - /// A tab with photos and videos posted by the channel + /// Data type for serialization /// - public class ProfileTabMedia : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabMedia"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ProfileTabMusic.cs b/TdLib.Api/Objects/ProfileTabMusic.cs index f77d7b59..e25f03c8 100644 --- a/TdLib.Api/Objects/ProfileTabMusic.cs +++ b/TdLib.Api/Objects/ProfileTabMusic.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// A tab with audio messages posted by the channel + /// + public class ProfileTabMusic : ProfileTab { /// - /// A tab with audio messages posted by the channel + /// Data type for serialization /// - public class ProfileTabMusic : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabMusic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabMusic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ProfileTabPosts.cs b/TdLib.Api/Objects/ProfileTabPosts.cs index fdec64c3..88f89c71 100644 --- a/TdLib.Api/Objects/ProfileTabPosts.cs +++ b/TdLib.Api/Objects/ProfileTabPosts.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// Describes a tab shown in a user or a chat profile + /// + public class ProfileTabPosts : ProfileTab { /// - /// Describes a tab shown in a user or a chat profile + /// Data type for serialization /// - public class ProfileTabPosts : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabPosts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabPosts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ProfileTabVoice.cs b/TdLib.Api/Objects/ProfileTabVoice.cs index 962e8581..83120004 100644 --- a/TdLib.Api/Objects/ProfileTabVoice.cs +++ b/TdLib.Api/Objects/ProfileTabVoice.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProfileTab : Object { - public partial class ProfileTab : Object + /// + /// A tab with voice notes posted by the channel + /// + public class ProfileTabVoice : ProfileTab { /// - /// A tab with voice notes posted by the channel + /// Data type for serialization /// - public class ProfileTabVoice : ProfileTab - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "profileTabVoice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "profileTabVoice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Proxy.cs b/TdLib.Api/Objects/Proxy.cs index 1790fb8f..b28ef592 100644 --- a/TdLib.Api/Objects/Proxy.cs +++ b/TdLib.Api/Objects/Proxy.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a proxy server /// - public static partial class TdApi + public partial class Proxy : Object { /// - /// Describes a proxy server + /// Data type for serialization /// - public partial class Proxy : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "proxy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "proxy"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Proxy server domain or IP address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("server")] - public string Server { get; set; } + /// + /// Proxy server domain or IP address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("server")] + public string Server { get; set; } - /// - /// Proxy server port - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("port")] - public int Port { get; set; } + /// + /// Proxy server port + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("port")] + public int Port { get; set; } - /// - /// Type of the proxy - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ProxyType Type { get; set; } - } + /// + /// Type of the proxy + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ProxyType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ProxyTypeHttp.cs b/TdLib.Api/Objects/ProxyTypeHttp.cs index eadb892e..f1ed521f 100644 --- a/TdLib.Api/Objects/ProxyTypeHttp.cs +++ b/TdLib.Api/Objects/ProxyTypeHttp.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProxyType : Object { - public partial class ProxyType : Object + /// + /// A HTTP transparent proxy server + /// + public class ProxyTypeHttp : ProxyType { /// - /// A HTTP transparent proxy server + /// Data type for serialization /// - public class ProxyTypeHttp : ProxyType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "proxyTypeHttp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "proxyTypeHttp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username for logging in; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Username for logging in; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } - /// - /// Password for logging in; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } + /// + /// Password for logging in; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } - /// - /// Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("http_only")] - public bool HttpOnly { get; set; } - } + /// + /// Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("http_only")] + public bool HttpOnly { get; set; } } } } diff --git a/TdLib.Api/Objects/ProxyTypeMtproto.cs b/TdLib.Api/Objects/ProxyTypeMtproto.cs index 791a37c4..9184b8f5 100644 --- a/TdLib.Api/Objects/ProxyTypeMtproto.cs +++ b/TdLib.Api/Objects/ProxyTypeMtproto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProxyType : Object { - public partial class ProxyType : Object + /// + /// An MTProto proxy server + /// + public class ProxyTypeMtproto : ProxyType { /// - /// An MTProto proxy server + /// Data type for serialization /// - public class ProxyTypeMtproto : ProxyType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "proxyTypeMtproto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "proxyTypeMtproto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The proxy's secret in hexadecimal encoding - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secret")] - public string Secret { get; set; } - } + /// + /// The proxy's secret in hexadecimal encoding + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("secret")] + public string Secret { get; set; } } } } diff --git a/TdLib.Api/Objects/ProxyTypeSocks5.cs b/TdLib.Api/Objects/ProxyTypeSocks5.cs index cab74f20..f922dad4 100644 --- a/TdLib.Api/Objects/ProxyTypeSocks5.cs +++ b/TdLib.Api/Objects/ProxyTypeSocks5.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ProxyType : Object { - public partial class ProxyType : Object + /// + /// Describes the type of proxy server + /// + public class ProxyTypeSocks5 : ProxyType { /// - /// Describes the type of proxy server + /// Data type for serialization /// - public class ProxyTypeSocks5 : ProxyType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "proxyTypeSocks5"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "proxyTypeSocks5"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Username for logging in; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Username for logging in; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } - /// - /// Password for logging in; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("password")] - public string Password { get; set; } - } + /// + /// Password for logging in; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("password")] + public string Password { get; set; } } } } diff --git a/TdLib.Api/Objects/PublicChatTypeHasUsername.cs b/TdLib.Api/Objects/PublicChatTypeHasUsername.cs index 52100e85..0b133fa1 100644 --- a/TdLib.Api/Objects/PublicChatTypeHasUsername.cs +++ b/TdLib.Api/Objects/PublicChatTypeHasUsername.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PublicChatType : Object { - public partial class PublicChatType : Object + /// + /// Describes type of public chat + /// + public class PublicChatTypeHasUsername : PublicChatType { /// - /// Describes type of public chat + /// Data type for serialization /// - public class PublicChatTypeHasUsername : PublicChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "publicChatTypeHasUsername"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "publicChatTypeHasUsername"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PublicChatTypeIsLocationBased.cs b/TdLib.Api/Objects/PublicChatTypeIsLocationBased.cs index de707467..d504efbd 100644 --- a/TdLib.Api/Objects/PublicChatTypeIsLocationBased.cs +++ b/TdLib.Api/Objects/PublicChatTypeIsLocationBased.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PublicChatType : Object { - public partial class PublicChatType : Object + /// + /// The chat is public, because it is a location-based supergroup + /// + public class PublicChatTypeIsLocationBased : PublicChatType { /// - /// The chat is public, because it is a location-based supergroup + /// Data type for serialization /// - public class PublicChatTypeIsLocationBased : PublicChatType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "publicChatTypeIsLocationBased"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "publicChatTypeIsLocationBased"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PublicForwardMessage.cs b/TdLib.Api/Objects/PublicForwardMessage.cs index 4d0a3b2f..a1fdefeb 100644 --- a/TdLib.Api/Objects/PublicForwardMessage.cs +++ b/TdLib.Api/Objects/PublicForwardMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PublicForward : Object { - public partial class PublicForward : Object + /// + /// Describes a public forward or repost of a story + /// + public class PublicForwardMessage : PublicForward { /// - /// Describes a public forward or repost of a story + /// Data type for serialization /// - public class PublicForwardMessage : PublicForward - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "publicForwardMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "publicForwardMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } - } + /// + /// Information about the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } } } } diff --git a/TdLib.Api/Objects/PublicForwardStory.cs b/TdLib.Api/Objects/PublicForwardStory.cs index 02b83060..b9badc45 100644 --- a/TdLib.Api/Objects/PublicForwardStory.cs +++ b/TdLib.Api/Objects/PublicForwardStory.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PublicForward : Object { - public partial class PublicForward : Object + /// + /// Contains a public repost to a story + /// + public class PublicForwardStory : PublicForward { /// - /// Contains a public repost to a story + /// Data type for serialization /// - public class PublicForwardStory : PublicForward - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "publicForwardStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "publicForwardStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story")] - public Story Story { get; set; } - } + /// + /// Information about the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story")] + public Story Story { get; set; } } } } diff --git a/TdLib.Api/Objects/PublicForwards.cs b/TdLib.Api/Objects/PublicForwards.cs index 4e11d62f..0559ad98 100644 --- a/TdLib.Api/Objects/PublicForwards.cs +++ b/TdLib.Api/Objects/PublicForwards.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of public forwards and reposts as a story of a message or a story /// - public static partial class TdApi + public partial class PublicForwards : Object { /// - /// Represents a list of public forwards and reposts as a story of a message or a story + /// Data type for serialization /// - public partial class PublicForwards : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "publicForwards"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "publicForwards"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of messages and stories found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of messages and stories found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of found public forwards and reposts - /// - [JsonProperty("forwards", ItemConverterType = typeof(Converter))] - public PublicForward[] Forwards { get; set; } + /// + /// List of found public forwards and reposts + /// + [JsonProperty("forwards", ItemConverterType = typeof(Converter))] + public PublicForward[] Forwards { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PublicPostSearchLimits.cs b/TdLib.Api/Objects/PublicPostSearchLimits.cs index 9709ea62..20dd01c4 100644 --- a/TdLib.Api/Objects/PublicPostSearchLimits.cs +++ b/TdLib.Api/Objects/PublicPostSearchLimits.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about public post search limits /// - public static partial class TdApi + public partial class PublicPostSearchLimits : Object { /// - /// Contains information about public post search limits + /// Data type for serialization /// - public partial class PublicPostSearchLimits : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "publicPostSearchLimits"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "publicPostSearchLimits"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of queries that can be sent daily for free - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("daily_free_query_count")] - public int DailyFreeQueryCount { get; set; } + /// + /// Number of queries that can be sent daily for free + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("daily_free_query_count")] + public int DailyFreeQueryCount { get; set; } - /// - /// Number of remaining free queries today - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("remaining_free_query_count")] - public int RemainingFreeQueryCount { get; set; } + /// + /// Number of remaining free queries today + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("remaining_free_query_count")] + public int RemainingFreeQueryCount { get; set; } - /// - /// Amount of time till the next free query can be sent; 0 if it can be sent now - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_free_query_in")] - public int NextFreeQueryIn { get; set; } + /// + /// Amount of time till the next free query can be sent; 0 if it can be sent now + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_free_query_in")] + public int NextFreeQueryIn { get; set; } - /// - /// Number of Telegram Stars that must be paid for each non-free query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars that must be paid for each non-free query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// True, if the search for the specified query isn't charged - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current_query_free")] - public bool IsCurrentQueryFree { get; set; } - } + /// + /// True, if the search for the specified query isn't charged + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current_query_free")] + public bool IsCurrentQueryFree { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PushMessageContentAnimation.cs b/TdLib.Api/Objects/PushMessageContentAnimation.cs index 4663f07c..54a3022f 100644 --- a/TdLib.Api/Objects/PushMessageContentAnimation.cs +++ b/TdLib.Api/Objects/PushMessageContentAnimation.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// An animation message (GIF-style). + /// + public class PushMessageContentAnimation : PushMessageContent { /// - /// An animation message (GIF-style). + /// Data type for serialization /// - public class PushMessageContentAnimation : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } - /// - /// Animation caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public string Caption { get; set; } + /// + /// Animation caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public string Caption { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentAudio.cs b/TdLib.Api/Objects/PushMessageContentAudio.cs index 8d81523d..9823be37 100644 --- a/TdLib.Api/Objects/PushMessageContentAudio.cs +++ b/TdLib.Api/Objects/PushMessageContentAudio.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// An audio message + /// + public class PushMessageContentAudio : PushMessageContent { /// - /// An audio message + /// Data type for serialization /// - public class PushMessageContentAudio : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("audio")] - public Audio Audio { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("audio")] + public Audio Audio { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentBasicGroupChatCreate.cs b/TdLib.Api/Objects/PushMessageContentBasicGroupChatCreate.cs index 1077d5ac..04f242b3 100644 --- a/TdLib.Api/Objects/PushMessageContentBasicGroupChatCreate.cs +++ b/TdLib.Api/Objects/PushMessageContentBasicGroupChatCreate.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A newly created basic group + /// + public class PushMessageContentBasicGroupChatCreate : PushMessageContent { /// - /// A newly created basic group + /// Data type for serialization /// - public class PushMessageContentBasicGroupChatCreate : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentBasicGroupChatCreate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentBasicGroupChatCreate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatAddMembers.cs b/TdLib.Api/Objects/PushMessageContentChatAddMembers.cs index 260edd40..60e1643a 100644 --- a/TdLib.Api/Objects/PushMessageContentChatAddMembers.cs +++ b/TdLib.Api/Objects/PushMessageContentChatAddMembers.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// New chat members were invited to a group + /// + public class PushMessageContentChatAddMembers : PushMessageContent { /// - /// New chat members were invited to a group + /// Data type for serialization /// - public class PushMessageContentChatAddMembers : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatAddMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatAddMembers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the added member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_name")] - public string MemberName { get; set; } + /// + /// Name of the added member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_name")] + public string MemberName { get; set; } - /// - /// True, if the current user was added to the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current_user")] - public bool IsCurrentUser { get; set; } + /// + /// True, if the current user was added to the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current_user")] + public bool IsCurrentUser { get; set; } - /// - /// True, if the user has returned to the group themselves - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_returned")] - public bool IsReturned { get; set; } - } + /// + /// True, if the user has returned to the group themselves + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_returned")] + public bool IsReturned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatChangePhoto.cs b/TdLib.Api/Objects/PushMessageContentChatChangePhoto.cs index 7f1701a6..eedab869 100644 --- a/TdLib.Api/Objects/PushMessageContentChatChangePhoto.cs +++ b/TdLib.Api/Objects/PushMessageContentChatChangePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A chat photo was edited + /// + public class PushMessageContentChatChangePhoto : PushMessageContent { /// - /// A chat photo was edited + /// Data type for serialization /// - public class PushMessageContentChatChangePhoto : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatChangePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatChangePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatChangeTitle.cs b/TdLib.Api/Objects/PushMessageContentChatChangeTitle.cs index c8b09f5f..5a9b4f01 100644 --- a/TdLib.Api/Objects/PushMessageContentChatChangeTitle.cs +++ b/TdLib.Api/Objects/PushMessageContentChatChangeTitle.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A chat title was edited + /// + public class PushMessageContentChatChangeTitle : PushMessageContent { /// - /// A chat title was edited + /// Data type for serialization /// - public class PushMessageContentChatChangeTitle : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatChangeTitle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatChangeTitle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// New chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatDeleteMember.cs b/TdLib.Api/Objects/PushMessageContentChatDeleteMember.cs index 06bb4501..973da497 100644 --- a/TdLib.Api/Objects/PushMessageContentChatDeleteMember.cs +++ b/TdLib.Api/Objects/PushMessageContentChatDeleteMember.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A chat member was deleted + /// + public class PushMessageContentChatDeleteMember : PushMessageContent { /// - /// A chat member was deleted + /// Data type for serialization /// - public class PushMessageContentChatDeleteMember : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatDeleteMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatDeleteMember"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the deleted member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_name")] - public string MemberName { get; set; } + /// + /// Name of the deleted member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_name")] + public string MemberName { get; set; } - /// - /// True, if the current user was deleted from the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current_user")] - public bool IsCurrentUser { get; set; } + /// + /// True, if the current user was deleted from the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current_user")] + public bool IsCurrentUser { get; set; } - /// - /// True, if the user has left the group themselves - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_left")] - public bool IsLeft { get; set; } - } + /// + /// True, if the user has left the group themselves + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_left")] + public bool IsLeft { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatJoinByLink.cs b/TdLib.Api/Objects/PushMessageContentChatJoinByLink.cs index 06125dea..11131553 100644 --- a/TdLib.Api/Objects/PushMessageContentChatJoinByLink.cs +++ b/TdLib.Api/Objects/PushMessageContentChatJoinByLink.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A new member joined the chat via an invite link + /// + public class PushMessageContentChatJoinByLink : PushMessageContent { /// - /// A new member joined the chat via an invite link + /// Data type for serialization /// - public class PushMessageContentChatJoinByLink : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatJoinByLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatJoinByLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatJoinByRequest.cs b/TdLib.Api/Objects/PushMessageContentChatJoinByRequest.cs index 6aba6b27..5cfe5885 100644 --- a/TdLib.Api/Objects/PushMessageContentChatJoinByRequest.cs +++ b/TdLib.Api/Objects/PushMessageContentChatJoinByRequest.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A new member was accepted to the chat by an administrator + /// + public class PushMessageContentChatJoinByRequest : PushMessageContent { /// - /// A new member was accepted to the chat by an administrator + /// Data type for serialization /// - public class PushMessageContentChatJoinByRequest : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatJoinByRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatJoinByRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatSetBackground.cs b/TdLib.Api/Objects/PushMessageContentChatSetBackground.cs index 6976643c..f9f98d4b 100644 --- a/TdLib.Api/Objects/PushMessageContentChatSetBackground.cs +++ b/TdLib.Api/Objects/PushMessageContentChatSetBackground.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A chat background was edited + /// + public class PushMessageContentChatSetBackground : PushMessageContent { /// - /// A chat background was edited + /// Data type for serialization /// - public class PushMessageContentChatSetBackground : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatSetBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatSetBackground"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the set background is the same as the background of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_same")] - public bool IsSame { get; set; } - } + /// + /// True, if the set background is the same as the background of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_same")] + public bool IsSame { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChatSetTheme.cs b/TdLib.Api/Objects/PushMessageContentChatSetTheme.cs index de67c530..2e83a741 100644 --- a/TdLib.Api/Objects/PushMessageContentChatSetTheme.cs +++ b/TdLib.Api/Objects/PushMessageContentChatSetTheme.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A chat theme was edited + /// + public class PushMessageContentChatSetTheme : PushMessageContent { /// - /// A chat theme was edited + /// Data type for serialization /// - public class PushMessageContentChatSetTheme : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChatSetTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChatSetTheme"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// If non-empty, human-readable name of the new theme. Otherwise, the chat theme was reset to the default one - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// If non-empty, human-readable name of the new theme. Otherwise, the chat theme was reset to the default one + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChecklist.cs b/TdLib.Api/Objects/PushMessageContentChecklist.cs index d8a25c94..665ee838 100644 --- a/TdLib.Api/Objects/PushMessageContentChecklist.cs +++ b/TdLib.Api/Objects/PushMessageContentChecklist.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a checklist + /// + public class PushMessageContentChecklist : PushMessageContent { /// - /// A message with a checklist + /// Data type for serialization /// - public class PushMessageContentChecklist : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChecklist"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChecklist"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Checklist title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Checklist title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChecklistTasksAdded.cs b/TdLib.Api/Objects/PushMessageContentChecklistTasksAdded.cs index 35e8ea66..5eb354b9 100644 --- a/TdLib.Api/Objects/PushMessageContentChecklistTasksAdded.cs +++ b/TdLib.Api/Objects/PushMessageContentChecklistTasksAdded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// Some tasks were added to a checklist + /// + public class PushMessageContentChecklistTasksAdded : PushMessageContent { /// - /// Some tasks were added to a checklist + /// Data type for serialization /// - public class PushMessageContentChecklistTasksAdded : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChecklistTasksAdded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChecklistTasksAdded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of added tasks - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("task_count")] - public int TaskCount { get; set; } - } + /// + /// Number of added tasks + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("task_count")] + public int TaskCount { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentChecklistTasksDone.cs b/TdLib.Api/Objects/PushMessageContentChecklistTasksDone.cs index de55f740..7c148277 100644 --- a/TdLib.Api/Objects/PushMessageContentChecklistTasksDone.cs +++ b/TdLib.Api/Objects/PushMessageContentChecklistTasksDone.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// Some tasks from a checklist were marked as done or not done + /// + public class PushMessageContentChecklistTasksDone : PushMessageContent { /// - /// Some tasks from a checklist were marked as done or not done + /// Data type for serialization /// - public class PushMessageContentChecklistTasksDone : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentChecklistTasksDone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentChecklistTasksDone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of changed tasks - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("task_count")] - public int TaskCount { get; set; } - } + /// + /// Number of changed tasks + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("task_count")] + public int TaskCount { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentContact.cs b/TdLib.Api/Objects/PushMessageContentContact.cs index c3afc3e0..e45011b9 100644 --- a/TdLib.Api/Objects/PushMessageContentContact.cs +++ b/TdLib.Api/Objects/PushMessageContentContact.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a user contact + /// + public class PushMessageContentContact : PushMessageContent { /// - /// A message with a user contact + /// Data type for serialization /// - public class PushMessageContentContact : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentContact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentContact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Contact's name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Contact's name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentContactRegistered.cs b/TdLib.Api/Objects/PushMessageContentContactRegistered.cs index 9be3835c..89577cbf 100644 --- a/TdLib.Api/Objects/PushMessageContentContactRegistered.cs +++ b/TdLib.Api/Objects/PushMessageContentContactRegistered.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A contact has registered with Telegram + /// + public class PushMessageContentContactRegistered : PushMessageContent { /// - /// A contact has registered with Telegram + /// Data type for serialization /// - public class PushMessageContentContactRegistered : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentContactRegistered"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentContactRegistered"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the user joined Telegram as a Telegram Premium account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("as_premium_account")] - public bool AsPremiumAccount { get; set; } - } + /// + /// True, if the user joined Telegram as a Telegram Premium account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("as_premium_account")] + public bool AsPremiumAccount { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentDocument.cs b/TdLib.Api/Objects/PushMessageContentDocument.cs index 4732f685..9274c411 100644 --- a/TdLib.Api/Objects/PushMessageContentDocument.cs +++ b/TdLib.Api/Objects/PushMessageContentDocument.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A document message (a general file) + /// + public class PushMessageContentDocument : PushMessageContent { /// - /// A document message (a general file) + /// Data type for serialization /// - public class PushMessageContentDocument : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentGame.cs b/TdLib.Api/Objects/PushMessageContentGame.cs index 96878dde..0c60c3af 100644 --- a/TdLib.Api/Objects/PushMessageContentGame.cs +++ b/TdLib.Api/Objects/PushMessageContentGame.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a game + /// + public class PushMessageContentGame : PushMessageContent { /// - /// A message with a game + /// Data type for serialization /// - public class PushMessageContentGame : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentGame"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentGame"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Game title, empty for pinned game message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Game title, empty for pinned game message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentGameScore.cs b/TdLib.Api/Objects/PushMessageContentGameScore.cs index 73f99888..459a2319 100644 --- a/TdLib.Api/Objects/PushMessageContentGameScore.cs +++ b/TdLib.Api/Objects/PushMessageContentGameScore.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A new high score was achieved in a game + /// + public class PushMessageContentGameScore : PushMessageContent { /// - /// A new high score was achieved in a game + /// Data type for serialization /// - public class PushMessageContentGameScore : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentGameScore"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentGameScore"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Game title, empty for pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Game title, empty for pinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// New score, 0 for pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("score")] - public int Score { get; set; } + /// + /// New score, 0 for pinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("score")] + public int Score { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentGift.cs b/TdLib.Api/Objects/PushMessageContentGift.cs index 9701ac98..0931b422 100644 --- a/TdLib.Api/Objects/PushMessageContentGift.cs +++ b/TdLib.Api/Objects/PushMessageContentGift.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a gift + /// + public class PushMessageContentGift : PushMessageContent { /// - /// A message with a gift + /// Data type for serialization /// - public class PushMessageContentGift : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars that sender paid for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars that sender paid for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// True, if the message is about prepaid upgrade of the gift by another user instead of actual receiving of a new gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_prepaid_upgrade")] - public bool IsPrepaidUpgrade { get; set; } - } + /// + /// True, if the message is about prepaid upgrade of the gift by another user instead of actual receiving of a new gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_prepaid_upgrade")] + public bool IsPrepaidUpgrade { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentGiveaway.cs b/TdLib.Api/Objects/PushMessageContentGiveaway.cs index 5590c37f..065a9bdf 100644 --- a/TdLib.Api/Objects/PushMessageContentGiveaway.cs +++ b/TdLib.Api/Objects/PushMessageContentGiveaway.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a giveaway + /// + public class PushMessageContentGiveaway : PushMessageContent { /// - /// A message with a giveaway + /// Data type for serialization /// - public class PushMessageContentGiveaway : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentGiveaway"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of users who will receive giveaway prizes; 0 for pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Number of users who will receive giveaway prizes; 0 for pinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// Prize of the giveaway; may be null for pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prize")] - public GiveawayPrize Prize { get; set; } + /// + /// Prize of the giveaway; may be null for pinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prize")] + public GiveawayPrize Prize { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentHidden.cs b/TdLib.Api/Objects/PushMessageContentHidden.cs index 6e9b30d3..5c36b6ea 100644 --- a/TdLib.Api/Objects/PushMessageContentHidden.cs +++ b/TdLib.Api/Objects/PushMessageContentHidden.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// Contains content of a push message notification + /// + public class PushMessageContentHidden : PushMessageContent { /// - /// Contains content of a push message notification + /// Data type for serialization /// - public class PushMessageContentHidden : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentHidden"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentHidden"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentInviteVideoChatParticipants.cs b/TdLib.Api/Objects/PushMessageContentInviteVideoChatParticipants.cs index f7249fc8..cab3a5f9 100644 --- a/TdLib.Api/Objects/PushMessageContentInviteVideoChatParticipants.cs +++ b/TdLib.Api/Objects/PushMessageContentInviteVideoChatParticipants.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// An invitation of participants to a video chat or live stream + /// + public class PushMessageContentInviteVideoChatParticipants : PushMessageContent { /// - /// An invitation of participants to a video chat or live stream + /// Data type for serialization /// - public class PushMessageContentInviteVideoChatParticipants : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentInviteVideoChatParticipants"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentInviteVideoChatParticipants"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the current user was invited to the video chat or the live stream - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current_user")] - public bool IsCurrentUser { get; set; } - } + /// + /// True, if the current user was invited to the video chat or the live stream + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current_user")] + public bool IsCurrentUser { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentInvoice.cs b/TdLib.Api/Objects/PushMessageContentInvoice.cs index be4accbb..1b08eab8 100644 --- a/TdLib.Api/Objects/PushMessageContentInvoice.cs +++ b/TdLib.Api/Objects/PushMessageContentInvoice.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with an invoice from a bot + /// + public class PushMessageContentInvoice : PushMessageContent { /// - /// A message with an invoice from a bot + /// Data type for serialization /// - public class PushMessageContentInvoice : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentInvoice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentInvoice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Product price - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public string Price { get; set; } + /// + /// Product price + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public string Price { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentLocation.cs b/TdLib.Api/Objects/PushMessageContentLocation.cs index edce7f73..c6949db1 100644 --- a/TdLib.Api/Objects/PushMessageContentLocation.cs +++ b/TdLib.Api/Objects/PushMessageContentLocation.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a location + /// + public class PushMessageContentLocation : PushMessageContent { /// - /// A message with a location + /// Data type for serialization /// - public class PushMessageContentLocation : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the location is live - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_live")] - public bool IsLive { get; set; } + /// + /// True, if the location is live + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_live")] + public bool IsLive { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentMediaAlbum.cs b/TdLib.Api/Objects/PushMessageContentMediaAlbum.cs index 3185364d..4a4a1aef 100644 --- a/TdLib.Api/Objects/PushMessageContentMediaAlbum.cs +++ b/TdLib.Api/Objects/PushMessageContentMediaAlbum.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A media album + /// + public class PushMessageContentMediaAlbum : PushMessageContent { /// - /// A media album + /// Data type for serialization /// - public class PushMessageContentMediaAlbum : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentMediaAlbum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentMediaAlbum"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of messages in the album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Number of messages in the album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// True, if the album has at least one photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_photos")] - public bool HasPhotos { get; set; } + /// + /// True, if the album has at least one photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_photos")] + public bool HasPhotos { get; set; } - /// - /// True, if the album has at least one video file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_videos")] - public bool HasVideos { get; set; } + /// + /// True, if the album has at least one video file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_videos")] + public bool HasVideos { get; set; } - /// - /// True, if the album has at least one audio file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_audios")] - public bool HasAudios { get; set; } + /// + /// True, if the album has at least one audio file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_audios")] + public bool HasAudios { get; set; } - /// - /// True, if the album has at least one document - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_documents")] - public bool HasDocuments { get; set; } - } + /// + /// True, if the album has at least one document + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_documents")] + public bool HasDocuments { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentMessageForwards.cs b/TdLib.Api/Objects/PushMessageContentMessageForwards.cs index a6d2412b..a7145f6b 100644 --- a/TdLib.Api/Objects/PushMessageContentMessageForwards.cs +++ b/TdLib.Api/Objects/PushMessageContentMessageForwards.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A forwarded messages + /// + public class PushMessageContentMessageForwards : PushMessageContent { /// - /// A forwarded messages + /// Data type for serialization /// - public class PushMessageContentMessageForwards : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentMessageForwards"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentMessageForwards"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of forwarded messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } - } + /// + /// Number of forwarded messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentPaidMedia.cs b/TdLib.Api/Objects/PushMessageContentPaidMedia.cs index cf1b5e3c..561c196e 100644 --- a/TdLib.Api/Objects/PushMessageContentPaidMedia.cs +++ b/TdLib.Api/Objects/PushMessageContentPaidMedia.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with paid media + /// + public class PushMessageContentPaidMedia : PushMessageContent { /// - /// A message with paid media + /// Data type for serialization /// - public class PushMessageContentPaidMedia : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentPaidMedia"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentPaidMedia"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentPhoto.cs b/TdLib.Api/Objects/PushMessageContentPhoto.cs index 2b1c2d89..a93f3a76 100644 --- a/TdLib.Api/Objects/PushMessageContentPhoto.cs +++ b/TdLib.Api/Objects/PushMessageContentPhoto.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A photo message + /// + public class PushMessageContentPhoto : PushMessageContent { /// - /// A photo message + /// Data type for serialization /// - public class PushMessageContentPhoto : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// Photo caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public string Caption { get; set; } + /// + /// Photo caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public string Caption { get; set; } - /// - /// True, if the photo is secret - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_secret")] - public bool IsSecret { get; set; } + /// + /// True, if the photo is secret + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_secret")] + public bool IsSecret { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentPoll.cs b/TdLib.Api/Objects/PushMessageContentPoll.cs index ebdc828d..bfaba531 100644 --- a/TdLib.Api/Objects/PushMessageContentPoll.cs +++ b/TdLib.Api/Objects/PushMessageContentPoll.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a poll + /// + public class PushMessageContentPoll : PushMessageContent { /// - /// A message with a poll + /// Data type for serialization /// - public class PushMessageContentPoll : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentPoll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentPoll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Poll question - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("question")] - public string Question { get; set; } + /// + /// Poll question + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("question")] + public string Question { get; set; } - /// - /// True, if the poll is regular and not in quiz mode - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_regular")] - public bool IsRegular { get; set; } + /// + /// True, if the poll is regular and not in quiz mode + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_regular")] + public bool IsRegular { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentPollOptionAdded.cs b/TdLib.Api/Objects/PushMessageContentPollOptionAdded.cs index 76e60d60..72fc519a 100644 --- a/TdLib.Api/Objects/PushMessageContentPollOptionAdded.cs +++ b/TdLib.Api/Objects/PushMessageContentPollOptionAdded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// An option was added to a poll + /// + public class PushMessageContentPollOptionAdded : PushMessageContent { /// - /// An option was added to a poll + /// Data type for serialization /// - public class PushMessageContentPollOptionAdded : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentPollOptionAdded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentPollOptionAdded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Text of the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentPremiumGiftCode.cs b/TdLib.Api/Objects/PushMessageContentPremiumGiftCode.cs index 8b2fdbae..3b5f0104 100644 --- a/TdLib.Api/Objects/PushMessageContentPremiumGiftCode.cs +++ b/TdLib.Api/Objects/PushMessageContentPremiumGiftCode.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a Telegram Premium gift code created for the user + /// + public class PushMessageContentPremiumGiftCode : PushMessageContent { /// - /// A message with a Telegram Premium gift code created for the user + /// Data type for serialization /// - public class PushMessageContentPremiumGiftCode : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentPremiumGiftCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentPremiumGiftCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active after code activation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } - } + /// + /// Number of months the Telegram Premium subscription will be active after code activation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentProximityAlertTriggered.cs b/TdLib.Api/Objects/PushMessageContentProximityAlertTriggered.cs index 0a6e8d78..b7a182c7 100644 --- a/TdLib.Api/Objects/PushMessageContentProximityAlertTriggered.cs +++ b/TdLib.Api/Objects/PushMessageContentProximityAlertTriggered.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A user in the chat came within proximity alert range from the current user + /// + public class PushMessageContentProximityAlertTriggered : PushMessageContent { /// - /// A user in the chat came within proximity alert range from the current user + /// Data type for serialization /// - public class PushMessageContentProximityAlertTriggered : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentProximityAlertTriggered"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentProximityAlertTriggered"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The distance to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("distance")] - public int Distance { get; set; } - } + /// + /// The distance to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("distance")] + public int Distance { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentRecurringPayment.cs b/TdLib.Api/Objects/PushMessageContentRecurringPayment.cs index 2be544fb..195b467a 100644 --- a/TdLib.Api/Objects/PushMessageContentRecurringPayment.cs +++ b/TdLib.Api/Objects/PushMessageContentRecurringPayment.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A new recurring payment was made by the current user + /// + public class PushMessageContentRecurringPayment : PushMessageContent { /// - /// A new recurring payment was made by the current user + /// Data type for serialization /// - public class PushMessageContentRecurringPayment : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentRecurringPayment"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentRecurringPayment"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The paid amount - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public string Amount { get; set; } - } + /// + /// The paid amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public string Amount { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentScreenshotTaken.cs b/TdLib.Api/Objects/PushMessageContentScreenshotTaken.cs index b416b435..53891949 100644 --- a/TdLib.Api/Objects/PushMessageContentScreenshotTaken.cs +++ b/TdLib.Api/Objects/PushMessageContentScreenshotTaken.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A screenshot of a message in the chat has been taken + /// + public class PushMessageContentScreenshotTaken : PushMessageContent { /// - /// A screenshot of a message in the chat has been taken + /// Data type for serialization /// - public class PushMessageContentScreenshotTaken : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentScreenshotTaken"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentScreenshotTaken"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentSticker.cs b/TdLib.Api/Objects/PushMessageContentSticker.cs index 58fd955b..725f04a2 100644 --- a/TdLib.Api/Objects/PushMessageContentSticker.cs +++ b/TdLib.Api/Objects/PushMessageContentSticker.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a sticker + /// + public class PushMessageContentSticker : PushMessageContent { /// - /// A message with a sticker + /// Data type for serialization /// - public class PushMessageContentSticker : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentSticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentSticker"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } - /// - /// Emoji corresponding to the sticker; may be empty - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Emoji corresponding to the sticker; may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentStory.cs b/TdLib.Api/Objects/PushMessageContentStory.cs index 836ed929..1924b36d 100644 --- a/TdLib.Api/Objects/PushMessageContentStory.cs +++ b/TdLib.Api/Objects/PushMessageContentStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with a story + /// + public class PushMessageContentStory : PushMessageContent { /// - /// A message with a story + /// Data type for serialization /// - public class PushMessageContentStory : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the user was mentioned in the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_mention")] - public bool IsMention { get; set; } + /// + /// True, if the user was mentioned in the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_mention")] + public bool IsMention { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentSuggestBirthdate.cs b/TdLib.Api/Objects/PushMessageContentSuggestBirthdate.cs index 5a1fc080..931ed78c 100644 --- a/TdLib.Api/Objects/PushMessageContentSuggestBirthdate.cs +++ b/TdLib.Api/Objects/PushMessageContentSuggestBirthdate.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A birthdate was suggested to be set + /// + public class PushMessageContentSuggestBirthdate : PushMessageContent { /// - /// A birthdate was suggested to be set + /// Data type for serialization /// - public class PushMessageContentSuggestBirthdate : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentSuggestBirthdate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentSuggestBirthdate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentSuggestProfilePhoto.cs b/TdLib.Api/Objects/PushMessageContentSuggestProfilePhoto.cs index ad2b1882..0d51172a 100644 --- a/TdLib.Api/Objects/PushMessageContentSuggestProfilePhoto.cs +++ b/TdLib.Api/Objects/PushMessageContentSuggestProfilePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A profile photo was suggested to the user + /// + public class PushMessageContentSuggestProfilePhoto : PushMessageContent { /// - /// A profile photo was suggested to the user + /// Data type for serialization /// - public class PushMessageContentSuggestProfilePhoto : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentSuggestProfilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentSuggestProfilePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentText.cs b/TdLib.Api/Objects/PushMessageContentText.cs index 25153fd9..1052821f 100644 --- a/TdLib.Api/Objects/PushMessageContentText.cs +++ b/TdLib.Api/Objects/PushMessageContentText.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A text message + /// + public class PushMessageContentText : PushMessageContent { /// - /// A text message + /// Data type for serialization /// - public class PushMessageContentText : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentText"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Message text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentTonConnectRequest.cs b/TdLib.Api/Objects/PushMessageContentTonConnectRequest.cs new file mode 100644 index 00000000..039c9a44 --- /dev/null +++ b/TdLib.Api/Objects/PushMessageContentTonConnectRequest.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class PushMessageContent : Object + { + /// + /// A message with a request from a dApp was received through TON Connect + /// + public class PushMessageContentTonConnectRequest : PushMessageContent + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentTonConnectRequest"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Name of the dApp; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dapp_name")] + public string DappName { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PushMessageContentTonWalletTransfer.cs b/TdLib.Api/Objects/PushMessageContentTonWalletTransfer.cs new file mode 100644 index 00000000..15531f7d --- /dev/null +++ b/TdLib.Api/Objects/PushMessageContentTonWalletTransfer.cs @@ -0,0 +1,54 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class PushMessageContent : Object + { + /// + /// A message with a TON wallet transfer + /// + public class PushMessageContentTonWalletTransfer : PushMessageContent + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentTonWalletTransfer"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Sender of the transfer; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } + + /// + /// String representation of the received amount + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public string Amount { get; set; } + + /// + /// Comment added to the transaction if it is public + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/PushMessageContentUpgradedGift.cs b/TdLib.Api/Objects/PushMessageContentUpgradedGift.cs index aeb67f9d..19afa927 100644 --- a/TdLib.Api/Objects/PushMessageContentUpgradedGift.cs +++ b/TdLib.Api/Objects/PushMessageContentUpgradedGift.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A message with an upgraded gift + /// + public class PushMessageContentUpgradedGift : PushMessageContent { /// - /// A message with an upgraded gift + /// Data type for serialization /// - public class PushMessageContentUpgradedGift : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentUpgradedGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentUpgradedGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the gift was obtained by upgrading of a previously received gift; otherwise, if is_prepaid_upgrade == false, then this is a transferred or resold gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_upgrade")] - public bool IsUpgrade { get; set; } + /// + /// True, if the gift was obtained by upgrading of a previously received gift; otherwise, if is_prepaid_upgrade == false, then this is a transferred or resold gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_upgrade")] + public bool IsUpgrade { get; set; } - /// - /// True, if the message is about completion of prepaid upgrade of the gift instead of actual receiving of a new gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_prepaid_upgrade")] - public bool IsPrepaidUpgrade { get; set; } - } + /// + /// True, if the message is about completion of prepaid upgrade of the gift instead of actual receiving of a new gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_prepaid_upgrade")] + public bool IsPrepaidUpgrade { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentVideo.cs b/TdLib.Api/Objects/PushMessageContentVideo.cs index 72392f4b..92826a99 100644 --- a/TdLib.Api/Objects/PushMessageContentVideo.cs +++ b/TdLib.Api/Objects/PushMessageContentVideo.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A video message + /// + public class PushMessageContentVideo : PushMessageContent { /// - /// A video message + /// Data type for serialization /// - public class PushMessageContentVideo : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public Video Video { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public Video Video { get; set; } - /// - /// Video caption - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public string Caption { get; set; } + /// + /// Video caption + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public string Caption { get; set; } - /// - /// True, if the video is secret - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_secret")] - public bool IsSecret { get; set; } + /// + /// True, if the video is secret + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_secret")] + public bool IsSecret { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentVideoChatEnded.cs b/TdLib.Api/Objects/PushMessageContentVideoChatEnded.cs index bd17edd1..c2c61ab6 100644 --- a/TdLib.Api/Objects/PushMessageContentVideoChatEnded.cs +++ b/TdLib.Api/Objects/PushMessageContentVideoChatEnded.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A video chat or live stream has ended + /// + public class PushMessageContentVideoChatEnded : PushMessageContent { /// - /// A video chat or live stream has ended + /// Data type for serialization /// - public class PushMessageContentVideoChatEnded : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentVideoChatEnded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentVideoChatEnded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentVideoChatStarted.cs b/TdLib.Api/Objects/PushMessageContentVideoChatStarted.cs index 1be4fb4c..03e4b784 100644 --- a/TdLib.Api/Objects/PushMessageContentVideoChatStarted.cs +++ b/TdLib.Api/Objects/PushMessageContentVideoChatStarted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A video chat or live stream was started + /// + public class PushMessageContentVideoChatStarted : PushMessageContent { /// - /// A video chat or live stream was started + /// Data type for serialization /// - public class PushMessageContentVideoChatStarted : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentVideoChatStarted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentVideoChatStarted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/PushMessageContentVideoNote.cs b/TdLib.Api/Objects/PushMessageContentVideoNote.cs index 2c32e25f..70adcc67 100644 --- a/TdLib.Api/Objects/PushMessageContentVideoNote.cs +++ b/TdLib.Api/Objects/PushMessageContentVideoNote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A video note message + /// + public class PushMessageContentVideoNote : PushMessageContent { /// - /// A video note message + /// Data type for serialization /// - public class PushMessageContentVideoNote : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_note")] - public VideoNote VideoNote { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_note")] + public VideoNote VideoNote { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushMessageContentVoiceNote.cs b/TdLib.Api/Objects/PushMessageContentVoiceNote.cs index 6035b12d..49da0193 100644 --- a/TdLib.Api/Objects/PushMessageContentVoiceNote.cs +++ b/TdLib.Api/Objects/PushMessageContentVoiceNote.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class PushMessageContent : Object { - public partial class PushMessageContent : Object + /// + /// A voice note message + /// + public class PushMessageContentVoiceNote : PushMessageContent { /// - /// A voice note message + /// Data type for serialization /// - public class PushMessageContentVoiceNote : PushMessageContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushMessageContentVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushMessageContentVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message content; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice_note")] - public VoiceNote VoiceNote { get; set; } + /// + /// Message content; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice_note")] + public VoiceNote VoiceNote { get; set; } - /// - /// True, if the message is a pinned message with the specified content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is a pinned message with the specified content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/PushReceiverId.cs b/TdLib.Api/Objects/PushReceiverId.cs index c820f315..94e1d267 100644 --- a/TdLib.Api/Objects/PushReceiverId.cs +++ b/TdLib.Api/Objects/PushReceiverId.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification /// - public static partial class TdApi + public partial class PushReceiverId : Object { /// - /// Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification + /// Data type for serialization /// - public partial class PushReceiverId : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "pushReceiverId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "pushReceiverId"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The globally unique identifier of push notification subscription - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } - } + /// + /// The globally unique identifier of push notification subscription + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/QuickReplyMessage.cs b/TdLib.Api/Objects/QuickReplyMessage.cs index 492565b3..b0f5d981 100644 --- a/TdLib.Api/Objects/QuickReplyMessage.cs +++ b/TdLib.Api/Objects/QuickReplyMessage.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a message that can be used for quick reply /// - public static partial class TdApi + public partial class QuickReplyMessage : Object { /// - /// Describes a message that can be used for quick reply + /// Data type for serialization /// - public partial class QuickReplyMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "quickReplyMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "quickReplyMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique message identifier among all quick replies - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique message identifier among all quick replies + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sending_state")] - public MessageSendingState SendingState { get; set; } + /// + /// The sending state of the message; may be null if the message isn't being sent and didn't fail to be sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sending_state")] + public MessageSendingState SendingState { get; set; } - /// - /// True, if the message can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_edited")] - public bool CanBeEdited { get; set; } + /// + /// True, if the message can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_edited")] + public bool CanBeEdited { get; set; } - /// - /// The identifier of the quick reply message to which the message replies; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_to_message_id")] - public long ReplyToMessageId { get; set; } + /// + /// The identifier of the quick reply message to which the message replies; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_to_message_id")] + public long ReplyToMessageId { get; set; } - /// - /// If non-zero, the user identifier of the bot through which this message was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_bot_user_id")] - public long ViaBotUserId { get; set; } + /// + /// If non-zero, the user identifier of the bot through which this message was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_bot_user_id")] + public long ViaBotUserId { get; set; } - /// - /// Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("media_album_id")] - public long MediaAlbumId { get; set; } + /// + /// Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("media_album_id")] + public long MediaAlbumId { get; set; } - /// - /// Content of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } + /// + /// Content of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } - /// - /// Inline keyboard reply markup for the message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// Inline keyboard reply markup for the message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/QuickReplyMessages.cs b/TdLib.Api/Objects/QuickReplyMessages.cs index bb45e517..7d0f93a6 100644 --- a/TdLib.Api/Objects/QuickReplyMessages.cs +++ b/TdLib.Api/Objects/QuickReplyMessages.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of quick reply messages /// - public static partial class TdApi + public partial class QuickReplyMessages : Object { /// - /// Contains a list of quick reply messages + /// Data type for serialization /// - public partial class QuickReplyMessages : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "quickReplyMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "quickReplyMessages"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of quick reply messages; messages may be null - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public QuickReplyMessage[] Messages { get; set; } - } + /// + /// List of quick reply messages; messages may be null + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public QuickReplyMessage[] Messages { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/QuickReplyShortcut.cs b/TdLib.Api/Objects/QuickReplyShortcut.cs index d90b6b2e..3e689796 100644 --- a/TdLib.Api/Objects/QuickReplyShortcut.cs +++ b/TdLib.Api/Objects/QuickReplyShortcut.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a shortcut that can be used for a quick reply /// - public static partial class TdApi + public partial class QuickReplyShortcut : Object { /// - /// Describes a shortcut that can be used for a quick reply + /// Data type for serialization /// - public partial class QuickReplyShortcut : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "quickReplyShortcut"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "quickReplyShortcut"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique shortcut identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique shortcut identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// The name of the shortcut that can be used to use the shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// The name of the shortcut that can be used to use the shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// The first shortcut message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_message")] - public QuickReplyMessage FirstMessage { get; set; } + /// + /// The first shortcut message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_message")] + public QuickReplyMessage FirstMessage { get; set; } - /// - /// The total number of messages in the shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_count")] - public int MessageCount { get; set; } - } + /// + /// The total number of messages in the shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_count")] + public int MessageCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ReactionNotificationSettings.cs b/TdLib.Api/Objects/ReactionNotificationSettings.cs index e54f846d..84be9506 100644 --- a/TdLib.Api/Objects/ReactionNotificationSettings.cs +++ b/TdLib.Api/Objects/ReactionNotificationSettings.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about notification settings for reactions and poll votes /// - public static partial class TdApi + public partial class ReactionNotificationSettings : Object { /// - /// Contains information about notification settings for reactions and poll votes + /// Data type for serialization /// - public partial class ReactionNotificationSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionNotificationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionNotificationSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Source of message reactions for which notifications are shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_reaction_source")] - public ReactionNotificationSource MessageReactionSource { get; set; } + /// + /// Source of message reactions for which notifications are shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_reaction_source")] + public ReactionNotificationSource MessageReactionSource { get; set; } - /// - /// Source of story reactions for which notifications are shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_reaction_source")] - public ReactionNotificationSource StoryReactionSource { get; set; } + /// + /// Source of story reactions for which notifications are shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_reaction_source")] + public ReactionNotificationSource StoryReactionSource { get; set; } - /// - /// Source of poll votes for which notifications are shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll_vote_source")] - public ReactionNotificationSource PollVoteSource { get; set; } + /// + /// Source of poll votes for which notifications are shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll_vote_source")] + public ReactionNotificationSource PollVoteSource { get; set; } - /// - /// Identifier of the notification sound to be played; 0 if sound is disabled; pass -1 to use the app-dependent default sound - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sound_id")] - public long SoundId { get; set; } + /// + /// Identifier of the notification sound to be played; 0 if sound is disabled; pass -1 to use the app-dependent default sound + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sound_id")] + public long SoundId { get; set; } - /// - /// True, if reaction sender and emoji must be displayed in notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_preview")] - public bool ShowPreview { get; set; } - } + /// + /// True, if reaction sender and emoji must be displayed in notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_preview")] + public bool ShowPreview { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ReactionNotificationSourceAll.cs b/TdLib.Api/Objects/ReactionNotificationSourceAll.cs index 53b19d69..a8c5dfbb 100644 --- a/TdLib.Api/Objects/ReactionNotificationSourceAll.cs +++ b/TdLib.Api/Objects/ReactionNotificationSourceAll.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionNotificationSource : Object { - public partial class ReactionNotificationSource : Object + /// + /// Notifications for reactions are shown for all reactions + /// + public class ReactionNotificationSourceAll : ReactionNotificationSource { /// - /// Notifications for reactions are shown for all reactions + /// Data type for serialization /// - public class ReactionNotificationSourceAll : ReactionNotificationSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionNotificationSourceAll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionNotificationSourceAll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReactionNotificationSourceContacts.cs b/TdLib.Api/Objects/ReactionNotificationSourceContacts.cs index 96edf51a..f7814610 100644 --- a/TdLib.Api/Objects/ReactionNotificationSourceContacts.cs +++ b/TdLib.Api/Objects/ReactionNotificationSourceContacts.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionNotificationSource : Object { - public partial class ReactionNotificationSource : Object + /// + /// Notifications for reactions are shown only for reactions from contacts + /// + public class ReactionNotificationSourceContacts : ReactionNotificationSource { /// - /// Notifications for reactions are shown only for reactions from contacts + /// Data type for serialization /// - public class ReactionNotificationSourceContacts : ReactionNotificationSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionNotificationSourceContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionNotificationSourceContacts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReactionNotificationSourceNone.cs b/TdLib.Api/Objects/ReactionNotificationSourceNone.cs index ce2ca48c..239bbd93 100644 --- a/TdLib.Api/Objects/ReactionNotificationSourceNone.cs +++ b/TdLib.Api/Objects/ReactionNotificationSourceNone.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionNotificationSource : Object { - public partial class ReactionNotificationSource : Object + /// + /// Describes sources of reactions for which notifications will be shown + /// + public class ReactionNotificationSourceNone : ReactionNotificationSource { /// - /// Describes sources of reactions for which notifications will be shown + /// Data type for serialization /// - public class ReactionNotificationSourceNone : ReactionNotificationSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionNotificationSourceNone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionNotificationSourceNone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReactionTypeCustomEmoji.cs b/TdLib.Api/Objects/ReactionTypeCustomEmoji.cs index 853bfec6..623a4f85 100644 --- a/TdLib.Api/Objects/ReactionTypeCustomEmoji.cs +++ b/TdLib.Api/Objects/ReactionTypeCustomEmoji.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionType : Object { - public partial class ReactionType : Object + /// + /// A reaction with a custom emoji + /// + public class ReactionTypeCustomEmoji : ReactionType { /// - /// A reaction with a custom emoji + /// Data type for serialization /// - public class ReactionTypeCustomEmoji : ReactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionTypeCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionTypeCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the custom emoji - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } - } + /// + /// Unique identifier of the custom emoji + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/ReactionTypeEmoji.cs b/TdLib.Api/Objects/ReactionTypeEmoji.cs index e3518efd..2bbc02f3 100644 --- a/TdLib.Api/Objects/ReactionTypeEmoji.cs +++ b/TdLib.Api/Objects/ReactionTypeEmoji.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionType : Object { - public partial class ReactionType : Object + /// + /// Describes type of message reaction + /// + public class ReactionTypeEmoji : ReactionType { /// - /// Describes type of message reaction + /// Data type for serialization /// - public class ReactionTypeEmoji : ReactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionTypeEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionTypeEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text representation of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } - } + /// + /// Text representation of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } } } } diff --git a/TdLib.Api/Objects/ReactionTypePaid.cs b/TdLib.Api/Objects/ReactionTypePaid.cs index 7bae55eb..90be102a 100644 --- a/TdLib.Api/Objects/ReactionTypePaid.cs +++ b/TdLib.Api/Objects/ReactionTypePaid.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionType : Object { - public partial class ReactionType : Object + /// + /// The paid reaction in a channel chat + /// + public class ReactionTypePaid : ReactionType { /// - /// The paid reaction in a channel chat + /// Data type for serialization /// - public class ReactionTypePaid : ReactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionTypePaid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionTypePaid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReactionUnavailabilityReasonAnonymousAdministrator.cs b/TdLib.Api/Objects/ReactionUnavailabilityReasonAnonymousAdministrator.cs index b4304620..b94ab622 100644 --- a/TdLib.Api/Objects/ReactionUnavailabilityReasonAnonymousAdministrator.cs +++ b/TdLib.Api/Objects/ReactionUnavailabilityReasonAnonymousAdministrator.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionUnavailabilityReason : Object { - public partial class ReactionUnavailabilityReason : Object + /// + /// Describes why the current user can't add reactions to the message, despite some other users can + /// + public class ReactionUnavailabilityReasonAnonymousAdministrator : ReactionUnavailabilityReason { /// - /// Describes why the current user can't add reactions to the message, despite some other users can + /// Data type for serialization /// - public class ReactionUnavailabilityReasonAnonymousAdministrator : ReactionUnavailabilityReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionUnavailabilityReasonAnonymousAdministrator"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionUnavailabilityReasonAnonymousAdministrator"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReactionUnavailabilityReasonGuest.cs b/TdLib.Api/Objects/ReactionUnavailabilityReasonGuest.cs index cb46efd0..97b57a91 100644 --- a/TdLib.Api/Objects/ReactionUnavailabilityReasonGuest.cs +++ b/TdLib.Api/Objects/ReactionUnavailabilityReasonGuest.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionUnavailabilityReason : Object { - public partial class ReactionUnavailabilityReason : Object + /// + /// The user isn't a member of the supergroup and can't send messages and reactions there without joining + /// + public class ReactionUnavailabilityReasonGuest : ReactionUnavailabilityReason { /// - /// The user isn't a member of the supergroup and can't send messages and reactions there without joining + /// Data type for serialization /// - public class ReactionUnavailabilityReasonGuest : ReactionUnavailabilityReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionUnavailabilityReasonGuest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionUnavailabilityReasonGuest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReactionUnavailabilityReasonRestricted.cs b/TdLib.Api/Objects/ReactionUnavailabilityReasonRestricted.cs index 6dcf4817..13ec260e 100644 --- a/TdLib.Api/Objects/ReactionUnavailabilityReasonRestricted.cs +++ b/TdLib.Api/Objects/ReactionUnavailabilityReasonRestricted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReactionUnavailabilityReason : Object { - public partial class ReactionUnavailabilityReason : Object + /// + /// The user is restricted in the chat + /// + public class ReactionUnavailabilityReasonRestricted : ReactionUnavailabilityReason { /// - /// The user is restricted in the chat + /// Data type for serialization /// - public class ReactionUnavailabilityReasonRestricted : ReactionUnavailabilityReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reactionUnavailabilityReasonRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reactionUnavailabilityReasonRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReadDatePrivacySettings.cs b/TdLib.Api/Objects/ReadDatePrivacySettings.cs index 763d9ac8..96378350 100644 --- a/TdLib.Api/Objects/ReadDatePrivacySettings.cs +++ b/TdLib.Api/Objects/ReadDatePrivacySettings.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains privacy settings for message read date in private chats. Read dates are always shown to the users that can see online status of the current user regardless of this setting /// - public static partial class TdApi + public partial class ReadDatePrivacySettings : Object { /// - /// Contains privacy settings for message read date in private chats. Read dates are always shown to the users that can see online status of the current user regardless of this setting + /// Data type for serialization /// - public partial class ReadDatePrivacySettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "readDatePrivacySettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "readDatePrivacySettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if message read date is shown to other users in private chats. If false and the current user isn't a Telegram Premium user, then they will not be able to see other's message read date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_read_date")] - public bool ShowReadDate { get; set; } - } + /// + /// True, if message read date is shown to other users in private chats. If false and the current user isn't a Telegram Premium user, then they will not be able to see other's message read date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_read_date")] + public bool ShowReadDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ReceivedGift.cs b/TdLib.Api/Objects/ReceivedGift.cs index 05b9b125..b63bc80d 100644 --- a/TdLib.Api/Objects/ReceivedGift.cs +++ b/TdLib.Api/Objects/ReceivedGift.cs @@ -2,190 +2,189 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a gift received by a user or a chat /// - public static partial class TdApi + public partial class ReceivedGift : Object { /// - /// Represents a gift received by a user or a chat - /// - public partial class ReceivedGift : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "receivedGift"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of the received gift for the current user; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } - - /// - /// Identifier of a user or a chat that sent the gift; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } - - /// - /// Message added to the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - - /// - /// Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unique_gift_number")] - public int UniqueGiftNumber { get; set; } - - /// - /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_private")] - public bool IsPrivate { get; set; } - - /// - /// True, if the gift is displayed on the chat's profile page; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_saved")] - public bool IsSaved { get; set; } - - /// - /// True, if the gift is pinned to the top of the chat's profile page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - - /// - /// True, if the gift is a regular gift that can be upgraded to a unique gift; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_upgraded")] - public bool CanBeUpgraded { get; set; } - - /// - /// True, if the gift is an upgraded gift that can be transferred to another owner; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_transferred")] - public bool CanBeTransferred { get; set; } - - /// - /// True, if the gift was refunded and isn't available anymore - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_refunded")] - public bool WasRefunded { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public SentGift Gift { get; set; } - - /// - /// Identifiers of collections to which the gift is added; only for the receiver of the gift - /// - [JsonProperty("collection_ids", ItemConverterType = typeof(Converter))] - public int[] CollectionIds { get; set; } - - /// - /// Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sell_star_count")] - public long SellStarCount { get; set; } - - /// - /// Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepaid_upgrade_star_count")] - public long PrepaidUpgradeStarCount { get; set; } - - /// - /// True, if the upgrade was bought after the gift was sent. In this case, prepaid upgrade cost must not be added to the gift cost - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_upgrade_separate")] - public bool IsUpgradeSeparate { get; set; } - - /// - /// Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transfer_star_count")] - public long TransferStarCount { get; set; } - - /// - /// Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("drop_original_details_star_count")] - public long DropOriginalDetailsStarCount { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_transfer_date")] - public int NextTransferDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_resale_date")] - public int NextResaleDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the upgraded gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("export_date")] - public int ExportDate { get; set; } - - /// - /// If non-empty, then the user can pay for an upgrade of the gift using buyGiftUpgrade - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prepaid_upgrade_hash")] - public string PrepaidUpgradeHash { get; set; } - - /// - /// Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("craft_date")] - public int CraftDate { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "receivedGift"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the received gift for the current user; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } + + /// + /// Identifier of a user or a chat that sent the gift; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } + + /// + /// Message added to the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } + + /// + /// Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unique_gift_number")] + public int UniqueGiftNumber { get; set; } + + /// + /// True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone are able to see them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_private")] + public bool IsPrivate { get; set; } + + /// + /// True, if the gift is displayed on the chat's profile page; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_saved")] + public bool IsSaved { get; set; } + + /// + /// True, if the gift is pinned to the top of the chat's profile page + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } + + /// + /// True, if the gift is a regular gift that can be upgraded to a unique gift; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_upgraded")] + public bool CanBeUpgraded { get; set; } + + /// + /// True, if the gift is an upgraded gift that can be transferred to another owner; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_transferred")] + public bool CanBeTransferred { get; set; } + + /// + /// True, if the gift was refunded and isn't available anymore + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_refunded")] + public bool WasRefunded { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public SentGift Gift { get; set; } + + /// + /// Identifiers of collections to which the gift is added; only for the receiver of the gift + /// + [JsonProperty("collection_ids", ItemConverterType = typeof(Converter))] + public int[] CollectionIds { get; set; } + + /// + /// Number of Telegram Stars that can be claimed by the receiver instead of the regular gift; 0 if the gift can't be sold by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sell_star_count")] + public long SellStarCount { get; set; } + + /// + /// Number of Telegram Stars that were paid by the sender for the ability to upgrade the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prepaid_upgrade_star_count")] + public long PrepaidUpgradeStarCount { get; set; } + + /// + /// True, if the upgrade was bought after the gift was sent. In this case, prepaid upgrade cost must not be added to the gift cost + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_upgrade_separate")] + public bool IsUpgradeSeparate { get; set; } + + /// + /// Number of Telegram Stars that must be paid to transfer the upgraded gift; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transfer_star_count")] + public long TransferStarCount { get; set; } + + /// + /// Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("drop_original_details_star_count")] + public long DropOriginalDetailsStarCount { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_transfer_date")] + public int NextTransferDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_resale_date")] + public int NextResaleDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the upgraded gift can be transferred to the TON blockchain as an NFT; can be in the past; 0 if NFT export isn't possible; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("export_date")] + public int ExportDate { get; set; } + + /// + /// If non-empty, then the user can pay for an upgrade of the gift using buyGiftUpgrade + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prepaid_upgrade_hash")] + public string PrepaidUpgradeHash { get; set; } + + /// + /// Point in time (Unix timestamp) when the gift can be used to craft another gift; can be in the past; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("craft_date")] + public int CraftDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ReceivedGifts.cs b/TdLib.Api/Objects/ReceivedGifts.cs index 8b972a05..1063556d 100644 --- a/TdLib.Api/Objects/ReceivedGifts.cs +++ b/TdLib.Api/Objects/ReceivedGifts.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of gifts received by a user or a chat /// - public static partial class TdApi + public partial class ReceivedGifts : Object { /// - /// Represents a list of gifts received by a user or a chat + /// Data type for serialization /// - public partial class ReceivedGifts : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "receivedGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "receivedGifts"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The total number of received gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// The total number of received gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The list of gifts - /// - [JsonProperty("gifts", ItemConverterType = typeof(Converter))] - public ReceivedGift[] Gifts { get; set; } + /// + /// The list of gifts + /// + [JsonProperty("gifts", ItemConverterType = typeof(Converter))] + public ReceivedGift[] Gifts { get; set; } - /// - /// True, if notifications about new gifts of the owner are enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_notifications_enabled")] - public bool AreNotificationsEnabled { get; set; } + /// + /// True, if notifications about new gifts of the owner are enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("are_notifications_enabled")] + public bool AreNotificationsEnabled { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/RecommendedChatFolder.cs b/TdLib.Api/Objects/RecommendedChatFolder.cs index bedeb5b5..4fa87190 100644 --- a/TdLib.Api/Objects/RecommendedChatFolder.cs +++ b/TdLib.Api/Objects/RecommendedChatFolder.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a recommended chat folder /// - public static partial class TdApi + public partial class RecommendedChatFolder : Object { /// - /// Describes a recommended chat folder + /// Data type for serialization /// - public partial class RecommendedChatFolder : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "recommendedChatFolder"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "recommendedChatFolder"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("folder")] - public ChatFolder Folder { get; set; } + /// + /// The chat folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("folder")] + public ChatFolder Folder { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/RecommendedChatFolders.cs b/TdLib.Api/Objects/RecommendedChatFolders.cs index a8154b7f..9bad639d 100644 --- a/TdLib.Api/Objects/RecommendedChatFolders.cs +++ b/TdLib.Api/Objects/RecommendedChatFolders.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of recommended chat folders /// - public static partial class TdApi + public partial class RecommendedChatFolders : Object { /// - /// Contains a list of recommended chat folders + /// Data type for serialization /// - public partial class RecommendedChatFolders : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "recommendedChatFolders"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "recommendedChatFolders"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of recommended chat folders - /// - [JsonProperty("chat_folders", ItemConverterType = typeof(Converter))] - public RecommendedChatFolder[] ChatFolders { get; set; } - } + /// + /// List of recommended chat folders + /// + [JsonProperty("chat_folders", ItemConverterType = typeof(Converter))] + public RecommendedChatFolder[] ChatFolders { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/RecoveryEmailAddress.cs b/TdLib.Api/Objects/RecoveryEmailAddress.cs index ffd3e029..7622e885 100644 --- a/TdLib.Api/Objects/RecoveryEmailAddress.cs +++ b/TdLib.Api/Objects/RecoveryEmailAddress.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about the current recovery email address /// - public static partial class TdApi + public partial class RecoveryEmailAddress : Object { /// - /// Contains information about the current recovery email address + /// Data type for serialization /// - public partial class RecoveryEmailAddress : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "recoveryEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "recoveryEmailAddress"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Recovery email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recovery_email_address")] - public string RecoveryEmailAddress_ { get; set; } - } + /// + /// Recovery email address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recovery_email_address")] + public string RecoveryEmailAddress_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/RemoteFile.cs b/TdLib.Api/Objects/RemoteFile.cs index 0fc3f40e..f44cbccc 100644 --- a/TdLib.Api/Objects/RemoteFile.cs +++ b/TdLib.Api/Objects/RemoteFile.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a remote file /// - public static partial class TdApi + public partial class RemoteFile : Object { /// - /// Represents a remote file + /// Data type for serialization /// - public partial class RemoteFile : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "remoteFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "remoteFile"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unique_id")] - public string UniqueId { get; set; } + /// + /// Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unique_id")] + public string UniqueId { get; set; } - /// - /// True, if the file is currently being uploaded (or a remote copy is being generated by some other means) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_uploading_active")] - public bool IsUploadingActive { get; set; } + /// + /// True, if the file is currently being uploaded (or a remote copy is being generated by some other means) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_uploading_active")] + public bool IsUploadingActive { get; set; } - /// - /// True, if a remote copy is fully available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_uploading_completed")] - public bool IsUploadingCompleted { get; set; } + /// + /// True, if a remote copy is fully available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_uploading_completed")] + public bool IsUploadingCompleted { get; set; } - /// - /// Size of the remote available part of the file, in bytes; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("uploaded_size")] - public long UploadedSize { get; set; } - } + /// + /// Size of the remote available part of the file, in bytes; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("uploaded_size")] + public long UploadedSize { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ReplyMarkupForceReply.cs b/TdLib.Api/Objects/ReplyMarkupForceReply.cs index 79d2f98b..3b2b9a67 100644 --- a/TdLib.Api/Objects/ReplyMarkupForceReply.cs +++ b/TdLib.Api/Objects/ReplyMarkupForceReply.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReplyMarkup : Object { - public partial class ReplyMarkup : Object + /// + /// Instructs application to force a reply to this message + /// + public class ReplyMarkupForceReply : ReplyMarkup { /// - /// Instructs application to force a reply to this message + /// Data type for serialization /// - public class ReplyMarkupForceReply : ReplyMarkup - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replyMarkupForceReply"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "replyMarkupForceReply"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if a forced reply must automatically be shown to the current user. For outgoing messages, specify true to show the forced reply only for the mentioned users and for the target user of a reply - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_personal")] - public bool IsPersonal { get; set; } + /// + /// True, if a forced reply must automatically be shown to the current user. For outgoing messages, specify true to show the forced reply only for the mentioned users and for the target user of a reply + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_personal")] + public bool IsPersonal { get; set; } - /// - /// If non-empty, the placeholder to be shown in the input field when the reply is active; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_field_placeholder")] - public string InputFieldPlaceholder { get; set; } - } + /// + /// If non-empty, the placeholder to be shown in the input field when the reply is active; 0-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_field_placeholder")] + public string InputFieldPlaceholder { get; set; } } } } diff --git a/TdLib.Api/Objects/ReplyMarkupInlineKeyboard.cs b/TdLib.Api/Objects/ReplyMarkupInlineKeyboard.cs index 477b27cd..af28576d 100644 --- a/TdLib.Api/Objects/ReplyMarkupInlineKeyboard.cs +++ b/TdLib.Api/Objects/ReplyMarkupInlineKeyboard.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReplyMarkup : Object { - public partial class ReplyMarkup : Object + /// + /// Contains an inline keyboard layout + /// + public class ReplyMarkupInlineKeyboard : ReplyMarkup { /// - /// Contains an inline keyboard layout + /// Data type for serialization /// - public class ReplyMarkupInlineKeyboard : ReplyMarkup - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replyMarkupInlineKeyboard"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "replyMarkupInlineKeyboard"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of rows of inline keyboard buttons - /// - [JsonProperty("rows", ItemConverterType = typeof(Converter))] - public InlineKeyboardButton[][] Rows { get; set; } + /// + /// A list of rows of inline keyboard buttons + /// + [JsonProperty("rows", ItemConverterType = typeof(Converter))] + public InlineKeyboardButton[][] Rows { get; set; } - /// - /// True, if a reply to the message must be forced when the message is received - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force_reply")] - public bool ForceReply { get; set; } - } + /// + /// True, if a reply to the message must be forced when the message is received + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("force_reply")] + public bool ForceReply { get; set; } } } } diff --git a/TdLib.Api/Objects/ReplyMarkupRemoveKeyboard.cs b/TdLib.Api/Objects/ReplyMarkupRemoveKeyboard.cs index 0f7e4495..08cb106b 100644 --- a/TdLib.Api/Objects/ReplyMarkupRemoveKeyboard.cs +++ b/TdLib.Api/Objects/ReplyMarkupRemoveKeyboard.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReplyMarkup : Object { - public partial class ReplyMarkup : Object + /// + /// Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots + /// + public class ReplyMarkupRemoveKeyboard : ReplyMarkup { /// - /// Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots + /// Data type for serialization /// - public class ReplyMarkupRemoveKeyboard : ReplyMarkup - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replyMarkupRemoveKeyboard"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "replyMarkupRemoveKeyboard"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the keyboard is removed only for the mentioned users or the target user of a reply - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_personal")] - public bool IsPersonal { get; set; } - } + /// + /// True, if the keyboard is removed only for the mentioned users or the target user of a reply + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_personal")] + public bool IsPersonal { get; set; } } } } diff --git a/TdLib.Api/Objects/ReplyMarkupShowKeyboard.cs b/TdLib.Api/Objects/ReplyMarkupShowKeyboard.cs index 2b4ba571..d92915d3 100644 --- a/TdLib.Api/Objects/ReplyMarkupShowKeyboard.cs +++ b/TdLib.Api/Objects/ReplyMarkupShowKeyboard.cs @@ -2,80 +2,79 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReplyMarkup : Object { - public partial class ReplyMarkup : Object + /// + /// Contains a custom keyboard layout to quickly reply to bots + /// + public class ReplyMarkupShowKeyboard : ReplyMarkup { /// - /// Contains a custom keyboard layout to quickly reply to bots + /// Data type for serialization /// - public class ReplyMarkupShowKeyboard : ReplyMarkup - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "replyMarkupShowKeyboard"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "replyMarkupShowKeyboard"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of rows of bot keyboard buttons - /// - [JsonProperty("rows", ItemConverterType = typeof(Converter))] - public KeyboardButton[][] Rows { get; set; } + /// + /// A list of rows of bot keyboard buttons + /// + [JsonProperty("rows", ItemConverterType = typeof(Converter))] + public KeyboardButton[][] Rows { get; set; } - /// - /// True, if the keyboard is expected to always be shown when the ordinary keyboard is hidden - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_persistent")] - public bool IsPersistent { get; set; } + /// + /// True, if the keyboard is expected to always be shown when the ordinary keyboard is hidden + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_persistent")] + public bool IsPersistent { get; set; } - /// - /// True, if the application needs to resize the keyboard vertically - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("resize_keyboard")] - public bool ResizeKeyboard { get; set; } + /// + /// True, if the application needs to resize the keyboard vertically + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("resize_keyboard")] + public bool ResizeKeyboard { get; set; } - /// - /// True, if the application needs to hide the keyboard after use - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("one_time")] - public bool OneTime { get; set; } + /// + /// True, if the application needs to hide the keyboard after use + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("one_time")] + public bool OneTime { get; set; } - /// - /// True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the keyboard only for the mentioned users and for the target user of a reply - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_personal")] - public bool IsPersonal { get; set; } + /// + /// True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the keyboard only for the mentioned users and for the target user of a reply + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_personal")] + public bool IsPersonal { get; set; } - /// - /// True, if the keyboard must force reply to the message with the keyboard - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("force_reply")] - public bool ForceReply { get; set; } + /// + /// True, if the keyboard must force reply to the message with the keyboard + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("force_reply")] + public bool ForceReply { get; set; } - /// - /// If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("input_field_placeholder")] - public string InputFieldPlaceholder { get; set; } - } + /// + /// If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("input_field_placeholder")] + public string InputFieldPlaceholder { get; set; } } } } diff --git a/TdLib.Api/Objects/ReportChatResultMessagesRequired.cs b/TdLib.Api/Objects/ReportChatResultMessagesRequired.cs index d5f93c3e..c5ba1f85 100644 --- a/TdLib.Api/Objects/ReportChatResultMessagesRequired.cs +++ b/TdLib.Api/Objects/ReportChatResultMessagesRequired.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportChatResult : Object { - public partial class ReportChatResult : Object + /// + /// The user must choose messages to report and repeat the reportChat request with the chosen messages + /// + public class ReportChatResultMessagesRequired : ReportChatResult { /// - /// The user must choose messages to report and repeat the reportChat request with the chosen messages + /// Data type for serialization /// - public class ReportChatResultMessagesRequired : ReportChatResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportChatResultMessagesRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportChatResultMessagesRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportChatResultOk.cs b/TdLib.Api/Objects/ReportChatResultOk.cs index bc264038..6a43a8c2 100644 --- a/TdLib.Api/Objects/ReportChatResultOk.cs +++ b/TdLib.Api/Objects/ReportChatResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportChatResult : Object { - public partial class ReportChatResult : Object + /// + /// Describes result of chat report + /// + public class ReportChatResultOk : ReportChatResult { /// - /// Describes result of chat report + /// Data type for serialization /// - public class ReportChatResultOk : ReportChatResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportChatResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportChatResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportChatResultOptionRequired.cs b/TdLib.Api/Objects/ReportChatResultOptionRequired.cs index ca376361..4752ed0e 100644 --- a/TdLib.Api/Objects/ReportChatResultOptionRequired.cs +++ b/TdLib.Api/Objects/ReportChatResultOptionRequired.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportChatResult : Object { - public partial class ReportChatResult : Object + /// + /// The user must choose an option to report the chat and repeat request with the chosen option + /// + public class ReportChatResultOptionRequired : ReportChatResult { /// - /// The user must choose an option to report the chat and repeat request with the chosen option + /// Data type for serialization /// - public class ReportChatResultOptionRequired : ReportChatResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportChatResultOptionRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportChatResultOptionRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title for the option choice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title for the option choice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// List of available options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public ReportOption[] Options { get; set; } - } + /// + /// List of available options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public ReportOption[] Options { get; set; } } } } diff --git a/TdLib.Api/Objects/ReportChatResultTextRequired.cs b/TdLib.Api/Objects/ReportChatResultTextRequired.cs index e17ab233..18afb4a5 100644 --- a/TdLib.Api/Objects/ReportChatResultTextRequired.cs +++ b/TdLib.Api/Objects/ReportChatResultTextRequired.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportChatResult : Object { - public partial class ReportChatResult : Object + /// + /// The user must add additional text details to the report + /// + public class ReportChatResultTextRequired : ReportChatResult { /// - /// The user must add additional text details to the report + /// Data type for serialization /// - public class ReportChatResultTextRequired : ReportChatResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportChatResultTextRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportChatResultTextRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Option identifier for the next reportChat request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public byte[] OptionId { get; set; } + /// + /// Option identifier for the next reportChat request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public byte[] OptionId { get; set; } - /// - /// True, if the user can skip text adding - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_optional")] - public bool IsOptional { get; set; } - } + /// + /// True, if the user can skip text adding + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_optional")] + public bool IsOptional { get; set; } } } } diff --git a/TdLib.Api/Objects/ReportOption.cs b/TdLib.Api/Objects/ReportOption.cs index 0a15c52d..d730e911 100644 --- a/TdLib.Api/Objects/ReportOption.cs +++ b/TdLib.Api/Objects/ReportOption.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option to report an entity to Telegram /// - public static partial class TdApi + public partial class ReportOption : Object { /// - /// Describes an option to report an entity to Telegram + /// Data type for serialization /// - public partial class ReportOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public byte[] Id { get; set; } + /// + /// Unique identifier of the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public byte[] Id { get; set; } - /// - /// Text of the option - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Text of the option + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ReportReasonChildAbuse.cs b/TdLib.Api/Objects/ReportReasonChildAbuse.cs index 31da09d9..471b5230 100644 --- a/TdLib.Api/Objects/ReportReasonChildAbuse.cs +++ b/TdLib.Api/Objects/ReportReasonChildAbuse.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The chat has child abuse related content + /// + public class ReportReasonChildAbuse : ReportReason { /// - /// The chat has child abuse related content + /// Data type for serialization /// - public class ReportReasonChildAbuse : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonChildAbuse"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonChildAbuse"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonCopyright.cs b/TdLib.Api/Objects/ReportReasonCopyright.cs index 7295c72b..174faf5b 100644 --- a/TdLib.Api/Objects/ReportReasonCopyright.cs +++ b/TdLib.Api/Objects/ReportReasonCopyright.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The chat contains copyrighted content + /// + public class ReportReasonCopyright : ReportReason { /// - /// The chat contains copyrighted content + /// Data type for serialization /// - public class ReportReasonCopyright : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonCopyright"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonCopyright"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonCustom.cs b/TdLib.Api/Objects/ReportReasonCustom.cs index 3546d6c5..86b4bb24 100644 --- a/TdLib.Api/Objects/ReportReasonCustom.cs +++ b/TdLib.Api/Objects/ReportReasonCustom.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// A custom reason provided by the user + /// + public class ReportReasonCustom : ReportReason { /// - /// A custom reason provided by the user + /// Data type for serialization /// - public class ReportReasonCustom : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonCustom"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonCustom"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonFake.cs b/TdLib.Api/Objects/ReportReasonFake.cs index 989e55ed..5f4c6f0a 100644 --- a/TdLib.Api/Objects/ReportReasonFake.cs +++ b/TdLib.Api/Objects/ReportReasonFake.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The chat represents a fake account + /// + public class ReportReasonFake : ReportReason { /// - /// The chat represents a fake account + /// Data type for serialization /// - public class ReportReasonFake : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonFake"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonFake"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonIllegalDrugs.cs b/TdLib.Api/Objects/ReportReasonIllegalDrugs.cs index 2aae929c..677bddca 100644 --- a/TdLib.Api/Objects/ReportReasonIllegalDrugs.cs +++ b/TdLib.Api/Objects/ReportReasonIllegalDrugs.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The chat has illegal drugs related content + /// + public class ReportReasonIllegalDrugs : ReportReason { /// - /// The chat has illegal drugs related content + /// Data type for serialization /// - public class ReportReasonIllegalDrugs : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonIllegalDrugs"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonIllegalDrugs"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonPersonalDetails.cs b/TdLib.Api/Objects/ReportReasonPersonalDetails.cs index fc3b3c94..222541f1 100644 --- a/TdLib.Api/Objects/ReportReasonPersonalDetails.cs +++ b/TdLib.Api/Objects/ReportReasonPersonalDetails.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The chat contains messages with personal details + /// + public class ReportReasonPersonalDetails : ReportReason { /// - /// The chat contains messages with personal details + /// Data type for serialization /// - public class ReportReasonPersonalDetails : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonPersonalDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonPersonalDetails"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonPornography.cs b/TdLib.Api/Objects/ReportReasonPornography.cs index db6d9070..b1743a82 100644 --- a/TdLib.Api/Objects/ReportReasonPornography.cs +++ b/TdLib.Api/Objects/ReportReasonPornography.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The chat contains pornographic messages + /// + public class ReportReasonPornography : ReportReason { /// - /// The chat contains pornographic messages + /// Data type for serialization /// - public class ReportReasonPornography : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonPornography"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonPornography"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonSpam.cs b/TdLib.Api/Objects/ReportReasonSpam.cs index 8076bd09..24c94d4c 100644 --- a/TdLib.Api/Objects/ReportReasonSpam.cs +++ b/TdLib.Api/Objects/ReportReasonSpam.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// Describes the reason why a chat is reported + /// + public class ReportReasonSpam : ReportReason { /// - /// Describes the reason why a chat is reported + /// Data type for serialization /// - public class ReportReasonSpam : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonSpam"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonSpam"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonUnrelatedLocation.cs b/TdLib.Api/Objects/ReportReasonUnrelatedLocation.cs index 1ef7add6..8173eb2f 100644 --- a/TdLib.Api/Objects/ReportReasonUnrelatedLocation.cs +++ b/TdLib.Api/Objects/ReportReasonUnrelatedLocation.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The location-based chat is unrelated to its stated location + /// + public class ReportReasonUnrelatedLocation : ReportReason { /// - /// The location-based chat is unrelated to its stated location + /// Data type for serialization /// - public class ReportReasonUnrelatedLocation : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonUnrelatedLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonUnrelatedLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportReasonViolence.cs b/TdLib.Api/Objects/ReportReasonViolence.cs index 26edfb01..fbab37f1 100644 --- a/TdLib.Api/Objects/ReportReasonViolence.cs +++ b/TdLib.Api/Objects/ReportReasonViolence.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportReason : Object { - public partial class ReportReason : Object + /// + /// The chat promotes violence + /// + public class ReportReasonViolence : ReportReason { /// - /// The chat promotes violence + /// Data type for serialization /// - public class ReportReasonViolence : ReportReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportReasonViolence"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportReasonViolence"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportSponsoredResultAdsHidden.cs b/TdLib.Api/Objects/ReportSponsoredResultAdsHidden.cs index a39722e6..237e5537 100644 --- a/TdLib.Api/Objects/ReportSponsoredResultAdsHidden.cs +++ b/TdLib.Api/Objects/ReportSponsoredResultAdsHidden.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportSponsoredResult : Object { - public partial class ReportSponsoredResult : Object + /// + /// Sponsored messages were hidden for the user in all chats + /// + public class ReportSponsoredResultAdsHidden : ReportSponsoredResult { /// - /// Sponsored messages were hidden for the user in all chats + /// Data type for serialization /// - public class ReportSponsoredResultAdsHidden : ReportSponsoredResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSponsoredResultAdsHidden"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSponsoredResultAdsHidden"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportSponsoredResultFailed.cs b/TdLib.Api/Objects/ReportSponsoredResultFailed.cs index 2269afbc..d99a0b5d 100644 --- a/TdLib.Api/Objects/ReportSponsoredResultFailed.cs +++ b/TdLib.Api/Objects/ReportSponsoredResultFailed.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportSponsoredResult : Object { - public partial class ReportSponsoredResult : Object + /// + /// The sponsored message is too old or not found + /// + public class ReportSponsoredResultFailed : ReportSponsoredResult { /// - /// The sponsored message is too old or not found + /// Data type for serialization /// - public class ReportSponsoredResultFailed : ReportSponsoredResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSponsoredResultFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSponsoredResultFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportSponsoredResultOk.cs b/TdLib.Api/Objects/ReportSponsoredResultOk.cs index 357e48e7..8faca5af 100644 --- a/TdLib.Api/Objects/ReportSponsoredResultOk.cs +++ b/TdLib.Api/Objects/ReportSponsoredResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportSponsoredResult : Object { - public partial class ReportSponsoredResult : Object + /// + /// Describes result of sponsored message or chat report + /// + public class ReportSponsoredResultOk : ReportSponsoredResult { /// - /// Describes result of sponsored message or chat report + /// Data type for serialization /// - public class ReportSponsoredResultOk : ReportSponsoredResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSponsoredResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSponsoredResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportSponsoredResultOptionRequired.cs b/TdLib.Api/Objects/ReportSponsoredResultOptionRequired.cs index 6754d39f..0ad9cd53 100644 --- a/TdLib.Api/Objects/ReportSponsoredResultOptionRequired.cs +++ b/TdLib.Api/Objects/ReportSponsoredResultOptionRequired.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportSponsoredResult : Object { - public partial class ReportSponsoredResult : Object + /// + /// The user must choose an option to report the message and repeat request with the chosen option + /// + public class ReportSponsoredResultOptionRequired : ReportSponsoredResult { /// - /// The user must choose an option to report the message and repeat request with the chosen option + /// Data type for serialization /// - public class ReportSponsoredResultOptionRequired : ReportSponsoredResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSponsoredResultOptionRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSponsoredResultOptionRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title for the option choice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title for the option choice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// List of available options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public ReportOption[] Options { get; set; } - } + /// + /// List of available options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public ReportOption[] Options { get; set; } } } } diff --git a/TdLib.Api/Objects/ReportSponsoredResultPremiumRequired.cs b/TdLib.Api/Objects/ReportSponsoredResultPremiumRequired.cs index c3581a0c..b9149056 100644 --- a/TdLib.Api/Objects/ReportSponsoredResultPremiumRequired.cs +++ b/TdLib.Api/Objects/ReportSponsoredResultPremiumRequired.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportSponsoredResult : Object { - public partial class ReportSponsoredResult : Object + /// + /// The user asked to hide sponsored messages, but Telegram Premium is required for this + /// + public class ReportSponsoredResultPremiumRequired : ReportSponsoredResult { /// - /// The user asked to hide sponsored messages, but Telegram Premium is required for this + /// Data type for serialization /// - public class ReportSponsoredResultPremiumRequired : ReportSponsoredResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportSponsoredResultPremiumRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportSponsoredResultPremiumRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportStoryResultOk.cs b/TdLib.Api/Objects/ReportStoryResultOk.cs index f9b9c1d3..a8fe5340 100644 --- a/TdLib.Api/Objects/ReportStoryResultOk.cs +++ b/TdLib.Api/Objects/ReportStoryResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportStoryResult : Object { - public partial class ReportStoryResult : Object + /// + /// Describes result of story report + /// + public class ReportStoryResultOk : ReportStoryResult { /// - /// Describes result of story report + /// Data type for serialization /// - public class ReportStoryResultOk : ReportStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportStoryResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportStoryResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ReportStoryResultOptionRequired.cs b/TdLib.Api/Objects/ReportStoryResultOptionRequired.cs index 1ab5f67f..274a8d07 100644 --- a/TdLib.Api/Objects/ReportStoryResultOptionRequired.cs +++ b/TdLib.Api/Objects/ReportStoryResultOptionRequired.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportStoryResult : Object { - public partial class ReportStoryResult : Object + /// + /// The user must choose an option to report the story and repeat request with the chosen option + /// + public class ReportStoryResultOptionRequired : ReportStoryResult { /// - /// The user must choose an option to report the story and repeat request with the chosen option + /// Data type for serialization /// - public class ReportStoryResultOptionRequired : ReportStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportStoryResultOptionRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportStoryResultOptionRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Title for the option choice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title for the option choice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// List of available options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public ReportOption[] Options { get; set; } - } + /// + /// List of available options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public ReportOption[] Options { get; set; } } } } diff --git a/TdLib.Api/Objects/ReportStoryResultTextRequired.cs b/TdLib.Api/Objects/ReportStoryResultTextRequired.cs index f5c0a03a..748e116b 100644 --- a/TdLib.Api/Objects/ReportStoryResultTextRequired.cs +++ b/TdLib.Api/Objects/ReportStoryResultTextRequired.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ReportStoryResult : Object { - public partial class ReportStoryResult : Object + /// + /// The user must add additional text details to the report + /// + public class ReportStoryResultTextRequired : ReportStoryResult { /// - /// The user must add additional text details to the report + /// Data type for serialization /// - public class ReportStoryResultTextRequired : ReportStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "reportStoryResultTextRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "reportStoryResultTextRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Option identifier for the next reportStory request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("option_id")] - public byte[] OptionId { get; set; } + /// + /// Option identifier for the next reportStory request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("option_id")] + public byte[] OptionId { get; set; } - /// - /// True, if the user can skip text adding - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_optional")] - public bool IsOptional { get; set; } - } + /// + /// True, if the user can skip text adding + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_optional")] + public bool IsOptional { get; set; } } } } diff --git a/TdLib.Api/Objects/ResendCodeReasonUserRequest.cs b/TdLib.Api/Objects/ResendCodeReasonUserRequest.cs index 6f5f14a8..00e8b6ed 100644 --- a/TdLib.Api/Objects/ResendCodeReasonUserRequest.cs +++ b/TdLib.Api/Objects/ResendCodeReasonUserRequest.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ResendCodeReason : Object { - public partial class ResendCodeReason : Object + /// + /// Describes the reason why a code needs to be re-sent + /// + public class ResendCodeReasonUserRequest : ResendCodeReason { /// - /// Describes the reason why a code needs to be re-sent + /// Data type for serialization /// - public class ResendCodeReasonUserRequest : ResendCodeReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendCodeReasonUserRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendCodeReasonUserRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ResendCodeReasonVerificationFailed.cs b/TdLib.Api/Objects/ResendCodeReasonVerificationFailed.cs index a42820a2..bf1b8e77 100644 --- a/TdLib.Api/Objects/ResendCodeReasonVerificationFailed.cs +++ b/TdLib.Api/Objects/ResendCodeReasonVerificationFailed.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ResendCodeReason : Object { - public partial class ResendCodeReason : Object + /// + /// The code is re-sent, because device verification has failed + /// + public class ResendCodeReasonVerificationFailed : ResendCodeReason { /// - /// The code is re-sent, because device verification has failed + /// Data type for serialization /// - public class ResendCodeReasonVerificationFailed : ResendCodeReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resendCodeReasonVerificationFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resendCodeReasonVerificationFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Cause of the verification failure, for example, "PLAY_SERVICES_NOT_AVAILABLE", "APNS_RECEIVE_TIMEOUT", or "APNS_INIT_FAILED" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error_message")] - public string ErrorMessage { get; set; } - } + /// + /// Cause of the verification failure, for example, "PLAY_SERVICES_NOT_AVAILABLE", "APNS_RECEIVE_TIMEOUT", or "APNS_INIT_FAILED" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error_message")] + public string ErrorMessage { get; set; } } } } diff --git a/TdLib.Api/Objects/ResetPasswordResultDeclined.cs b/TdLib.Api/Objects/ResetPasswordResultDeclined.cs index 2e7a2b50..795d61ee 100644 --- a/TdLib.Api/Objects/ResetPasswordResultDeclined.cs +++ b/TdLib.Api/Objects/ResetPasswordResultDeclined.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ResetPasswordResult : Object { - public partial class ResetPasswordResult : Object + /// + /// The password reset request was declined + /// + public class ResetPasswordResultDeclined : ResetPasswordResult { /// - /// The password reset request was declined + /// Data type for serialization /// - public class ResetPasswordResultDeclined : ResetPasswordResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetPasswordResultDeclined"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetPasswordResultDeclined"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the password reset can be retried - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("retry_date")] - public int RetryDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the password reset can be retried + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("retry_date")] + public int RetryDate { get; set; } } } } diff --git a/TdLib.Api/Objects/ResetPasswordResultOk.cs b/TdLib.Api/Objects/ResetPasswordResultOk.cs index 197cd659..53f30b3a 100644 --- a/TdLib.Api/Objects/ResetPasswordResultOk.cs +++ b/TdLib.Api/Objects/ResetPasswordResultOk.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ResetPasswordResult : Object { - public partial class ResetPasswordResult : Object + /// + /// Represents result of 2-step verification password reset + /// + public class ResetPasswordResultOk : ResetPasswordResult { /// - /// Represents result of 2-step verification password reset + /// Data type for serialization /// - public class ResetPasswordResultOk : ResetPasswordResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetPasswordResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetPasswordResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ResetPasswordResultPending.cs b/TdLib.Api/Objects/ResetPasswordResultPending.cs index 06e4a51b..01d52a86 100644 --- a/TdLib.Api/Objects/ResetPasswordResultPending.cs +++ b/TdLib.Api/Objects/ResetPasswordResultPending.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ResetPasswordResult : Object { - public partial class ResetPasswordResult : Object + /// + /// The password reset request is pending + /// + public class ResetPasswordResultPending : ResetPasswordResult { /// - /// The password reset request is pending + /// Data type for serialization /// - public class ResetPasswordResultPending : ResetPasswordResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "resetPasswordResultPending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "resetPasswordResultPending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) after which the password can be reset immediately using resetPassword - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_reset_date")] - public int PendingResetDate { get; set; } - } + /// + /// Point in time (Unix timestamp) after which the password can be reset immediately using resetPassword + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_reset_date")] + public int PendingResetDate { get; set; } } } } diff --git a/TdLib.Api/Objects/RestrictionInfo.cs b/TdLib.Api/Objects/RestrictionInfo.cs index e807fccf..c0204679 100644 --- a/TdLib.Api/Objects/RestrictionInfo.cs +++ b/TdLib.Api/Objects/RestrictionInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about restrictions that must be applied to a chat or a message /// - public static partial class TdApi + public partial class RestrictionInfo : Object { /// - /// Contains information about restrictions that must be applied to a chat or a message + /// Data type for serialization /// - public partial class RestrictionInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "restrictionInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "restrictionInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A human-readable description of the reason why access to the content must be restricted. If empty, then the content can be accessed, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restriction_reason")] - public string RestrictionReason { get; set; } + /// + /// A human-readable description of the reason why access to the content must be restricted. If empty, then the content can be accessed, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restriction_reason")] + public string RestrictionReason { get; set; } - /// - /// True, if media content of the messages must be hidden with 18+ spoiler. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_sensitive_content")] - public bool HasSensitiveContent { get; set; } - } + /// + /// True, if media content of the messages must be hidden with 18+ spoiler. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_sensitive_content")] + public bool HasSensitiveContent { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/RevenueWithdrawalStateFailed.cs b/TdLib.Api/Objects/RevenueWithdrawalStateFailed.cs index 029eb4b3..ba588370 100644 --- a/TdLib.Api/Objects/RevenueWithdrawalStateFailed.cs +++ b/TdLib.Api/Objects/RevenueWithdrawalStateFailed.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RevenueWithdrawalState : Object { - public partial class RevenueWithdrawalState : Object + /// + /// Withdrawal failed + /// + public class RevenueWithdrawalStateFailed : RevenueWithdrawalState { /// - /// Withdrawal failed + /// Data type for serialization /// - public class RevenueWithdrawalStateFailed : RevenueWithdrawalState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "revenueWithdrawalStateFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "revenueWithdrawalStateFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/RevenueWithdrawalStatePending.cs b/TdLib.Api/Objects/RevenueWithdrawalStatePending.cs index 0ad0d128..f82ba740 100644 --- a/TdLib.Api/Objects/RevenueWithdrawalStatePending.cs +++ b/TdLib.Api/Objects/RevenueWithdrawalStatePending.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RevenueWithdrawalState : Object { - public partial class RevenueWithdrawalState : Object + /// + /// Describes state of a revenue withdrawal + /// + public class RevenueWithdrawalStatePending : RevenueWithdrawalState { /// - /// Describes state of a revenue withdrawal + /// Data type for serialization /// - public class RevenueWithdrawalStatePending : RevenueWithdrawalState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "revenueWithdrawalStatePending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "revenueWithdrawalStatePending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/RevenueWithdrawalStateSucceeded.cs b/TdLib.Api/Objects/RevenueWithdrawalStateSucceeded.cs index dae5d346..f9129141 100644 --- a/TdLib.Api/Objects/RevenueWithdrawalStateSucceeded.cs +++ b/TdLib.Api/Objects/RevenueWithdrawalStateSucceeded.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RevenueWithdrawalState : Object { - public partial class RevenueWithdrawalState : Object + /// + /// Withdrawal succeeded + /// + public class RevenueWithdrawalStateSucceeded : RevenueWithdrawalState { /// - /// Withdrawal succeeded + /// Data type for serialization /// - public class RevenueWithdrawalStateSucceeded : RevenueWithdrawalState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "revenueWithdrawalStateSucceeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "revenueWithdrawalStateSucceeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the withdrawal was completed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the withdrawal was completed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// The URL where the withdrawal transaction can be viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// The URL where the withdrawal transaction can be viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/RichMessage.cs b/TdLib.Api/Objects/RichMessage.cs index a7d3dfc6..b2a66131 100644 --- a/TdLib.Api/Objects/RichMessage.cs +++ b/TdLib.Api/Objects/RichMessage.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a message with rich formatting /// - public static partial class TdApi + public partial class RichMessage : Object { /// - /// Describes a message with rich formatting + /// Data type for serialization /// - public partial class RichMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Content of the message - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Content of the message + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// True, if the message must be shown from right to left - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtl")] - public bool IsRtl { get; set; } + /// + /// True, if the message must be shown from right to left + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtl")] + public bool IsRtl { get; set; } - /// - /// True, if the object contains the full message. Otherwise, getFullRichMessage must be used to get the full message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_full")] - public bool IsFull { get; set; } - } + /// + /// True, if the object contains the full message. Otherwise, getFullRichMessage must be used to get the full message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_full")] + public bool IsFull { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/RichMessageSourceBlocks.cs b/TdLib.Api/Objects/RichMessageSourceBlocks.cs index 9b2d15c1..3570a094 100644 --- a/TdLib.Api/Objects/RichMessageSourceBlocks.cs +++ b/TdLib.Api/Objects/RichMessageSourceBlocks.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichMessageSource : Object { - public partial class RichMessageSource : Object + /// + /// Describes source of a rich message + /// + public class RichMessageSourceBlocks : RichMessageSource { /// - /// Describes source of a rich message + /// Data type for serialization /// - public class RichMessageSourceBlocks : RichMessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richMessageSourceBlocks"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richMessageSourceBlocks"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Content of the message - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public InputPageBlock[] Blocks { get; set; } - } + /// + /// Content of the message + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public InputPageBlock[] Blocks { get; set; } } } } diff --git a/TdLib.Api/Objects/RichMessageSourceHtml.cs b/TdLib.Api/Objects/RichMessageSourceHtml.cs index d996e783..ae52b7bf 100644 --- a/TdLib.Api/Objects/RichMessageSourceHtml.cs +++ b/TdLib.Api/Objects/RichMessageSourceHtml.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichMessageSource : Object { - public partial class RichMessageSource : Object + /// + /// An HTML-formatted rich message; for bots only + /// + public class RichMessageSourceHtml : RichMessageSource { /// - /// An HTML-formatted rich message; for bots only + /// Data type for serialization /// - public class RichMessageSourceHtml : RichMessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richMessageSourceHtml"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richMessageSourceHtml"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// HTML-formatted text of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// HTML-formatted text of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// Media used in the message - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public InputRichMessageMedia[] Media { get; set; } - } + /// + /// Media used in the message + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public InputRichMessageMedia[] Media { get; set; } } } } diff --git a/TdLib.Api/Objects/RichMessageSourceMarkdown.cs b/TdLib.Api/Objects/RichMessageSourceMarkdown.cs index 2c3ce9d6..befd4b11 100644 --- a/TdLib.Api/Objects/RichMessageSourceMarkdown.cs +++ b/TdLib.Api/Objects/RichMessageSourceMarkdown.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichMessageSource : Object { - public partial class RichMessageSource : Object + /// + /// A Markdown-formatted rich message; for bots only + /// + public class RichMessageSourceMarkdown : RichMessageSource { /// - /// A Markdown-formatted rich message; for bots only + /// Data type for serialization /// - public class RichMessageSourceMarkdown : RichMessageSource - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richMessageSourceMarkdown"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richMessageSourceMarkdown"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Markdown-formatted text of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Markdown-formatted text of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// Media used in the message - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public InputRichMessageMedia[] Media { get; set; } - } + /// + /// Media used in the message + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public InputRichMessageMedia[] Media { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextAnchor.cs b/TdLib.Api/Objects/RichTextAnchor.cs index 4e44d042..27262cb6 100644 --- a/TdLib.Api/Objects/RichTextAnchor.cs +++ b/TdLib.Api/Objects/RichTextAnchor.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// An anchor + /// + public class RichTextAnchor : RichText { /// - /// An anchor + /// Data type for serialization /// - public class RichTextAnchor : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextAnchor"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextAnchor"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Anchor name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - } + /// + /// Anchor name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextAnchorLink.cs b/TdLib.Api/Objects/RichTextAnchorLink.cs index d70742d3..d269f95d 100644 --- a/TdLib.Api/Objects/RichTextAnchorLink.cs +++ b/TdLib.Api/Objects/RichTextAnchorLink.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A link to an anchor on the same page + /// + public class RichTextAnchorLink : RichText { /// - /// A link to an anchor on the same page + /// Data type for serialization /// - public class RichTextAnchorLink : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextAnchorLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextAnchorLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The link text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// The link text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The anchor name. If the name is empty, the link must bring back to top - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("anchor_name")] - public string AnchorName { get; set; } + /// + /// The anchor name. If the name is empty, the link must bring back to top + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("anchor_name")] + public string AnchorName { get; set; } - /// - /// An HTTP URL that opens the anchor - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// An HTTP URL that opens the anchor + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextBankCardNumber.cs b/TdLib.Api/Objects/RichTextBankCardNumber.cs index 90c9392f..260d0938 100644 --- a/TdLib.Api/Objects/RichTextBankCardNumber.cs +++ b/TdLib.Api/Objects/RichTextBankCardNumber.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A bank card number + /// + public class RichTextBankCardNumber : RichText { /// - /// A bank card number + /// Data type for serialization /// - public class RichTextBankCardNumber : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextBankCardNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextBankCardNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The number of the bank card - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bank_card_number")] - public string BankCardNumber { get; set; } - } + /// + /// The number of the bank card + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bank_card_number")] + public string BankCardNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextBold.cs b/TdLib.Api/Objects/RichTextBold.cs index 5e81e82e..b5c1d48f 100644 --- a/TdLib.Api/Objects/RichTextBold.cs +++ b/TdLib.Api/Objects/RichTextBold.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A bold rich text + /// + public class RichTextBold : RichText { /// - /// A bold rich text + /// Data type for serialization /// - public class RichTextBold : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextBold"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextBold"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextBotCommand.cs b/TdLib.Api/Objects/RichTextBotCommand.cs index b62a84a8..d0591ba9 100644 --- a/TdLib.Api/Objects/RichTextBotCommand.cs +++ b/TdLib.Api/Objects/RichTextBotCommand.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A bot command + /// + public class RichTextBotCommand : RichText { /// - /// A bot command + /// Data type for serialization /// - public class RichTextBotCommand : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextBotCommand"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextBotCommand"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The bot command - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_command")] - public string BotCommand { get; set; } - } + /// + /// The bot command + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_command")] + public string BotCommand { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextButton.cs b/TdLib.Api/Objects/RichTextButton.cs index 621bf812..59e29195 100644 --- a/TdLib.Api/Objects/RichTextButton.cs +++ b/TdLib.Api/Objects/RichTextButton.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A button + /// + public class RichTextButton : RichText { /// - /// A button + /// Data type for serialization /// - public class RichTextButton : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextButton"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextButton"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button")] - public InlineButton Button { get; set; } - } + /// + /// The button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button")] + public InlineButton Button { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextCashtag.cs b/TdLib.Api/Objects/RichTextCashtag.cs index df170d33..0222d1dc 100644 --- a/TdLib.Api/Objects/RichTextCashtag.cs +++ b/TdLib.Api/Objects/RichTextCashtag.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A cashtag + /// + public class RichTextCashtag : RichText { /// - /// A cashtag + /// Data type for serialization /// - public class RichTextCashtag : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextCashtag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextCashtag"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The cashtag - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cashtag")] - public string Cashtag { get; set; } - } + /// + /// The cashtag + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cashtag")] + public string Cashtag { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextCustomEmoji.cs b/TdLib.Api/Objects/RichTextCustomEmoji.cs index 58ad23cf..a4bd11a0 100644 --- a/TdLib.Api/Objects/RichTextCustomEmoji.cs +++ b/TdLib.Api/Objects/RichTextCustomEmoji.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A custom emoji + /// + public class RichTextCustomEmoji : RichText { /// - /// A custom emoji + /// Data type for serialization /// - public class RichTextCustomEmoji : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the custom emoji - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } + /// + /// Unique identifier of the custom emoji + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } - /// - /// Alternative text for the custom emoji - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("alternative_text")] - public string AlternativeText { get; set; } - } + /// + /// Alternative text for the custom emoji + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("alternative_text")] + public string AlternativeText { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextDateTime.cs b/TdLib.Api/Objects/RichTextDateTime.cs index eea192bf..93329b56 100644 --- a/TdLib.Api/Objects/RichTextDateTime.cs +++ b/TdLib.Api/Objects/RichTextDateTime.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A date and time + /// + public class RichTextDateTime : RichText { /// - /// A date and time + /// Data type for serialization /// - public class RichTextDateTime : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextDateTime"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextDateTime"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Original text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Original text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Point in time (Unix timestamp) representing the date and time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unix_time")] - public int UnixTime { get; set; } + /// + /// Point in time (Unix timestamp) representing the date and time + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unix_time")] + public int UnixTime { get; set; } - /// - /// Date and time formatting type; may be null if none and the original text must not be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("formatting_type")] - public DateTimeFormattingType FormattingType { get; set; } - } + /// + /// Date and time formatting type; may be null if none and the original text must not be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("formatting_type")] + public DateTimeFormattingType FormattingType { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextDiff.cs b/TdLib.Api/Objects/RichTextDiff.cs index 5f889134..15d18e8b 100644 --- a/TdLib.Api/Objects/RichTextDiff.cs +++ b/TdLib.Api/Objects/RichTextDiff.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A rich text replacing another rich text; not supported in inputRichMessage + /// + public class RichTextDiff : RichText { /// - /// A rich text replacing another rich text; not supported in inputRichMessage + /// Data type for serialization /// - public class RichTextDiff : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextDiff"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextDiff"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The old text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_text")] - public RichText OldText { get; set; } - } + /// + /// The old text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_text")] + public RichText OldText { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextEmailAddress.cs b/TdLib.Api/Objects/RichTextEmailAddress.cs index 8377f894..a75cbb8f 100644 --- a/TdLib.Api/Objects/RichTextEmailAddress.cs +++ b/TdLib.Api/Objects/RichTextEmailAddress.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A rich text email address + /// + public class RichTextEmailAddress : RichText { /// - /// A rich text email address + /// Data type for serialization /// - public class RichTextEmailAddress : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextEmailAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("email_address")] - public string EmailAddress { get; set; } - } + /// + /// Email address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("email_address")] + public string EmailAddress { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextFixed.cs b/TdLib.Api/Objects/RichTextFixed.cs index 10b01de7..030a305c 100644 --- a/TdLib.Api/Objects/RichTextFixed.cs +++ b/TdLib.Api/Objects/RichTextFixed.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A fixed-width rich text + /// + public class RichTextFixed : RichText { /// - /// A fixed-width rich text + /// Data type for serialization /// - public class RichTextFixed : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextFixed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextFixed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextHashtag.cs b/TdLib.Api/Objects/RichTextHashtag.cs index 47c90684..9ae9ca02 100644 --- a/TdLib.Api/Objects/RichTextHashtag.cs +++ b/TdLib.Api/Objects/RichTextHashtag.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A hashtag + /// + public class RichTextHashtag : RichText { /// - /// A hashtag + /// Data type for serialization /// - public class RichTextHashtag : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextHashtag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextHashtag"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The hashtag - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hashtag")] - public string Hashtag { get; set; } - } + /// + /// The hashtag + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hashtag")] + public string Hashtag { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextIcon.cs b/TdLib.Api/Objects/RichTextIcon.cs index f6882b22..ff80a606 100644 --- a/TdLib.Api/Objects/RichTextIcon.cs +++ b/TdLib.Api/Objects/RichTextIcon.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A small image inside the text; instant view only + /// + public class RichTextIcon : RichText { /// - /// A small image inside the text; instant view only + /// Data type for serialization /// - public class RichTextIcon : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextIcon"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextIcon"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The image represented as a document. The image can be in GIF, JPEG or PNG format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("document")] - public Document Document { get; set; } + /// + /// The image represented as a document. The image can be in GIF, JPEG or PNG format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("document")] + public Document Document { get; set; } - /// - /// Width of a bounding box in which the image must be shown; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Width of a bounding box in which the image must be shown; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Height of a bounding box in which the image must be shown; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } - } + /// + /// Height of a bounding box in which the image must be shown; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextItalic.cs b/TdLib.Api/Objects/RichTextItalic.cs index b39943a8..2e67ec8f 100644 --- a/TdLib.Api/Objects/RichTextItalic.cs +++ b/TdLib.Api/Objects/RichTextItalic.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// An italicized rich text + /// + public class RichTextItalic : RichText { /// - /// An italicized rich text + /// Data type for serialization /// - public class RichTextItalic : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextItalic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextItalic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextMarked.cs b/TdLib.Api/Objects/RichTextMarked.cs index 57434c00..5b8408d0 100644 --- a/TdLib.Api/Objects/RichTextMarked.cs +++ b/TdLib.Api/Objects/RichTextMarked.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A marked rich text + /// + public class RichTextMarked : RichText { /// - /// A marked rich text + /// Data type for serialization /// - public class RichTextMarked : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextMarked"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextMarked"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextMathematicalExpression.cs b/TdLib.Api/Objects/RichTextMathematicalExpression.cs index 390fdece..bd391d55 100644 --- a/TdLib.Api/Objects/RichTextMathematicalExpression.cs +++ b/TdLib.Api/Objects/RichTextMathematicalExpression.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A mathematical expression + /// + public class RichTextMathematicalExpression : RichText { /// - /// A mathematical expression + /// Data type for serialization /// - public class RichTextMathematicalExpression : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextMathematicalExpression"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextMathematicalExpression"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The expression in LaTeX format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expression")] - public string Expression { get; set; } - } + /// + /// The expression in LaTeX format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expression")] + public string Expression { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextMention.cs b/TdLib.Api/Objects/RichTextMention.cs index 4b509659..055f0c99 100644 --- a/TdLib.Api/Objects/RichTextMention.cs +++ b/TdLib.Api/Objects/RichTextMention.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A mention of a Telegram user or chat by a username + /// + public class RichTextMention : RichText { /// - /// A mention of a Telegram user or chat by a username + /// Data type for serialization /// - public class RichTextMention : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextMention"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextMention"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The username - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } - } + /// + /// The username + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextMentionName.cs b/TdLib.Api/Objects/RichTextMentionName.cs index d0d7735e..a6abe9a8 100644 --- a/TdLib.Api/Objects/RichTextMentionName.cs +++ b/TdLib.Api/Objects/RichTextMentionName.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A rich text that serves as a mention of a user + /// + public class RichTextMentionName : RichText { /// - /// A rich text that serves as a mention of a user + /// Data type for serialization /// - public class RichTextMentionName : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextMentionName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextMentionName"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Identifier of the mentioned user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the mentioned user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextPhoneNumber.cs b/TdLib.Api/Objects/RichTextPhoneNumber.cs index 1db84df2..1c67cb1a 100644 --- a/TdLib.Api/Objects/RichTextPhoneNumber.cs +++ b/TdLib.Api/Objects/RichTextPhoneNumber.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A rich text phone number + /// + public class RichTextPhoneNumber : RichText { /// - /// A rich text phone number + /// Data type for serialization /// - public class RichTextPhoneNumber : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// Phone number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } - } + /// + /// Phone number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextPlain.cs b/TdLib.Api/Objects/RichTextPlain.cs index 330acd6b..b1504def 100644 --- a/TdLib.Api/Objects/RichTextPlain.cs +++ b/TdLib.Api/Objects/RichTextPlain.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// Describes a formatted text object + /// + public class RichTextPlain : RichText { /// - /// Describes a formatted text object + /// Data type for serialization /// - public class RichTextPlain : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextPlain"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextPlain"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextReference.cs b/TdLib.Api/Objects/RichTextReference.cs index 7c01072e..d20c31bb 100644 --- a/TdLib.Api/Objects/RichTextReference.cs +++ b/TdLib.Api/Objects/RichTextReference.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A reference + /// + public class RichTextReference : RichText { /// - /// A reference + /// Data type for serialization /// - public class RichTextReference : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextReference"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextReference"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Reference name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Reference name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Text of the reference - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text of the reference + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextReferenceLink.cs b/TdLib.Api/Objects/RichTextReferenceLink.cs index fe29612f..4f126edb 100644 --- a/TdLib.Api/Objects/RichTextReferenceLink.cs +++ b/TdLib.Api/Objects/RichTextReferenceLink.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A link to a reference on the same page + /// + public class RichTextReferenceLink : RichText { /// - /// A link to a reference on the same page + /// Data type for serialization /// - public class RichTextReferenceLink : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextReferenceLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextReferenceLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The link text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// The link text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// The reference name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reference_name")] - public string ReferenceName { get; set; } + /// + /// The reference name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reference_name")] + public string ReferenceName { get; set; } - /// - /// An HTTP URL that opens the reference - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// An HTTP URL that opens the reference + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextSpoiler.cs b/TdLib.Api/Objects/RichTextSpoiler.cs index ddc1e9aa..dc935711 100644 --- a/TdLib.Api/Objects/RichTextSpoiler.cs +++ b/TdLib.Api/Objects/RichTextSpoiler.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A spoilered rich text + /// + public class RichTextSpoiler : RichText { /// - /// A spoilered rich text + /// Data type for serialization /// - public class RichTextSpoiler : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextSpoiler"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextSpoiler"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextStrikethrough.cs b/TdLib.Api/Objects/RichTextStrikethrough.cs index 42eb542d..438e0dae 100644 --- a/TdLib.Api/Objects/RichTextStrikethrough.cs +++ b/TdLib.Api/Objects/RichTextStrikethrough.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A strikethrough rich text + /// + public class RichTextStrikethrough : RichText { /// - /// A strikethrough rich text + /// Data type for serialization /// - public class RichTextStrikethrough : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextStrikethrough"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextStrikethrough"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextSubscript.cs b/TdLib.Api/Objects/RichTextSubscript.cs index 7fa29ec8..a79a90ed 100644 --- a/TdLib.Api/Objects/RichTextSubscript.cs +++ b/TdLib.Api/Objects/RichTextSubscript.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A subscript rich text + /// + public class RichTextSubscript : RichText { /// - /// A subscript rich text + /// Data type for serialization /// - public class RichTextSubscript : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextSubscript"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextSubscript"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextSuperscript.cs b/TdLib.Api/Objects/RichTextSuperscript.cs index 9c123cb6..51f50e98 100644 --- a/TdLib.Api/Objects/RichTextSuperscript.cs +++ b/TdLib.Api/Objects/RichTextSuperscript.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A superscript rich text + /// + public class RichTextSuperscript : RichText { /// - /// A superscript rich text + /// Data type for serialization /// - public class RichTextSuperscript : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextSuperscript"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextSuperscript"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextTonAddress.cs b/TdLib.Api/Objects/RichTextTonAddress.cs new file mode 100644 index 00000000..9cbc3716 --- /dev/null +++ b/TdLib.Api/Objects/RichTextTonAddress.cs @@ -0,0 +1,47 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class RichText : Object + { + /// + /// An address in the TON blockchain + /// + public class RichTextTonAddress : RichText + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextTonAddress"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } + + /// + /// The address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/RichTextUnderline.cs b/TdLib.Api/Objects/RichTextUnderline.cs index 1ecf5744..21d944ad 100644 --- a/TdLib.Api/Objects/RichTextUnderline.cs +++ b/TdLib.Api/Objects/RichTextUnderline.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// An underlined rich text + /// + public class RichTextUnderline : RichText { /// - /// An underlined rich text + /// Data type for serialization /// - public class RichTextUnderline : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextUnderline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextUnderline"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTextUrl.cs b/TdLib.Api/Objects/RichTextUrl.cs index 18e418ee..f85da3de 100644 --- a/TdLib.Api/Objects/RichTextUrl.cs +++ b/TdLib.Api/Objects/RichTextUrl.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A rich text URL link + /// + public class RichTextUrl : RichText { /// - /// A rich text URL link + /// Data type for serialization /// - public class RichTextUrl : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTextUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTextUrl"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public RichText Text { get; set; } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public RichText Text { get; set; } - /// - /// URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// True, if the URL has cached instant view server-side; instant view only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_cached")] - public bool IsCached { get; set; } - } + /// + /// True, if the URL has cached instant view server-side; instant view only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_cached")] + public bool IsCached { get; set; } } } } diff --git a/TdLib.Api/Objects/RichTexts.cs b/TdLib.Api/Objects/RichTexts.cs index c6513d1e..e76ec90b 100644 --- a/TdLib.Api/Objects/RichTexts.cs +++ b/TdLib.Api/Objects/RichTexts.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class RichText : Object { - public partial class RichText : Object + /// + /// A concatenation of rich texts + /// + public class RichTexts : RichText { /// - /// A concatenation of rich texts + /// Data type for serialization /// - public class RichTexts : RichText - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "richTexts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "richTexts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Texts - /// - [JsonProperty("texts", ItemConverterType = typeof(Converter))] - public RichText[] Texts { get; set; } - } + /// + /// Texts + /// + [JsonProperty("texts", ItemConverterType = typeof(Converter))] + public RichText[] Texts { get; set; } } } } diff --git a/TdLib.Api/Objects/RtmpUrl.cs b/TdLib.Api/Objects/RtmpUrl.cs index d4a0bdd1..bc017fa7 100644 --- a/TdLib.Api/Objects/RtmpUrl.cs +++ b/TdLib.Api/Objects/RtmpUrl.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents an RTMP URL /// - public static partial class TdApi + public partial class RtmpUrl : Object { /// - /// Represents an RTMP URL + /// Data type for serialization /// - public partial class RtmpUrl : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "rtmpUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "rtmpUrl"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// The URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Stream key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("stream_key")] - public string StreamKey { get; set; } - } + /// + /// Stream key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("stream_key")] + public string StreamKey { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SavedCredentials.cs b/TdLib.Api/Objects/SavedCredentials.cs index ef15a397..765c0657 100644 --- a/TdLib.Api/Objects/SavedCredentials.cs +++ b/TdLib.Api/Objects/SavedCredentials.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about saved payment credentials /// - public static partial class TdApi + public partial class SavedCredentials : Object { /// - /// Contains information about saved payment credentials + /// Data type for serialization /// - public partial class SavedCredentials : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savedCredentials"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savedCredentials"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the saved credentials - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the saved credentials + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Title of the saved credentials - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// Title of the saved credentials + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SavedMessagesTag.cs b/TdLib.Api/Objects/SavedMessagesTag.cs index af37e7bf..c622c0b9 100644 --- a/TdLib.Api/Objects/SavedMessagesTag.cs +++ b/TdLib.Api/Objects/SavedMessagesTag.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a tag used in Saved Messages or a Saved Messages topic /// - public static partial class TdApi + public partial class SavedMessagesTag : Object { /// - /// Represents a tag used in Saved Messages or a Saved Messages topic + /// Data type for serialization /// - public partial class SavedMessagesTag : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savedMessagesTag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savedMessagesTag"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The tag - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tag")] - public ReactionType Tag { get; set; } + /// + /// The tag + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tag")] + public ReactionType Tag { get; set; } - /// - /// Label of the tag; 0-12 characters. Always empty if the tag is returned for a Saved Messages topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("label")] - public string Label { get; set; } + /// + /// Label of the tag; 0-12 characters. Always empty if the tag is returned for a Saved Messages topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("label")] + public string Label { get; set; } - /// - /// Number of times the tag was used; may be 0 if the tag has non-empty label - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public int Count { get; set; } - } + /// + /// Number of times the tag was used; may be 0 if the tag has non-empty label + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public int Count { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SavedMessagesTags.cs b/TdLib.Api/Objects/SavedMessagesTags.cs index 85cc358c..5b03af8d 100644 --- a/TdLib.Api/Objects/SavedMessagesTags.cs +++ b/TdLib.Api/Objects/SavedMessagesTags.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of tags used in Saved Messages /// - public static partial class TdApi + public partial class SavedMessagesTags : Object { /// - /// Contains a list of tags used in Saved Messages + /// Data type for serialization /// - public partial class SavedMessagesTags : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savedMessagesTags"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savedMessagesTags"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of tags - /// - [JsonProperty("tags", ItemConverterType = typeof(Converter))] - public SavedMessagesTag[] Tags { get; set; } - } + /// + /// List of tags + /// + [JsonProperty("tags", ItemConverterType = typeof(Converter))] + public SavedMessagesTag[] Tags { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SavedMessagesTopic.cs b/TdLib.Api/Objects/SavedMessagesTopic.cs index 31cd8931..2f07ddb0 100644 --- a/TdLib.Api/Objects/SavedMessagesTopic.cs +++ b/TdLib.Api/Objects/SavedMessagesTopic.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Saved Messages topic /// - public static partial class TdApi + public partial class SavedMessagesTopic : Object { /// - /// Contains information about a Saved Messages topic + /// Data type for serialization /// - public partial class SavedMessagesTopic : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savedMessagesTopic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savedMessagesTopic"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique topic identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique topic identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Type of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public SavedMessagesTopicType Type { get; set; } + /// + /// Type of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public SavedMessagesTopicType Type { get; set; } - /// - /// True, if the topic is pinned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } + /// + /// True, if the topic is pinned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } - /// - /// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("order")] - public long Order { get; set; } + /// + /// A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("order")] + public long Order { get; set; } - /// - /// Last message in the topic; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_message")] - public Message LastMessage { get; set; } + /// + /// Last message in the topic; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_message")] + public Message LastMessage { get; set; } - /// - /// A draft of a message in the topic; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } - } + /// + /// A draft of a message in the topic; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SavedMessagesTopicTypeAuthorHidden.cs b/TdLib.Api/Objects/SavedMessagesTopicTypeAuthorHidden.cs index 428c1b8a..33faf0a7 100644 --- a/TdLib.Api/Objects/SavedMessagesTopicTypeAuthorHidden.cs +++ b/TdLib.Api/Objects/SavedMessagesTopicTypeAuthorHidden.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SavedMessagesTopicType : Object { - public partial class SavedMessagesTopicType : Object + /// + /// Topic containing messages forwarded from a user with hidden privacy + /// + public class SavedMessagesTopicTypeAuthorHidden : SavedMessagesTopicType { /// - /// Topic containing messages forwarded from a user with hidden privacy + /// Data type for serialization /// - public class SavedMessagesTopicTypeAuthorHidden : SavedMessagesTopicType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savedMessagesTopicTypeAuthorHidden"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savedMessagesTopicTypeAuthorHidden"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SavedMessagesTopicTypeMyNotes.cs b/TdLib.Api/Objects/SavedMessagesTopicTypeMyNotes.cs index 57e0bd2c..15caef4f 100644 --- a/TdLib.Api/Objects/SavedMessagesTopicTypeMyNotes.cs +++ b/TdLib.Api/Objects/SavedMessagesTopicTypeMyNotes.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SavedMessagesTopicType : Object { - public partial class SavedMessagesTopicType : Object + /// + /// Describes type of Saved Messages topic + /// + public class SavedMessagesTopicTypeMyNotes : SavedMessagesTopicType { /// - /// Describes type of Saved Messages topic + /// Data type for serialization /// - public class SavedMessagesTopicTypeMyNotes : SavedMessagesTopicType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savedMessagesTopicTypeMyNotes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savedMessagesTopicTypeMyNotes"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SavedMessagesTopicTypeSavedFromChat.cs b/TdLib.Api/Objects/SavedMessagesTopicTypeSavedFromChat.cs index 93d0a2ab..63fac085 100644 --- a/TdLib.Api/Objects/SavedMessagesTopicTypeSavedFromChat.cs +++ b/TdLib.Api/Objects/SavedMessagesTopicTypeSavedFromChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SavedMessagesTopicType : Object { - public partial class SavedMessagesTopicType : Object + /// + /// Topic containing messages forwarded from a specific chat + /// + public class SavedMessagesTopicTypeSavedFromChat : SavedMessagesTopicType { /// - /// Topic containing messages forwarded from a specific chat + /// Data type for serialization /// - public class SavedMessagesTopicTypeSavedFromChat : SavedMessagesTopicType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "savedMessagesTopicTypeSavedFromChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "savedMessagesTopicTypeSavedFromChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/ScopeAutosaveSettings.cs b/TdLib.Api/Objects/ScopeAutosaveSettings.cs index dde66243..e9de16fa 100644 --- a/TdLib.Api/Objects/ScopeAutosaveSettings.cs +++ b/TdLib.Api/Objects/ScopeAutosaveSettings.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains autosave settings for an autosave settings scope /// - public static partial class TdApi + public partial class ScopeAutosaveSettings : Object { /// - /// Contains autosave settings for an autosave settings scope + /// Data type for serialization /// - public partial class ScopeAutosaveSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "scopeAutosaveSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "scopeAutosaveSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if photo autosave is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("autosave_photos")] - public bool AutosavePhotos { get; set; } + /// + /// True, if photo autosave is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("autosave_photos")] + public bool AutosavePhotos { get; set; } - /// - /// True, if video autosave is enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("autosave_videos")] - public bool AutosaveVideos { get; set; } + /// + /// True, if video autosave is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("autosave_videos")] + public bool AutosaveVideos { get; set; } - /// - /// The maximum size of a video file to be autosaved, in bytes; 512 KB - 4000 MB - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_video_file_size")] - public long MaxVideoFileSize { get; set; } - } + /// + /// The maximum size of a video file to be autosaved, in bytes; 512 KB - 4000 MB + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_video_file_size")] + public long MaxVideoFileSize { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ScopeNotificationSettings.cs b/TdLib.Api/Objects/ScopeNotificationSettings.cs index e11290f6..2f4f7396 100644 --- a/TdLib.Api/Objects/ScopeNotificationSettings.cs +++ b/TdLib.Api/Objects/ScopeNotificationSettings.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about notification settings for several chats /// - public static partial class TdApi + public partial class ScopeNotificationSettings : Object { /// - /// Contains information about notification settings for several chats + /// Data type for serialization /// - public partial class ScopeNotificationSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "scopeNotificationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "scopeNotificationSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Time left before notifications will be unmuted, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_for")] - public int MuteFor { get; set; } + /// + /// Time left before notifications will be unmuted, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_for")] + public int MuteFor { get; set; } - /// - /// Identifier of the notification sound to be played; 0 if sound is disabled; pass -1 to use the app-dependent default sound - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sound_id")] - public long SoundId { get; set; } + /// + /// Identifier of the notification sound to be played; 0 if sound is disabled; pass -1 to use the app-dependent default sound + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sound_id")] + public long SoundId { get; set; } - /// - /// True, if message content must be displayed in notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_preview")] - public bool ShowPreview { get; set; } + /// + /// True, if message content must be displayed in notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_preview")] + public bool ShowPreview { get; set; } - /// - /// If true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of mute_stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("use_default_mute_stories")] - public bool UseDefaultMuteStories { get; set; } + /// + /// If true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of mute_stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("use_default_mute_stories")] + public bool UseDefaultMuteStories { get; set; } - /// - /// True, if story notifications are disabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mute_stories")] - public bool MuteStories { get; set; } + /// + /// True, if story notifications are disabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mute_stories")] + public bool MuteStories { get; set; } - /// - /// Identifier of the notification sound to be played for stories; 0 if sound is disabled; pass -1 to use the app-dependent default sound - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("story_sound_id")] - public long StorySoundId { get; set; } + /// + /// Identifier of the notification sound to be played for stories; 0 if sound is disabled; pass -1 to use the app-dependent default sound + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("story_sound_id")] + public long StorySoundId { get; set; } - /// - /// True, if the chat that posted a story must be displayed in notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_story_poster")] - public bool ShowStoryPoster { get; set; } + /// + /// True, if the chat that posted a story must be displayed in notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_story_poster")] + public bool ShowStoryPoster { get; set; } - /// - /// True, if notifications for incoming pinned messages will be created as for an ordinary unread message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_pinned_message_notifications")] - public bool DisablePinnedMessageNotifications { get; set; } + /// + /// True, if notifications for incoming pinned messages will be created as for an ordinary unread message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_pinned_message_notifications")] + public bool DisablePinnedMessageNotifications { get; set; } - /// - /// True, if notifications for messages with mentions will be created as for an ordinary unread message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("disable_mention_notifications")] - public bool DisableMentionNotifications { get; set; } - } + /// + /// True, if notifications for messages with mentions will be created as for an ordinary unread message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("disable_mention_notifications")] + public bool DisableMentionNotifications { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SearchChatTypeFilterBot.cs b/TdLib.Api/Objects/SearchChatTypeFilterBot.cs index 22655ad1..28b8e681 100644 --- a/TdLib.Api/Objects/SearchChatTypeFilterBot.cs +++ b/TdLib.Api/Objects/SearchChatTypeFilterBot.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchChatTypeFilter : Object { - public partial class SearchChatTypeFilter : Object + /// + /// Represents a filter for type of the chats to search for + /// + public class SearchChatTypeFilterBot : SearchChatTypeFilter { /// - /// Represents a filter for type of the chats to search for + /// Data type for serialization /// - public class SearchChatTypeFilterBot : SearchChatTypeFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChatTypeFilterBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChatTypeFilterBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchChatTypeFilterChannel.cs b/TdLib.Api/Objects/SearchChatTypeFilterChannel.cs index 6abeee52..b0c8a046 100644 --- a/TdLib.Api/Objects/SearchChatTypeFilterChannel.cs +++ b/TdLib.Api/Objects/SearchChatTypeFilterChannel.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchChatTypeFilter : Object { - public partial class SearchChatTypeFilter : Object + /// + /// Returns only channel chats + /// + public class SearchChatTypeFilterChannel : SearchChatTypeFilter { /// - /// Returns only channel chats + /// Data type for serialization /// - public class SearchChatTypeFilterChannel : SearchChatTypeFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchChatTypeFilterChannel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchChatTypeFilterChannel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesChatTypeFilterChannel.cs b/TdLib.Api/Objects/SearchMessagesChatTypeFilterChannel.cs index 3d2a62dc..93b09576 100644 --- a/TdLib.Api/Objects/SearchMessagesChatTypeFilterChannel.cs +++ b/TdLib.Api/Objects/SearchMessagesChatTypeFilterChannel.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesChatTypeFilter : Object { - public partial class SearchMessagesChatTypeFilter : Object + /// + /// Returns only messages in channel chats + /// + public class SearchMessagesChatTypeFilterChannel : SearchMessagesChatTypeFilter { /// - /// Returns only messages in channel chats + /// Data type for serialization /// - public class SearchMessagesChatTypeFilterChannel : SearchMessagesChatTypeFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesChatTypeFilterChannel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesChatTypeFilterChannel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesChatTypeFilterCommunity.cs b/TdLib.Api/Objects/SearchMessagesChatTypeFilterCommunity.cs index e72b2258..64570cd8 100644 --- a/TdLib.Api/Objects/SearchMessagesChatTypeFilterCommunity.cs +++ b/TdLib.Api/Objects/SearchMessagesChatTypeFilterCommunity.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesChatTypeFilter : Object { - public partial class SearchMessagesChatTypeFilter : Object + /// + /// Returns only messages in the specified community + /// + public class SearchMessagesChatTypeFilterCommunity : SearchMessagesChatTypeFilter { /// - /// Returns only messages in the specified community + /// Data type for serialization /// - public class SearchMessagesChatTypeFilterCommunity : SearchMessagesChatTypeFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesChatTypeFilterCommunity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesChatTypeFilterCommunity"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the community to search in - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } - } + /// + /// Identifier of the community to search in + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } } } } diff --git a/TdLib.Api/Objects/SearchMessagesChatTypeFilterGroup.cs b/TdLib.Api/Objects/SearchMessagesChatTypeFilterGroup.cs index e31c42d1..998ddd7d 100644 --- a/TdLib.Api/Objects/SearchMessagesChatTypeFilterGroup.cs +++ b/TdLib.Api/Objects/SearchMessagesChatTypeFilterGroup.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesChatTypeFilter : Object { - public partial class SearchMessagesChatTypeFilter : Object + /// + /// Returns only messages in basic group and supergroup chats + /// + public class SearchMessagesChatTypeFilterGroup : SearchMessagesChatTypeFilter { /// - /// Returns only messages in basic group and supergroup chats + /// Data type for serialization /// - public class SearchMessagesChatTypeFilterGroup : SearchMessagesChatTypeFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesChatTypeFilterGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesChatTypeFilterGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesChatTypeFilterPrivate.cs b/TdLib.Api/Objects/SearchMessagesChatTypeFilterPrivate.cs index 2e066dde..99259fb8 100644 --- a/TdLib.Api/Objects/SearchMessagesChatTypeFilterPrivate.cs +++ b/TdLib.Api/Objects/SearchMessagesChatTypeFilterPrivate.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesChatTypeFilter : Object { - public partial class SearchMessagesChatTypeFilter : Object + /// + /// Represents a filter for type of the chats in which to search for messages + /// + public class SearchMessagesChatTypeFilterPrivate : SearchMessagesChatTypeFilter { /// - /// Represents a filter for type of the chats in which to search for messages + /// Data type for serialization /// - public class SearchMessagesChatTypeFilterPrivate : SearchMessagesChatTypeFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesChatTypeFilterPrivate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesChatTypeFilterPrivate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterAnimation.cs b/TdLib.Api/Objects/SearchMessagesFilterAnimation.cs index 8ae220b4..84ae8d1c 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterAnimation.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterAnimation.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only animation messages + /// + public class SearchMessagesFilterAnimation : SearchMessagesFilter { /// - /// Returns only animation messages + /// Data type for serialization /// - public class SearchMessagesFilterAnimation : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterAnimation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterAnimation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterAudio.cs b/TdLib.Api/Objects/SearchMessagesFilterAudio.cs index e93fe0dd..5b62fa16 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterAudio.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterAudio.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only audio messages + /// + public class SearchMessagesFilterAudio : SearchMessagesFilter { /// - /// Returns only audio messages + /// Data type for serialization /// - public class SearchMessagesFilterAudio : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterChatPhoto.cs b/TdLib.Api/Objects/SearchMessagesFilterChatPhoto.cs index 59d01588..8bc9a26a 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterChatPhoto.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterChatPhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only messages containing chat photos + /// + public class SearchMessagesFilterChatPhoto : SearchMessagesFilter { /// - /// Returns only messages containing chat photos + /// Data type for serialization /// - public class SearchMessagesFilterChatPhoto : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterChatPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterChatPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterDocument.cs b/TdLib.Api/Objects/SearchMessagesFilterDocument.cs index a10bfb3d..d2811a45 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterDocument.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterDocument.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only document messages + /// + public class SearchMessagesFilterDocument : SearchMessagesFilter { /// - /// Returns only document messages + /// Data type for serialization /// - public class SearchMessagesFilterDocument : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterDocument"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterDocument"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterEmpty.cs b/TdLib.Api/Objects/SearchMessagesFilterEmpty.cs index e59333bc..25046e3e 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterEmpty.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterEmpty.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Represents a filter for message search results + /// + public class SearchMessagesFilterEmpty : SearchMessagesFilter { /// - /// Represents a filter for message search results + /// Data type for serialization /// - public class SearchMessagesFilterEmpty : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterEmpty"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterEmpty"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterFailedToSend.cs b/TdLib.Api/Objects/SearchMessagesFilterFailedToSend.cs index 018fe19b..628b2b94 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterFailedToSend.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterFailedToSend.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only failed to send messages. This filter can be used only if the message database is used + /// + public class SearchMessagesFilterFailedToSend : SearchMessagesFilter { /// - /// Returns only failed to send messages. This filter can be used only if the message database is used + /// Data type for serialization /// - public class SearchMessagesFilterFailedToSend : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterFailedToSend"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterFailedToSend"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterMention.cs b/TdLib.Api/Objects/SearchMessagesFilterMention.cs index e8f06092..2e6ffb3e 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterMention.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterMention.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only messages with mentions of the current user, or messages that are replies to their messages + /// + public class SearchMessagesFilterMention : SearchMessagesFilter { /// - /// Returns only messages with mentions of the current user, or messages that are replies to their messages + /// Data type for serialization /// - public class SearchMessagesFilterMention : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterMention"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterMention"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterPhoto.cs b/TdLib.Api/Objects/SearchMessagesFilterPhoto.cs index a8c6923f..cb21b78f 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterPhoto.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterPhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only photo messages + /// + public class SearchMessagesFilterPhoto : SearchMessagesFilter { /// - /// Returns only photo messages + /// Data type for serialization /// - public class SearchMessagesFilterPhoto : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterPhotoAndVideo.cs b/TdLib.Api/Objects/SearchMessagesFilterPhotoAndVideo.cs index e22259dc..cdbe53b4 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterPhotoAndVideo.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterPhotoAndVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only photo and video messages + /// + public class SearchMessagesFilterPhotoAndVideo : SearchMessagesFilter { /// - /// Returns only photo and video messages + /// Data type for serialization /// - public class SearchMessagesFilterPhotoAndVideo : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterPhotoAndVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterPhotoAndVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterPinned.cs b/TdLib.Api/Objects/SearchMessagesFilterPinned.cs index 43853ca2..9f099975 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterPinned.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterPinned.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only pinned messages + /// + public class SearchMessagesFilterPinned : SearchMessagesFilter { /// - /// Returns only pinned messages + /// Data type for serialization /// - public class SearchMessagesFilterPinned : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterPinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterPinned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterPoll.cs b/TdLib.Api/Objects/SearchMessagesFilterPoll.cs index 7455085d..0a75e75b 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterPoll.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterPoll.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only poll messages + /// + public class SearchMessagesFilterPoll : SearchMessagesFilter { /// - /// Returns only poll messages + /// Data type for serialization /// - public class SearchMessagesFilterPoll : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterPoll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterPoll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterUnreadMention.cs b/TdLib.Api/Objects/SearchMessagesFilterUnreadMention.cs index 05e2cdf6..198ccb11 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterUnreadMention.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterUnreadMention.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query or by the sending user + /// + public class SearchMessagesFilterUnreadMention : SearchMessagesFilter { /// - /// Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query or by the sending user + /// Data type for serialization /// - public class SearchMessagesFilterUnreadMention : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterUnreadMention"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterUnreadMention"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterUnreadPollVote.cs b/TdLib.Api/Objects/SearchMessagesFilterUnreadPollVote.cs index eadf4e41..5b70e07f 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterUnreadPollVote.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterUnreadPollVote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only messages with unread poll votes for the current user. When using this filter the results can't be additionally filtered by a query or by the sending user + /// + public class SearchMessagesFilterUnreadPollVote : SearchMessagesFilter { /// - /// Returns only messages with unread poll votes for the current user. When using this filter the results can't be additionally filtered by a query or by the sending user + /// Data type for serialization /// - public class SearchMessagesFilterUnreadPollVote : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterUnreadPollVote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterUnreadPollVote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterUnreadReaction.cs b/TdLib.Api/Objects/SearchMessagesFilterUnreadReaction.cs index 39e5d0e6..8e41f455 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterUnreadReaction.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterUnreadReaction.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only messages with unread reactions for the current user. When using this filter the results can't be additionally filtered by a query or by the sending user + /// + public class SearchMessagesFilterUnreadReaction : SearchMessagesFilter { /// - /// Returns only messages with unread reactions for the current user. When using this filter the results can't be additionally filtered by a query or by the sending user + /// Data type for serialization /// - public class SearchMessagesFilterUnreadReaction : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterUnreadReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterUnreadReaction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterUrl.cs b/TdLib.Api/Objects/SearchMessagesFilterUrl.cs index 3e6cd475..18afdb3f 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterUrl.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterUrl.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only messages containing URLs + /// + public class SearchMessagesFilterUrl : SearchMessagesFilter { /// - /// Returns only messages containing URLs + /// Data type for serialization /// - public class SearchMessagesFilterUrl : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterUrl"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterVideo.cs b/TdLib.Api/Objects/SearchMessagesFilterVideo.cs index 8d66489e..bb74bd6d 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterVideo.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only video messages + /// + public class SearchMessagesFilterVideo : SearchMessagesFilter { /// - /// Returns only video messages + /// Data type for serialization /// - public class SearchMessagesFilterVideo : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterVideoNote.cs b/TdLib.Api/Objects/SearchMessagesFilterVideoNote.cs index 65ccf727..cea7c88a 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterVideoNote.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterVideoNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only video note messages + /// + public class SearchMessagesFilterVideoNote : SearchMessagesFilter { /// - /// Returns only video note messages + /// Data type for serialization /// - public class SearchMessagesFilterVideoNote : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterVoiceAndVideoNote.cs b/TdLib.Api/Objects/SearchMessagesFilterVoiceAndVideoNote.cs index 6e415697..4403bf24 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterVoiceAndVideoNote.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterVoiceAndVideoNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only voice and video note messages + /// + public class SearchMessagesFilterVoiceAndVideoNote : SearchMessagesFilter { /// - /// Returns only voice and video note messages + /// Data type for serialization /// - public class SearchMessagesFilterVoiceAndVideoNote : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterVoiceAndVideoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterVoiceAndVideoNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SearchMessagesFilterVoiceNote.cs b/TdLib.Api/Objects/SearchMessagesFilterVoiceNote.cs index dffa2a5c..0a178b5c 100644 --- a/TdLib.Api/Objects/SearchMessagesFilterVoiceNote.cs +++ b/TdLib.Api/Objects/SearchMessagesFilterVoiceNote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SearchMessagesFilter : Object { - public partial class SearchMessagesFilter : Object + /// + /// Returns only voice note messages + /// + public class SearchMessagesFilterVoiceNote : SearchMessagesFilter { /// - /// Returns only voice note messages + /// Data type for serialization /// - public class SearchMessagesFilterVoiceNote : SearchMessagesFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "searchMessagesFilterVoiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "searchMessagesFilterVoiceNote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Seconds.cs b/TdLib.Api/Objects/Seconds.cs index 5d2724ce..9f4cc889 100644 --- a/TdLib.Api/Objects/Seconds.cs +++ b/TdLib.Api/Objects/Seconds.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a value representing a number of seconds /// - public static partial class TdApi + public partial class Seconds : Object { /// - /// Contains a value representing a number of seconds + /// Data type for serialization /// - public partial class Seconds : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "seconds"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "seconds"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("seconds")] - public double? Seconds_ { get; set; } - } + /// + /// Number of seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("seconds")] + public double? Seconds_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SecretChat.cs b/TdLib.Api/Objects/SecretChat.cs index 0877c16a..b56b506d 100644 --- a/TdLib.Api/Objects/SecretChat.cs +++ b/TdLib.Api/Objects/SecretChat.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a secret chat /// - public static partial class TdApi + public partial class SecretChat : Object { /// - /// Represents a secret chat + /// Data type for serialization /// - public partial class SecretChat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "secretChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "secretChat"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Secret chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Secret chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Identifier of the chat partner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the chat partner + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// State of the secret chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public SecretChatState State { get; set; } + /// + /// State of the secret chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public SecretChatState State { get; set; } - /// - /// True, if the chat was created by the current user; false otherwise - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_outbound")] - public bool IsOutbound { get; set; } + /// + /// True, if the chat was created by the current user; false otherwise + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outbound")] + public bool IsOutbound { get; set; } - /// - /// Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("key_hash")] - public byte[] KeyHash { get; set; } + /// + /// Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("key_hash")] + public byte[] KeyHash { get; set; } - /// - /// Secret chat layer; determines features supported by the chat partner's application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101, - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("layer")] - public int Layer { get; set; } - } + /// + /// Secret chat layer; determines features supported by the chat partner's application. Nested text entities and underline and strikethrough entities are supported if the layer >= 101, + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("layer")] + public int Layer { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SecretChatStateClosed.cs b/TdLib.Api/Objects/SecretChatStateClosed.cs index bf7b6f2b..b04f6b44 100644 --- a/TdLib.Api/Objects/SecretChatStateClosed.cs +++ b/TdLib.Api/Objects/SecretChatStateClosed.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SecretChatState : Object { - public partial class SecretChatState : Object + /// + /// The secret chat is closed + /// + public class SecretChatStateClosed : SecretChatState { /// - /// The secret chat is closed + /// Data type for serialization /// - public class SecretChatStateClosed : SecretChatState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "secretChatStateClosed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "secretChatStateClosed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SecretChatStatePending.cs b/TdLib.Api/Objects/SecretChatStatePending.cs index 4fb289ca..46edb2f8 100644 --- a/TdLib.Api/Objects/SecretChatStatePending.cs +++ b/TdLib.Api/Objects/SecretChatStatePending.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SecretChatState : Object { - public partial class SecretChatState : Object + /// + /// Describes the current secret chat state + /// + public class SecretChatStatePending : SecretChatState { /// - /// Describes the current secret chat state + /// Data type for serialization /// - public class SecretChatStatePending : SecretChatState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "secretChatStatePending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "secretChatStatePending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SecretChatStateReady.cs b/TdLib.Api/Objects/SecretChatStateReady.cs index f61b8115..f7e89a57 100644 --- a/TdLib.Api/Objects/SecretChatStateReady.cs +++ b/TdLib.Api/Objects/SecretChatStateReady.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SecretChatState : Object { - public partial class SecretChatState : Object + /// + /// The secret chat is ready to use + /// + public class SecretChatStateReady : SecretChatState { /// - /// The secret chat is ready to use + /// Data type for serialization /// - public class SecretChatStateReady : SecretChatState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "secretChatStateReady"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "secretChatStateReady"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SentGiftRegular.cs b/TdLib.Api/Objects/SentGiftRegular.cs index 741059a8..9c4657e9 100644 --- a/TdLib.Api/Objects/SentGiftRegular.cs +++ b/TdLib.Api/Objects/SentGiftRegular.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SentGift : Object { - public partial class SentGift : Object + /// + /// Represents content of a gift received by a user or a channel chat + /// + public class SentGiftRegular : SentGift { /// - /// Represents content of a gift received by a user or a channel chat + /// Data type for serialization /// - public class SentGiftRegular : SentGift - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sentGiftRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sentGiftRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/SentGiftUpgraded.cs b/TdLib.Api/Objects/SentGiftUpgraded.cs index fe8060f6..72da1a23 100644 --- a/TdLib.Api/Objects/SentGiftUpgraded.cs +++ b/TdLib.Api/Objects/SentGiftUpgraded.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SentGift : Object { - public partial class SentGift : Object + /// + /// Upgraded gift + /// + public class SentGiftUpgraded : SentGift { /// - /// Upgraded gift + /// Data type for serialization /// - public class SentGiftUpgraded : SentGift - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sentGiftUpgraded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sentGiftUpgraded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/Session.cs b/TdLib.Api/Objects/Session.cs index 928e3263..dfbc01b0 100644 --- a/TdLib.Api/Objects/Session.cs +++ b/TdLib.Api/Objects/Session.cs @@ -2,156 +2,155 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order /// - public static partial class TdApi + public partial class Session : Object { /// - /// Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order - /// - public partial class Session : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "session"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Session identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// True, if this session is the current session - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_current")] - public bool IsCurrent { get; set; } - - /// - /// True, if a 2-step verification password is needed to complete authorization of the session - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_password_pending")] - public bool IsPasswordPending { get; set; } - - /// - /// True, if the session wasn't confirmed from another session - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_unconfirmed")] - public bool IsUnconfirmed { get; set; } - - /// - /// True, if incoming secret chats can be accepted by the session - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_accept_secret_chats")] - public bool CanAcceptSecretChats { get; set; } - - /// - /// True, if incoming calls can be accepted by the session - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_accept_calls")] - public bool CanAcceptCalls { get; set; } - - /// - /// Session device type based on the system and application version, which can be used to display a corresponding icon - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_type")] - public SessionDeviceType DeviceType { get; set; } - - /// - /// Telegram API identifier, as provided by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("api_id")] - public int ApiId { get; set; } - - /// - /// Name of the application, as provided by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("application_name")] - public string ApplicationName { get; set; } - - /// - /// The version of the application, as provided by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("application_version")] - public string ApplicationVersion { get; set; } - - /// - /// True, if the application is an official application or uses the api_id of an official application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_official_application")] - public bool IsOfficialApplication { get; set; } - - /// - /// Model of the device the application has been run or is running on, as provided by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_model")] - public string DeviceModel { get; set; } - - /// - /// Operating system the application has been run or is running on, as provided by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("platform")] - public string Platform { get; set; } - - /// - /// Version of the operating system the application has been run or is running on, as provided by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("system_version")] - public string SystemVersion { get; set; } - - /// - /// Point in time (Unix timestamp) when the user has logged in - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("log_in_date")] - public int LogInDate { get; set; } - - /// - /// Point in time (Unix timestamp) when the session was last used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_active_date")] - public int LastActiveDate { get; set; } - - /// - /// IP address from which the session was created, in human-readable format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ip_address")] - public string IpAddress { get; set; } - - /// - /// A human-readable description of the location from which the session was created, based on the IP address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public string Location { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "session"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Session identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// True, if this session is the current session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_current")] + public bool IsCurrent { get; set; } + + /// + /// True, if a 2-step verification password is needed to complete authorization of the session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_password_pending")] + public bool IsPasswordPending { get; set; } + + /// + /// True, if the session wasn't confirmed from another session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_unconfirmed")] + public bool IsUnconfirmed { get; set; } + + /// + /// True, if incoming secret chats can be accepted by the session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_accept_secret_chats")] + public bool CanAcceptSecretChats { get; set; } + + /// + /// True, if incoming calls can be accepted by the session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_accept_calls")] + public bool CanAcceptCalls { get; set; } + + /// + /// Session device type based on the system and application version, which can be used to display a corresponding icon + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_type")] + public SessionDeviceType DeviceType { get; set; } + + /// + /// Telegram API identifier, as provided by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("api_id")] + public int ApiId { get; set; } + + /// + /// Name of the application, as provided by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("application_name")] + public string ApplicationName { get; set; } + + /// + /// The version of the application, as provided by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("application_version")] + public string ApplicationVersion { get; set; } + + /// + /// True, if the application is an official application or uses the api_id of an official application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_official_application")] + public bool IsOfficialApplication { get; set; } + + /// + /// Model of the device the application has been run or is running on, as provided by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_model")] + public string DeviceModel { get; set; } + + /// + /// Operating system the application has been run or is running on, as provided by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("platform")] + public string Platform { get; set; } + + /// + /// Version of the operating system the application has been run or is running on, as provided by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("system_version")] + public string SystemVersion { get; set; } + + /// + /// Point in time (Unix timestamp) when the user has logged in + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("log_in_date")] + public int LogInDate { get; set; } + + /// + /// Point in time (Unix timestamp) when the session was last used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_active_date")] + public int LastActiveDate { get; set; } + + /// + /// IP address from which the session was created, in human-readable format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ip_address")] + public string IpAddress { get; set; } + + /// + /// A human-readable description of the location from which the session was created, based on the IP address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public string Location { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SessionDeviceTypeAndroid.cs b/TdLib.Api/Objects/SessionDeviceTypeAndroid.cs index d8ec33b0..84805a82 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeAndroid.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeAndroid.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// Represents the type of device from which session was created + /// + public class SessionDeviceTypeAndroid : SessionDeviceType { /// - /// Represents the type of device from which session was created + /// Data type for serialization /// - public class SessionDeviceTypeAndroid : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeAndroid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeAndroid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeApple.cs b/TdLib.Api/Objects/SessionDeviceTypeApple.cs index 8ca13244..e55cd315 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeApple.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeApple.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on a generic Apple device + /// + public class SessionDeviceTypeApple : SessionDeviceType { /// - /// The session is running on a generic Apple device + /// Data type for serialization /// - public class SessionDeviceTypeApple : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeApple"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeApple"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeBrave.cs b/TdLib.Api/Objects/SessionDeviceTypeBrave.cs index 09c39208..ad989c19 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeBrave.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeBrave.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on the Brave browser + /// + public class SessionDeviceTypeBrave : SessionDeviceType { /// - /// The session is running on the Brave browser + /// Data type for serialization /// - public class SessionDeviceTypeBrave : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeBrave"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeBrave"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeChrome.cs b/TdLib.Api/Objects/SessionDeviceTypeChrome.cs index 794d2f3e..346c16cb 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeChrome.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeChrome.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on the Chrome browser + /// + public class SessionDeviceTypeChrome : SessionDeviceType { /// - /// The session is running on the Chrome browser + /// Data type for serialization /// - public class SessionDeviceTypeChrome : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeChrome"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeChrome"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeEdge.cs b/TdLib.Api/Objects/SessionDeviceTypeEdge.cs index c9b22f1c..f6629519 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeEdge.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeEdge.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on the Edge browser + /// + public class SessionDeviceTypeEdge : SessionDeviceType { /// - /// The session is running on the Edge browser + /// Data type for serialization /// - public class SessionDeviceTypeEdge : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeEdge"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeEdge"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeFirefox.cs b/TdLib.Api/Objects/SessionDeviceTypeFirefox.cs index 1359f5d5..5fcb4321 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeFirefox.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeFirefox.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on the Firefox browser + /// + public class SessionDeviceTypeFirefox : SessionDeviceType { /// - /// The session is running on the Firefox browser + /// Data type for serialization /// - public class SessionDeviceTypeFirefox : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeFirefox"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeFirefox"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeIpad.cs b/TdLib.Api/Objects/SessionDeviceTypeIpad.cs index d85c6d0b..747b13e6 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeIpad.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeIpad.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on an iPad device + /// + public class SessionDeviceTypeIpad : SessionDeviceType { /// - /// The session is running on an iPad device + /// Data type for serialization /// - public class SessionDeviceTypeIpad : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeIpad"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeIpad"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeIphone.cs b/TdLib.Api/Objects/SessionDeviceTypeIphone.cs index 0ff7f7d2..ae62b055 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeIphone.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeIphone.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on an iPhone device + /// + public class SessionDeviceTypeIphone : SessionDeviceType { /// - /// The session is running on an iPhone device + /// Data type for serialization /// - public class SessionDeviceTypeIphone : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeIphone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeIphone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeLinux.cs b/TdLib.Api/Objects/SessionDeviceTypeLinux.cs index 71a03dc5..94f477ad 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeLinux.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeLinux.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on a Linux device + /// + public class SessionDeviceTypeLinux : SessionDeviceType { /// - /// The session is running on a Linux device + /// Data type for serialization /// - public class SessionDeviceTypeLinux : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeLinux"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeLinux"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeMac.cs b/TdLib.Api/Objects/SessionDeviceTypeMac.cs index 9479343f..4a9b907b 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeMac.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeMac.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on a Mac device + /// + public class SessionDeviceTypeMac : SessionDeviceType { /// - /// The session is running on a Mac device + /// Data type for serialization /// - public class SessionDeviceTypeMac : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeMac"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeMac"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeOpera.cs b/TdLib.Api/Objects/SessionDeviceTypeOpera.cs index 01541484..c3d88040 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeOpera.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeOpera.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on the Opera browser + /// + public class SessionDeviceTypeOpera : SessionDeviceType { /// - /// The session is running on the Opera browser + /// Data type for serialization /// - public class SessionDeviceTypeOpera : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeOpera"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeOpera"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeSafari.cs b/TdLib.Api/Objects/SessionDeviceTypeSafari.cs index 21a04620..a29a702e 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeSafari.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeSafari.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on the Safari browser + /// + public class SessionDeviceTypeSafari : SessionDeviceType { /// - /// The session is running on the Safari browser + /// Data type for serialization /// - public class SessionDeviceTypeSafari : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeSafari"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeSafari"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeUbuntu.cs b/TdLib.Api/Objects/SessionDeviceTypeUbuntu.cs index b07b5fb6..87ecf935 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeUbuntu.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeUbuntu.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on an Ubuntu device + /// + public class SessionDeviceTypeUbuntu : SessionDeviceType { /// - /// The session is running on an Ubuntu device + /// Data type for serialization /// - public class SessionDeviceTypeUbuntu : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeUbuntu"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeUbuntu"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeUnknown.cs b/TdLib.Api/Objects/SessionDeviceTypeUnknown.cs index b53a5e8b..a1742a0a 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeUnknown.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeUnknown.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on an unknown type of device + /// + public class SessionDeviceTypeUnknown : SessionDeviceType { /// - /// The session is running on an unknown type of device + /// Data type for serialization /// - public class SessionDeviceTypeUnknown : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeUnknown"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeUnknown"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeVivaldi.cs b/TdLib.Api/Objects/SessionDeviceTypeVivaldi.cs index 13ca09dc..d6cd37a5 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeVivaldi.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeVivaldi.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on the Vivaldi browser + /// + public class SessionDeviceTypeVivaldi : SessionDeviceType { /// - /// The session is running on the Vivaldi browser + /// Data type for serialization /// - public class SessionDeviceTypeVivaldi : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeVivaldi"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeVivaldi"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeWindows.cs b/TdLib.Api/Objects/SessionDeviceTypeWindows.cs index c04ad5ec..1ca6dc3b 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeWindows.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeWindows.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on a Windows device + /// + public class SessionDeviceTypeWindows : SessionDeviceType { /// - /// The session is running on a Windows device + /// Data type for serialization /// - public class SessionDeviceTypeWindows : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeWindows"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeWindows"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionDeviceTypeXbox.cs b/TdLib.Api/Objects/SessionDeviceTypeXbox.cs index 7c2c3aee..871f32d5 100644 --- a/TdLib.Api/Objects/SessionDeviceTypeXbox.cs +++ b/TdLib.Api/Objects/SessionDeviceTypeXbox.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionDeviceType : Object { - public partial class SessionDeviceType : Object + /// + /// The session is running on an Xbox console + /// + public class SessionDeviceTypeXbox : SessionDeviceType { /// - /// The session is running on an Xbox console + /// Data type for serialization /// - public class SessionDeviceTypeXbox : SessionDeviceType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionDeviceTypeXbox"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionDeviceTypeXbox"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SessionTypeConnectedBot.cs b/TdLib.Api/Objects/SessionTypeConnectedBot.cs index e4dcc9e6..a9e6de81 100644 --- a/TdLib.Api/Objects/SessionTypeConnectedBot.cs +++ b/TdLib.Api/Objects/SessionTypeConnectedBot.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionType : Object { - public partial class SessionType : Object + /// + /// A business bot connected to the current user's account + /// + public class SessionTypeConnectedBot : SessionType { /// - /// A business bot connected to the current user's account + /// Data type for serialization /// - public class SessionTypeConnectedBot : SessionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionTypeConnectedBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionTypeConnectedBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier of the bot. Use deleteBusinessConnectedBot to remove it or confirmBusinessConnectedBot to confirm it if it isn't confirmed yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// User identifier of the bot. Use deleteBusinessConnectedBot to remove it or confirmBusinessConnectedBot to confirm it if it isn't confirmed yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } } } } diff --git a/TdLib.Api/Objects/SessionTypeDevice.cs b/TdLib.Api/Objects/SessionTypeDevice.cs index f5ecdd7c..93ee51b3 100644 --- a/TdLib.Api/Objects/SessionTypeDevice.cs +++ b/TdLib.Api/Objects/SessionTypeDevice.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SessionType : Object { - public partial class SessionType : Object + /// + /// Describes type of user session + /// + public class SessionTypeDevice : SessionType { /// - /// Describes type of user session + /// Data type for serialization /// - public class SessionTypeDevice : SessionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessionTypeDevice"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessionTypeDevice"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the session. Use terminateSession to terminate it or confirmSession to confirm it if it isn't confirmed yet - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("session_id")] - public long SessionId { get; set; } - } + /// + /// Unique identifier of the session. Use terminateSession to terminate it or confirmSession to confirm it if it isn't confirmed yet + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } } } } diff --git a/TdLib.Api/Objects/Sessions.cs b/TdLib.Api/Objects/Sessions.cs index 16aa1bda..dd0bddf0 100644 --- a/TdLib.Api/Objects/Sessions.cs +++ b/TdLib.Api/Objects/Sessions.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of sessions /// - public static partial class TdApi + public partial class Sessions : Object { /// - /// Contains a list of sessions + /// Data type for serialization /// - public partial class Sessions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sessions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sessions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of sessions - /// - [JsonProperty("sessions", ItemConverterType = typeof(Converter))] - public Session[] Sessions_ { get; set; } + /// + /// List of sessions + /// + [JsonProperty("sessions", ItemConverterType = typeof(Converter))] + public Session[] Sessions_ { get; set; } - /// - /// Number of days of inactivity before sessions will automatically be terminated; 1-366 days - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inactive_session_ttl_days")] - public int InactiveSessionTtlDays { get; set; } - } + /// + /// Number of days of inactivity before sessions will automatically be terminated; 1-366 days + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inactive_session_ttl_days")] + public int InactiveSessionTtlDays { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SettingsSectionAppearance.cs b/TdLib.Api/Objects/SettingsSectionAppearance.cs index 0016bb9d..a5e937f3 100644 --- a/TdLib.Api/Objects/SettingsSectionAppearance.cs +++ b/TdLib.Api/Objects/SettingsSectionAppearance.cs @@ -2,49 +2,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// Describes a section of the application settings + /// + public class SettingsSectionAppearance : SettingsSection { /// - /// Describes a section of the application settings + /// Data type for serialization /// - public class SettingsSectionAppearance : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionAppearance"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionAppearance"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "themes", "themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", - /// "wallpapers/choose-photo", "your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", - /// "your-color/profile/reset", "your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", - /// "night-mode", "auto-night-mode", "text-size", "text-size/use-system", "message-corners", "animations", - /// "stickers-and-emoji", "stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived", - /// "stickers-and-emoji/archived/edit", "stickers-and-emoji/emoji", "stickers-and-emoji/emoji/edit", - /// "stickers-and-emoji/emoji/archived", "stickers-and-emoji/emoji/archived/edit", "stickers-and-emoji/emoji/suggest", - /// "stickers-and-emoji/emoji/quick-reaction", "stickers-and-emoji/emoji/quick-reaction/choose", - /// "stickers-and-emoji/suggest-by-emoji", "stickers-and-emoji/large-emoji", "stickers-and-emoji/dynamic-order", - /// "stickers-and-emoji/emoji/show-more", "app-icon", "tap-for-next-media" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "themes", "themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", + /// "wallpapers/choose-photo", "your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", + /// "your-color/profile/reset", "your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", + /// "night-mode", "auto-night-mode", "text-size", "text-size/use-system", "message-corners", "animations", + /// "stickers-and-emoji", "stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived", + /// "stickers-and-emoji/archived/edit", "stickers-and-emoji/emoji", "stickers-and-emoji/emoji/edit", + /// "stickers-and-emoji/emoji/archived", "stickers-and-emoji/emoji/archived/edit", "stickers-and-emoji/emoji/suggest", + /// "stickers-and-emoji/emoji/quick-reaction", "stickers-and-emoji/emoji/quick-reaction/choose", + /// "stickers-and-emoji/suggest-by-emoji", "stickers-and-emoji/large-emoji", "stickers-and-emoji/dynamic-order", + /// "stickers-and-emoji/emoji/show-more", "app-icon", "tap-for-next-media" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionAskQuestion.cs b/TdLib.Api/Objects/SettingsSectionAskQuestion.cs index 3b3a9388..e95017aa 100644 --- a/TdLib.Api/Objects/SettingsSectionAskQuestion.cs +++ b/TdLib.Api/Objects/SettingsSectionAskQuestion.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The "Ask a question" section + /// + public class SettingsSectionAskQuestion : SettingsSection { /// - /// The "Ask a question" section + /// Data type for serialization /// - public class SettingsSectionAskQuestion : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionAskQuestion"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionAskQuestion"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SettingsSectionBusiness.cs b/TdLib.Api/Objects/SettingsSectionBusiness.cs index 4bde32cc..68bd1616 100644 --- a/TdLib.Api/Objects/SettingsSectionBusiness.cs +++ b/TdLib.Api/Objects/SettingsSectionBusiness.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The "Telegram Business" section + /// + public class SettingsSectionBusiness : SettingsSection { /// - /// The "Telegram Business" section + /// Data type for serialization /// - public class SettingsSectionBusiness : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionBusiness"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionBusiness"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "do-not-hide-ads" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "do-not-hide-ads" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionChatFolders.cs b/TdLib.Api/Objects/SettingsSectionChatFolders.cs index c96310e4..9378815f 100644 --- a/TdLib.Api/Objects/SettingsSectionChatFolders.cs +++ b/TdLib.Api/Objects/SettingsSectionChatFolders.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The chat folder settings section + /// + public class SettingsSectionChatFolders : SettingsSection { /// - /// The chat folder settings section + /// Data type for serialization /// - public class SettingsSectionChatFolders : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionChatFolders"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionChatFolders"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "edit", "create", "add-recommended", "show-tags", "tab-view" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "edit", "create", "add-recommended", "show-tags", "tab-view" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionDataAndStorage.cs b/TdLib.Api/Objects/SettingsSectionDataAndStorage.cs index 327e42d1..a8bcede5 100644 --- a/TdLib.Api/Objects/SettingsSectionDataAndStorage.cs +++ b/TdLib.Api/Objects/SettingsSectionDataAndStorage.cs @@ -2,55 +2,54 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The data and storage settings section + /// + public class SettingsSectionDataAndStorage : SettingsSection { /// - /// The data and storage settings section + /// Data type for serialization /// - public class SettingsSectionDataAndStorage : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionDataAndStorage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionDataAndStorage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "storage", "storage/edit", "storage/auto-remove", "storage/clear-cache", "storage/max-cache", "usage", - /// "usage/mobile", "usage/wifi", "usage/reset", "usage/roaming", "auto-download/mobile", - /// "auto-download/mobile/enable", "auto-download/mobile/usage", "auto-download/mobile/photos", - /// "auto-download/mobile/stories", "auto-download/mobile/videos", "auto-download/mobile/files", "auto-download/wifi", - /// "auto-download/wifi/enable", "auto-download/wifi/usage", "auto-download/wifi/photos", - /// "auto-download/wifi/stories", "auto-download/wifi/videos", "auto-download/wifi/files", "auto-download/roaming", - /// "auto-download/roaming/enable", "auto-download/roaming/usage", "auto-download/roaming/photos", - /// "auto-download/roaming/stories", "auto-download/roaming/videos", "auto-download/roaming/files", - /// "auto-download/reset", "save-to-photos/chats", "save-to-photos/chats/max-video-size", - /// "save-to-photos/chats/add-exception", "save-to-photos/chats/delete-all", "save-to-photos/groups", - /// "save-to-photos/groups/max-video-size", "save-to-photos/groups/add-exception", "save-to-photos/groups/delete-all", - /// "save-to-photos/channels", "save-to-photos/channels/max-video-size", "save-to-photos/channels/add-exception", - /// "save-to-photos/channels/delete-all", "less-data-calls", "open-links", "share-sheet", - /// "share-sheet/suggested-chats", "share-sheet/suggest-by", "share-sheet/reset", "saved-edited-photos", - /// "pause-music", "raise-to-listen", "raise-to-speak", "show-18-content", "proxy", "proxy/edit", "proxy/use-proxy", - /// "proxy/add-proxy", "proxy/share-list", "proxy/use-for-calls" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "storage", "storage/edit", "storage/auto-remove", "storage/clear-cache", "storage/max-cache", "usage", + /// "usage/mobile", "usage/wifi", "usage/reset", "usage/roaming", "auto-download/mobile", + /// "auto-download/mobile/enable", "auto-download/mobile/usage", "auto-download/mobile/photos", + /// "auto-download/mobile/stories", "auto-download/mobile/videos", "auto-download/mobile/files", "auto-download/wifi", + /// "auto-download/wifi/enable", "auto-download/wifi/usage", "auto-download/wifi/photos", + /// "auto-download/wifi/stories", "auto-download/wifi/videos", "auto-download/wifi/files", "auto-download/roaming", + /// "auto-download/roaming/enable", "auto-download/roaming/usage", "auto-download/roaming/photos", + /// "auto-download/roaming/stories", "auto-download/roaming/videos", "auto-download/roaming/files", + /// "auto-download/reset", "save-to-photos/chats", "save-to-photos/chats/max-video-size", + /// "save-to-photos/chats/add-exception", "save-to-photos/chats/delete-all", "save-to-photos/groups", + /// "save-to-photos/groups/max-video-size", "save-to-photos/groups/add-exception", "save-to-photos/groups/delete-all", + /// "save-to-photos/channels", "save-to-photos/channels/max-video-size", "save-to-photos/channels/add-exception", + /// "save-to-photos/channels/delete-all", "less-data-calls", "open-links", "share-sheet", + /// "share-sheet/suggested-chats", "share-sheet/suggest-by", "share-sheet/reset", "saved-edited-photos", + /// "pause-music", "raise-to-listen", "raise-to-speak", "show-18-content", "proxy", "proxy/edit", "proxy/use-proxy", + /// "proxy/add-proxy", "proxy/share-list", "proxy/use-for-calls" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionDevices.cs b/TdLib.Api/Objects/SettingsSectionDevices.cs index 368be747..5a265a97 100644 --- a/TdLib.Api/Objects/SettingsSectionDevices.cs +++ b/TdLib.Api/Objects/SettingsSectionDevices.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The Devices section + /// + public class SettingsSectionDevices : SettingsSection { /// - /// The Devices section + /// Data type for serialization /// - public class SettingsSectionDevices : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionDevices"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionDevices"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "edit", "link-desktop", "terminate-sessions", "auto-terminate" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "edit", "link-desktop", "terminate-sessions", "auto-terminate" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionEditProfile.cs b/TdLib.Api/Objects/SettingsSectionEditProfile.cs index d10a551a..f306fc8f 100644 --- a/TdLib.Api/Objects/SettingsSectionEditProfile.cs +++ b/TdLib.Api/Objects/SettingsSectionEditProfile.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The profile edit section + /// + public class SettingsSectionEditProfile : SettingsSection { /// - /// The profile edit section + /// Data type for serialization /// - public class SettingsSectionEditProfile : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionEditProfile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionEditProfile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "set-photo", "first-name", "last-name", "emoji-status", "bio", "birthday", "change-number", "username", - /// "your-color", "channel", "add-account", "log-out", "profile-color/profile", "profile-color/profile/add-icons", - /// "profile-color/profile/use-gift", "profile-color/name", "profile-color/name/add-icons", - /// "profile-color/name/use-gift", "profile-photo/use-emoji" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "set-photo", "first-name", "last-name", "emoji-status", "bio", "birthday", "change-number", "username", + /// "your-color", "channel", "add-account", "log-out", "profile-color/profile", "profile-color/profile/add-icons", + /// "profile-color/profile/use-gift", "profile-color/name", "profile-color/name/add-icons", + /// "profile-color/name/use-gift", "profile-photo/use-emoji" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionFaq.cs b/TdLib.Api/Objects/SettingsSectionFaq.cs index 73ed4ad4..ae056f3d 100644 --- a/TdLib.Api/Objects/SettingsSectionFaq.cs +++ b/TdLib.Api/Objects/SettingsSectionFaq.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The FAQ section + /// + public class SettingsSectionFaq : SettingsSection { /// - /// The FAQ section + /// Data type for serialization /// - public class SettingsSectionFaq : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionFaq"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionFaq"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SettingsSectionFeatures.cs b/TdLib.Api/Objects/SettingsSectionFeatures.cs index a1ddc0e6..484eb032 100644 --- a/TdLib.Api/Objects/SettingsSectionFeatures.cs +++ b/TdLib.Api/Objects/SettingsSectionFeatures.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The "Telegram Features" section + /// + public class SettingsSectionFeatures : SettingsSection { /// - /// The "Telegram Features" section + /// Data type for serialization /// - public class SettingsSectionFeatures : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionFeatures"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionFeatures"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SettingsSectionInAppBrowser.cs b/TdLib.Api/Objects/SettingsSectionInAppBrowser.cs index 21c3f5f8..a7764917 100644 --- a/TdLib.Api/Objects/SettingsSectionInAppBrowser.cs +++ b/TdLib.Api/Objects/SettingsSectionInAppBrowser.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The in-app browser settings section + /// + public class SettingsSectionInAppBrowser : SettingsSection { /// - /// The in-app browser settings section + /// Data type for serialization /// - public class SettingsSectionInAppBrowser : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionInAppBrowser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionInAppBrowser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "enable-browser", "clear-cookies", "clear-cache", "history", "clear-history", "never-open", "clear-list", "search" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "enable-browser", "clear-cookies", "clear-cache", "history", "clear-history", "never-open", "clear-list", "search" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionLanguage.cs b/TdLib.Api/Objects/SettingsSectionLanguage.cs index a8df285e..8ecf5122 100644 --- a/TdLib.Api/Objects/SettingsSectionLanguage.cs +++ b/TdLib.Api/Objects/SettingsSectionLanguage.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The application language section + /// + public class SettingsSectionLanguage : SettingsSection { /// - /// The application language section + /// Data type for serialization /// - public class SettingsSectionLanguage : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionLanguage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionLanguage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of "", "show-button" for Show Translate Button toggle, - /// "translate-chats" for Translate Entire Chats toggle, "do-not-translate" - for Do Not Translate language list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of "", "show-button" for Show Translate Button toggle, + /// "translate-chats" for Translate Entire Chats toggle, "do-not-translate" - for Do Not Translate language list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionMyGrams.cs b/TdLib.Api/Objects/SettingsSectionMyGrams.cs index 2da66381..3d8b8608 100644 --- a/TdLib.Api/Objects/SettingsSectionMyGrams.cs +++ b/TdLib.Api/Objects/SettingsSectionMyGrams.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The TON Gram balance and transaction section + /// + public class SettingsSectionMyGrams : SettingsSection { /// - /// The TON Gram balance and transaction section + /// Data type for serialization /// - public class SettingsSectionMyGrams : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionMyGrams"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionMyGrams"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SettingsSectionMyStars.cs b/TdLib.Api/Objects/SettingsSectionMyStars.cs index 2bacf8b0..653bfcf4 100644 --- a/TdLib.Api/Objects/SettingsSectionMyStars.cs +++ b/TdLib.Api/Objects/SettingsSectionMyStars.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The Telegram Star balance and transaction section + /// + public class SettingsSectionMyStars : SettingsSection { /// - /// The Telegram Star balance and transaction section + /// Data type for serialization /// - public class SettingsSectionMyStars : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionMyStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionMyStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "top-up", "stats", "gift", "earn" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "top-up", "stats", "gift", "earn" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionNotifications.cs b/TdLib.Api/Objects/SettingsSectionNotifications.cs index c78b46b4..4b11e6bf 100644 --- a/TdLib.Api/Objects/SettingsSectionNotifications.cs +++ b/TdLib.Api/Objects/SettingsSectionNotifications.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The notification settings section + /// + public class SettingsSectionNotifications : SettingsSection { /// - /// The notification settings section + /// Data type for serialization /// - public class SettingsSectionNotifications : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionNotifications"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionNotifications"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "accounts", "private-chats", "private-chats/edit", "private-chats/show", "private-chats/preview", - /// "private-chats/sound", "private-chats/add-exception", "private-chats/delete-exceptions", - /// "private-chats/light-color", "private-chats/vibrate", "private-chats/priority", "groups", "groups/edit", - /// "groups/show", "groups/preview", "groups/sound", "groups/add-exception", "groups/delete-exceptions", - /// "groups/light-color", "groups/vibrate", "groups/priority", "channels", "channels/edit", "channels/show", - /// "channels/preview", "channels/sound", "channels/add-exception", "channels/delete-exceptions", - /// "channels/light-color", "channels/vibrate", "channels/priority", "stories", "stories/new", "stories/important", - /// "stories/show-sender", "stories/sound", "stories/add-exception", "stories/delete-exceptions", - /// "stories/light-color", "stories/vibrate", "stories/priority", "reactions", "reactions/messages", - /// "reactions/stories", "reactions/show-sender", "reactions/sound", "reactions/light-color", "reactions/vibrate", - /// "reactions/priority", "in-app-sounds", "in-app-vibrate", "in-app-preview", "in-chat-sounds", "in-app-popup", - /// "lock-screen-names", "include-channels", "include-muted-chats", "count-unread-messages", "new-contacts", - /// "pinned-messages", "reset", "web" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "accounts", "private-chats", "private-chats/edit", "private-chats/show", "private-chats/preview", + /// "private-chats/sound", "private-chats/add-exception", "private-chats/delete-exceptions", + /// "private-chats/light-color", "private-chats/vibrate", "private-chats/priority", "groups", "groups/edit", + /// "groups/show", "groups/preview", "groups/sound", "groups/add-exception", "groups/delete-exceptions", + /// "groups/light-color", "groups/vibrate", "groups/priority", "channels", "channels/edit", "channels/show", + /// "channels/preview", "channels/sound", "channels/add-exception", "channels/delete-exceptions", + /// "channels/light-color", "channels/vibrate", "channels/priority", "stories", "stories/new", "stories/important", + /// "stories/show-sender", "stories/sound", "stories/add-exception", "stories/delete-exceptions", + /// "stories/light-color", "stories/vibrate", "stories/priority", "reactions", "reactions/messages", + /// "reactions/stories", "reactions/show-sender", "reactions/sound", "reactions/light-color", "reactions/vibrate", + /// "reactions/priority", "in-app-sounds", "in-app-vibrate", "in-app-preview", "in-chat-sounds", "in-app-popup", + /// "lock-screen-names", "include-channels", "include-muted-chats", "count-unread-messages", "new-contacts", + /// "pinned-messages", "reset", "web" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionPowerSaving.cs b/TdLib.Api/Objects/SettingsSectionPowerSaving.cs index 340795c0..8597c152 100644 --- a/TdLib.Api/Objects/SettingsSectionPowerSaving.cs +++ b/TdLib.Api/Objects/SettingsSectionPowerSaving.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The power saving settings section + /// + public class SettingsSectionPowerSaving : SettingsSection { /// - /// The power saving settings section + /// Data type for serialization /// - public class SettingsSectionPowerSaving : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionPowerSaving"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionPowerSaving"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "videos", "gifs", "stickers", "emoji", "effects", "preload", "background", "call-animations", "particles", "transitions" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "videos", "gifs", "stickers", "emoji", "effects", "preload", "background", "call-animations", "particles", "transitions" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionPremium.cs b/TdLib.Api/Objects/SettingsSectionPremium.cs index 380e0611..257204cc 100644 --- a/TdLib.Api/Objects/SettingsSectionPremium.cs +++ b/TdLib.Api/Objects/SettingsSectionPremium.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The "Telegram Premium" section + /// + public class SettingsSectionPremium : SettingsSection { /// - /// The "Telegram Premium" section + /// Data type for serialization /// - public class SettingsSectionPremium : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionPremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionPremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SettingsSectionPrivacyAndSecurity.cs b/TdLib.Api/Objects/SettingsSectionPrivacyAndSecurity.cs index 9e0d1f2e..69f8a3da 100644 --- a/TdLib.Api/Objects/SettingsSectionPrivacyAndSecurity.cs +++ b/TdLib.Api/Objects/SettingsSectionPrivacyAndSecurity.cs @@ -2,54 +2,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The privacy and security section + /// + public class SettingsSectionPrivacyAndSecurity : SettingsSection { /// - /// The privacy and security section + /// Data type for serialization /// - public class SettingsSectionPrivacyAndSecurity : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionPrivacyAndSecurity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionPrivacyAndSecurity"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "blocked", "blocked/edit", "blocked/block-user", "blocked/block-user/chats", "blocked/block-user/contacts", - /// "active-websites", "active-websites/edit", "active-websites/disconnect-all", "passcode", "passcode/disable", - /// "passcode/change", "passcode/auto-lock", "passcode/face-id", "passcode/fingerprint", "2sv", "2sv/change", - /// "2sv/disable", "2sv/change-email", "passkey", "passkey/create", "auto-delete", "auto-delete/set-custom", - /// "login-email", "phone-number", "phone-number/never", "phone-number/always", "last-seen", "last-seen/never", - /// "last-seen/always", "last-seen/hide-read-time", "profile-photos", "profile-photos/never", "profile-photos/always", - /// "profile-photos/set-public", "profile-photos/update-public", "profile-photos/remove-public", "bio", "bio/never", - /// "bio/always", "gifts", "gifts/show-icon", "gifts/never", "gifts/always", "gifts/accepted-types", "birthday", - /// "birthday/add", "birthday/never", "birthday/always", "saved-music", "saved-music/never", "saved-music/always", - /// "forwards", "forwards/never", "forwards/always", "calls", "calls/never", "calls/always", "calls/p2p", - /// "calls/p2p/never", "calls/p2p/always", "calls/ios-integration", "voice", "voice/never", "voice/always", - /// "messages", "messages/set-price", "messages/exceptions", "invites", "invites/never", "invites/always", - /// "self-destruct", "data-settings", "data-settings/sync-contacts", "data-settings/delete-synced", - /// "data-settings/suggest-contacts", "data-settings/delete-cloud-drafts", "data-settings/clear-payment-info", - /// "data-settings/link-previews", "data-settings/bot-settings", "data-settings/map-provider", "archive-and-mute" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "blocked", "blocked/edit", "blocked/block-user", "blocked/block-user/chats", "blocked/block-user/contacts", + /// "active-websites", "active-websites/edit", "active-websites/disconnect-all", "passcode", "passcode/disable", + /// "passcode/change", "passcode/auto-lock", "passcode/face-id", "passcode/fingerprint", "2sv", "2sv/change", + /// "2sv/disable", "2sv/change-email", "passkey", "passkey/create", "auto-delete", "auto-delete/set-custom", + /// "login-email", "phone-number", "phone-number/never", "phone-number/always", "last-seen", "last-seen/never", + /// "last-seen/always", "last-seen/hide-read-time", "profile-photos", "profile-photos/never", "profile-photos/always", + /// "profile-photos/set-public", "profile-photos/update-public", "profile-photos/remove-public", "bio", "bio/never", + /// "bio/always", "gifts", "gifts/show-icon", "gifts/never", "gifts/always", "gifts/accepted-types", "birthday", + /// "birthday/add", "birthday/never", "birthday/always", "saved-music", "saved-music/never", "saved-music/always", + /// "forwards", "forwards/never", "forwards/always", "calls", "calls/never", "calls/always", "calls/p2p", + /// "calls/p2p/never", "calls/p2p/always", "calls/ios-integration", "voice", "voice/never", "voice/always", + /// "messages", "messages/set-price", "messages/exceptions", "invites", "invites/never", "invites/always", + /// "self-destruct", "data-settings", "data-settings/sync-contacts", "data-settings/delete-synced", + /// "data-settings/suggest-contacts", "data-settings/delete-cloud-drafts", "data-settings/clear-payment-info", + /// "data-settings/link-previews", "data-settings/bot-settings", "data-settings/map-provider", "archive-and-mute" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionPrivacyPolicy.cs b/TdLib.Api/Objects/SettingsSectionPrivacyPolicy.cs index 3b0398a6..e8d02479 100644 --- a/TdLib.Api/Objects/SettingsSectionPrivacyPolicy.cs +++ b/TdLib.Api/Objects/SettingsSectionPrivacyPolicy.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The "Privacy Policy" section + /// + public class SettingsSectionPrivacyPolicy : SettingsSection { /// - /// The "Privacy Policy" section + /// Data type for serialization /// - public class SettingsSectionPrivacyPolicy : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionPrivacyPolicy"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionPrivacyPolicy"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SettingsSectionQrCode.cs b/TdLib.Api/Objects/SettingsSectionQrCode.cs index 00961989..68d4ae4f 100644 --- a/TdLib.Api/Objects/SettingsSectionQrCode.cs +++ b/TdLib.Api/Objects/SettingsSectionQrCode.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The current user's QR code section + /// + public class SettingsSectionQrCode : SettingsSection { /// - /// The current user's QR code section + /// Data type for serialization /// - public class SettingsSectionQrCode : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionQrCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionQrCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "share", "scan" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "share", "scan" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SettingsSectionSearch.cs b/TdLib.Api/Objects/SettingsSectionSearch.cs index 597e9320..30c180fb 100644 --- a/TdLib.Api/Objects/SettingsSectionSearch.cs +++ b/TdLib.Api/Objects/SettingsSectionSearch.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// Search in Settings + /// + public class SettingsSectionSearch : SettingsSection { /// - /// Search in Settings + /// Data type for serialization /// - public class SettingsSectionSearch : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionSearch"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionSearch"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SettingsSectionSendGift.cs b/TdLib.Api/Objects/SettingsSectionSendGift.cs index 1c0d9e7b..626ff5c2 100644 --- a/TdLib.Api/Objects/SettingsSectionSendGift.cs +++ b/TdLib.Api/Objects/SettingsSectionSendGift.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SettingsSection : Object { - public partial class SettingsSection : Object + /// + /// The "Send a gift" section + /// + public class SettingsSectionSendGift : SettingsSection { /// - /// The "Send a gift" section + /// Data type for serialization /// - public class SettingsSectionSendGift : SettingsSection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "settingsSectionSendGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "settingsSectionSendGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Subsection of the section; may be one of - /// "", "self" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subsection")] - public string Subsection { get; set; } - } + /// + /// Subsection of the section; may be one of + /// "", "self" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subsection")] + public string Subsection { get; set; } } } } diff --git a/TdLib.Api/Objects/SharedChat.cs b/TdLib.Api/Objects/SharedChat.cs index 5954d854..bcb2cb06 100644 --- a/TdLib.Api/Objects/SharedChat.cs +++ b/TdLib.Api/Objects/SharedChat.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a chat shared with a bot /// - public static partial class TdApi + public partial class SharedChat : Object { /// - /// Contains information about a chat shared with a bot + /// Data type for serialization /// - public partial class SharedChat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sharedChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sharedChat"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Title of the chat; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the chat; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Username of the chat; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Username of the chat; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } - /// - /// Photo of the chat; for bots only; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// Photo of the chat; for bots only; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SharedUser.cs b/TdLib.Api/Objects/SharedUser.cs index 91b7753f..a5f38d42 100644 --- a/TdLib.Api/Objects/SharedUser.cs +++ b/TdLib.Api/Objects/SharedUser.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a user shared with a bot /// - public static partial class TdApi + public partial class SharedUser : Object { /// - /// Contains information about a user shared with a bot + /// Data type for serialization /// - public partial class SharedUser : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sharedUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sharedUser"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// First name of the user; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } + /// + /// First name of the user; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } - /// - /// Last name of the user; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } + /// + /// Last name of the user; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } - /// - /// Username of the user; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("username")] - public string Username { get; set; } + /// + /// Username of the user; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } - /// - /// Profile photo of the user; for bots only; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// Profile photo of the user; for bots only; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ShippingOption.cs b/TdLib.Api/Objects/ShippingOption.cs index 8760aaa7..97177769 100644 --- a/TdLib.Api/Objects/ShippingOption.cs +++ b/TdLib.Api/Objects/ShippingOption.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// One shipping option /// - public static partial class TdApi + public partial class ShippingOption : Object { /// - /// One shipping option + /// Data type for serialization /// - public partial class ShippingOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "shippingOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "shippingOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Shipping option identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Shipping option identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Option title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Option title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// A list of objects used to calculate the total shipping costs - /// - [JsonProperty("price_parts", ItemConverterType = typeof(Converter))] - public LabeledPricePart[] PriceParts { get; set; } - } + /// + /// A list of objects used to calculate the total shipping costs + /// + [JsonProperty("price_parts", ItemConverterType = typeof(Converter))] + public LabeledPricePart[] PriceParts { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SpeechRecognitionResultError.cs b/TdLib.Api/Objects/SpeechRecognitionResultError.cs index d783f677..caacd2bf 100644 --- a/TdLib.Api/Objects/SpeechRecognitionResultError.cs +++ b/TdLib.Api/Objects/SpeechRecognitionResultError.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SpeechRecognitionResult : Object { - public partial class SpeechRecognitionResult : Object + /// + /// The speech recognition failed + /// + public class SpeechRecognitionResultError : SpeechRecognitionResult { /// - /// The speech recognition failed + /// Data type for serialization /// - public class SpeechRecognitionResultError : SpeechRecognitionResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "speechRecognitionResultError"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "speechRecognitionResultError"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Recognition error. An error with a message "MSG_VOICE_TOO_LONG" is returned when media duration is too big to be recognized - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } - } + /// + /// Recognition error. An error with a message "MSG_VOICE_TOO_LONG" is returned when media duration is too big to be recognized + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } } } } diff --git a/TdLib.Api/Objects/SpeechRecognitionResultPending.cs b/TdLib.Api/Objects/SpeechRecognitionResultPending.cs index 580a8162..20ca0241 100644 --- a/TdLib.Api/Objects/SpeechRecognitionResultPending.cs +++ b/TdLib.Api/Objects/SpeechRecognitionResultPending.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SpeechRecognitionResult : Object { - public partial class SpeechRecognitionResult : Object + /// + /// Describes result of speech recognition in a voice note + /// + public class SpeechRecognitionResultPending : SpeechRecognitionResult { /// - /// Describes result of speech recognition in a voice note + /// Data type for serialization /// - public class SpeechRecognitionResultPending : SpeechRecognitionResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "speechRecognitionResultPending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "speechRecognitionResultPending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Partially recognized text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("partial_text")] - public string PartialText { get; set; } - } + /// + /// Partially recognized text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("partial_text")] + public string PartialText { get; set; } } } } diff --git a/TdLib.Api/Objects/SpeechRecognitionResultText.cs b/TdLib.Api/Objects/SpeechRecognitionResultText.cs index f4d251d1..f4d0f1d4 100644 --- a/TdLib.Api/Objects/SpeechRecognitionResultText.cs +++ b/TdLib.Api/Objects/SpeechRecognitionResultText.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SpeechRecognitionResult : Object { - public partial class SpeechRecognitionResult : Object + /// + /// The speech recognition successfully finished + /// + public class SpeechRecognitionResultText : SpeechRecognitionResult { /// - /// The speech recognition successfully finished + /// Data type for serialization /// - public class SpeechRecognitionResultText : SpeechRecognitionResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "speechRecognitionResultText"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "speechRecognitionResultText"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Recognized text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } - } + /// + /// Recognized text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } } } } diff --git a/TdLib.Api/Objects/SponsoredChat.cs b/TdLib.Api/Objects/SponsoredChat.cs index 70bc23ad..43d1a03d 100644 --- a/TdLib.Api/Objects/SponsoredChat.cs +++ b/TdLib.Api/Objects/SponsoredChat.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a sponsored chat /// - public static partial class TdApi + public partial class SponsoredChat : Object { /// - /// Describes a sponsored chat + /// Data type for serialization /// - public partial class SponsoredChat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sponsoredChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sponsoredChat"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of this result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unique_id")] - public long UniqueId { get; set; } + /// + /// Unique identifier of this result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unique_id")] + public long UniqueId { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Additional optional information about the sponsor to be shown along with the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sponsor_info")] - public string SponsorInfo { get; set; } + /// + /// Additional optional information about the sponsor to be shown along with the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sponsor_info")] + public string SponsorInfo { get; set; } - /// - /// If non-empty, additional information about the sponsored chat to be shown along with the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("additional_info")] - public string AdditionalInfo { get; set; } - } + /// + /// If non-empty, additional information about the sponsored chat to be shown along with the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("additional_info")] + public string AdditionalInfo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SponsoredChats.cs b/TdLib.Api/Objects/SponsoredChats.cs index 872b0ce7..ec7b0be5 100644 --- a/TdLib.Api/Objects/SponsoredChats.cs +++ b/TdLib.Api/Objects/SponsoredChats.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of sponsored chats /// - public static partial class TdApi + public partial class SponsoredChats : Object { /// - /// Contains a list of sponsored chats + /// Data type for serialization /// - public partial class SponsoredChats : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sponsoredChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sponsoredChats"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of sponsored chats - /// - [JsonProperty("chats", ItemConverterType = typeof(Converter))] - public SponsoredChat[] Chats { get; set; } - } + /// + /// List of sponsored chats + /// + [JsonProperty("chats", ItemConverterType = typeof(Converter))] + public SponsoredChat[] Chats { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SponsoredMessage.cs b/TdLib.Api/Objects/SponsoredMessage.cs index 17aca497..a0c5feb9 100644 --- a/TdLib.Api/Objects/SponsoredMessage.cs +++ b/TdLib.Api/Objects/SponsoredMessage.cs @@ -2,101 +2,100 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a sponsored message /// - public static partial class TdApi + public partial class SponsoredMessage : Object { /// - /// Describes a sponsored message + /// Data type for serialization /// - public partial class SponsoredMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sponsoredMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sponsoredMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// True, if the message needs to be labeled as "recommended" instead of "sponsored" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_recommended")] - public bool IsRecommended { get; set; } + /// + /// True, if the message needs to be labeled as "recommended" instead of "sponsored" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_recommended")] + public bool IsRecommended { get; set; } - /// - /// True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_reported")] - public bool CanBeReported { get; set; } + /// + /// True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_reported")] + public bool CanBeReported { get; set; } - /// - /// Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen. - /// The content must be fully downloaded before the message is shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } + /// + /// Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen. + /// The content must be fully downloaded before the message is shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } - /// - /// Information about the sponsor of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sponsor")] - public AdvertisementSponsor Sponsor { get; set; } + /// + /// Information about the sponsor of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sponsor")] + public AdvertisementSponsor Sponsor { get; set; } - /// - /// Title of the sponsored message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the sponsored message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Text for the message action button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_text")] - public string ButtonText { get; set; } + /// + /// Text for the message action button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_text")] + public string ButtonText { get; set; } - /// - /// Identifier of the accent color for title, button text and message background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } + /// + /// Identifier of the accent color for title, button text and message background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } - /// - /// Identifier of a custom emoji to be shown on the message background; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_custom_emoji_id")] - public long BackgroundCustomEmojiId { get; set; } + /// + /// Identifier of a custom emoji to be shown on the message background; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_custom_emoji_id")] + public long BackgroundCustomEmojiId { get; set; } - /// - /// If non-empty, additional information about the sponsored message to be shown along with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("additional_info")] - public string AdditionalInfo { get; set; } - } + /// + /// If non-empty, additional information about the sponsored message to be shown along with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("additional_info")] + public string AdditionalInfo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SponsoredMessages.cs b/TdLib.Api/Objects/SponsoredMessages.cs index 32709d50..c5d95e74 100644 --- a/TdLib.Api/Objects/SponsoredMessages.cs +++ b/TdLib.Api/Objects/SponsoredMessages.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of sponsored messages /// - public static partial class TdApi + public partial class SponsoredMessages : Object { /// - /// Contains a list of sponsored messages + /// Data type for serialization /// - public partial class SponsoredMessages : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sponsoredMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sponsoredMessages"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of sponsored messages - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public SponsoredMessage[] Messages { get; set; } + /// + /// List of sponsored messages + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public SponsoredMessage[] Messages { get; set; } - /// - /// The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("messages_between")] - public int MessagesBetween { get; set; } - } + /// + /// The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("messages_between")] + public int MessagesBetween { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StakeDiceState.cs b/TdLib.Api/Objects/StakeDiceState.cs index a8f5d829..30ee9883 100644 --- a/TdLib.Api/Objects/StakeDiceState.cs +++ b/TdLib.Api/Objects/StakeDiceState.cs @@ -2,70 +2,69 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes state of the stake dice /// - public static partial class TdApi + public partial class StakeDiceState : Object { /// - /// Describes state of the stake dice + /// Data type for serialization /// - public partial class StakeDiceState : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stakeDiceState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stakeDiceState"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Hash of the state to use for sending the next dice; may be empty if the stake dice can't be sent by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state_hash")] - public string StateHash { get; set; } + /// + /// Hash of the state to use for sending the next dice; may be empty if the stake dice can't be sent by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state_hash")] + public string StateHash { get; set; } - /// - /// The amount of TON Grams staked in the previous roll; in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("stake_gram_amount")] - public long StakeGramAmount { get; set; } + /// + /// The amount of TON Grams staked in the previous roll; in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("stake_gram_amount")] + public long StakeGramAmount { get; set; } - /// - /// The amounts of Grams that are suggested to be staked; in the smallest units of the currency - /// - [JsonProperty("suggested_stake_gram_amounts", ItemConverterType = typeof(Converter))] - public long[] SuggestedStakeGramAmounts { get; set; } + /// + /// The amounts of Grams that are suggested to be staked; in the smallest units of the currency + /// + [JsonProperty("suggested_stake_gram_amounts", ItemConverterType = typeof(Converter))] + public long[] SuggestedStakeGramAmounts { get; set; } - /// - /// The number of rolled sixes towards the streak; 0-2 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("current_streak")] - public int CurrentStreak { get; set; } + /// + /// The number of rolled sixes towards the streak; 0-2 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("current_streak")] + public int CurrentStreak { get; set; } - /// - /// The number of Grams received by the user for each 1000 Grams staked if the dice outcome is 1-6 correspondingly; may be empty if the stake dice can't be sent by the current user - /// - [JsonProperty("prize_per_mille", ItemConverterType = typeof(Converter))] - public int[] PrizePerMille { get; set; } + /// + /// The number of Grams received by the user for each 1000 Grams staked if the dice outcome is 1-6 correspondingly; may be empty if the stake dice can't be sent by the current user + /// + [JsonProperty("prize_per_mille", ItemConverterType = typeof(Converter))] + public int[] PrizePerMille { get; set; } - /// - /// The number of Grams received by the user for each 1000 Grams staked if the dice outcome is 6 three times in a row with the same stake - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("streak_prize_per_mille")] - public int StreakPrizePerMille { get; set; } - } + /// + /// The number of Grams received by the user for each 1000 Grams staked if the dice outcome is 6 three times in a row with the same stake + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("streak_prize_per_mille")] + public int StreakPrizePerMille { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarAmount.cs b/TdLib.Api/Objects/StarAmount.cs index 7dd741e9..1de68ab4 100644 --- a/TdLib.Api/Objects/StarAmount.cs +++ b/TdLib.Api/Objects/StarAmount.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a possibly non-integer Telegram Star amount /// - public static partial class TdApi + public partial class StarAmount : Object { /// - /// Describes a possibly non-integer Telegram Star amount + /// Data type for serialization /// - public partial class StarAmount : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starAmount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starAmount"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The integer Telegram Star amount rounded to 0 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// The integer Telegram Star amount rounded to 0 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("nanostar_count")] - public int NanostarCount { get; set; } - } + /// + /// The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("nanostar_count")] + public int NanostarCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarCount.cs b/TdLib.Api/Objects/StarCount.cs index 0adc6f96..639d22b6 100644 --- a/TdLib.Api/Objects/StarCount.cs +++ b/TdLib.Api/Objects/StarCount.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a number of Telegram Stars /// - public static partial class TdApi + public partial class StarCount : Object { /// - /// Contains a number of Telegram Stars + /// Data type for serialization /// - public partial class StarCount : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starCount"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount_ { get; set; } - } + /// + /// Number of Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarGiveawayPaymentOption.cs b/TdLib.Api/Objects/StarGiveawayPaymentOption.cs index d7c2697e..44b55434 100644 --- a/TdLib.Api/Objects/StarGiveawayPaymentOption.cs +++ b/TdLib.Api/Objects/StarGiveawayPaymentOption.cs @@ -2,85 +2,84 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option for creating of Telegram Star giveaway. Use telegramPaymentPurposeStarGiveaway for out-of-store payments /// - public static partial class TdApi + public partial class StarGiveawayPaymentOption : Object { /// - /// Describes an option for creating of Telegram Star giveaway. Use telegramPaymentPurposeStarGiveaway for out-of-store payments + /// Data type for serialization /// - public partial class StarGiveawayPaymentOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starGiveawayPaymentOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starGiveawayPaymentOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code for the payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code for the payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The amount to pay, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The amount to pay, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of Telegram Stars that will be distributed among winners - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars that will be distributed among winners + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the store product associated with the option; may be empty if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_id")] - public string StoreProductId { get; set; } + /// + /// Identifier of the store product associated with the option; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_id")] + public string StoreProductId { get; set; } - /// - /// Number of times the chat will be boosted for one year if the option is chosen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("yearly_boost_count")] - public int YearlyBoostCount { get; set; } + /// + /// Number of times the chat will be boosted for one year if the option is chosen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("yearly_boost_count")] + public int YearlyBoostCount { get; set; } - /// - /// Allowed options for the number of giveaway winners - /// - [JsonProperty("winner_options", ItemConverterType = typeof(Converter))] - public StarGiveawayWinnerOption[] WinnerOptions { get; set; } + /// + /// Allowed options for the number of giveaway winners + /// + [JsonProperty("winner_options", ItemConverterType = typeof(Converter))] + public StarGiveawayWinnerOption[] WinnerOptions { get; set; } - /// - /// True, if the option must be chosen by default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_default")] - public bool IsDefault { get; set; } + /// + /// True, if the option must be chosen by default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_default")] + public bool IsDefault { get; set; } - /// - /// True, if the option must be shown only in the full list of payment options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_additional")] - public bool IsAdditional { get; set; } - } + /// + /// True, if the option must be shown only in the full list of payment options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_additional")] + public bool IsAdditional { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarGiveawayPaymentOptions.cs b/TdLib.Api/Objects/StarGiveawayPaymentOptions.cs index 6e835139..3e876f2c 100644 --- a/TdLib.Api/Objects/StarGiveawayPaymentOptions.cs +++ b/TdLib.Api/Objects/StarGiveawayPaymentOptions.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of options for creating of Telegram Star giveaway /// - public static partial class TdApi + public partial class StarGiveawayPaymentOptions : Object { /// - /// Contains a list of options for creating of Telegram Star giveaway + /// Data type for serialization /// - public partial class StarGiveawayPaymentOptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starGiveawayPaymentOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starGiveawayPaymentOptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public StarGiveawayPaymentOption[] Options { get; set; } - } + /// + /// The list of options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public StarGiveawayPaymentOption[] Options { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarGiveawayWinnerOption.cs b/TdLib.Api/Objects/StarGiveawayWinnerOption.cs index 6dfe1d76..d9f5ee69 100644 --- a/TdLib.Api/Objects/StarGiveawayWinnerOption.cs +++ b/TdLib.Api/Objects/StarGiveawayWinnerOption.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option for the number of winners of a Telegram Star giveaway /// - public static partial class TdApi + public partial class StarGiveawayWinnerOption : Object { /// - /// Describes an option for the number of winners of a Telegram Star giveaway + /// Data type for serialization /// - public partial class StarGiveawayWinnerOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starGiveawayWinnerOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starGiveawayWinnerOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of users that will be chosen as winners - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// The number of users that will be chosen as winners + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// The number of Telegram Stars that will be won by the winners of the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("won_star_count")] - public long WonStarCount { get; set; } + /// + /// The number of Telegram Stars that will be won by the winners of the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("won_star_count")] + public long WonStarCount { get; set; } - /// - /// True, if the option must be chosen by default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_default")] - public bool IsDefault { get; set; } - } + /// + /// True, if the option must be chosen by default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_default")] + public bool IsDefault { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarPaymentOption.cs b/TdLib.Api/Objects/StarPaymentOption.cs index 79ccc423..ac2f3b92 100644 --- a/TdLib.Api/Objects/StarPaymentOption.cs +++ b/TdLib.Api/Objects/StarPaymentOption.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments /// - public static partial class TdApi + public partial class StarPaymentOption : Object { /// - /// Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments + /// Data type for serialization /// - public partial class StarPaymentOption : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starPaymentOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starPaymentOption"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code for the payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code for the payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// The amount to pay, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// The amount to pay, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of Telegram Stars that will be purchased - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of Telegram Stars that will be purchased + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the store product associated with the option; may be empty if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_id")] - public string StoreProductId { get; set; } + /// + /// Identifier of the store product associated with the option; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_id")] + public string StoreProductId { get; set; } - /// - /// True, if the option must be shown only in the full list of payment options - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_additional")] - public bool IsAdditional { get; set; } - } + /// + /// True, if the option must be shown only in the full list of payment options + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_additional")] + public bool IsAdditional { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarPaymentOptions.cs b/TdLib.Api/Objects/StarPaymentOptions.cs index 11423796..d8570937 100644 --- a/TdLib.Api/Objects/StarPaymentOptions.cs +++ b/TdLib.Api/Objects/StarPaymentOptions.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of options for buying Telegram Stars /// - public static partial class TdApi + public partial class StarPaymentOptions : Object { /// - /// Contains a list of options for buying Telegram Stars + /// Data type for serialization /// - public partial class StarPaymentOptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starPaymentOptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starPaymentOptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of options - /// - [JsonProperty("options", ItemConverterType = typeof(Converter))] - public StarPaymentOption[] Options { get; set; } - } + /// + /// The list of options + /// + [JsonProperty("options", ItemConverterType = typeof(Converter))] + public StarPaymentOption[] Options { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarRevenueStatistics.cs b/TdLib.Api/Objects/StarRevenueStatistics.cs index bdd91906..c8583a89 100644 --- a/TdLib.Api/Objects/StarRevenueStatistics.cs +++ b/TdLib.Api/Objects/StarRevenueStatistics.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A detailed statistics about Telegram Stars earned by a user or a chat /// - public static partial class TdApi + public partial class StarRevenueStatistics : Object { /// - /// A detailed statistics about Telegram Stars earned by a user or a chat + /// Data type for serialization /// - public partial class StarRevenueStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starRevenueStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starRevenueStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A graph containing amount of revenue in a given day - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revenue_by_day_graph")] - public StatisticalGraph RevenueByDayGraph { get; set; } + /// + /// A graph containing amount of revenue in a given day + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revenue_by_day_graph")] + public StatisticalGraph RevenueByDayGraph { get; set; } - /// - /// Telegram Star revenue status - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public StarRevenueStatus Status { get; set; } + /// + /// Telegram Star revenue status + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public StarRevenueStatus Status { get; set; } - /// - /// Current conversion rate of a Telegram Star to USD - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("usd_rate")] - public double? UsdRate { get; set; } - } + /// + /// Current exchange rate of a Telegram Star to USD + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("usd_rate")] + public double? UsdRate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarRevenueStatus.cs b/TdLib.Api/Objects/StarRevenueStatus.cs index 8eb56e7c..34a0901d 100644 --- a/TdLib.Api/Objects/StarRevenueStatus.cs +++ b/TdLib.Api/Objects/StarRevenueStatus.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about Telegram Stars earned by a user or a chat /// - public static partial class TdApi + public partial class StarRevenueStatus : Object { /// - /// Contains information about Telegram Stars earned by a user or a chat + /// Data type for serialization /// - public partial class StarRevenueStatus : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starRevenueStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starRevenueStatus"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total Telegram Star amount earned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_amount")] - public StarAmount TotalAmount { get; set; } + /// + /// Total Telegram Star amount earned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_amount")] + public StarAmount TotalAmount { get; set; } - /// - /// The Telegram Star amount that isn't withdrawn yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("current_amount")] - public StarAmount CurrentAmount { get; set; } + /// + /// The Telegram Star amount that isn't withdrawn yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("current_amount")] + public StarAmount CurrentAmount { get; set; } - /// - /// The Telegram Star amount that is available for withdrawal - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("available_amount")] - public StarAmount AvailableAmount { get; set; } + /// + /// The Telegram Star amount that is available for withdrawal + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("available_amount")] + public StarAmount AvailableAmount { get; set; } - /// - /// True, if Telegram Stars can be withdrawn now or later - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("withdrawal_enabled")] - public bool WithdrawalEnabled { get; set; } + /// + /// True, if Telegram Stars can be withdrawn now or later + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("withdrawal_enabled")] + public bool WithdrawalEnabled { get; set; } - /// - /// Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_withdrawal_in")] - public int NextWithdrawalIn { get; set; } - } + /// + /// Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_withdrawal_in")] + public int NextWithdrawalIn { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarSubscription.cs b/TdLib.Api/Objects/StarSubscription.cs index 362b3149..50f32f7a 100644 --- a/TdLib.Api/Objects/StarSubscription.cs +++ b/TdLib.Api/Objects/StarSubscription.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars /// - public static partial class TdApi + public partial class StarSubscription : Object { /// - /// Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars + /// Data type for serialization /// - public partial class StarSubscription : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starSubscription"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starSubscription"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Identifier of the chat that is subscribed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat that is subscribed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Point in time (Unix timestamp) when the subscription will expire or expired - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expiration_date")] - public int ExpirationDate { get; set; } + /// + /// Point in time (Unix timestamp) when the subscription will expire or expired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } - /// - /// True, if the subscription was canceled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_canceled")] - public bool IsCanceled { get; set; } + /// + /// True, if the subscription was canceled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_canceled")] + public bool IsCanceled { get; set; } - /// - /// True, if the subscription expires soon and there aren't enough Telegram Stars on the user's balance to extend it - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_expiring")] - public bool IsExpiring { get; set; } + /// + /// True, if the subscription expires soon and there aren't enough Telegram Stars on the user's balance to extend it + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_expiring")] + public bool IsExpiring { get; set; } - /// - /// The subscription plan - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pricing")] - public StarSubscriptionPricing Pricing { get; set; } + /// + /// The subscription plan + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pricing")] + public StarSubscriptionPricing Pricing { get; set; } - /// - /// Type of the subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public StarSubscriptionType Type { get; set; } - } + /// + /// Type of the subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public StarSubscriptionType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarSubscriptionPricing.cs b/TdLib.Api/Objects/StarSubscriptionPricing.cs index 84ec89ef..090124d4 100644 --- a/TdLib.Api/Objects/StarSubscriptionPricing.cs +++ b/TdLib.Api/Objects/StarSubscriptionPricing.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes subscription plan paid in Telegram Stars /// - public static partial class TdApi + public partial class StarSubscriptionPricing : Object { /// - /// Describes subscription plan paid in Telegram Stars + /// Data type for serialization /// - public partial class StarSubscriptionPricing : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starSubscriptionPricing"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starSubscriptionPricing"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of seconds between consecutive Telegram Star debiting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("period")] - public int Period { get; set; } + /// + /// The number of seconds between consecutive Telegram Star debiting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("period")] + public int Period { get; set; } - /// - /// The Telegram Star amount that must be paid for each period - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The Telegram Star amount that must be paid for each period + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarSubscriptionTypeBot.cs b/TdLib.Api/Objects/StarSubscriptionTypeBot.cs index 4a26d7b1..3c680c79 100644 --- a/TdLib.Api/Objects/StarSubscriptionTypeBot.cs +++ b/TdLib.Api/Objects/StarSubscriptionTypeBot.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarSubscriptionType : Object { - public partial class StarSubscriptionType : Object + /// + /// Describes a subscription in a bot or a business account + /// + public class StarSubscriptionTypeBot : StarSubscriptionType { /// - /// Describes a subscription in a bot or a business account + /// Data type for serialization /// - public class StarSubscriptionTypeBot : StarSubscriptionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starSubscriptionTypeBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starSubscriptionTypeBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the subscription was canceled by the bot and can't be extended - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_canceled_by_bot")] - public bool IsCanceledByBot { get; set; } + /// + /// True, if the subscription was canceled by the bot and can't be extended + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_canceled_by_bot")] + public bool IsCanceledByBot { get; set; } - /// - /// Subscription invoice title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Subscription invoice title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Subscription invoice photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Subscription invoice photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// The link to the subscription invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_link")] - public string InvoiceLink { get; set; } - } + /// + /// The link to the subscription invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_link")] + public string InvoiceLink { get; set; } } } } diff --git a/TdLib.Api/Objects/StarSubscriptionTypeChannel.cs b/TdLib.Api/Objects/StarSubscriptionTypeChannel.cs index 17780b7b..adfc5c73 100644 --- a/TdLib.Api/Objects/StarSubscriptionTypeChannel.cs +++ b/TdLib.Api/Objects/StarSubscriptionTypeChannel.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarSubscriptionType : Object { - public partial class StarSubscriptionType : Object + /// + /// Describes type of subscription paid in Telegram Stars + /// + public class StarSubscriptionTypeChannel : StarSubscriptionType { /// - /// Describes type of subscription paid in Telegram Stars + /// Data type for serialization /// - public class StarSubscriptionTypeChannel : StarSubscriptionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starSubscriptionTypeChannel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starSubscriptionTypeChannel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the subscription is active and the user can use the method reuseStarSubscription to join the subscribed chat again - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_reuse")] - public bool CanReuse { get; set; } + /// + /// True, if the subscription is active and the user can use the method reuseStarSubscription to join the subscribed chat again + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_reuse")] + public bool CanReuse { get; set; } - /// - /// The invite link that can be used to renew the subscription if it has expired; may be empty if the link isn't available anymore - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// The invite link that can be used to renew the subscription if it has expired; may be empty if the link isn't available anymore + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/StarSubscriptions.cs b/TdLib.Api/Objects/StarSubscriptions.cs index 110099de..d3a25883 100644 --- a/TdLib.Api/Objects/StarSubscriptions.cs +++ b/TdLib.Api/Objects/StarSubscriptions.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of Telegram Star subscriptions /// - public static partial class TdApi + public partial class StarSubscriptions : Object { /// - /// Represents a list of Telegram Star subscriptions + /// Data type for serialization /// - public partial class StarSubscriptions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starSubscriptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starSubscriptions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The amount of owned Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_amount")] - public StarAmount StarAmount { get; set; } + /// + /// The amount of owned Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_amount")] + public StarAmount StarAmount { get; set; } - /// - /// List of subscriptions for Telegram Stars - /// - [JsonProperty("subscriptions", ItemConverterType = typeof(Converter))] - public StarSubscription[] Subscriptions { get; set; } + /// + /// List of subscriptions for Telegram Stars + /// + [JsonProperty("subscriptions", ItemConverterType = typeof(Converter))] + public StarSubscription[] Subscriptions { get; set; } - /// - /// The number of Telegram Stars required to buy to extend subscriptions expiring soon - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("required_star_count")] - public long RequiredStarCount { get; set; } + /// + /// The number of Telegram Stars required to buy to extend subscriptions expiring soon + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("required_star_count")] + public long RequiredStarCount { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarTransaction.cs b/TdLib.Api/Objects/StarTransaction.cs index 169e1652..1085991e 100644 --- a/TdLib.Api/Objects/StarTransaction.cs +++ b/TdLib.Api/Objects/StarTransaction.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a transaction changing the amount of owned Telegram Stars /// - public static partial class TdApi + public partial class StarTransaction : Object { /// - /// Represents a transaction changing the amount of owned Telegram Stars + /// Data type for serialization /// - public partial class StarTransaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// The amount of added owned Telegram Stars; negative for outgoing transactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_amount")] - public StarAmount StarAmount { get; set; } + /// + /// The amount of added owned Telegram Stars; negative for outgoing transactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_amount")] + public StarAmount StarAmount { get; set; } - /// - /// True, if the transaction is a refund of a previous transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_refund")] - public bool IsRefund { get; set; } + /// + /// True, if the transaction is a refund of a previous transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_refund")] + public bool IsRefund { get; set; } - /// - /// Point in time (Unix timestamp) when the transaction was completed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the transaction was completed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Type of the transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public StarTransactionType Type { get; set; } - } + /// + /// Type of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public StarTransactionType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StarTransactionTypeAffiliateProgramCommission.cs b/TdLib.Api/Objects/StarTransactionTypeAffiliateProgramCommission.cs index 904117a3..74c56ea3 100644 --- a/TdLib.Api/Objects/StarTransactionTypeAffiliateProgramCommission.cs +++ b/TdLib.Api/Objects/StarTransactionTypeAffiliateProgramCommission.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a receiving of a commission from an affiliate program; relevant for regular users, bots and channel chats only + /// + public class StarTransactionTypeAffiliateProgramCommission : StarTransactionType { /// - /// The transaction is a receiving of a commission from an affiliate program; relevant for regular users, bots and channel chats only + /// Data type for serialization /// - public class StarTransactionTypeAffiliateProgramCommission : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeAffiliateProgramCommission"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeAffiliateProgramCommission"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that created the affiliate program - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat that created the affiliate program + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } - } + /// + /// The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the program owner + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeAppStoreDeposit.cs b/TdLib.Api/Objects/StarTransactionTypeAppStoreDeposit.cs index d48150cb..37d23e6a 100644 --- a/TdLib.Api/Objects/StarTransactionTypeAppStoreDeposit.cs +++ b/TdLib.Api/Objects/StarTransactionTypeAppStoreDeposit.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a deposit of Telegram Stars from App Store; relevant for regular users only + /// + public class StarTransactionTypeAppStoreDeposit : StarTransactionType { /// - /// The transaction is a deposit of Telegram Stars from App Store; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeAppStoreDeposit : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeAppStoreDeposit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeAppStoreDeposit"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBotInvoicePurchase.cs b/TdLib.Api/Objects/StarTransactionTypeBotInvoicePurchase.cs index 559edc90..86869983 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBotInvoicePurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBotInvoicePurchase.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of a product from a bot or a business account by the current user; relevant for regular users only + /// + public class StarTransactionTypeBotInvoicePurchase : StarTransactionType { /// - /// The transaction is a purchase of a product from a bot or a business account by the current user; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeBotInvoicePurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBotInvoicePurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBotInvoicePurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot or the business account user who created the invoice - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the bot or the business account user who created the invoice + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Information about the bought product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("product_info")] - public ProductInfo ProductInfo { get; set; } - } + /// + /// Information about the bought product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("product_info")] + public ProductInfo ProductInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBotInvoiceSale.cs b/TdLib.Api/Objects/StarTransactionTypeBotInvoiceSale.cs index ad4745c6..27310251 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBotInvoiceSale.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBotInvoiceSale.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sale of a product by the bot; relevant for bots only + /// + public class StarTransactionTypeBotInvoiceSale : StarTransactionType { /// - /// The transaction is a sale of a product by the bot; relevant for bots only + /// Data type for serialization /// - public class StarTransactionTypeBotInvoiceSale : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBotInvoiceSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBotInvoiceSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who bought the product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who bought the product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Information about the bought product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("product_info")] - public ProductInfo ProductInfo { get; set; } + /// + /// Information about the bought product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("product_info")] + public ProductInfo ProductInfo { get; set; } - /// - /// Invoice payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_payload")] - public byte[] InvoicePayload { get; set; } + /// + /// Invoice payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_payload")] + public byte[] InvoicePayload { get; set; } - /// - /// Information about the affiliate which received commission from the transaction; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateInfo Affiliate { get; set; } - } + /// + /// Information about the affiliate which received commission from the transaction; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateInfo Affiliate { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaPurchase.cs b/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaPurchase.cs index 084957bd..e28160f7 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaPurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaPurchase.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of paid media from a bot or a business account by the current user; relevant for regular users only + /// + public class StarTransactionTypeBotPaidMediaPurchase : StarTransactionType { /// - /// The transaction is a purchase of paid media from a bot or a business account by the current user; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeBotPaidMediaPurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBotPaidMediaPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBotPaidMediaPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot or the business account user who sent the paid media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the bot or the business account user who sent the paid media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The bought media if the transaction wasn't refunded - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public PaidMedia[] Media { get; set; } - } + /// + /// The bought media if the transaction wasn't refunded + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public PaidMedia[] Media { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaSale.cs b/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaSale.cs index 4b322a57..80ea5d67 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaSale.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBotPaidMediaSale.cs @@ -2,59 +2,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sale of paid media by the bot or a business account managed by the bot; relevant for bots only + /// + public class StarTransactionTypeBotPaidMediaSale : StarTransactionType { /// - /// The transaction is a sale of paid media by the bot or a business account managed by the bot; relevant for bots only + /// Data type for serialization /// - public class StarTransactionTypeBotPaidMediaSale : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBotPaidMediaSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBotPaidMediaSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who bought the media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who bought the media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The bought media - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public PaidMedia[] Media { get; set; } + /// + /// The bought media + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public PaidMedia[] Media { get; set; } - /// - /// Bot-provided payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } + /// + /// Bot-provided payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } - /// - /// Information about the affiliate which received commission from the transaction; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateInfo Affiliate { get; set; } - } + /// + /// Information about the affiliate which received commission from the transaction; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateInfo Affiliate { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionPurchase.cs b/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionPurchase.cs index 4df83961..f852f0ba 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionPurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionPurchase.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of a subscription from a bot or a business account by the current user; relevant for regular users only + /// + public class StarTransactionTypeBotSubscriptionPurchase : StarTransactionType { /// - /// The transaction is a purchase of a subscription from a bot or a business account by the current user; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeBotSubscriptionPurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBotSubscriptionPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBotSubscriptionPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot or the business account user who created the subscription link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the bot or the business account user who created the subscription link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The number of seconds between consecutive Telegram Star debitings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_period")] - public int SubscriptionPeriod { get; set; } + /// + /// The number of seconds between consecutive Telegram Star debitings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_period")] + public int SubscriptionPeriod { get; set; } - /// - /// Information about the bought subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("product_info")] - public ProductInfo ProductInfo { get; set; } - } + /// + /// Information about the bought subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("product_info")] + public ProductInfo ProductInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionSale.cs b/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionSale.cs index 278fdb37..38f7ac6e 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionSale.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBotSubscriptionSale.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sale of a subscription by the bot; relevant for bots only + /// + public class StarTransactionTypeBotSubscriptionSale : StarTransactionType { /// - /// The transaction is a sale of a subscription by the bot; relevant for bots only + /// Data type for serialization /// - public class StarTransactionTypeBotSubscriptionSale : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBotSubscriptionSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBotSubscriptionSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who bought the subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who bought the subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The number of seconds between consecutive Telegram Star debitings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_period")] - public int SubscriptionPeriod { get; set; } + /// + /// The number of seconds between consecutive Telegram Star debitings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_period")] + public int SubscriptionPeriod { get; set; } - /// - /// Information about the bought subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("product_info")] - public ProductInfo ProductInfo { get; set; } + /// + /// Information about the bought subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("product_info")] + public ProductInfo ProductInfo { get; set; } - /// - /// Invoice payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_payload")] - public byte[] InvoicePayload { get; set; } + /// + /// Invoice payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_payload")] + public byte[] InvoicePayload { get; set; } - /// - /// Information about the affiliate which received commission from the transaction; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("affiliate")] - public AffiliateInfo Affiliate { get; set; } - } + /// + /// Information about the affiliate which received commission from the transaction; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("affiliate")] + public AffiliateInfo Affiliate { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferReceive.cs b/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferReceive.cs index 758bad82..360183aa 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferReceive.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferReceive.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a transfer of Telegram Stars from a business account; relevant for bots only + /// + public class StarTransactionTypeBusinessBotTransferReceive : StarTransactionType { /// - /// The transaction is a transfer of Telegram Stars from a business account; relevant for bots only + /// Data type for serialization /// - public class StarTransactionTypeBusinessBotTransferReceive : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBusinessBotTransferReceive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBusinessBotTransferReceive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who sent Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the user who sent Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferSend.cs b/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferSend.cs index 0fbac1ea..e124751b 100644 --- a/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferSend.cs +++ b/TdLib.Api/Objects/StarTransactionTypeBusinessBotTransferSend.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a transfer of Telegram Stars to a business bot; relevant for regular users only + /// + public class StarTransactionTypeBusinessBotTransferSend : StarTransactionType { /// - /// The transaction is a transfer of Telegram Stars to a business bot; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeBusinessBotTransferSend : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeBusinessBotTransferSend"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeBusinessBotTransferSend"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the bot that received Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the bot that received Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaPurchase.cs b/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaPurchase.cs index ebb26b7b..d7ec43d3 100644 --- a/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaPurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaPurchase.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of paid media from a channel by the current user; relevant for regular users only + /// + public class StarTransactionTypeChannelPaidMediaPurchase : StarTransactionType { /// - /// The transaction is a purchase of paid media from a channel by the current user; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeChannelPaidMediaPurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeChannelPaidMediaPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeChannelPaidMediaPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the channel chat that sent the paid media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the channel chat that sent the paid media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the corresponding message with paid media; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the corresponding message with paid media; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The bought media if the transaction wasn't refunded - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public PaidMedia[] Media { get; set; } - } + /// + /// The bought media if the transaction wasn't refunded + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public PaidMedia[] Media { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaSale.cs b/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaSale.cs index 78cded62..ef351d9c 100644 --- a/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaSale.cs +++ b/TdLib.Api/Objects/StarTransactionTypeChannelPaidMediaSale.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sale of paid media by the channel chat; relevant for channel chats only + /// + public class StarTransactionTypeChannelPaidMediaSale : StarTransactionType { /// - /// The transaction is a sale of paid media by the channel chat; relevant for channel chats only + /// Data type for serialization /// - public class StarTransactionTypeChannelPaidMediaSale : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeChannelPaidMediaSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeChannelPaidMediaSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who bought the media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who bought the media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Identifier of the corresponding message with paid media; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the corresponding message with paid media; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The bought media - /// - [JsonProperty("media", ItemConverterType = typeof(Converter))] - public PaidMedia[] Media { get; set; } - } + /// + /// The bought media + /// + [JsonProperty("media", ItemConverterType = typeof(Converter))] + public PaidMedia[] Media { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionReceive.cs b/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionReceive.cs index fcf1d40c..31f0f3b0 100644 --- a/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionReceive.cs +++ b/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionReceive.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a receiving of a paid reaction to a message by the channel chat; relevant for channel chats only + /// + public class StarTransactionTypeChannelPaidReactionReceive : StarTransactionType { /// - /// The transaction is a receiving of a paid reaction to a message by the channel chat; relevant for channel chats only + /// Data type for serialization /// - public class StarTransactionTypeChannelPaidReactionReceive : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeChannelPaidReactionReceive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeChannelPaidReactionReceive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who added the paid reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who added the paid reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Identifier of the reacted message; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the reacted message; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionSend.cs b/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionSend.cs index 5207f2e7..12274767 100644 --- a/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionSend.cs +++ b/TdLib.Api/Objects/StarTransactionTypeChannelPaidReactionSend.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sending of a paid reaction to a message in a channel chat by the current user; relevant for regular users only + /// + public class StarTransactionTypeChannelPaidReactionSend : StarTransactionType { /// - /// The transaction is a sending of a paid reaction to a message in a channel chat by the current user; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeChannelPaidReactionSend : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeChannelPaidReactionSend"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeChannelPaidReactionSend"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the reacted message; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the reacted message; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionPurchase.cs b/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionPurchase.cs index bbedd49f..8de8e92b 100644 --- a/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionPurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionPurchase.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of a subscription to a channel chat by the current user; relevant for regular users only + /// + public class StarTransactionTypeChannelSubscriptionPurchase : StarTransactionType { /// - /// The transaction is a purchase of a subscription to a channel chat by the current user; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeChannelSubscriptionPurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeChannelSubscriptionPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeChannelSubscriptionPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the channel chat that created the subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the channel chat that created the subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The number of seconds between consecutive Telegram Star debitings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_period")] - public int SubscriptionPeriod { get; set; } - } + /// + /// The number of seconds between consecutive Telegram Star debitings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_period")] + public int SubscriptionPeriod { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionSale.cs b/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionSale.cs index 270fe36e..37ea9c50 100644 --- a/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionSale.cs +++ b/TdLib.Api/Objects/StarTransactionTypeChannelSubscriptionSale.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sale of a subscription by the channel chat; relevant for channel chats only + /// + public class StarTransactionTypeChannelSubscriptionSale : StarTransactionType { /// - /// The transaction is a sale of a subscription by the channel chat; relevant for channel chats only + /// Data type for serialization /// - public class StarTransactionTypeChannelSubscriptionSale : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeChannelSubscriptionSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeChannelSubscriptionSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who bought the subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who bought the subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The number of seconds between consecutive Telegram Star debitings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subscription_period")] - public int SubscriptionPeriod { get; set; } - } + /// + /// The number of seconds between consecutive Telegram Star debitings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subscription_period")] + public int SubscriptionPeriod { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeFragmentDeposit.cs b/TdLib.Api/Objects/StarTransactionTypeFragmentDeposit.cs index e88e1ce0..5277fc37 100644 --- a/TdLib.Api/Objects/StarTransactionTypeFragmentDeposit.cs +++ b/TdLib.Api/Objects/StarTransactionTypeFragmentDeposit.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a deposit of Telegram Stars from Fragment; relevant for regular users and bots only + /// + public class StarTransactionTypeFragmentDeposit : StarTransactionType { /// - /// The transaction is a deposit of Telegram Stars from Fragment; relevant for regular users and bots only + /// Data type for serialization /// - public class StarTransactionTypeFragmentDeposit : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeFragmentDeposit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeFragmentDeposit"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeFragmentWithdrawal.cs b/TdLib.Api/Objects/StarTransactionTypeFragmentWithdrawal.cs index fedad2df..e3483476 100644 --- a/TdLib.Api/Objects/StarTransactionTypeFragmentWithdrawal.cs +++ b/TdLib.Api/Objects/StarTransactionTypeFragmentWithdrawal.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a withdrawal of earned Telegram Stars to Fragment; relevant for regular users, bots, supergroup and channel chats only + /// + public class StarTransactionTypeFragmentWithdrawal : StarTransactionType { /// - /// The transaction is a withdrawal of earned Telegram Stars to Fragment; relevant for regular users, bots, supergroup and channel chats only + /// Data type for serialization /// - public class StarTransactionTypeFragmentWithdrawal : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeFragmentWithdrawal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeFragmentWithdrawal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// State of the withdrawal; may be null for refunds from Fragment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("withdrawal_state")] - public RevenueWithdrawalState WithdrawalState { get; set; } - } + /// + /// State of the withdrawal; may be null for refunds from Fragment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("withdrawal_state")] + public RevenueWithdrawalState WithdrawalState { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftAuctionBid.cs b/TdLib.Api/Objects/StarTransactionTypeGiftAuctionBid.cs index a84b17f0..0fcc75c2 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftAuctionBid.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftAuctionBid.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a bid on a gift auction; relevant for regular users only + /// + public class StarTransactionTypeGiftAuctionBid : StarTransactionType { /// - /// The transaction is a bid on a gift auction; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGiftAuctionBid : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftAuctionBid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftAuctionBid"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who will receive the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the user who will receive the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftOriginalDetailsDrop.cs b/TdLib.Api/Objects/StarTransactionTypeGiftOriginalDetailsDrop.cs index 2395ce0f..540bc00c 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftOriginalDetailsDrop.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftOriginalDetailsDrop.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a drop of original details of an upgraded gift; relevant for regular users only + /// + public class StarTransactionTypeGiftOriginalDetailsDrop : StarTransactionType { /// - /// The transaction is a drop of original details of an upgraded gift; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGiftOriginalDetailsDrop : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftOriginalDetailsDrop"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftOriginalDetailsDrop"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the channel that owns the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the user or the channel that owns the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftPurchase.cs b/TdLib.Api/Objects/StarTransactionTypeGiftPurchase.cs index 417273fa..7b03f09e 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftPurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftPurchase.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of a regular gift; relevant for regular users and bots only + /// + public class StarTransactionTypeGiftPurchase : StarTransactionType { /// - /// The transaction is a purchase of a regular gift; relevant for regular users and bots only + /// Data type for serialization /// - public class StarTransactionTypeGiftPurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the channel that received the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the user or the channel that received the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftPurchaseOffer.cs b/TdLib.Api/Objects/StarTransactionTypeGiftPurchaseOffer.cs index 23904199..cacb3890 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftPurchaseOffer.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftPurchaseOffer.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is an offer of gift purchase; relevant for regular users only + /// + public class StarTransactionTypeGiftPurchaseOffer : StarTransactionType { /// - /// The transaction is an offer of gift purchase; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGiftPurchaseOffer : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftPurchaseOffer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftPurchaseOffer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftSale.cs b/TdLib.Api/Objects/StarTransactionTypeGiftSale.cs index dbf45632..4b2a083c 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftSale.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftSale.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sale of a received gift; relevant for regular users and channel chats only + /// + public class StarTransactionTypeGiftSale : StarTransactionType { /// - /// The transaction is a sale of a received gift; relevant for regular users and channel chats only + /// Data type for serialization /// - public class StarTransactionTypeGiftSale : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who sent the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who sent the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftTransfer.cs b/TdLib.Api/Objects/StarTransactionTypeGiftTransfer.cs index 2828de05..1125a1bc 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftTransfer.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftTransfer.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a transfer of an upgraded gift; relevant for regular users only + /// + public class StarTransactionTypeGiftTransfer : StarTransactionType { /// - /// The transaction is a transfer of an upgraded gift; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGiftTransfer : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftTransfer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftTransfer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the channel that received the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the user or the channel that received the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftUpgrade.cs b/TdLib.Api/Objects/StarTransactionTypeGiftUpgrade.cs index 7d2e1206..77fd3b92 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftUpgrade.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftUpgrade.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is an upgrade of a gift; relevant for regular users only + /// + public class StarTransactionTypeGiftUpgrade : StarTransactionType { /// - /// The transaction is an upgrade of a gift; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGiftUpgrade : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftUpgrade"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftUpgrade"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who initially sent the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who initially sent the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiftUpgradePurchase.cs b/TdLib.Api/Objects/StarTransactionTypeGiftUpgradePurchase.cs index abf1d4df..e0008d80 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiftUpgradePurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiftUpgradePurchase.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of an upgrade of a gift owned by another user or channel; relevant for regular users only + /// + public class StarTransactionTypeGiftUpgradePurchase : StarTransactionType { /// - /// The transaction is a purchase of an upgrade of a gift owned by another user or channel; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGiftUpgradePurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiftUpgradePurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiftUpgradePurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Owner of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Owner of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public Gift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public Gift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGiveawayDeposit.cs b/TdLib.Api/Objects/StarTransactionTypeGiveawayDeposit.cs index 23b980e6..5347d29c 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGiveawayDeposit.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGiveawayDeposit.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a deposit of Telegram Stars from a giveaway; relevant for regular users only + /// + public class StarTransactionTypeGiveawayDeposit : StarTransactionType { /// - /// The transaction is a deposit of Telegram Stars from a giveaway; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGiveawayDeposit : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGiveawayDeposit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGiveawayDeposit"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a supergroup or a channel chat that created the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of a supergroup or a channel chat that created the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message with the giveaway; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("giveaway_message_id")] - public long GiveawayMessageId { get; set; } - } + /// + /// Identifier of the message with the giveaway; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("giveaway_message_id")] + public long GiveawayMessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeGooglePlayDeposit.cs b/TdLib.Api/Objects/StarTransactionTypeGooglePlayDeposit.cs index 4d612fad..2d39a752 100644 --- a/TdLib.Api/Objects/StarTransactionTypeGooglePlayDeposit.cs +++ b/TdLib.Api/Objects/StarTransactionTypeGooglePlayDeposit.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a deposit of Telegram Stars from Google Play; relevant for regular users only + /// + public class StarTransactionTypeGooglePlayDeposit : StarTransactionType { /// - /// The transaction is a deposit of Telegram Stars from Google Play; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeGooglePlayDeposit : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeGooglePlayDeposit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeGooglePlayDeposit"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageReceive.cs b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageReceive.cs index f566627d..6752b34d 100644 --- a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageReceive.cs +++ b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageReceive.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a receiving of a paid group call message; relevant for regular users and channel chats only + /// + public class StarTransactionTypePaidGroupCallMessageReceive : StarTransactionType { /// - /// The transaction is a receiving of a paid group call message; relevant for regular users and channel chats only + /// Data type for serialization /// - public class StarTransactionTypePaidGroupCallMessageReceive : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePaidGroupCallMessageReceive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePaidGroupCallMessageReceive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sender of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars paid for message sending - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } + /// + /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars paid for message sending + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } - /// - /// The Telegram Star amount that was received by Telegram; can be negative for refunds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_star_amount")] - public StarAmount CommissionStarAmount { get; set; } - } + /// + /// The Telegram Star amount that was received by Telegram; can be negative for refunds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_star_amount")] + public StarAmount CommissionStarAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageSend.cs b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageSend.cs index b1188c79..e1a90632 100644 --- a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageSend.cs +++ b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallMessageSend.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sending of a paid group call message; relevant for regular users only + /// + public class StarTransactionTypePaidGroupCallMessageSend : StarTransactionType { /// - /// The transaction is a sending of a paid group call message; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypePaidGroupCallMessageSend : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePaidGroupCallMessageSend"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePaidGroupCallMessageSend"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that received the payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat that received the payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionReceive.cs b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionReceive.cs index 11640cba..82e5eec6 100644 --- a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionReceive.cs +++ b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionReceive.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a receiving of a paid group call reaction; relevant for regular users and channel chats only + /// + public class StarTransactionTypePaidGroupCallReactionReceive : StarTransactionType { /// - /// The transaction is a receiving of a paid group call reaction; relevant for regular users and channel chats only + /// Data type for serialization /// - public class StarTransactionTypePaidGroupCallReactionReceive : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePaidGroupCallReactionReceive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePaidGroupCallReactionReceive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sender of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars paid for reaction sending - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } + /// + /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars paid for reaction sending + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } - /// - /// The Telegram Star amount that was received by Telegram; can be negative for refunds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_star_amount")] - public StarAmount CommissionStarAmount { get; set; } - } + /// + /// The Telegram Star amount that was received by Telegram; can be negative for refunds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_star_amount")] + public StarAmount CommissionStarAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionSend.cs b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionSend.cs index 2690c6a2..c4d63a6e 100644 --- a/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionSend.cs +++ b/TdLib.Api/Objects/StarTransactionTypePaidGroupCallReactionSend.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sending of a paid group reaction; relevant for regular users only + /// + public class StarTransactionTypePaidGroupCallReactionSend : StarTransactionType { /// - /// The transaction is a sending of a paid group reaction; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypePaidGroupCallReactionSend : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePaidGroupCallReactionSend"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePaidGroupCallReactionSend"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that received the payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat that received the payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePaidMessageReceive.cs b/TdLib.Api/Objects/StarTransactionTypePaidMessageReceive.cs index dea1ed2a..3356a1a8 100644 --- a/TdLib.Api/Objects/StarTransactionTypePaidMessageReceive.cs +++ b/TdLib.Api/Objects/StarTransactionTypePaidMessageReceive.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a receiving of a paid message; relevant for regular users, supergroup and channel chats only + /// + public class StarTransactionTypePaidMessageReceive : StarTransactionType { /// - /// The transaction is a receiving of a paid message; relevant for regular users, supergroup and channel chats only + /// Data type for serialization /// - public class StarTransactionTypePaidMessageReceive : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePaidMessageReceive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePaidMessageReceive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sender of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Number of received paid messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_count")] - public int MessageCount { get; set; } + /// + /// Number of received paid messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_count")] + public int MessageCount { get; set; } - /// - /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars paid for message sending - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } + /// + /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars paid for message sending + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } - /// - /// The Telegram Star amount that was received by Telegram; can be negative for refunds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_star_amount")] - public StarAmount CommissionStarAmount { get; set; } - } + /// + /// The Telegram Star amount that was received by Telegram; can be negative for refunds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_star_amount")] + public StarAmount CommissionStarAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePaidMessageSend.cs b/TdLib.Api/Objects/StarTransactionTypePaidMessageSend.cs index 5f0f2216..28c50031 100644 --- a/TdLib.Api/Objects/StarTransactionTypePaidMessageSend.cs +++ b/TdLib.Api/Objects/StarTransactionTypePaidMessageSend.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sending of a paid message; relevant for regular users only + /// + public class StarTransactionTypePaidMessageSend : StarTransactionType { /// - /// The transaction is a sending of a paid message; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypePaidMessageSend : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePaidMessageSend"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePaidMessageSend"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that received the payment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat that received the payment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Number of sent paid messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_count")] - public int MessageCount { get; set; } - } + /// + /// Number of sent paid messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_count")] + public int MessageCount { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePremiumBotDeposit.cs b/TdLib.Api/Objects/StarTransactionTypePremiumBotDeposit.cs index 1abc3dfc..8d5e907b 100644 --- a/TdLib.Api/Objects/StarTransactionTypePremiumBotDeposit.cs +++ b/TdLib.Api/Objects/StarTransactionTypePremiumBotDeposit.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// Describes type of transaction with Telegram Stars + /// + public class StarTransactionTypePremiumBotDeposit : StarTransactionType { /// - /// Describes type of transaction with Telegram Stars + /// Data type for serialization /// - public class StarTransactionTypePremiumBotDeposit : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePremiumBotDeposit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePremiumBotDeposit"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePremiumPurchase.cs b/TdLib.Api/Objects/StarTransactionTypePremiumPurchase.cs index 1e930434..b1934fbc 100644 --- a/TdLib.Api/Objects/StarTransactionTypePremiumPurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypePremiumPurchase.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only + /// + public class StarTransactionTypePremiumPurchase : StarTransactionType { /// - /// The transaction is a purchase of Telegram Premium subscription; relevant for regular users and bots only + /// Data type for serialization /// - public class StarTransactionTypePremiumPurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePremiumPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePremiumPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who received the Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who received the Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// A sticker to be shown in the transaction information; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// A sticker to be shown in the transaction information; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypePublicPostSearch.cs b/TdLib.Api/Objects/StarTransactionTypePublicPostSearch.cs index 46e16f69..afd737a9 100644 --- a/TdLib.Api/Objects/StarTransactionTypePublicPostSearch.cs +++ b/TdLib.Api/Objects/StarTransactionTypePublicPostSearch.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a payment for search of posts in public Telegram channels; relevant for regular users only + /// + public class StarTransactionTypePublicPostSearch : StarTransactionType { /// - /// The transaction is a payment for search of posts in public Telegram channels; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypePublicPostSearch : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypePublicPostSearch"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypePublicPostSearch"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentReceive.cs b/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentReceive.cs index bccbff70..5849ad4f 100644 --- a/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentReceive.cs +++ b/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentReceive.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a receiving of a payment for a suggested post by the channel chat; relevant for channel chats only + /// + public class StarTransactionTypeSuggestedPostPaymentReceive : StarTransactionType { /// - /// The transaction is a receiving of a payment for a suggested post by the channel chat; relevant for channel chats only + /// Data type for serialization /// - public class StarTransactionTypeSuggestedPostPaymentReceive : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeSuggestedPostPaymentReceive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeSuggestedPostPaymentReceive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who paid for the suggested post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the user who paid for the suggested post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentSend.cs b/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentSend.cs index 629e8532..91e79bbe 100644 --- a/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentSend.cs +++ b/TdLib.Api/Objects/StarTransactionTypeSuggestedPostPaymentSend.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a payment for a suggested post; relevant for regular users only + /// + public class StarTransactionTypeSuggestedPostPaymentSend : StarTransactionType { /// - /// The transaction is a payment for a suggested post; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeSuggestedPostPaymentSend : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeSuggestedPostPaymentSend"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeSuggestedPostPaymentSend"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the channel chat that posted the post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the channel chat that posted the post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeTelegramAdsWithdrawal.cs b/TdLib.Api/Objects/StarTransactionTypeTelegramAdsWithdrawal.cs index 6c2832e3..870cd6b4 100644 --- a/TdLib.Api/Objects/StarTransactionTypeTelegramAdsWithdrawal.cs +++ b/TdLib.Api/Objects/StarTransactionTypeTelegramAdsWithdrawal.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a withdrawal of earned Telegram Stars to Telegram Ad platform; relevant for bots and channel chats only + /// + public class StarTransactionTypeTelegramAdsWithdrawal : StarTransactionType { /// - /// The transaction is a withdrawal of earned Telegram Stars to Telegram Ad platform; relevant for bots and channel chats only + /// Data type for serialization /// - public class StarTransactionTypeTelegramAdsWithdrawal : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeTelegramAdsWithdrawal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeTelegramAdsWithdrawal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeTelegramApiUsage.cs b/TdLib.Api/Objects/StarTransactionTypeTelegramApiUsage.cs index 57c92533..f42957f4 100644 --- a/TdLib.Api/Objects/StarTransactionTypeTelegramApiUsage.cs +++ b/TdLib.Api/Objects/StarTransactionTypeTelegramApiUsage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a payment for Telegram API usage; relevant for bots only + /// + public class StarTransactionTypeTelegramApiUsage : StarTransactionType { /// - /// The transaction is a payment for Telegram API usage; relevant for bots only + /// Data type for serialization /// - public class StarTransactionTypeTelegramApiUsage : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeTelegramApiUsage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeTelegramApiUsage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of billed requests - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request_count")] - public int RequestCount { get; set; } - } + /// + /// The number of billed requests + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request_count")] + public int RequestCount { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeUnsupported.cs b/TdLib.Api/Objects/StarTransactionTypeUnsupported.cs index 07540a7b..e13b3a72 100644 --- a/TdLib.Api/Objects/StarTransactionTypeUnsupported.cs +++ b/TdLib.Api/Objects/StarTransactionTypeUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a transaction of an unsupported type + /// + public class StarTransactionTypeUnsupported : StarTransactionType { /// - /// The transaction is a transaction of an unsupported type + /// Data type for serialization /// - public class StarTransactionTypeUnsupported : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftPurchase.cs b/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftPurchase.cs index 85b97bbb..b14224e2 100644 --- a/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftPurchase.cs +++ b/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftPurchase.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a purchase of an upgraded gift for some user or channel; relevant for regular users only + /// + public class StarTransactionTypeUpgradedGiftPurchase : StarTransactionType { /// - /// The transaction is a purchase of an upgraded gift for some user or channel; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeUpgradedGiftPurchase : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeUpgradedGiftPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeUpgradedGiftPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who sold the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who sold the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftSale.cs b/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftSale.cs index eb7a1935..f285612c 100644 --- a/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftSale.cs +++ b/TdLib.Api/Objects/StarTransactionTypeUpgradedGiftSale.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a sale of an upgraded gift; relevant for regular users only + /// + public class StarTransactionTypeUpgradedGiftSale : StarTransactionType { /// - /// The transaction is a sale of an upgraded gift; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeUpgradedGiftSale : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeUpgradedGiftSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeUpgradedGiftSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who bought the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who bought the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars received by the seller of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } + /// + /// The number of Telegram Stars received by the Telegram for each 1000 Telegram Stars received by the seller of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } - /// - /// The Telegram Star amount that was received by Telegram; can be negative for refunds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_star_amount")] - public StarAmount CommissionStarAmount { get; set; } + /// + /// The Telegram Star amount that was received by Telegram; can be negative for refunds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_star_amount")] + public StarAmount CommissionStarAmount { get; set; } - /// - /// True, if the gift was sold through a purchase offer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_offer")] - public bool ViaOffer { get; set; } - } + /// + /// True, if the gift was sold through a purchase offer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_offer")] + public bool ViaOffer { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactionTypeUserDeposit.cs b/TdLib.Api/Objects/StarTransactionTypeUserDeposit.cs index 477f27d4..5908935c 100644 --- a/TdLib.Api/Objects/StarTransactionTypeUserDeposit.cs +++ b/TdLib.Api/Objects/StarTransactionTypeUserDeposit.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StarTransactionType : Object { - public partial class StarTransactionType : Object + /// + /// The transaction is a deposit of Telegram Stars by another user; relevant for regular users only + /// + public class StarTransactionTypeUserDeposit : StarTransactionType { /// - /// The transaction is a deposit of Telegram Stars by another user; relevant for regular users only + /// Data type for serialization /// - public class StarTransactionTypeUserDeposit : StarTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactionTypeUserDeposit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactionTypeUserDeposit"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who gifted Telegram Stars; 0 if the user was anonymous - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who gifted Telegram Stars; 0 if the user was anonymous + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The sticker to be shown in the transaction information; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// The sticker to be shown in the transaction information; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/StarTransactions.cs b/TdLib.Api/Objects/StarTransactions.cs index a5e58b80..72d0f3d8 100644 --- a/TdLib.Api/Objects/StarTransactions.cs +++ b/TdLib.Api/Objects/StarTransactions.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of Telegram Star transactions /// - public static partial class TdApi + public partial class StarTransactions : Object { /// - /// Represents a list of Telegram Star transactions + /// Data type for serialization /// - public partial class StarTransactions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "starTransactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "starTransactions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The amount of owned Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_amount")] - public StarAmount StarAmount { get; set; } + /// + /// The amount of owned Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_amount")] + public StarAmount StarAmount { get; set; } - /// - /// List of transactions with Telegram Stars - /// - [JsonProperty("transactions", ItemConverterType = typeof(Converter))] - public StarTransaction[] Transactions { get; set; } + /// + /// List of transactions with Telegram Stars + /// + [JsonProperty("transactions", ItemConverterType = typeof(Converter))] + public StarTransaction[] Transactions { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StartLiveStoryResultFail.cs b/TdLib.Api/Objects/StartLiveStoryResultFail.cs index 6cd483ff..abde4529 100644 --- a/TdLib.Api/Objects/StartLiveStoryResultFail.cs +++ b/TdLib.Api/Objects/StartLiveStoryResultFail.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StartLiveStoryResult : Object { - public partial class StartLiveStoryResult : Object + /// + /// The live story failed to post with an error to be handled + /// + public class StartLiveStoryResultFail : StartLiveStoryResult { /// - /// The live story failed to post with an error to be handled + /// Data type for serialization /// - public class StartLiveStoryResultFail : StartLiveStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "startLiveStoryResultFail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "startLiveStoryResultFail"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the error; other error types may be returned as regular errors - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error_type")] - public CanPostStoryResult ErrorType { get; set; } - } + /// + /// Type of the error; other error types may be returned as regular errors + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error_type")] + public CanPostStoryResult ErrorType { get; set; } } } } diff --git a/TdLib.Api/Objects/StartLiveStoryResultOk.cs b/TdLib.Api/Objects/StartLiveStoryResultOk.cs index 13b7b18e..23aa33ff 100644 --- a/TdLib.Api/Objects/StartLiveStoryResultOk.cs +++ b/TdLib.Api/Objects/StartLiveStoryResultOk.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StartLiveStoryResult : Object { - public partial class StartLiveStoryResult : Object + /// + /// Represents result of starting a live story + /// + public class StartLiveStoryResultOk : StartLiveStoryResult { /// - /// Represents result of starting a live story + /// Data type for serialization /// - public class StartLiveStoryResultOk : StartLiveStoryResult - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "startLiveStoryResultOk"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "startLiveStoryResultOk"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The live story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story")] - public Story Story { get; set; } - } + /// + /// The live story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story")] + public Story Story { get; set; } } } } diff --git a/TdLib.Api/Objects/StatisticalGraphAsync.cs b/TdLib.Api/Objects/StatisticalGraphAsync.cs index 64844397..16e0a3c3 100644 --- a/TdLib.Api/Objects/StatisticalGraphAsync.cs +++ b/TdLib.Api/Objects/StatisticalGraphAsync.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StatisticalGraph : Object { - public partial class StatisticalGraph : Object + /// + /// The graph data to be asynchronously loaded through getStatisticalGraph + /// + public class StatisticalGraphAsync : StatisticalGraph { /// - /// The graph data to be asynchronously loaded through getStatisticalGraph + /// Data type for serialization /// - public class StatisticalGraphAsync : StatisticalGraph - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "statisticalGraphAsync"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "statisticalGraphAsync"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The token to use for data loading - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("token")] - public string Token { get; set; } - } + /// + /// The token to use for data loading + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("token")] + public string Token { get; set; } } } } diff --git a/TdLib.Api/Objects/StatisticalGraphData.cs b/TdLib.Api/Objects/StatisticalGraphData.cs index 43f580d4..165b1b2a 100644 --- a/TdLib.Api/Objects/StatisticalGraphData.cs +++ b/TdLib.Api/Objects/StatisticalGraphData.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StatisticalGraph : Object { - public partial class StatisticalGraph : Object + /// + /// Describes a statistical graph + /// + public class StatisticalGraphData : StatisticalGraph { /// - /// Describes a statistical graph + /// Data type for serialization /// - public class StatisticalGraphData : StatisticalGraph - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "statisticalGraphData"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "statisticalGraphData"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Graph data in JSON format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("json_data")] - public string JsonData { get; set; } + /// + /// Graph data in JSON format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("json_data")] + public string JsonData { get; set; } - /// - /// If non-empty, a token which can be used to receive a zoomed in graph - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("zoom_token")] - public string ZoomToken { get; set; } - } + /// + /// If non-empty, a token which can be used to receive a zoomed in graph + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("zoom_token")] + public string ZoomToken { get; set; } } } } diff --git a/TdLib.Api/Objects/StatisticalGraphError.cs b/TdLib.Api/Objects/StatisticalGraphError.cs index 52fb052e..455e6a30 100644 --- a/TdLib.Api/Objects/StatisticalGraphError.cs +++ b/TdLib.Api/Objects/StatisticalGraphError.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StatisticalGraph : Object { - public partial class StatisticalGraph : Object + /// + /// An error message to be shown to the user instead of the graph + /// + public class StatisticalGraphError : StatisticalGraph { /// - /// An error message to be shown to the user instead of the graph + /// Data type for serialization /// - public class StatisticalGraphError : StatisticalGraph - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "statisticalGraphError"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "statisticalGraphError"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The error message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error_message")] - public string ErrorMessage { get; set; } - } + /// + /// The error message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error_message")] + public string ErrorMessage { get; set; } } } } diff --git a/TdLib.Api/Objects/StatisticalValue.cs b/TdLib.Api/Objects/StatisticalValue.cs index a5bf354a..9d5ccf41 100644 --- a/TdLib.Api/Objects/StatisticalValue.cs +++ b/TdLib.Api/Objects/StatisticalValue.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A value with information about its recent changes /// - public static partial class TdApi + public partial class StatisticalValue : Object { /// - /// A value with information about its recent changes + /// Data type for serialization /// - public partial class StatisticalValue : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "statisticalValue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "statisticalValue"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The current value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public double? Value { get; set; } + /// + /// The current value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public double? Value { get; set; } - /// - /// The value for the previous day - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("previous_value")] - public double? PreviousValue { get; set; } + /// + /// The value for the previous day + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("previous_value")] + public double? PreviousValue { get; set; } - /// - /// The growth rate of the value, as a percentage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("growth_rate_percentage")] - public double? GrowthRatePercentage { get; set; } - } + /// + /// The growth rate of the value, as a percentage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("growth_rate_percentage")] + public double? GrowthRatePercentage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Sticker.cs b/TdLib.Api/Objects/Sticker.cs index 025f3123..142a3eb2 100644 --- a/TdLib.Api/Objects/Sticker.cs +++ b/TdLib.Api/Objects/Sticker.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a sticker /// - public static partial class TdApi + public partial class Sticker : Object { /// - /// Describes a sticker + /// Data type for serialization /// - public partial class Sticker : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "sticker"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "sticker"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique sticker identifier within the set; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique sticker identifier within the set; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the sticker set to which the sticker belongs; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("set_id")] - public long SetId { get; set; } + /// + /// Identifier of the sticker set to which the sticker belongs; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("set_id")] + public long SetId { get; set; } - /// - /// Sticker width; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Sticker width; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Sticker height; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Sticker height; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Emoji corresponding to the sticker; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Emoji corresponding to the sticker; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// Sticker format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("format")] - public StickerFormat Format { get; set; } + /// + /// Sticker format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("format")] + public StickerFormat Format { get; set; } - /// - /// Sticker's full type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("full_type")] - public StickerFullType FullType { get; set; } + /// + /// Sticker's full type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("full_type")] + public StickerFullType FullType { get; set; } - /// - /// Sticker thumbnail in WEBP or JPEG format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } + /// + /// Sticker thumbnail in WEBP or JPEG format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } - /// - /// File containing the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public File Sticker_ { get; set; } - } + /// + /// File containing the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public File Sticker_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StickerFormatTgs.cs b/TdLib.Api/Objects/StickerFormatTgs.cs index cea7bddb..aa5f07a8 100644 --- a/TdLib.Api/Objects/StickerFormatTgs.cs +++ b/TdLib.Api/Objects/StickerFormatTgs.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerFormat : Object { - public partial class StickerFormat : Object + /// + /// The sticker is an animation in TGS format + /// + public class StickerFormatTgs : StickerFormat { /// - /// The sticker is an animation in TGS format + /// Data type for serialization /// - public class StickerFormatTgs : StickerFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerFormatTgs"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerFormatTgs"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StickerFormatWebm.cs b/TdLib.Api/Objects/StickerFormatWebm.cs index bde85735..cb3cbef3 100644 --- a/TdLib.Api/Objects/StickerFormatWebm.cs +++ b/TdLib.Api/Objects/StickerFormatWebm.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerFormat : Object { - public partial class StickerFormat : Object + /// + /// The sticker is a video in WEBM format + /// + public class StickerFormatWebm : StickerFormat { /// - /// The sticker is a video in WEBM format + /// Data type for serialization /// - public class StickerFormatWebm : StickerFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerFormatWebm"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerFormatWebm"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StickerFormatWebp.cs b/TdLib.Api/Objects/StickerFormatWebp.cs index 4269b59a..2a01ad36 100644 --- a/TdLib.Api/Objects/StickerFormatWebp.cs +++ b/TdLib.Api/Objects/StickerFormatWebp.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerFormat : Object { - public partial class StickerFormat : Object + /// + /// Describes format of a sticker + /// + public class StickerFormatWebp : StickerFormat { /// - /// Describes format of a sticker + /// Data type for serialization /// - public class StickerFormatWebp : StickerFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerFormatWebp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerFormatWebp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StickerFullTypeCustomEmoji.cs b/TdLib.Api/Objects/StickerFullTypeCustomEmoji.cs index 045b9ec7..5e6cfb70 100644 --- a/TdLib.Api/Objects/StickerFullTypeCustomEmoji.cs +++ b/TdLib.Api/Objects/StickerFullTypeCustomEmoji.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerFullType : Object { - public partial class StickerFullType : Object + /// + /// The sticker is a custom emoji to be used inside message text and caption. Currently, only Telegram Premium users can use custom emoji + /// + public class StickerFullTypeCustomEmoji : StickerFullType { /// - /// The sticker is a custom emoji to be used inside message text and caption. Currently, only Telegram Premium users can use custom emoji + /// Data type for serialization /// - public class StickerFullTypeCustomEmoji : StickerFullType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerFullTypeCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerFullTypeCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the custom emoji - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } + /// + /// Identifier of the custom emoji + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } - /// - /// True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("needs_repainting")] - public bool NeedsRepainting { get; set; } - } + /// + /// True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("needs_repainting")] + public bool NeedsRepainting { get; set; } } } } diff --git a/TdLib.Api/Objects/StickerFullTypeMask.cs b/TdLib.Api/Objects/StickerFullTypeMask.cs index c5c04fa9..3e632747 100644 --- a/TdLib.Api/Objects/StickerFullTypeMask.cs +++ b/TdLib.Api/Objects/StickerFullTypeMask.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerFullType : Object { - public partial class StickerFullType : Object + /// + /// The sticker is a mask in WEBP format to be placed on photos or videos + /// + public class StickerFullTypeMask : StickerFullType { /// - /// The sticker is a mask in WEBP format to be placed on photos or videos + /// Data type for serialization /// - public class StickerFullTypeMask : StickerFullType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerFullTypeMask"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerFullTypeMask"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Position where the mask is placed; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mask_position")] - public MaskPosition MaskPosition { get; set; } - } + /// + /// Position where the mask is placed; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mask_position")] + public MaskPosition MaskPosition { get; set; } } } } diff --git a/TdLib.Api/Objects/StickerFullTypeRegular.cs b/TdLib.Api/Objects/StickerFullTypeRegular.cs index 1940f536..29a326bf 100644 --- a/TdLib.Api/Objects/StickerFullTypeRegular.cs +++ b/TdLib.Api/Objects/StickerFullTypeRegular.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerFullType : Object { - public partial class StickerFullType : Object + /// + /// Contains full information about sticker type + /// + public class StickerFullTypeRegular : StickerFullType { /// - /// Contains full information about sticker type + /// Data type for serialization /// - public class StickerFullTypeRegular : StickerFullType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerFullTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerFullTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Premium animation of the sticker; may be null. If present, only Telegram Premium users can use the sticker - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("premium_animation")] - public File PremiumAnimation { get; set; } - } + /// + /// Premium animation of the sticker; may be null. If present, only Telegram Premium users can use the sticker + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("premium_animation")] + public File PremiumAnimation { get; set; } } } } diff --git a/TdLib.Api/Objects/StickerSet.cs b/TdLib.Api/Objects/StickerSet.cs index a441b2d3..935c7ec7 100644 --- a/TdLib.Api/Objects/StickerSet.cs +++ b/TdLib.Api/Objects/StickerSet.cs @@ -2,133 +2,132 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a sticker set /// - public static partial class TdApi + public partial class StickerSet : Object { /// - /// Represents a sticker set - /// - public partial class StickerSet : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerSet"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the sticker set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Title of the sticker set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// Name of the sticker set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - - /// - /// Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } - - /// - /// Sticker set thumbnail's outline; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_outline")] - public Outline ThumbnailOutline { get; set; } - - /// - /// True, if the sticker set is owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_owned")] - public bool IsOwned { get; set; } - - /// - /// True, if the sticker set has been installed by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_installed")] - public bool IsInstalled { get; set; } - - /// - /// True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_archived")] - public bool IsArchived { get; set; } - - /// - /// True, if the sticker set is official - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_official")] - public bool IsOfficial { get; set; } - - /// - /// Type of the stickers in the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } - - /// - /// True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("needs_repainting")] - public bool NeedsRepainting { get; set; } - - /// - /// True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_allowed_as_chat_emoji_status")] - public bool IsAllowedAsChatEmojiStatus { get; set; } - - /// - /// True for already viewed trending sticker sets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_viewed")] - public bool IsViewed { get; set; } - - /// - /// List of stickers in this set - /// - [JsonProperty("stickers", ItemConverterType = typeof(Converter))] - public Sticker[] Stickers { get; set; } - - /// - /// A list of emojis corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public Emojis[] Emojis { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerSet"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the sticker set + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Title of the sticker set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// Name of the sticker set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } + + /// + /// Sticker set thumbnail's outline; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_outline")] + public Outline ThumbnailOutline { get; set; } + + /// + /// True, if the sticker set is owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_owned")] + public bool IsOwned { get; set; } + + /// + /// True, if the sticker set has been installed by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_installed")] + public bool IsInstalled { get; set; } + + /// + /// True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_archived")] + public bool IsArchived { get; set; } + + /// + /// True, if the sticker set is official + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_official")] + public bool IsOfficial { get; set; } + + /// + /// Type of the stickers in the set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } + + /// + /// True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("needs_repainting")] + public bool NeedsRepainting { get; set; } + + /// + /// True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_allowed_as_chat_emoji_status")] + public bool IsAllowedAsChatEmojiStatus { get; set; } + + /// + /// True for already viewed trending sticker sets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_viewed")] + public bool IsViewed { get; set; } + + /// + /// List of stickers in this set + /// + [JsonProperty("stickers", ItemConverterType = typeof(Converter))] + public Sticker[] Stickers { get; set; } + + /// + /// A list of emojis corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public Emojis[] Emojis { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StickerSetInfo.cs b/TdLib.Api/Objects/StickerSetInfo.cs index 814d0915..c8477818 100644 --- a/TdLib.Api/Objects/StickerSetInfo.cs +++ b/TdLib.Api/Objects/StickerSetInfo.cs @@ -2,134 +2,133 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents short information about a sticker set /// - public static partial class TdApi + public partial class StickerSetInfo : Object { /// - /// Represents short information about a sticker set - /// - public partial class StickerSetInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerSetInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Identifier of the sticker set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Title of the sticker set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// Name of the sticker set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - - /// - /// Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } - - /// - /// Sticker set thumbnail's outline; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail_outline")] - public Outline ThumbnailOutline { get; set; } - - /// - /// True, if the sticker set is owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_owned")] - public bool IsOwned { get; set; } - - /// - /// True, if the sticker set has been installed by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_installed")] - public bool IsInstalled { get; set; } - - /// - /// True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_archived")] - public bool IsArchived { get; set; } - - /// - /// True, if the sticker set is official - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_official")] - public bool IsOfficial { get; set; } - - /// - /// Type of the stickers in the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } - - /// - /// True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("needs_repainting")] - public bool NeedsRepainting { get; set; } - - /// - /// True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_allowed_as_chat_emoji_status")] - public bool IsAllowedAsChatEmojiStatus { get; set; } - - /// - /// True for already viewed trending sticker sets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_viewed")] - public bool IsViewed { get; set; } - - /// - /// Total number of stickers in the set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public int Size { get; set; } - - /// - /// Up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full sticker set needs to be requested - /// - [JsonProperty("covers", ItemConverterType = typeof(Converter))] - public Sticker[] Covers { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerSetInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the sticker set + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Title of the sticker set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// Name of the sticker set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// Sticker set thumbnail in WEBP, TGS, or WEBM format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } + + /// + /// Sticker set thumbnail's outline; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail_outline")] + public Outline ThumbnailOutline { get; set; } + + /// + /// True, if the sticker set is owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_owned")] + public bool IsOwned { get; set; } + + /// + /// True, if the sticker set has been installed by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_installed")] + public bool IsInstalled { get; set; } + + /// + /// True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_archived")] + public bool IsArchived { get; set; } + + /// + /// True, if the sticker set is official + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_official")] + public bool IsOfficial { get; set; } + + /// + /// Type of the stickers in the set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } + + /// + /// True, if stickers in the sticker set are custom emoji that must be repainted; for custom emoji sticker sets only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("needs_repainting")] + public bool NeedsRepainting { get; set; } + + /// + /// True, if stickers in the sticker set are custom emoji that can be used as chat emoji status; for custom emoji sticker sets only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_allowed_as_chat_emoji_status")] + public bool IsAllowedAsChatEmojiStatus { get; set; } + + /// + /// True for already viewed trending sticker sets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_viewed")] + public bool IsViewed { get; set; } + + /// + /// Total number of stickers in the set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public int Size { get; set; } + + /// + /// Up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full sticker set needs to be requested + /// + [JsonProperty("covers", ItemConverterType = typeof(Converter))] + public Sticker[] Covers { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StickerSets.cs b/TdLib.Api/Objects/StickerSets.cs index 541e9f5b..ec62ceac 100644 --- a/TdLib.Api/Objects/StickerSets.cs +++ b/TdLib.Api/Objects/StickerSets.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of sticker sets /// - public static partial class TdApi + public partial class StickerSets : Object { /// - /// Represents a list of sticker sets + /// Data type for serialization /// - public partial class StickerSets : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerSets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerSets"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of sticker sets found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of sticker sets found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of sticker sets - /// - [JsonProperty("sets", ItemConverterType = typeof(Converter))] - public StickerSetInfo[] Sets { get; set; } - } + /// + /// List of sticker sets + /// + [JsonProperty("sets", ItemConverterType = typeof(Converter))] + public StickerSetInfo[] Sets { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StickerTypeCustomEmoji.cs b/TdLib.Api/Objects/StickerTypeCustomEmoji.cs index a7f9e4c6..bf59664f 100644 --- a/TdLib.Api/Objects/StickerTypeCustomEmoji.cs +++ b/TdLib.Api/Objects/StickerTypeCustomEmoji.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerType : Object { - public partial class StickerType : Object + /// + /// The sticker is a custom emoji to be used inside message text and caption + /// + public class StickerTypeCustomEmoji : StickerType { /// - /// The sticker is a custom emoji to be used inside message text and caption + /// Data type for serialization /// - public class StickerTypeCustomEmoji : StickerType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerTypeCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerTypeCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StickerTypeMask.cs b/TdLib.Api/Objects/StickerTypeMask.cs index acbf9aa8..06605ff5 100644 --- a/TdLib.Api/Objects/StickerTypeMask.cs +++ b/TdLib.Api/Objects/StickerTypeMask.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerType : Object { - public partial class StickerType : Object + /// + /// The sticker is a mask in WEBP format to be placed on photos or videos + /// + public class StickerTypeMask : StickerType { /// - /// The sticker is a mask in WEBP format to be placed on photos or videos + /// Data type for serialization /// - public class StickerTypeMask : StickerType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerTypeMask"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerTypeMask"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StickerTypeRegular.cs b/TdLib.Api/Objects/StickerTypeRegular.cs index 8c493b31..4e762f95 100644 --- a/TdLib.Api/Objects/StickerTypeRegular.cs +++ b/TdLib.Api/Objects/StickerTypeRegular.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StickerType : Object { - public partial class StickerType : Object + /// + /// Describes type of sticker + /// + public class StickerTypeRegular : StickerType { /// - /// Describes type of sticker + /// Data type for serialization /// - public class StickerTypeRegular : StickerType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickerTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickerTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Stickers.cs b/TdLib.Api/Objects/Stickers.cs index 8e178aee..713c1df9 100644 --- a/TdLib.Api/Objects/Stickers.cs +++ b/TdLib.Api/Objects/Stickers.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of stickers /// - public static partial class TdApi + public partial class Stickers : Object { /// - /// Represents a list of stickers + /// Data type for serialization /// - public partial class Stickers : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stickers"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of stickers - /// - [JsonProperty("stickers", ItemConverterType = typeof(Converter))] - public Sticker[] Stickers_ { get; set; } - } + /// + /// List of stickers + /// + [JsonProperty("stickers", ItemConverterType = typeof(Converter))] + public Sticker[] Stickers_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StorageStatistics.cs b/TdLib.Api/Objects/StorageStatistics.cs index 87fd275f..e6b484a5 100644 --- a/TdLib.Api/Objects/StorageStatistics.cs +++ b/TdLib.Api/Objects/StorageStatistics.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the exact storage usage statistics split by chats and file type /// - public static partial class TdApi + public partial class StorageStatistics : Object { /// - /// Contains the exact storage usage statistics split by chats and file type + /// Data type for serialization /// - public partial class StorageStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storageStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storageStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total size of files, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public long Size { get; set; } + /// + /// Total size of files, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public long Size { get; set; } - /// - /// Total number of files - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public int Count { get; set; } + /// + /// Total number of files + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public int Count { get; set; } - /// - /// Statistics split by chats - /// - [JsonProperty("by_chat", ItemConverterType = typeof(Converter))] - public StorageStatisticsByChat[] ByChat { get; set; } - } + /// + /// Statistics split by chats + /// + [JsonProperty("by_chat", ItemConverterType = typeof(Converter))] + public StorageStatisticsByChat[] ByChat { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StorageStatisticsByChat.cs b/TdLib.Api/Objects/StorageStatisticsByChat.cs index a227867e..dc31b87e 100644 --- a/TdLib.Api/Objects/StorageStatisticsByChat.cs +++ b/TdLib.Api/Objects/StorageStatisticsByChat.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the storage usage statistics for a specific chat /// - public static partial class TdApi + public partial class StorageStatisticsByChat : Object { /// - /// Contains the storage usage statistics for a specific chat + /// Data type for serialization /// - public partial class StorageStatisticsByChat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storageStatisticsByChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storageStatisticsByChat"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Total size of the files in the chat, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public long Size { get; set; } + /// + /// Total size of the files in the chat, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public long Size { get; set; } - /// - /// Total number of files in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public int Count { get; set; } + /// + /// Total number of files in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public int Count { get; set; } - /// - /// Statistics split by file types - /// - [JsonProperty("by_file_type", ItemConverterType = typeof(Converter))] - public StorageStatisticsByFileType[] ByFileType { get; set; } - } + /// + /// Statistics split by file types + /// + [JsonProperty("by_file_type", ItemConverterType = typeof(Converter))] + public StorageStatisticsByFileType[] ByFileType { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StorageStatisticsByFileType.cs b/TdLib.Api/Objects/StorageStatisticsByFileType.cs index eeaa545d..dd3fbc6d 100644 --- a/TdLib.Api/Objects/StorageStatisticsByFileType.cs +++ b/TdLib.Api/Objects/StorageStatisticsByFileType.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains the storage usage statistics for a specific file type /// - public static partial class TdApi + public partial class StorageStatisticsByFileType : Object { /// - /// Contains the storage usage statistics for a specific file type + /// Data type for serialization /// - public partial class StorageStatisticsByFileType : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storageStatisticsByFileType"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storageStatisticsByFileType"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_type")] - public FileType FileType { get; set; } + /// + /// File type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_type")] + public FileType FileType { get; set; } - /// - /// Total size of the files, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("size")] - public long Size { get; set; } + /// + /// Total size of the files, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("size")] + public long Size { get; set; } - /// - /// Total number of files - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("count")] - public int Count { get; set; } - } + /// + /// Total number of files + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("count")] + public int Count { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StorageStatisticsFast.cs b/TdLib.Api/Objects/StorageStatisticsFast.cs index 128f01d4..498a8902 100644 --- a/TdLib.Api/Objects/StorageStatisticsFast.cs +++ b/TdLib.Api/Objects/StorageStatisticsFast.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains approximate storage usage statistics, excluding files of unknown file type /// - public static partial class TdApi + public partial class StorageStatisticsFast : Object { /// - /// Contains approximate storage usage statistics, excluding files of unknown file type + /// Data type for serialization /// - public partial class StorageStatisticsFast : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storageStatisticsFast"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storageStatisticsFast"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total size of files, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("files_size")] - public long FilesSize { get; set; } + /// + /// Approximate total size of files, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("files_size")] + public long FilesSize { get; set; } - /// - /// Approximate number of files - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_count")] - public int FileCount { get; set; } + /// + /// Approximate number of files + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_count")] + public int FileCount { get; set; } - /// - /// Size of the database - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("database_size")] - public long DatabaseSize { get; set; } + /// + /// Size of the database + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("database_size")] + public long DatabaseSize { get; set; } - /// - /// Size of the language pack database - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_database_size")] - public long LanguagePackDatabaseSize { get; set; } + /// + /// Size of the language pack database + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_database_size")] + public long LanguagePackDatabaseSize { get; set; } - /// - /// Size of the TDLib internal log - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("log_size")] - public long LogSize { get; set; } - } + /// + /// Size of the TDLib internal log + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("log_size")] + public long LogSize { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StorePaymentPurposeGiftedStars.cs b/TdLib.Api/Objects/StorePaymentPurposeGiftedStars.cs index 98a846c1..705231db 100644 --- a/TdLib.Api/Objects/StorePaymentPurposeGiftedStars.cs +++ b/TdLib.Api/Objects/StorePaymentPurposeGiftedStars.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StorePaymentPurpose : Object { - public partial class StorePaymentPurpose : Object + /// + /// The user buying Telegram Stars for other users + /// + public class StorePaymentPurposeGiftedStars : StorePaymentPurpose { /// - /// The user buying Telegram Stars for other users + /// Data type for serialization /// - public class StorePaymentPurposeGiftedStars : StorePaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storePaymentPurposeGiftedStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storePaymentPurposeGiftedStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user to which Telegram Stars are gifted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user to which Telegram Stars are gifted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of bought Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Number of bought Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/StorePaymentPurposePremiumGift.cs b/TdLib.Api/Objects/StorePaymentPurposePremiumGift.cs index 5900c05e..39e4514b 100644 --- a/TdLib.Api/Objects/StorePaymentPurposePremiumGift.cs +++ b/TdLib.Api/Objects/StorePaymentPurposePremiumGift.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StorePaymentPurpose : Object { - public partial class StorePaymentPurpose : Object + /// + /// The user gifting Telegram Premium to another user + /// + public class StorePaymentPurposePremiumGift : StorePaymentPurpose { /// - /// The user gifting Telegram Premium to another user + /// Data type for serialization /// - public class StorePaymentPurposePremiumGift : StorePaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storePaymentPurposePremiumGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storePaymentPurposePremiumGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Identifier of the user who will receive Telegram Premium - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who will receive Telegram Premium + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/StorePaymentPurposePremiumGiftCodes.cs b/TdLib.Api/Objects/StorePaymentPurposePremiumGiftCodes.cs index 7bb9decc..b59a972d 100644 --- a/TdLib.Api/Objects/StorePaymentPurposePremiumGiftCodes.cs +++ b/TdLib.Api/Objects/StorePaymentPurposePremiumGiftCodes.cs @@ -2,66 +2,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StorePaymentPurpose : Object { - public partial class StorePaymentPurpose : Object + /// + /// The user boosting a chat by creating Telegram Premium gift codes for other users + /// + public class StorePaymentPurposePremiumGiftCodes : StorePaymentPurpose { /// - /// The user boosting a chat by creating Telegram Premium gift codes for other users + /// Data type for serialization /// - public class StorePaymentPurposePremiumGiftCodes : StorePaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storePaymentPurposePremiumGiftCodes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storePaymentPurposePremiumGiftCodes"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boosted_chat_id")] - public long BoostedChatId { get; set; } + /// + /// Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boosted_chat_id")] + public long BoostedChatId { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Identifiers of the users who can activate the gift codes - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } + /// + /// Identifiers of the users who can activate the gift codes + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } - /// - /// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/StorePaymentPurposePremiumGiveaway.cs b/TdLib.Api/Objects/StorePaymentPurposePremiumGiveaway.cs index b64991c8..b71c1038 100644 --- a/TdLib.Api/Objects/StorePaymentPurposePremiumGiveaway.cs +++ b/TdLib.Api/Objects/StorePaymentPurposePremiumGiveaway.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StorePaymentPurpose : Object { - public partial class StorePaymentPurpose : Object + /// + /// The user creating a Telegram Premium giveaway + /// + public class StorePaymentPurposePremiumGiveaway : StorePaymentPurpose { /// - /// The user creating a Telegram Premium giveaway + /// Data type for serialization /// - public class StorePaymentPurposePremiumGiveaway : StorePaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storePaymentPurposePremiumGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storePaymentPurposePremiumGiveaway"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Giveaway parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public GiveawayParameters Parameters { get; set; } + /// + /// Giveaway parameters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public GiveawayParameters Parameters { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } - } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } } } } diff --git a/TdLib.Api/Objects/StorePaymentPurposePremiumSubscription.cs b/TdLib.Api/Objects/StorePaymentPurposePremiumSubscription.cs index fe46e33a..dd6af6c0 100644 --- a/TdLib.Api/Objects/StorePaymentPurposePremiumSubscription.cs +++ b/TdLib.Api/Objects/StorePaymentPurposePremiumSubscription.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StorePaymentPurpose : Object { - public partial class StorePaymentPurpose : Object + /// + /// Describes a purpose of an in-store payment + /// + public class StorePaymentPurposePremiumSubscription : StorePaymentPurpose { /// - /// Describes a purpose of an in-store payment + /// Data type for serialization /// - public class StorePaymentPurposePremiumSubscription : StorePaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storePaymentPurposePremiumSubscription"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storePaymentPurposePremiumSubscription"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Pass true if this is a restore of a Telegram Premium purchase; only for App Store - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_restore")] - public bool IsRestore { get; set; } + /// + /// Pass true if this is a restore of a Telegram Premium purchase; only for App Store + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_restore")] + public bool IsRestore { get; set; } - /// - /// Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_upgrade")] - public bool IsUpgrade { get; set; } - } + /// + /// Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_upgrade")] + public bool IsUpgrade { get; set; } } } } diff --git a/TdLib.Api/Objects/StorePaymentPurposeStarGiveaway.cs b/TdLib.Api/Objects/StorePaymentPurposeStarGiveaway.cs index 78ccfba7..518c96bb 100644 --- a/TdLib.Api/Objects/StorePaymentPurposeStarGiveaway.cs +++ b/TdLib.Api/Objects/StorePaymentPurposeStarGiveaway.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StorePaymentPurpose : Object { - public partial class StorePaymentPurpose : Object + /// + /// The user creating a Telegram Star giveaway + /// + public class StorePaymentPurposeStarGiveaway : StorePaymentPurpose { /// - /// The user creating a Telegram Star giveaway + /// Data type for serialization /// - public class StorePaymentPurposeStarGiveaway : StorePaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storePaymentPurposeStarGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storePaymentPurposeStarGiveaway"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Giveaway parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public GiveawayParameters Parameters { get; set; } + /// + /// Giveaway parameters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public GiveawayParameters Parameters { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// The number of users to receive Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// The number of users to receive Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// The number of Telegram Stars to be distributed through the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The number of Telegram Stars to be distributed through the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/StorePaymentPurposeStars.cs b/TdLib.Api/Objects/StorePaymentPurposeStars.cs index a377265e..8c7a4db5 100644 --- a/TdLib.Api/Objects/StorePaymentPurposeStars.cs +++ b/TdLib.Api/Objects/StorePaymentPurposeStars.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StorePaymentPurpose : Object { - public partial class StorePaymentPurpose : Object + /// + /// The user buying Telegram Stars + /// + public class StorePaymentPurposeStars : StorePaymentPurpose { /// - /// The user buying Telegram Stars + /// Data type for serialization /// - public class StorePaymentPurposeStars : StorePaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storePaymentPurposeStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storePaymentPurposeStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of bought Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of bought Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/StoreTransactionAppStore.cs b/TdLib.Api/Objects/StoreTransactionAppStore.cs index c851e994..f540e031 100644 --- a/TdLib.Api/Objects/StoreTransactionAppStore.cs +++ b/TdLib.Api/Objects/StoreTransactionAppStore.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoreTransaction : Object { - public partial class StoreTransaction : Object + /// + /// Describes an in-store transaction + /// + public class StoreTransactionAppStore : StoreTransaction { /// - /// Describes an in-store transaction + /// Data type for serialization /// - public class StoreTransactionAppStore : StoreTransaction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storeTransactionAppStore"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storeTransactionAppStore"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// App Store receipt - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receipt")] - public byte[] Receipt { get; set; } - } + /// + /// App Store receipt + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receipt")] + public byte[] Receipt { get; set; } } } } diff --git a/TdLib.Api/Objects/StoreTransactionGooglePlay.cs b/TdLib.Api/Objects/StoreTransactionGooglePlay.cs index 557113e3..57656537 100644 --- a/TdLib.Api/Objects/StoreTransactionGooglePlay.cs +++ b/TdLib.Api/Objects/StoreTransactionGooglePlay.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoreTransaction : Object { - public partial class StoreTransaction : Object + /// + /// A purchase through Google Play + /// + public class StoreTransactionGooglePlay : StoreTransaction { /// - /// A purchase through Google Play + /// Data type for serialization /// - public class StoreTransactionGooglePlay : StoreTransaction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storeTransactionGooglePlay"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storeTransactionGooglePlay"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Application package name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("package_name")] - public string PackageName { get; set; } + /// + /// Application package name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("package_name")] + public string PackageName { get; set; } - /// - /// Identifier of the purchased store product - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("store_product_id")] - public string StoreProductId { get; set; } + /// + /// Identifier of the purchased store product + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("store_product_id")] + public string StoreProductId { get; set; } - /// - /// Google Play purchase token - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("purchase_token")] - public string PurchaseToken { get; set; } - } + /// + /// Google Play purchase token + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("purchase_token")] + public string PurchaseToken { get; set; } } } } diff --git a/TdLib.Api/Objects/Stories.cs b/TdLib.Api/Objects/Stories.cs index 01f8d487..ae522109 100644 --- a/TdLib.Api/Objects/Stories.cs +++ b/TdLib.Api/Objects/Stories.cs @@ -2,49 +2,48 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of stories /// - public static partial class TdApi + public partial class Stories : Object { /// - /// Represents a list of stories + /// Data type for serialization /// - public partial class Stories : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "stories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "stories"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of stories found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of stories found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// The list of stories - /// - [JsonProperty("stories", ItemConverterType = typeof(Converter))] - public Story[] Stories_ { get; set; } + /// + /// The list of stories + /// + [JsonProperty("stories", ItemConverterType = typeof(Converter))] + public Story[] Stories_ { get; set; } - /// - /// Identifiers of the pinned stories; returned only in getChatPostedToChatPageStories with from_story_id == 0 - /// - [JsonProperty("pinned_story_ids", ItemConverterType = typeof(Converter))] - public int[] PinnedStoryIds { get; set; } - } + /// + /// Identifiers of the pinned stories; returned only in getChatPostedToChatPageStories with from_story_id == 0 + /// + [JsonProperty("pinned_story_ids", ItemConverterType = typeof(Converter))] + public int[] PinnedStoryIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Story.cs b/TdLib.Api/Objects/Story.cs index 46f1402e..17f63415 100644 --- a/TdLib.Api/Objects/Story.cs +++ b/TdLib.Api/Objects/Story.cs @@ -2,217 +2,216 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a story /// - public static partial class TdApi + public partial class Story : Object { /// - /// Represents a story - /// - public partial class Story : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "story"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique story identifier among stories posted by the given chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } - - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poster_chat_id")] - public long PosterChatId { get; set; } - - /// - /// Identifier of the user or chat that posted the story; may be null if the story is posted on behalf of the poster_chat_id - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poster_id")] - public MessageSender PosterId { get; set; } - - /// - /// Point in time (Unix timestamp) when the story was published - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - - /// - /// True, if the story is being posted by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_being_posted")] - public bool IsBeingPosted { get; set; } - - /// - /// True, if the story is being edited by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_being_edited")] - public bool IsBeingEdited { get; set; } - - /// - /// True, if the story was edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_edited")] - public bool IsEdited { get; set; } - - /// - /// True, if the story is saved in the profile of the chat that posted it and will be available there after expiration - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_posted_to_chat_page")] - public bool IsPostedToChatPage { get; set; } - - /// - /// True, if the story is visible only for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_visible_only_for_self")] - public bool IsVisibleOnlyForSelf { get; set; } - - /// - /// True, if the story can be added to an album using createStoryAlbum and addStoryAlbumStories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_added_to_album")] - public bool CanBeAddedToAlbum { get; set; } - - /// - /// True, if the story can be deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_deleted")] - public bool CanBeDeleted { get; set; } - - /// - /// True, if the story can be edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_edited")] - public bool CanBeEdited { get; set; } - - /// - /// True, if the story can be forwarded as a message or reposted as a story. Otherwise, screenshotting and saving of the story content must be also forbidden - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_forwarded")] - public bool CanBeForwarded { get; set; } - - /// - /// True, if the story can be replied in the chat with the user who posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_replied")] - public bool CanBeReplied { get; set; } - - /// - /// True, if the story privacy settings can be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_privacy_settings")] - public bool CanSetPrivacySettings { get; set; } - - /// - /// True, if the story's is_posted_to_chat_page value can be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_toggle_is_posted_to_chat_page")] - public bool CanToggleIsPostedToChatPage { get; set; } - - /// - /// True, if the story statistics are available through getStoryStatistics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_statistics")] - public bool CanGetStatistics { get; set; } - - /// - /// True, if interactions with the story can be received through getStoryInteractions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_interactions")] - public bool CanGetInteractions { get; set; } - - /// - /// True, if users who viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_expired_viewers")] - public bool HasExpiredViewers { get; set; } - - /// - /// Information about the original story; may be null if the story wasn't reposted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("repost_info")] - public StoryRepostInfo RepostInfo { get; set; } - - /// - /// Information about interactions with the story; may be null if the story isn't owned or there were no interactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("interaction_info")] - public StoryInteractionInfo InteractionInfo { get; set; } - - /// - /// Type of the chosen reaction; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chosen_reaction_type")] - public ReactionType ChosenReactionType { get; set; } - - /// - /// Privacy rules affecting story visibility; may be approximate for non-owned stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("privacy_settings")] - public StoryPrivacySettings PrivacySettings { get; set; } - - /// - /// Content of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public StoryContent Content { get; set; } - - /// - /// Clickable areas to be shown on the story content - /// - [JsonProperty("areas", ItemConverterType = typeof(Converter))] - public StoryArea[] Areas { get; set; } - - /// - /// Caption of the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("caption")] - public FormattedText Caption { get; set; } - - /// - /// Identifiers of story albums to which the story is added; only for manageable stories - /// - [JsonProperty("album_ids", ItemConverterType = typeof(Converter))] - public int[] AlbumIds { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "story"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique story identifier among stories posted by the given chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } + + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poster_chat_id")] + public long PosterChatId { get; set; } + + /// + /// Identifier of the user or chat that posted the story; may be null if the story is posted on behalf of the poster_chat_id + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poster_id")] + public MessageSender PosterId { get; set; } + + /// + /// Point in time (Unix timestamp) when the story was published + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + + /// + /// True, if the story is being posted by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_being_posted")] + public bool IsBeingPosted { get; set; } + + /// + /// True, if the story is being edited by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_being_edited")] + public bool IsBeingEdited { get; set; } + + /// + /// True, if the story was edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_edited")] + public bool IsEdited { get; set; } + + /// + /// True, if the story is saved in the profile of the chat that posted it and will be available there after expiration + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_posted_to_chat_page")] + public bool IsPostedToChatPage { get; set; } + + /// + /// True, if the story is visible only for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_visible_only_for_self")] + public bool IsVisibleOnlyForSelf { get; set; } + + /// + /// True, if the story can be added to an album using createStoryAlbum and addStoryAlbumStories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_added_to_album")] + public bool CanBeAddedToAlbum { get; set; } + + /// + /// True, if the story can be deleted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_deleted")] + public bool CanBeDeleted { get; set; } + + /// + /// True, if the story can be edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_edited")] + public bool CanBeEdited { get; set; } + + /// + /// True, if the story can be forwarded as a message or reposted as a story. Otherwise, screenshotting and saving of the story content must be also forbidden + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_forwarded")] + public bool CanBeForwarded { get; set; } + + /// + /// True, if the story can be replied in the chat with the user who posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_replied")] + public bool CanBeReplied { get; set; } + + /// + /// True, if the story privacy settings can be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_privacy_settings")] + public bool CanSetPrivacySettings { get; set; } + + /// + /// True, if the story's is_posted_to_chat_page value can be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_toggle_is_posted_to_chat_page")] + public bool CanToggleIsPostedToChatPage { get; set; } + + /// + /// True, if the story statistics are available through getStoryStatistics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_statistics")] + public bool CanGetStatistics { get; set; } + + /// + /// True, if interactions with the story can be received through getStoryInteractions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_interactions")] + public bool CanGetInteractions { get; set; } + + /// + /// True, if users who viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_expired_viewers")] + public bool HasExpiredViewers { get; set; } + + /// + /// Information about the original story; may be null if the story wasn't reposted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("repost_info")] + public StoryRepostInfo RepostInfo { get; set; } + + /// + /// Information about interactions with the story; may be null if the story isn't owned or there were no interactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("interaction_info")] + public StoryInteractionInfo InteractionInfo { get; set; } + + /// + /// Type of the chosen reaction; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chosen_reaction_type")] + public ReactionType ChosenReactionType { get; set; } + + /// + /// Privacy rules affecting story visibility; may be approximate for non-owned stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("privacy_settings")] + public StoryPrivacySettings PrivacySettings { get; set; } + + /// + /// Content of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public StoryContent Content { get; set; } + + /// + /// Clickable areas to be shown on the story content + /// + [JsonProperty("areas", ItemConverterType = typeof(Converter))] + public StoryArea[] Areas { get; set; } + + /// + /// Caption of the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("caption")] + public FormattedText Caption { get; set; } + + /// + /// Identifiers of story albums to which the story is added; only for manageable stories + /// + [JsonProperty("album_ids", ItemConverterType = typeof(Converter))] + public int[] AlbumIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryAlbum.cs b/TdLib.Api/Objects/StoryAlbum.cs index 97b41bf3..4319fb16 100644 --- a/TdLib.Api/Objects/StoryAlbum.cs +++ b/TdLib.Api/Objects/StoryAlbum.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes album of stories /// - public static partial class TdApi + public partial class StoryAlbum : Object { /// - /// Describes album of stories + /// Data type for serialization /// - public partial class StoryAlbum : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAlbum"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAlbum"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique identifier of the album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Name of the album - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the album + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Icon of the album; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo_icon")] - public Photo PhotoIcon { get; set; } + /// + /// Icon of the album; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo_icon")] + public Photo PhotoIcon { get; set; } - /// - /// Video icon of the album; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_icon")] - public Video VideoIcon { get; set; } - } + /// + /// Video icon of the album; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_icon")] + public Video VideoIcon { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryAlbums.cs b/TdLib.Api/Objects/StoryAlbums.cs index 9d4f222a..95ec057e 100644 --- a/TdLib.Api/Objects/StoryAlbums.cs +++ b/TdLib.Api/Objects/StoryAlbums.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of story albums /// - public static partial class TdApi + public partial class StoryAlbums : Object { /// - /// Represents a list of story albums + /// Data type for serialization /// - public partial class StoryAlbums : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAlbums"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAlbums"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of story albums - /// - [JsonProperty("albums", ItemConverterType = typeof(Converter))] - public StoryAlbum[] Albums { get; set; } - } + /// + /// List of story albums + /// + [JsonProperty("albums", ItemConverterType = typeof(Converter))] + public StoryAlbum[] Albums { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryArea.cs b/TdLib.Api/Objects/StoryArea.cs index 973bb1f5..de4852f4 100644 --- a/TdLib.Api/Objects/StoryArea.cs +++ b/TdLib.Api/Objects/StoryArea.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a clickable rectangle area on a story media /// - public static partial class TdApi + public partial class StoryArea : Object { /// - /// Describes a clickable rectangle area on a story media + /// Data type for serialization /// - public partial class StoryArea : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyArea"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyArea"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Position of the area - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public StoryAreaPosition Position { get; set; } + /// + /// Position of the area + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public StoryAreaPosition Position { get; set; } - /// - /// Type of the area - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public StoryAreaType Type { get; set; } - } + /// + /// Type of the area + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public StoryAreaType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryAreaPosition.cs b/TdLib.Api/Objects/StoryAreaPosition.cs index 380c79d2..f52b5ce1 100644 --- a/TdLib.Api/Objects/StoryAreaPosition.cs +++ b/TdLib.Api/Objects/StoryAreaPosition.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes position of a clickable rectangle area on a story media /// - public static partial class TdApi + public partial class StoryAreaPosition : Object { /// - /// Describes position of a clickable rectangle area on a story media + /// Data type for serialization /// - public partial class StoryAreaPosition : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaPosition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaPosition"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The abscissa of the rectangle's center, as a percentage of the media width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("x_percentage")] - public double? XPercentage { get; set; } + /// + /// The abscissa of the rectangle's center, as a percentage of the media width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("x_percentage")] + public double? XPercentage { get; set; } - /// - /// The ordinate of the rectangle's center, as a percentage of the media height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("y_percentage")] - public double? YPercentage { get; set; } + /// + /// The ordinate of the rectangle's center, as a percentage of the media height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("y_percentage")] + public double? YPercentage { get; set; } - /// - /// The width of the rectangle, as a percentage of the media width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width_percentage")] - public double? WidthPercentage { get; set; } + /// + /// The width of the rectangle, as a percentage of the media width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width_percentage")] + public double? WidthPercentage { get; set; } - /// - /// The height of the rectangle, as a percentage of the media height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height_percentage")] - public double? HeightPercentage { get; set; } + /// + /// The height of the rectangle, as a percentage of the media height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height_percentage")] + public double? HeightPercentage { get; set; } - /// - /// Clockwise rotation angle of the rectangle, in degrees; 0-360 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rotation_angle")] - public double? RotationAngle { get; set; } + /// + /// Clockwise rotation angle of the rectangle, in degrees; 0-360 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rotation_angle")] + public double? RotationAngle { get; set; } - /// - /// The radius of the rectangle corner rounding, as a percentage of the media width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("corner_radius_percentage")] - public double? CornerRadiusPercentage { get; set; } - } + /// + /// The radius of the rectangle corner rounding, as a percentage of the media width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("corner_radius_percentage")] + public double? CornerRadiusPercentage { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryAreaTypeLink.cs b/TdLib.Api/Objects/StoryAreaTypeLink.cs index 21025b11..d46aab13 100644 --- a/TdLib.Api/Objects/StoryAreaTypeLink.cs +++ b/TdLib.Api/Objects/StoryAreaTypeLink.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryAreaType : Object { - public partial class StoryAreaType : Object + /// + /// An area pointing to a HTTP or tg:// link + /// + public class StoryAreaTypeLink : StoryAreaType { /// - /// An area pointing to a HTTP or tg:// link + /// Data type for serialization /// - public class StoryAreaTypeLink : StoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaTypeLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaTypeLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// HTTP or tg:// URL to be opened when the area is clicked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// HTTP or tg:// URL to be opened when the area is clicked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryAreaTypeLocation.cs b/TdLib.Api/Objects/StoryAreaTypeLocation.cs index 0018382f..1ad88991 100644 --- a/TdLib.Api/Objects/StoryAreaTypeLocation.cs +++ b/TdLib.Api/Objects/StoryAreaTypeLocation.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryAreaType : Object { - public partial class StoryAreaType : Object + /// + /// Describes type of clickable area on a story media + /// + public class StoryAreaTypeLocation : StoryAreaType { /// - /// Describes type of clickable area on a story media + /// Data type for serialization /// - public class StoryAreaTypeLocation : StoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaTypeLocation"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaTypeLocation"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// The location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Address of the location; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public LocationAddress Address { get; set; } - } + /// + /// Address of the location; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public LocationAddress Address { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryAreaTypeMessage.cs b/TdLib.Api/Objects/StoryAreaTypeMessage.cs index f2d76536..7a1a84c4 100644 --- a/TdLib.Api/Objects/StoryAreaTypeMessage.cs +++ b/TdLib.Api/Objects/StoryAreaTypeMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryAreaType : Object { - public partial class StoryAreaType : Object + /// + /// An area pointing to a message + /// + public class StoryAreaTypeMessage : StoryAreaType { /// - /// An area pointing to a message + /// Data type for serialization /// - public class StoryAreaTypeMessage : StoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaTypeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaTypeMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryAreaTypeSuggestedReaction.cs b/TdLib.Api/Objects/StoryAreaTypeSuggestedReaction.cs index 767380ab..88d252c3 100644 --- a/TdLib.Api/Objects/StoryAreaTypeSuggestedReaction.cs +++ b/TdLib.Api/Objects/StoryAreaTypeSuggestedReaction.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryAreaType : Object { - public partial class StoryAreaType : Object + /// + /// An area pointing to a suggested reaction. App needs to show a clickable reaction on the area and call setStoryReaction when the area is clicked + /// + public class StoryAreaTypeSuggestedReaction : StoryAreaType { /// - /// An area pointing to a suggested reaction. App needs to show a clickable reaction on the area and call setStoryReaction when the area is clicked + /// Data type for serialization /// - public class StoryAreaTypeSuggestedReaction : StoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaTypeSuggestedReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaTypeSuggestedReaction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } + /// + /// Type of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } - /// - /// Number of times the reaction was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Number of times the reaction was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// True, if reaction has a dark background - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_dark")] - public bool IsDark { get; set; } + /// + /// True, if reaction has a dark background + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_dark")] + public bool IsDark { get; set; } - /// - /// True, if reaction corner is flipped - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_flipped")] - public bool IsFlipped { get; set; } - } + /// + /// True, if reaction corner is flipped + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_flipped")] + public bool IsFlipped { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryAreaTypeUpgradedGift.cs b/TdLib.Api/Objects/StoryAreaTypeUpgradedGift.cs index 864150b2..a6a5b54a 100644 --- a/TdLib.Api/Objects/StoryAreaTypeUpgradedGift.cs +++ b/TdLib.Api/Objects/StoryAreaTypeUpgradedGift.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryAreaType : Object { - public partial class StoryAreaType : Object + /// + /// An area with an upgraded gift + /// + public class StoryAreaTypeUpgradedGift : StoryAreaType { /// - /// An area with an upgraded gift + /// Data type for serialization /// - public class StoryAreaTypeUpgradedGift : StoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaTypeUpgradedGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaTypeUpgradedGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique name of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_name")] - public string GiftName { get; set; } - } + /// + /// Unique name of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_name")] + public string GiftName { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryAreaTypeVenue.cs b/TdLib.Api/Objects/StoryAreaTypeVenue.cs index 65893059..41d8ec55 100644 --- a/TdLib.Api/Objects/StoryAreaTypeVenue.cs +++ b/TdLib.Api/Objects/StoryAreaTypeVenue.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryAreaType : Object { - public partial class StoryAreaType : Object + /// + /// An area pointing to a venue + /// + public class StoryAreaTypeVenue : StoryAreaType { /// - /// An area pointing to a venue + /// Data type for serialization /// - public class StoryAreaTypeVenue : StoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaTypeVenue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaTypeVenue"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the venue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("venue")] - public Venue Venue { get; set; } - } + /// + /// Information about the venue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("venue")] + public Venue Venue { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryAreaTypeWeather.cs b/TdLib.Api/Objects/StoryAreaTypeWeather.cs index d55823c7..b9744904 100644 --- a/TdLib.Api/Objects/StoryAreaTypeWeather.cs +++ b/TdLib.Api/Objects/StoryAreaTypeWeather.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryAreaType : Object { - public partial class StoryAreaType : Object + /// + /// An area with information about weather + /// + public class StoryAreaTypeWeather : StoryAreaType { /// - /// An area with information about weather + /// Data type for serialization /// - public class StoryAreaTypeWeather : StoryAreaType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyAreaTypeWeather"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyAreaTypeWeather"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Temperature, in degree Celsius - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("temperature")] - public double? Temperature { get; set; } + /// + /// Temperature, in degree Celsius + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("temperature")] + public double? Temperature { get; set; } - /// - /// Emoji representing the weather - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji")] - public string Emoji { get; set; } + /// + /// Emoji representing the weather + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji")] + public string Emoji { get; set; } - /// - /// A color of the area background in the ARGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background_color")] - public int BackgroundColor { get; set; } - } + /// + /// A color of the area background in the ARGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background_color")] + public int BackgroundColor { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryContentLive.cs b/TdLib.Api/Objects/StoryContentLive.cs index 7433eb74..f4e7c845 100644 --- a/TdLib.Api/Objects/StoryContentLive.cs +++ b/TdLib.Api/Objects/StoryContentLive.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContent : Object { - public partial class StoryContent : Object + /// + /// A live story + /// + public class StoryContentLive : StoryContent { /// - /// A live story + /// Data type for serialization /// - public class StoryContentLive : StoryContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentLive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentLive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the corresponding group call. The group call can be received through the method getGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the corresponding group call. The group call can be received through the method getGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// True, if the call is an RTMP stream instead of an ordinary group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtmp_stream")] - public bool IsRtmpStream { get; set; } - } + /// + /// True, if the call is an RTMP stream instead of an ordinary group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtmp_stream")] + public bool IsRtmpStream { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryContentPhoto.cs b/TdLib.Api/Objects/StoryContentPhoto.cs index 559b4d74..19a4aee1 100644 --- a/TdLib.Api/Objects/StoryContentPhoto.cs +++ b/TdLib.Api/Objects/StoryContentPhoto.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContent : Object { - public partial class StoryContent : Object + /// + /// Contains the content of a story + /// + public class StoryContentPhoto : StoryContent { /// - /// Contains the content of a story + /// Data type for serialization /// - public class StoryContentPhoto : StoryContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } - } + /// + /// The photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryContentTypeLive.cs b/TdLib.Api/Objects/StoryContentTypeLive.cs index b7c6169a..bf58f96f 100644 --- a/TdLib.Api/Objects/StoryContentTypeLive.cs +++ b/TdLib.Api/Objects/StoryContentTypeLive.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContentType : Object { - public partial class StoryContentType : Object + /// + /// A live story + /// + public class StoryContentTypeLive : StoryContentType { /// - /// A live story + /// Data type for serialization /// - public class StoryContentTypeLive : StoryContentType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentTypeLive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentTypeLive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryContentTypePhoto.cs b/TdLib.Api/Objects/StoryContentTypePhoto.cs index ef9c9108..56d35b86 100644 --- a/TdLib.Api/Objects/StoryContentTypePhoto.cs +++ b/TdLib.Api/Objects/StoryContentTypePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContentType : Object { - public partial class StoryContentType : Object + /// + /// Contains the type of the content of a story + /// + public class StoryContentTypePhoto : StoryContentType { /// - /// Contains the type of the content of a story + /// Data type for serialization /// - public class StoryContentTypePhoto : StoryContentType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentTypePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentTypePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryContentTypeUnsupported.cs b/TdLib.Api/Objects/StoryContentTypeUnsupported.cs index 89b40ceb..5e268f44 100644 --- a/TdLib.Api/Objects/StoryContentTypeUnsupported.cs +++ b/TdLib.Api/Objects/StoryContentTypeUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContentType : Object { - public partial class StoryContentType : Object + /// + /// A story of unknown content type + /// + public class StoryContentTypeUnsupported : StoryContentType { /// - /// A story of unknown content type + /// Data type for serialization /// - public class StoryContentTypeUnsupported : StoryContentType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentTypeUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentTypeUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryContentTypeVideo.cs b/TdLib.Api/Objects/StoryContentTypeVideo.cs index 708846b0..5d71ec71 100644 --- a/TdLib.Api/Objects/StoryContentTypeVideo.cs +++ b/TdLib.Api/Objects/StoryContentTypeVideo.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContentType : Object { - public partial class StoryContentType : Object + /// + /// A video story + /// + public class StoryContentTypeVideo : StoryContentType { /// - /// A video story + /// Data type for serialization /// - public class StoryContentTypeVideo : StoryContentType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentTypeVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentTypeVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryContentUnsupported.cs b/TdLib.Api/Objects/StoryContentUnsupported.cs index 175daaf0..00a1730b 100644 --- a/TdLib.Api/Objects/StoryContentUnsupported.cs +++ b/TdLib.Api/Objects/StoryContentUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContent : Object { - public partial class StoryContent : Object + /// + /// A story content that is not supported in the current TDLib version + /// + public class StoryContentUnsupported : StoryContent { /// - /// A story content that is not supported in the current TDLib version + /// Data type for serialization /// - public class StoryContentUnsupported : StoryContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryContentVideo.cs b/TdLib.Api/Objects/StoryContentVideo.cs index e0aa1948..b0ceb240 100644 --- a/TdLib.Api/Objects/StoryContentVideo.cs +++ b/TdLib.Api/Objects/StoryContentVideo.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryContent : Object { - public partial class StoryContent : Object + /// + /// A video story + /// + public class StoryContentVideo : StoryContent { /// - /// A video story + /// Data type for serialization /// - public class StoryContentVideo : StoryContent - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyContentVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyContentVideo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The video in MPEG4 format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public StoryVideo Video { get; set; } + /// + /// The video in MPEG4 format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public StoryVideo Video { get; set; } - /// - /// Alternative version of the video in MPEG4 format, encoded with H.264 codec; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("alternative_video")] - public StoryVideo AlternativeVideo { get; set; } - } + /// + /// Alternative version of the video in MPEG4 format, encoded with H.264 codec; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("alternative_video")] + public StoryVideo AlternativeVideo { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryFullId.cs b/TdLib.Api/Objects/StoryFullId.cs index 0035a63e..23bafc0c 100644 --- a/TdLib.Api/Objects/StoryFullId.cs +++ b/TdLib.Api/Objects/StoryFullId.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains identifier of a story along with identifier of the chat that posted it /// - public static partial class TdApi + public partial class StoryFullId : Object { /// - /// Contains identifier of a story along with identifier of the chat that posted it + /// Data type for serialization /// - public partial class StoryFullId : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyFullId"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyFullId"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poster_chat_id")] - public long PosterChatId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poster_chat_id")] + public long PosterChatId { get; set; } - /// - /// Unique story identifier among stories of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Unique story identifier among stories of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryInfo.cs b/TdLib.Api/Objects/StoryInfo.cs index 0a39033c..0b7123f4 100644 --- a/TdLib.Api/Objects/StoryInfo.cs +++ b/TdLib.Api/Objects/StoryInfo.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains basic information about a story /// - public static partial class TdApi + public partial class StoryInfo : Object { /// - /// Contains basic information about a story + /// Data type for serialization /// - public partial class StoryInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique story identifier among stories of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } + /// + /// Unique story identifier among stories of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } - /// - /// Point in time (Unix timestamp) when the story was published - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the story was published + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// True, if the story is available only to close friends - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_for_close_friends")] - public bool IsForCloseFriends { get; set; } + /// + /// True, if the story is available only to close friends + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_for_close_friends")] + public bool IsForCloseFriends { get; set; } - /// - /// True, if the story is a live story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_live")] - public bool IsLive { get; set; } - } + /// + /// True, if the story is a live story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_live")] + public bool IsLive { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryInteraction.cs b/TdLib.Api/Objects/StoryInteraction.cs index 753fa9e2..6dcf144b 100644 --- a/TdLib.Api/Objects/StoryInteraction.cs +++ b/TdLib.Api/Objects/StoryInteraction.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents interaction with a story /// - public static partial class TdApi + public partial class StoryInteraction : Object { /// - /// Represents interaction with a story + /// Data type for serialization /// - public partial class StoryInteraction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyInteraction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyInteraction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or chat that made the interaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("actor_id")] - public MessageSender ActorId { get; set; } + /// + /// Identifier of the user or chat that made the interaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("actor_id")] + public MessageSender ActorId { get; set; } - /// - /// Approximate point in time (Unix timestamp) when the interaction happened - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("interaction_date")] - public int InteractionDate { get; set; } + /// + /// Approximate point in time (Unix timestamp) when the interaction happened + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("interaction_date")] + public int InteractionDate { get; set; } - /// - /// Block list to which the actor is added; may be null if none or for chat stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("block_list")] - public BlockList BlockList { get; set; } + /// + /// Block list to which the actor is added; may be null if none or for chat stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("block_list")] + public BlockList BlockList { get; set; } - /// - /// Type of the interaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public StoryInteractionType Type { get; set; } - } + /// + /// Type of the interaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public StoryInteractionType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryInteractionInfo.cs b/TdLib.Api/Objects/StoryInteractionInfo.cs index 4d8ff6ee..6b6f8491 100644 --- a/TdLib.Api/Objects/StoryInteractionInfo.cs +++ b/TdLib.Api/Objects/StoryInteractionInfo.cs @@ -2,57 +2,56 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about interactions with a story /// - public static partial class TdApi + public partial class StoryInteractionInfo : Object { /// - /// Contains information about interactions with a story + /// Data type for serialization /// - public partial class StoryInteractionInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyInteractionInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyInteractionInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number of times the story was viewed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_count")] - public int ViewCount { get; set; } + /// + /// Number of times the story was viewed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_count")] + public int ViewCount { get; set; } - /// - /// Number of times the story was forwarded; 0 if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forward_count")] - public int ForwardCount { get; set; } + /// + /// Number of times the story was forwarded; 0 if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forward_count")] + public int ForwardCount { get; set; } - /// - /// Number of reactions added to the story; 0 if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_count")] - public int ReactionCount { get; set; } + /// + /// Number of reactions added to the story; 0 if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_count")] + public int ReactionCount { get; set; } - /// - /// Identifiers of at most 3 recent viewers of the story - /// - [JsonProperty("recent_viewer_user_ids", ItemConverterType = typeof(Converter))] - public long[] RecentViewerUserIds { get; set; } - } + /// + /// Identifiers of at most 3 recent viewers of the story + /// + [JsonProperty("recent_viewer_user_ids", ItemConverterType = typeof(Converter))] + public long[] RecentViewerUserIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryInteractionTypeForward.cs b/TdLib.Api/Objects/StoryInteractionTypeForward.cs index f85ed1d7..c109b53c 100644 --- a/TdLib.Api/Objects/StoryInteractionTypeForward.cs +++ b/TdLib.Api/Objects/StoryInteractionTypeForward.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryInteractionType : Object { - public partial class StoryInteractionType : Object + /// + /// A forward of the story as a message + /// + public class StoryInteractionTypeForward : StoryInteractionType { /// - /// A forward of the story as a message + /// Data type for serialization /// - public class StoryInteractionTypeForward : StoryInteractionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyInteractionTypeForward"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyInteractionTypeForward"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The message with story forward - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } - } + /// + /// The message with story forward + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryInteractionTypeRepost.cs b/TdLib.Api/Objects/StoryInteractionTypeRepost.cs index 0d165552..65c4368e 100644 --- a/TdLib.Api/Objects/StoryInteractionTypeRepost.cs +++ b/TdLib.Api/Objects/StoryInteractionTypeRepost.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryInteractionType : Object { - public partial class StoryInteractionType : Object + /// + /// A repost of the story as a story + /// + public class StoryInteractionTypeRepost : StoryInteractionType { /// - /// A repost of the story as a story + /// Data type for serialization /// - public class StoryInteractionTypeRepost : StoryInteractionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyInteractionTypeRepost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyInteractionTypeRepost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The reposted story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story")] - public Story Story { get; set; } - } + /// + /// The reposted story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story")] + public Story Story { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryInteractionTypeView.cs b/TdLib.Api/Objects/StoryInteractionTypeView.cs index c3173305..d77b2f7d 100644 --- a/TdLib.Api/Objects/StoryInteractionTypeView.cs +++ b/TdLib.Api/Objects/StoryInteractionTypeView.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryInteractionType : Object { - public partial class StoryInteractionType : Object + /// + /// Describes type of interaction with a story + /// + public class StoryInteractionTypeView : StoryInteractionType { /// - /// Describes type of interaction with a story + /// Data type for serialization /// - public class StoryInteractionTypeView : StoryInteractionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyInteractionTypeView"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyInteractionTypeView"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the reaction that was chosen by the viewer; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chosen_reaction_type")] - public ReactionType ChosenReactionType { get; set; } - } + /// + /// Type of the reaction that was chosen by the viewer; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chosen_reaction_type")] + public ReactionType ChosenReactionType { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryInteractions.cs b/TdLib.Api/Objects/StoryInteractions.cs index 5f825556..c2caa2c9 100644 --- a/TdLib.Api/Objects/StoryInteractions.cs +++ b/TdLib.Api/Objects/StoryInteractions.cs @@ -2,64 +2,63 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of interactions with a story /// - public static partial class TdApi + public partial class StoryInteractions : Object { /// - /// Represents a list of interactions with a story + /// Data type for serialization /// - public partial class StoryInteractions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyInteractions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyInteractions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of interactions found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of interactions found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// Approximate total number of found forwards and reposts; always 0 for chat stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_forward_count")] - public int TotalForwardCount { get; set; } + /// + /// Approximate total number of found forwards and reposts; always 0 for chat stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_forward_count")] + public int TotalForwardCount { get; set; } - /// - /// Approximate total number of found reactions; always 0 for chat stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_reaction_count")] - public int TotalReactionCount { get; set; } + /// + /// Approximate total number of found reactions; always 0 for chat stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_reaction_count")] + public int TotalReactionCount { get; set; } - /// - /// List of story interactions - /// - [JsonProperty("interactions", ItemConverterType = typeof(Converter))] - public StoryInteraction[] Interactions { get; set; } + /// + /// List of story interactions + /// + [JsonProperty("interactions", ItemConverterType = typeof(Converter))] + public StoryInteraction[] Interactions { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryListArchive.cs b/TdLib.Api/Objects/StoryListArchive.cs index 59274fe1..04e077f3 100644 --- a/TdLib.Api/Objects/StoryListArchive.cs +++ b/TdLib.Api/Objects/StoryListArchive.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryList : Object { - public partial class StoryList : Object + /// + /// The list of stories, shown in the Archive chat list + /// + public class StoryListArchive : StoryList { /// - /// The list of stories, shown in the Archive chat list + /// Data type for serialization /// - public class StoryListArchive : StoryList - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyListArchive"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyListArchive"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryListMain.cs b/TdLib.Api/Objects/StoryListMain.cs index 2098ca99..b15c082b 100644 --- a/TdLib.Api/Objects/StoryListMain.cs +++ b/TdLib.Api/Objects/StoryListMain.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryList : Object { - public partial class StoryList : Object + /// + /// Describes a list of stories + /// + public class StoryListMain : StoryList { /// - /// Describes a list of stories + /// Data type for serialization /// - public class StoryListMain : StoryList - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyListMain"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyListMain"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryOriginHiddenUser.cs b/TdLib.Api/Objects/StoryOriginHiddenUser.cs index d5197ed4..13f602e5 100644 --- a/TdLib.Api/Objects/StoryOriginHiddenUser.cs +++ b/TdLib.Api/Objects/StoryOriginHiddenUser.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryOrigin : Object { - public partial class StoryOrigin : Object + /// + /// The original story was posted by an unknown user + /// + public class StoryOriginHiddenUser : StoryOrigin { /// - /// The original story was posted by an unknown user + /// Data type for serialization /// - public class StoryOriginHiddenUser : StoryOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyOriginHiddenUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyOriginHiddenUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the user or the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poster_name")] - public string PosterName { get; set; } - } + /// + /// Name of the user or the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poster_name")] + public string PosterName { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryOriginPublicStory.cs b/TdLib.Api/Objects/StoryOriginPublicStory.cs index 115ea87f..bcc49f7d 100644 --- a/TdLib.Api/Objects/StoryOriginPublicStory.cs +++ b/TdLib.Api/Objects/StoryOriginPublicStory.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryOrigin : Object { - public partial class StoryOrigin : Object + /// + /// Contains information about the origin of a story that was reposted + /// + public class StoryOriginPublicStory : StoryOrigin { /// - /// Contains information about the origin of a story that was reposted + /// Data type for serialization /// - public class StoryOriginPublicStory : StoryOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyOriginPublicStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyOriginPublicStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that posted original story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat that posted original story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Story identifier of the original story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Story identifier of the original story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryPrivacySettingsCloseFriends.cs b/TdLib.Api/Objects/StoryPrivacySettingsCloseFriends.cs index 2e03db5b..b53a245c 100644 --- a/TdLib.Api/Objects/StoryPrivacySettingsCloseFriends.cs +++ b/TdLib.Api/Objects/StoryPrivacySettingsCloseFriends.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryPrivacySettings : Object { - public partial class StoryPrivacySettings : Object + /// + /// The story can be viewed by all close friends + /// + public class StoryPrivacySettingsCloseFriends : StoryPrivacySettings { /// - /// The story can be viewed by all close friends + /// Data type for serialization /// - public class StoryPrivacySettingsCloseFriends : StoryPrivacySettings - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyPrivacySettingsCloseFriends"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyPrivacySettingsCloseFriends"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/StoryPrivacySettingsContacts.cs b/TdLib.Api/Objects/StoryPrivacySettingsContacts.cs index 47b6a2a8..bb6f559c 100644 --- a/TdLib.Api/Objects/StoryPrivacySettingsContacts.cs +++ b/TdLib.Api/Objects/StoryPrivacySettingsContacts.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryPrivacySettings : Object { - public partial class StoryPrivacySettings : Object + /// + /// The story can be viewed by all contacts except chosen users + /// + public class StoryPrivacySettingsContacts : StoryPrivacySettings { /// - /// The story can be viewed by all contacts except chosen users + /// Data type for serialization /// - public class StoryPrivacySettingsContacts : StoryPrivacySettings - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyPrivacySettingsContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyPrivacySettingsContacts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifiers of the contacts that can't see the story; always unknown and empty for non-owned stories - /// - [JsonProperty("except_user_ids", ItemConverterType = typeof(Converter))] - public long[] ExceptUserIds { get; set; } - } + /// + /// User identifiers of the contacts that can't see the story; always unknown and empty for non-owned stories + /// + [JsonProperty("except_user_ids", ItemConverterType = typeof(Converter))] + public long[] ExceptUserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryPrivacySettingsEveryone.cs b/TdLib.Api/Objects/StoryPrivacySettingsEveryone.cs index 339ee78d..69ab4dda 100644 --- a/TdLib.Api/Objects/StoryPrivacySettingsEveryone.cs +++ b/TdLib.Api/Objects/StoryPrivacySettingsEveryone.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryPrivacySettings : Object { - public partial class StoryPrivacySettings : Object + /// + /// Describes privacy settings of a story + /// + public class StoryPrivacySettingsEveryone : StoryPrivacySettings { /// - /// Describes privacy settings of a story + /// Data type for serialization /// - public class StoryPrivacySettingsEveryone : StoryPrivacySettings - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyPrivacySettingsEveryone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyPrivacySettingsEveryone"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the users that can't see the story; always unknown and empty for non-owned stories - /// - [JsonProperty("except_user_ids", ItemConverterType = typeof(Converter))] - public long[] ExceptUserIds { get; set; } - } + /// + /// Identifiers of the users that can't see the story; always unknown and empty for non-owned stories + /// + [JsonProperty("except_user_ids", ItemConverterType = typeof(Converter))] + public long[] ExceptUserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryPrivacySettingsSelectedUsers.cs b/TdLib.Api/Objects/StoryPrivacySettingsSelectedUsers.cs index 08bac66d..4e2d6e36 100644 --- a/TdLib.Api/Objects/StoryPrivacySettingsSelectedUsers.cs +++ b/TdLib.Api/Objects/StoryPrivacySettingsSelectedUsers.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class StoryPrivacySettings : Object { - public partial class StoryPrivacySettings : Object + /// + /// The story can be viewed by certain specified users + /// + public class StoryPrivacySettingsSelectedUsers : StoryPrivacySettings { /// - /// The story can be viewed by certain specified users + /// Data type for serialization /// - public class StoryPrivacySettingsSelectedUsers : StoryPrivacySettings - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyPrivacySettingsSelectedUsers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyPrivacySettingsSelectedUsers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifiers of the users; always unknown and empty for non-owned stories - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// Identifiers of the users; always unknown and empty for non-owned stories + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/StoryRepostInfo.cs b/TdLib.Api/Objects/StoryRepostInfo.cs index ed0c4a8e..1c29acca 100644 --- a/TdLib.Api/Objects/StoryRepostInfo.cs +++ b/TdLib.Api/Objects/StoryRepostInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about original story that was reposted /// - public static partial class TdApi + public partial class StoryRepostInfo : Object { /// - /// Contains information about original story that was reposted + /// Data type for serialization /// - public partial class StoryRepostInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyRepostInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyRepostInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Origin of the story that was reposted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("origin")] - public StoryOrigin Origin { get; set; } + /// + /// Origin of the story that was reposted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("origin")] + public StoryOrigin Origin { get; set; } - /// - /// True, if story content was modified during reposting; otherwise, story wasn't modified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_content_modified")] - public bool IsContentModified { get; set; } - } + /// + /// True, if story content was modified during reposting; otherwise, story wasn't modified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_content_modified")] + public bool IsContentModified { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryStatistics.cs b/TdLib.Api/Objects/StoryStatistics.cs index 5b7bb6e0..0d0f7bc5 100644 --- a/TdLib.Api/Objects/StoryStatistics.cs +++ b/TdLib.Api/Objects/StoryStatistics.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A detailed statistics about a story /// - public static partial class TdApi + public partial class StoryStatistics : Object { /// - /// A detailed statistics about a story + /// Data type for serialization /// - public partial class StoryStatistics : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyStatistics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyStatistics"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A graph containing number of story views and shares - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_interaction_graph")] - public StatisticalGraph StoryInteractionGraph { get; set; } + /// + /// A graph containing number of story views and shares + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_interaction_graph")] + public StatisticalGraph StoryInteractionGraph { get; set; } - /// - /// A graph containing number of story reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_reaction_graph")] - public StatisticalGraph StoryReactionGraph { get; set; } - } + /// + /// A graph containing number of story reactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_reaction_graph")] + public StatisticalGraph StoryReactionGraph { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/StoryVideo.cs b/TdLib.Api/Objects/StoryVideo.cs index f50cc792..485cd8f8 100644 --- a/TdLib.Api/Objects/StoryVideo.cs +++ b/TdLib.Api/Objects/StoryVideo.cs @@ -2,100 +2,99 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a video file posted as a story /// - public static partial class TdApi + public partial class StoryVideo : Object { /// - /// Describes a video file posted as a story + /// Data type for serialization /// - public partial class StoryVideo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "storyVideo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "storyVideo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Duration of the video, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public double? Duration { get; set; } + /// + /// Duration of the video, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public double? Duration { get; set; } - /// - /// Video width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Video width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Video height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Video height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_stickers")] - public bool HasStickers { get; set; } + /// + /// True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_stickers")] + public bool HasStickers { get; set; } - /// - /// True, if the video has no sound - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_animation")] - public bool IsAnimation { get; set; } + /// + /// True, if the video has no sound + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_animation")] + public bool IsAnimation { get; set; } - /// - /// Video minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Video minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// Video thumbnail in JPEG or MPEG4 format; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } + /// + /// Video thumbnail in JPEG or MPEG4 format; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } - /// - /// Size of file prefix, which is expected to be preloaded, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("preload_prefix_size")] - public int PreloadPrefixSize { get; set; } + /// + /// Size of file prefix, which is expected to be preloaded, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("preload_prefix_size")] + public int PreloadPrefixSize { get; set; } - /// - /// Timestamp of the frame used as video thumbnail - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cover_frame_timestamp")] - public double? CoverFrameTimestamp { get; set; } + /// + /// Timestamp of the frame used as video thumbnail + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cover_frame_timestamp")] + public double? CoverFrameTimestamp { get; set; } - /// - /// File containing the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public File Video { get; set; } - } + /// + /// File containing the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public File Video { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SuggestedActionAddLoginPasskey.cs b/TdLib.Api/Objects/SuggestedActionAddLoginPasskey.cs index 076941c7..30d7c38a 100644 --- a/TdLib.Api/Objects/SuggestedActionAddLoginPasskey.cs +++ b/TdLib.Api/Objects/SuggestedActionAddLoginPasskey.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to add a passkey for login using addLoginPasskey + /// + public class SuggestedActionAddLoginPasskey : SuggestedAction { /// - /// Suggests the user to add a passkey for login using addLoginPasskey + /// Data type for serialization /// - public class SuggestedActionAddLoginPasskey : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionAddLoginPasskey"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionAddLoginPasskey"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionCheckPassword.cs b/TdLib.Api/Objects/SuggestedActionCheckPassword.cs index 4ea96f77..b4088cea 100644 --- a/TdLib.Api/Objects/SuggestedActionCheckPassword.cs +++ b/TdLib.Api/Objects/SuggestedActionCheckPassword.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to check whether they still remember their 2-step verification password + /// + public class SuggestedActionCheckPassword : SuggestedAction { /// - /// Suggests the user to check whether they still remember their 2-step verification password + /// Data type for serialization /// - public class SuggestedActionCheckPassword : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionCheckPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionCheckPassword"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionCheckPhoneNumber.cs b/TdLib.Api/Objects/SuggestedActionCheckPhoneNumber.cs index d6900738..0e30f1c4 100644 --- a/TdLib.Api/Objects/SuggestedActionCheckPhoneNumber.cs +++ b/TdLib.Api/Objects/SuggestedActionCheckPhoneNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible + /// + public class SuggestedActionCheckPhoneNumber : SuggestedAction { /// - /// Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible + /// Data type for serialization /// - public class SuggestedActionCheckPhoneNumber : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionCheckPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionCheckPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionConvertToBroadcastGroup.cs b/TdLib.Api/Objects/SuggestedActionConvertToBroadcastGroup.cs index 799f6e36..e09c6101 100644 --- a/TdLib.Api/Objects/SuggestedActionConvertToBroadcastGroup.cs +++ b/TdLib.Api/Objects/SuggestedActionConvertToBroadcastGroup.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to convert specified supergroup to a broadcast group + /// + public class SuggestedActionConvertToBroadcastGroup : SuggestedAction { /// - /// Suggests the user to convert specified supergroup to a broadcast group + /// Data type for serialization /// - public class SuggestedActionConvertToBroadcastGroup : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionConvertToBroadcastGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionConvertToBroadcastGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Supergroup identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } - } + /// + /// Supergroup identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } } } } diff --git a/TdLib.Api/Objects/SuggestedActionCustom.cs b/TdLib.Api/Objects/SuggestedActionCustom.cs index edd7ddfa..9a0723aa 100644 --- a/TdLib.Api/Objects/SuggestedActionCustom.cs +++ b/TdLib.Api/Objects/SuggestedActionCustom.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// A custom suggestion to be shown at the top of the chat list + /// + public class SuggestedActionCustom : SuggestedAction { /// - /// A custom suggestion to be shown at the top of the chat list + /// Data type for serialization /// - public class SuggestedActionCustom : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionCustom"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionCustom"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique name of the suggestion - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Unique name of the suggestion + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Title of the suggestion - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public FormattedText Title { get; set; } + /// + /// Title of the suggestion + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public FormattedText Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public FormattedText Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public FormattedText Description { get; set; } - /// - /// The link to open when the suggestion is clicked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// The link to open when the suggestion is clicked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/SuggestedActionEnableArchiveAndMuteNewChats.cs b/TdLib.Api/Objects/SuggestedActionEnableArchiveAndMuteNewChats.cs index 4c328e8d..2302ddb2 100644 --- a/TdLib.Api/Objects/SuggestedActionEnableArchiveAndMuteNewChats.cs +++ b/TdLib.Api/Objects/SuggestedActionEnableArchiveAndMuteNewChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Describes an action suggested to the current user + /// + public class SuggestedActionEnableArchiveAndMuteNewChats : SuggestedAction { /// - /// Describes an action suggested to the current user + /// Data type for serialization /// - public class SuggestedActionEnableArchiveAndMuteNewChats : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionEnableArchiveAndMuteNewChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionEnableArchiveAndMuteNewChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionExtendPremium.cs b/TdLib.Api/Objects/SuggestedActionExtendPremium.cs index 426d02ad..3505e13d 100644 --- a/TdLib.Api/Objects/SuggestedActionExtendPremium.cs +++ b/TdLib.Api/Objects/SuggestedActionExtendPremium.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to extend their expiring Telegram Premium subscription + /// + public class SuggestedActionExtendPremium : SuggestedAction { /// - /// Suggests the user to extend their expiring Telegram Premium subscription + /// Data type for serialization /// - public class SuggestedActionExtendPremium : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionExtendPremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionExtendPremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A URL for managing Telegram Premium subscription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("manage_premium_subscription_url")] - public string ManagePremiumSubscriptionUrl { get; set; } - } + /// + /// A URL for managing Telegram Premium subscription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manage_premium_subscription_url")] + public string ManagePremiumSubscriptionUrl { get; set; } } } } diff --git a/TdLib.Api/Objects/SuggestedActionExtendStarSubscriptions.cs b/TdLib.Api/Objects/SuggestedActionExtendStarSubscriptions.cs index b71a2e45..e87c73a8 100644 --- a/TdLib.Api/Objects/SuggestedActionExtendStarSubscriptions.cs +++ b/TdLib.Api/Objects/SuggestedActionExtendStarSubscriptions.cs @@ -2,35 +2,34 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to extend their expiring Telegram Star subscriptions. Call getStarSubscriptions with only_expiring == true + /// to get the number of expiring subscriptions and the number of required to buy Telegram Stars + /// + public class SuggestedActionExtendStarSubscriptions : SuggestedAction { /// - /// Suggests the user to extend their expiring Telegram Star subscriptions. Call getStarSubscriptions with only_expiring == true - /// to get the number of expiring subscriptions and the number of required to buy Telegram Stars + /// Data type for serialization /// - public class SuggestedActionExtendStarSubscriptions : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionExtendStarSubscriptions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionExtendStarSubscriptions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionGiftPremiumForChristmas.cs b/TdLib.Api/Objects/SuggestedActionGiftPremiumForChristmas.cs index a06ffe18..376fe6b6 100644 --- a/TdLib.Api/Objects/SuggestedActionGiftPremiumForChristmas.cs +++ b/TdLib.Api/Objects/SuggestedActionGiftPremiumForChristmas.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to gift Telegram Premium to friends for Christmas + /// + public class SuggestedActionGiftPremiumForChristmas : SuggestedAction { /// - /// Suggests the user to gift Telegram Premium to friends for Christmas + /// Data type for serialization /// - public class SuggestedActionGiftPremiumForChristmas : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionGiftPremiumForChristmas"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionGiftPremiumForChristmas"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionRestorePremium.cs b/TdLib.Api/Objects/SuggestedActionRestorePremium.cs index 0c9dacff..835d7f48 100644 --- a/TdLib.Api/Objects/SuggestedActionRestorePremium.cs +++ b/TdLib.Api/Objects/SuggestedActionRestorePremium.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to restore a recently expired Premium subscription + /// + public class SuggestedActionRestorePremium : SuggestedAction { /// - /// Suggests the user to restore a recently expired Premium subscription + /// Data type for serialization /// - public class SuggestedActionRestorePremium : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionRestorePremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionRestorePremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionSetBirthdate.cs b/TdLib.Api/Objects/SuggestedActionSetBirthdate.cs index 3cf9165f..1976cf72 100644 --- a/TdLib.Api/Objects/SuggestedActionSetBirthdate.cs +++ b/TdLib.Api/Objects/SuggestedActionSetBirthdate.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to set birthdate + /// + public class SuggestedActionSetBirthdate : SuggestedAction { /// - /// Suggests the user to set birthdate + /// Data type for serialization /// - public class SuggestedActionSetBirthdate : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionSetBirthdate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionSetBirthdate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionSetLoginEmailAddress.cs b/TdLib.Api/Objects/SuggestedActionSetLoginEmailAddress.cs index 6111d776..91d85691 100644 --- a/TdLib.Api/Objects/SuggestedActionSetLoginEmailAddress.cs +++ b/TdLib.Api/Objects/SuggestedActionSetLoginEmailAddress.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to add login email address. Call isLoginEmailAddressRequired, and then setLoginEmailAddress or checkLoginEmailAddressCode to change the login email address + /// + public class SuggestedActionSetLoginEmailAddress : SuggestedAction { /// - /// Suggests the user to add login email address. Call isLoginEmailAddressRequired, and then setLoginEmailAddress or checkLoginEmailAddressCode to change the login email address + /// Data type for serialization /// - public class SuggestedActionSetLoginEmailAddress : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionSetLoginEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionSetLoginEmailAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the suggested action can be hidden using hideSuggestedAction. Otherwise, the user must not be able to use the application without setting up the email address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_hidden")] - public bool CanBeHidden { get; set; } - } + /// + /// True, if the suggested action can be hidden using hideSuggestedAction. Otherwise, the user must not be able to use the application without setting up the email address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_hidden")] + public bool CanBeHidden { get; set; } } } } diff --git a/TdLib.Api/Objects/SuggestedActionSetPassword.cs b/TdLib.Api/Objects/SuggestedActionSetPassword.cs index e186b9dd..96f2cc3a 100644 --- a/TdLib.Api/Objects/SuggestedActionSetPassword.cs +++ b/TdLib.Api/Objects/SuggestedActionSetPassword.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to set a 2-step verification password to be able to log in again + /// + public class SuggestedActionSetPassword : SuggestedAction { /// - /// Suggests the user to set a 2-step verification password to be able to log in again + /// Data type for serialization /// - public class SuggestedActionSetPassword : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionSetPassword"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionSetPassword"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of days to pass between consecutive authorizations if the user declines to set password; if 0, then the user is advised to set the password for security reasons - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("authorization_delay")] - public int AuthorizationDelay { get; set; } - } + /// + /// The number of days to pass between consecutive authorizations if the user declines to set password; if 0, then the user is advised to set the password for security reasons + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("authorization_delay")] + public int AuthorizationDelay { get; set; } } } } diff --git a/TdLib.Api/Objects/SuggestedActionSetProfilePhoto.cs b/TdLib.Api/Objects/SuggestedActionSetProfilePhoto.cs index f7b3b134..23eccdce 100644 --- a/TdLib.Api/Objects/SuggestedActionSetProfilePhoto.cs +++ b/TdLib.Api/Objects/SuggestedActionSetProfilePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to set profile photo + /// + public class SuggestedActionSetProfilePhoto : SuggestedAction { /// - /// Suggests the user to set profile photo + /// Data type for serialization /// - public class SuggestedActionSetProfilePhoto : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionSetProfilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionSetProfilePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionSubscribeToAnnualPremium.cs b/TdLib.Api/Objects/SuggestedActionSubscribeToAnnualPremium.cs index 5b983276..1f3ed49a 100644 --- a/TdLib.Api/Objects/SuggestedActionSubscribeToAnnualPremium.cs +++ b/TdLib.Api/Objects/SuggestedActionSubscribeToAnnualPremium.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to subscribe to the Premium subscription with annual payments + /// + public class SuggestedActionSubscribeToAnnualPremium : SuggestedAction { /// - /// Suggests the user to subscribe to the Premium subscription with annual payments + /// Data type for serialization /// - public class SuggestedActionSubscribeToAnnualPremium : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionSubscribeToAnnualPremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionSubscribeToAnnualPremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionUpgradePremium.cs b/TdLib.Api/Objects/SuggestedActionUpgradePremium.cs index c9899fff..8b423ebd 100644 --- a/TdLib.Api/Objects/SuggestedActionUpgradePremium.cs +++ b/TdLib.Api/Objects/SuggestedActionUpgradePremium.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to upgrade the Premium subscription from monthly payments to annual payments + /// + public class SuggestedActionUpgradePremium : SuggestedAction { /// - /// Suggests the user to upgrade the Premium subscription from monthly payments to annual payments + /// Data type for serialization /// - public class SuggestedActionUpgradePremium : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionUpgradePremium"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionUpgradePremium"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionViewChecksHint.cs b/TdLib.Api/Objects/SuggestedActionViewChecksHint.cs index 8a419054..3e1e5a53 100644 --- a/TdLib.Api/Objects/SuggestedActionViewChecksHint.cs +++ b/TdLib.Api/Objects/SuggestedActionViewChecksHint.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedAction : Object { - public partial class SuggestedAction : Object + /// + /// Suggests the user to view a hint about the meaning of one and two check marks on sent messages + /// + public class SuggestedActionViewChecksHint : SuggestedAction { /// - /// Suggests the user to view a hint about the meaning of one and two check marks on sent messages + /// Data type for serialization /// - public class SuggestedActionViewChecksHint : SuggestedAction - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedActionViewChecksHint"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionViewChecksHint"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedActionViewFirstTonWalletTransferHint.cs b/TdLib.Api/Objects/SuggestedActionViewFirstTonWalletTransferHint.cs new file mode 100644 index 00000000..063b2036 --- /dev/null +++ b/TdLib.Api/Objects/SuggestedActionViewFirstTonWalletTransferHint.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class SuggestedAction : Object + { + /// + /// Suggests the user to view a hint about receiving of the first TON wallet transfer + /// + public class SuggestedActionViewFirstTonWalletTransferHint : SuggestedAction + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedActionViewFirstTonWalletTransferHint"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SuggestedPostInfo.cs b/TdLib.Api/Objects/SuggestedPostInfo.cs index 171b7083..be2cc81a 100644 --- a/TdLib.Api/Objects/SuggestedPostInfo.cs +++ b/TdLib.Api/Objects/SuggestedPostInfo.cs @@ -2,66 +2,65 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message + /// and suggested post information to suggest message changes. Use addOffer to suggest price or time changes /// - public static partial class TdApi + public partial class SuggestedPostInfo : Object { /// - /// Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message - /// and suggested post information to suggest message changes. Use addOffer to suggest price or time changes + /// Data type for serialization /// - public partial class SuggestedPostInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Price of the suggested post; may be null if the post is non-paid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public SuggestedPostPrice Price { get; set; } + /// + /// Price of the suggested post; may be null if the post is non-paid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public SuggestedPostPrice Price { get; set; } - /// - /// Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn't set yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("send_date")] - public int SendDate { get; set; } + /// + /// Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn't set yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("send_date")] + public int SendDate { get; set; } - /// - /// State of the post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public SuggestedPostState State { get; set; } + /// + /// State of the post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public SuggestedPostState State { get; set; } - /// - /// True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren't sent when value of this field changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_approved")] - public bool CanBeApproved { get; set; } + /// + /// True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren't sent when value of this field changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_approved")] + public bool CanBeApproved { get; set; } - /// - /// True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren't sent when value of this field changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_declined")] - public bool CanBeDeclined { get; set; } - } + /// + /// True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren't sent when value of this field changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_declined")] + public bool CanBeDeclined { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SuggestedPostPriceGram.cs b/TdLib.Api/Objects/SuggestedPostPriceGram.cs index 2c5c1852..a970cdc0 100644 --- a/TdLib.Api/Objects/SuggestedPostPriceGram.cs +++ b/TdLib.Api/Objects/SuggestedPostPriceGram.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedPostPrice : Object { - public partial class SuggestedPostPrice : Object + /// + /// Describes price of a suggested post in TON Grams + /// + public class SuggestedPostPriceGram : SuggestedPostPrice { /// - /// Describes price of a suggested post in TON Grams + /// Data type for serialization /// - public class SuggestedPostPriceGram : SuggestedPostPrice - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostPriceGram"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostPriceGram"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The amount of 1/100 of Gram expected to be paid for the post; getOption("suggested_post_gram_cent_count_min")-getOption("suggested_post_gram_cent_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_cent_count")] - public long GramCentCount { get; set; } - } + /// + /// The amount of 1/100 of Gram expected to be paid for the post; getOption("suggested_post_gram_cent_count_min")-getOption("suggested_post_gram_cent_count_max") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_cent_count")] + public long GramCentCount { get; set; } } } } diff --git a/TdLib.Api/Objects/SuggestedPostPriceStar.cs b/TdLib.Api/Objects/SuggestedPostPriceStar.cs index d00571ce..f73fbf59 100644 --- a/TdLib.Api/Objects/SuggestedPostPriceStar.cs +++ b/TdLib.Api/Objects/SuggestedPostPriceStar.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedPostPrice : Object { - public partial class SuggestedPostPrice : Object + /// + /// Describes price of a suggested post + /// + public class SuggestedPostPriceStar : SuggestedPostPrice { /// - /// Describes price of a suggested post + /// Data type for serialization /// - public class SuggestedPostPriceStar : SuggestedPostPrice - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostPriceStar"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostPriceStar"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The Telegram Star amount expected to be paid for the post; getOption("suggested_post_star_count_min")-getOption("suggested_post_star_count_max") - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The Telegram Star amount expected to be paid for the post; getOption("suggested_post_star_count_min")-getOption("suggested_post_star_count_max") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/SuggestedPostRefundReasonPaymentRefunded.cs b/TdLib.Api/Objects/SuggestedPostRefundReasonPaymentRefunded.cs index 101f74a3..c10b18f7 100644 --- a/TdLib.Api/Objects/SuggestedPostRefundReasonPaymentRefunded.cs +++ b/TdLib.Api/Objects/SuggestedPostRefundReasonPaymentRefunded.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedPostRefundReason : Object { - public partial class SuggestedPostRefundReason : Object + /// + /// The post was refunded, because the payment for the post was refunded + /// + public class SuggestedPostRefundReasonPaymentRefunded : SuggestedPostRefundReason { /// - /// The post was refunded, because the payment for the post was refunded + /// Data type for serialization /// - public class SuggestedPostRefundReasonPaymentRefunded : SuggestedPostRefundReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostRefundReasonPaymentRefunded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostRefundReasonPaymentRefunded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedPostRefundReasonPostDeleted.cs b/TdLib.Api/Objects/SuggestedPostRefundReasonPostDeleted.cs index 90ccc79a..daaf7ded 100644 --- a/TdLib.Api/Objects/SuggestedPostRefundReasonPostDeleted.cs +++ b/TdLib.Api/Objects/SuggestedPostRefundReasonPostDeleted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedPostRefundReason : Object { - public partial class SuggestedPostRefundReason : Object + /// + /// Describes reason for refund of the payment for a suggested post + /// + public class SuggestedPostRefundReasonPostDeleted : SuggestedPostRefundReason { /// - /// Describes reason for refund of the payment for a suggested post + /// Data type for serialization /// - public class SuggestedPostRefundReasonPostDeleted : SuggestedPostRefundReason - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostRefundReasonPostDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostRefundReasonPostDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedPostStateApproved.cs b/TdLib.Api/Objects/SuggestedPostStateApproved.cs index 44539699..56873307 100644 --- a/TdLib.Api/Objects/SuggestedPostStateApproved.cs +++ b/TdLib.Api/Objects/SuggestedPostStateApproved.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedPostState : Object { - public partial class SuggestedPostState : Object + /// + /// The post was approved + /// + public class SuggestedPostStateApproved : SuggestedPostState { /// - /// The post was approved + /// Data type for serialization /// - public class SuggestedPostStateApproved : SuggestedPostState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostStateApproved"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostStateApproved"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedPostStateDeclined.cs b/TdLib.Api/Objects/SuggestedPostStateDeclined.cs index b9d90a61..5e6cef4f 100644 --- a/TdLib.Api/Objects/SuggestedPostStateDeclined.cs +++ b/TdLib.Api/Objects/SuggestedPostStateDeclined.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedPostState : Object { - public partial class SuggestedPostState : Object + /// + /// The post was declined + /// + public class SuggestedPostStateDeclined : SuggestedPostState { /// - /// The post was declined + /// Data type for serialization /// - public class SuggestedPostStateDeclined : SuggestedPostState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostStateDeclined"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostStateDeclined"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SuggestedPostStatePending.cs b/TdLib.Api/Objects/SuggestedPostStatePending.cs index 8ca4e82f..bfda8e03 100644 --- a/TdLib.Api/Objects/SuggestedPostStatePending.cs +++ b/TdLib.Api/Objects/SuggestedPostStatePending.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SuggestedPostState : Object { - public partial class SuggestedPostState : Object + /// + /// Describes state of a suggested post + /// + public class SuggestedPostStatePending : SuggestedPostState { /// - /// Describes state of a suggested post + /// Data type for serialization /// - public class SuggestedPostStatePending : SuggestedPostState - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "suggestedPostStatePending"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "suggestedPostStatePending"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Supergroup.cs b/TdLib.Api/Objects/Supergroup.cs index 9635fe92..91d73502 100644 --- a/TdLib.Api/Objects/Supergroup.cs +++ b/TdLib.Api/Objects/Supergroup.cs @@ -2,205 +2,204 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a supergroup or channel with zero or more members (subscribers in the case of channels) /// - public static partial class TdApi + public partial class Supergroup : Object { /// - /// Represents a supergroup or channel with zero or more members (subscribers in the case of channels) - /// - public partial class Supergroup : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroup"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Supergroup or channel identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Usernames of the supergroup or channel; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("usernames")] - public Usernames Usernames { get; set; } - - /// - /// Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - - /// - /// Status of the current user in the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public ChatMemberStatus Status { get; set; } - - /// - /// Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count")] - public int MemberCount { get; set; } - - /// - /// Approximate boost level for the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boost_level")] - public int BoostLevel { get; set; } - - /// - /// True, if automatic translation of messages is enabled in the channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_automatic_translation")] - public bool HasAutomaticTranslation { get; set; } - - /// - /// True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_linked_chat")] - public bool HasLinkedChat { get; set; } - - /// - /// True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_location")] - public bool HasLocation { get; set; } - - /// - /// True, if messages sent to the channel contains name of the sender. This field is only applicable to channels - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sign_messages")] - public bool SignMessages { get; set; } - - /// - /// True, if messages sent to the channel have information about the sender user. This field is only applicable to channels - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_message_sender")] - public bool ShowMessageSender { get; set; } - - /// - /// True, if users need to join the supergroup before they can send messages. May be false only for discussion supergroups and channel direct messages groups - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_to_send_messages")] - public bool JoinToSendMessages { get; set; } - - /// - /// True, if all users directly joining the supergroup need to be approved by supergroup administrators - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("join_by_request")] - public bool JoinByRequest { get; set; } - - /// - /// True, if the slow mode is enabled in the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_slow_mode_enabled")] - public bool IsSlowModeEnabled { get; set; } - - /// - /// True, if the supergroup is a channel, which can have an unlimited number of subscribers, but only administrators can post there and see the list of subscribers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_channel")] - public bool IsChannel { get; set; } - - /// - /// True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_broadcast_group")] - public bool IsBroadcastGroup { get; set; } - - /// - /// True, if the supergroup is a forum with topics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_forum")] - public bool IsForum { get; set; } - - /// - /// True, if the supergroup is a direct message group for a channel chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_direct_messages_group")] - public bool IsDirectMessagesGroup { get; set; } - - /// - /// True, if the supergroup is a direct messages group for a channel chat that is administered by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_administered_direct_messages_group")] - public bool IsAdministeredDirectMessagesGroup { get; set; } - - /// - /// Information about verification status of the supergroup or channel; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_status")] - public VerificationStatus VerificationStatus { get; set; } - - /// - /// True, if the channel has direct messages group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_direct_messages_group")] - public bool HasDirectMessagesGroup { get; set; } - - /// - /// True, if the supergroup is a forum, which topics are shown in the same way as in channel direct messages groups - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_forum_tabs")] - public bool HasForumTabs { get; set; } - - /// - /// Information about the restrictions that must be applied to the corresponding supergroup or channel chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restriction_info")] - public RestrictionInfo RestrictionInfo { get; set; } - - /// - /// Number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - - /// - /// State of active stories of the supergroup or channel; may be null if there are no active stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_story_state")] - public ActiveStoryState ActiveStoryState { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroup"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Supergroup or channel identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Usernames of the supergroup or channel; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("usernames")] + public Usernames Usernames { get; set; } + + /// + /// Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + + /// + /// Status of the current user in the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public ChatMemberStatus Status { get; set; } + + /// + /// Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count")] + public int MemberCount { get; set; } + + /// + /// Approximate boost level for the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boost_level")] + public int BoostLevel { get; set; } + + /// + /// True, if automatic translation of messages is enabled in the channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_automatic_translation")] + public bool HasAutomaticTranslation { get; set; } + + /// + /// True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_linked_chat")] + public bool HasLinkedChat { get; set; } + + /// + /// True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_location")] + public bool HasLocation { get; set; } + + /// + /// True, if messages sent to the channel contains name of the sender. This field is only applicable to channels + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sign_messages")] + public bool SignMessages { get; set; } + + /// + /// True, if messages sent to the channel have information about the sender user. This field is only applicable to channels + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_message_sender")] + public bool ShowMessageSender { get; set; } + + /// + /// True, if users need to join the supergroup before they can send messages. May be false only for discussion supergroups and channel direct messages groups + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_to_send_messages")] + public bool JoinToSendMessages { get; set; } + + /// + /// True, if all users directly joining the supergroup need to be approved by supergroup administrators + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("join_by_request")] + public bool JoinByRequest { get; set; } + + /// + /// True, if the slow mode is enabled in the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_slow_mode_enabled")] + public bool IsSlowModeEnabled { get; set; } + + /// + /// True, if the supergroup is a channel, which can have an unlimited number of subscribers, but only administrators can post there and see the list of subscribers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_channel")] + public bool IsChannel { get; set; } + + /// + /// True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_broadcast_group")] + public bool IsBroadcastGroup { get; set; } + + /// + /// True, if the supergroup is a forum with topics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_forum")] + public bool IsForum { get; set; } + + /// + /// True, if the supergroup is a direct message group for a channel chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_direct_messages_group")] + public bool IsDirectMessagesGroup { get; set; } + + /// + /// True, if the supergroup is a direct messages group for a channel chat that is administered by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_administered_direct_messages_group")] + public bool IsAdministeredDirectMessagesGroup { get; set; } + + /// + /// Information about verification status of the supergroup or channel; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_status")] + public VerificationStatus VerificationStatus { get; set; } + + /// + /// True, if the channel has direct messages group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_direct_messages_group")] + public bool HasDirectMessagesGroup { get; set; } + + /// + /// True, if the supergroup is a forum, which topics are shown in the same way as in channel direct messages groups + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_forum_tabs")] + public bool HasForumTabs { get; set; } + + /// + /// Information about the restrictions that must be applied to the corresponding supergroup or channel chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restriction_info")] + public RestrictionInfo RestrictionInfo { get; set; } + + /// + /// Number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + + /// + /// State of active stories of the supergroup or channel; may be null if there are no active stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_story_state")] + public ActiveStoryState ActiveStoryState { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SupergroupFullInfo.cs b/TdLib.Api/Objects/SupergroupFullInfo.cs index 30cd72a7..e9141cf8 100644 --- a/TdLib.Api/Objects/SupergroupFullInfo.cs +++ b/TdLib.Api/Objects/SupergroupFullInfo.cs @@ -2,324 +2,323 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains full information about a supergroup or channel /// - public static partial class TdApi + public partial class SupergroupFullInfo : Object { /// - /// Contains full information about a supergroup or channel - /// - public partial class SupergroupFullInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupFullInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } - - /// - /// Identifier of the community to which the corresponding chat was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } - - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } - - /// - /// Number of members in the supergroup or channel; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("member_count")] - public int MemberCount { get; set; } - - /// - /// Number of privileged users in the supergroup or channel; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("administrator_count")] - public int AdministratorCount { get; set; } - - /// - /// Number of restricted users in the supergroup; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restricted_count")] - public int RestrictedCount { get; set; } - - /// - /// Number of users banned from chat; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("banned_count")] - public int BannedCount { get; set; } - - /// - /// Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("linked_chat_id")] - public long LinkedChatId { get; set; } - - /// - /// Chat identifier of a direct messages group for the channel, or a channel, for which the supergroup is the designated direct messages group; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("direct_messages_chat_id")] - public long DirectMessagesChatId { get; set; } - - /// - /// Delay between consecutive sent messages for non-administrator supergroup members, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("slow_mode_delay")] - public int SlowModeDelay { get; set; } - - /// - /// Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("slow_mode_delay_expires_in")] - public double? SlowModeDelayExpiresIn { get; set; } - - /// - /// True, if paid messages can be enabled in the supergroup chat; for supergroup only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_enable_paid_messages")] - public bool CanEnablePaidMessages { get; set; } - - /// - /// True, if paid reaction can be enabled in the channel chat; for channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_enable_paid_reaction")] - public bool CanEnablePaidReaction { get; set; } - - /// - /// True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_members")] - public bool CanGetMembers { get; set; } - - /// - /// True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_hidden_members")] - public bool HasHiddenMembers { get; set; } - - /// - /// True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_hide_members")] - public bool CanHideMembers { get; set; } - - /// - /// True, if the supergroup sticker set can be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_sticker_set")] - public bool CanSetStickerSet { get; set; } - - /// - /// True, if the supergroup location can be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_set_location")] - public bool CanSetLocation { get; set; } - - /// - /// True, if the supergroup or channel statistics are available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_statistics")] - public bool CanGetStatistics { get; set; } - - /// - /// True, if the supergroup or channel revenue statistics are available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_revenue_statistics")] - public bool CanGetRevenueStatistics { get; set; } - - /// - /// True, if the supergroup or channel Telegram Star revenue statistics are available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_get_star_revenue_statistics")] - public bool CanGetStarRevenueStatistics { get; set; } - - /// - /// True, if the user can send a gift to the supergroup or channel using sendGift or transferGift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_gift")] - public bool CanSendGift { get; set; } - - /// - /// True, if aggressive anti-spam checks can be enabled or disabled in the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_toggle_aggressive_anti_spam")] - public bool CanToggleAggressiveAntiSpam { get; set; } - - /// - /// True, if new chat members will have access to old messages. In public, discussion, of forum groups and all channels, old messages are always available, - /// so this option affects only private non-forum supergroups without a linked chat. The value of this field is only available to chat administrators - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_all_history_available")] - public bool IsAllHistoryAvailable { get; set; } - - /// - /// True, if the chat can have sponsored messages. The value of this field is only available to the owner of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_have_sponsored_messages")] - public bool CanHaveSponsoredMessages { get; set; } - - /// - /// True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_aggressive_anti_spam_enabled")] - public bool HasAggressiveAntiSpamEnabled { get; set; } - - /// - /// True, if paid media can be sent and forwarded to the channel chat; for channels only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_paid_media_allowed")] - public bool HasPaidMediaAllowed { get; set; } - - /// - /// True, if the supergroup or channel has pinned stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_pinned_stories")] - public bool HasPinnedStories { get; set; } - - /// - /// Number of saved to profile gifts for channels without can_post_messages administrator right, otherwise, the total number of received gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_count")] - public int GiftCount { get; set; } - - /// - /// Number of times the current user boosted the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("my_boost_count")] - public int MyBoostCount { get; set; } - - /// - /// Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unrestrict_boost_count")] - public int UnrestrictBoostCount { get; set; } - - /// - /// Number of Telegram Stars that must be paid by the current user for each sent message to the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("outgoing_paid_message_star_count")] - public long OutgoingPaidMessageStarCount { get; set; } - - /// - /// Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sticker_set_id")] - public long StickerSetId { get; set; } - - /// - /// Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_sticker_set_id")] - public long CustomEmojiStickerSetId { get; set; } - - /// - /// Location to which the supergroup is connected; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public ChatLocation Location { get; set; } - - /// - /// Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } - - /// - /// User identifier of the guard bot in the group; for chat administrators only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("guard_bot_user_id")] - public long GuardBotUserId { get; set; } - - /// - /// List of commands of bots in the group - /// - [JsonProperty("bot_commands", ItemConverterType = typeof(Converter))] - public BotCommands[] BotCommands { get; set; } - - /// - /// Information about verification status of the supergroup or the channel provided by a bot; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_verification")] - public BotVerification BotVerification { get; set; } - - /// - /// The main tab chosen by the administrators of the channel; may be null if not chosen manually - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_profile_tab")] - public ProfileTab MainProfileTab { get; set; } - - /// - /// Identifier of the basic group from which supergroup was upgraded; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_from_basic_group_id")] - public long UpgradedFromBasicGroupId { get; set; } - - /// - /// Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_from_max_message_id")] - public long UpgradedFromMaxMessageId { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupFullInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Chat photo; may be null if empty or unknown. If non-null, then it is the same photo as in chat.photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } + + /// + /// Identifier of the community to which the corresponding chat was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } + + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } + + /// + /// Number of members in the supergroup or channel; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("member_count")] + public int MemberCount { get; set; } + + /// + /// Number of privileged users in the supergroup or channel; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("administrator_count")] + public int AdministratorCount { get; set; } + + /// + /// Number of restricted users in the supergroup; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restricted_count")] + public int RestrictedCount { get; set; } + + /// + /// Number of users banned from chat; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("banned_count")] + public int BannedCount { get; set; } + + /// + /// Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("linked_chat_id")] + public long LinkedChatId { get; set; } + + /// + /// Chat identifier of a direct messages group for the channel, or a channel, for which the supergroup is the designated direct messages group; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("direct_messages_chat_id")] + public long DirectMessagesChatId { get; set; } + + /// + /// Delay between consecutive sent messages for non-administrator supergroup members, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("slow_mode_delay")] + public int SlowModeDelay { get; set; } + + /// + /// Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("slow_mode_delay_expires_in")] + public double? SlowModeDelayExpiresIn { get; set; } + + /// + /// True, if paid messages can be enabled in the supergroup chat; for supergroup only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_enable_paid_messages")] + public bool CanEnablePaidMessages { get; set; } + + /// + /// True, if paid reaction can be enabled in the channel chat; for channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_enable_paid_reaction")] + public bool CanEnablePaidReaction { get; set; } + + /// + /// True, if members of the chat can be retrieved via getSupergroupMembers or searchChatMembers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_members")] + public bool CanGetMembers { get; set; } + + /// + /// True, if non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_hidden_members")] + public bool HasHiddenMembers { get; set; } + + /// + /// True, if non-administrators and non-bots can be hidden in responses to getSupergroupMembers and searchChatMembers for non-administrators + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_hide_members")] + public bool CanHideMembers { get; set; } + + /// + /// True, if the supergroup sticker set can be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_sticker_set")] + public bool CanSetStickerSet { get; set; } + + /// + /// True, if the supergroup location can be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_set_location")] + public bool CanSetLocation { get; set; } + + /// + /// True, if the supergroup or channel statistics are available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_statistics")] + public bool CanGetStatistics { get; set; } + + /// + /// True, if the supergroup or channel revenue statistics are available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_revenue_statistics")] + public bool CanGetRevenueStatistics { get; set; } + + /// + /// True, if the supergroup or channel Telegram Star revenue statistics are available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_get_star_revenue_statistics")] + public bool CanGetStarRevenueStatistics { get; set; } + + /// + /// True, if the user can send a gift to the supergroup or channel using sendGift or transferGift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_gift")] + public bool CanSendGift { get; set; } + + /// + /// True, if aggressive anti-spam checks can be enabled or disabled in the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_toggle_aggressive_anti_spam")] + public bool CanToggleAggressiveAntiSpam { get; set; } + + /// + /// True, if new chat members will have access to old messages. In public, discussion, of forum groups and all channels, old messages are always available, + /// so this option affects only private non-forum supergroups without a linked chat. The value of this field is only available to chat administrators + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_all_history_available")] + public bool IsAllHistoryAvailable { get; set; } + + /// + /// True, if the chat can have sponsored messages. The value of this field is only available to the owner of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_have_sponsored_messages")] + public bool CanHaveSponsoredMessages { get; set; } + + /// + /// True, if aggressive anti-spam checks are enabled in the supergroup. The value of this field is only available to chat administrators + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_aggressive_anti_spam_enabled")] + public bool HasAggressiveAntiSpamEnabled { get; set; } + + /// + /// True, if paid media can be sent and forwarded to the channel chat; for channels only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_paid_media_allowed")] + public bool HasPaidMediaAllowed { get; set; } + + /// + /// True, if the supergroup or channel has pinned stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_pinned_stories")] + public bool HasPinnedStories { get; set; } + + /// + /// Number of saved to profile gifts for channels without can_post_messages administrator right, otherwise, the total number of received gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_count")] + public int GiftCount { get; set; } + + /// + /// Number of times the current user boosted the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("my_boost_count")] + public int MyBoostCount { get; set; } + + /// + /// Number of times the supergroup must be boosted by a user to ignore slow mode and chat permission restrictions; 0 if unspecified + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unrestrict_boost_count")] + public int UnrestrictBoostCount { get; set; } + + /// + /// Number of Telegram Stars that must be paid by the current user for each sent message to the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("outgoing_paid_message_star_count")] + public long OutgoingPaidMessageStarCount { get; set; } + + /// + /// Identifier of the supergroup sticker set that must be shown before user sticker sets; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sticker_set_id")] + public long StickerSetId { get; set; } + + /// + /// Identifier of the custom emoji sticker set that can be used in the supergroup without Telegram Premium subscription; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_sticker_set_id")] + public long CustomEmojiStickerSetId { get; set; } + + /// + /// Location to which the supergroup is connected; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public ChatLocation Location { get; set; } + + /// + /// Primary invite link for the chat; may be null. For chat administrators with can_invite_users right only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } + + /// + /// User identifier of the guard bot in the group; for chat administrators only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("guard_bot_user_id")] + public long GuardBotUserId { get; set; } + + /// + /// List of commands of bots in the group + /// + [JsonProperty("bot_commands", ItemConverterType = typeof(Converter))] + public BotCommands[] BotCommands { get; set; } + + /// + /// Information about verification status of the supergroup or the channel provided by a bot; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_verification")] + public BotVerification BotVerification { get; set; } + + /// + /// The main tab chosen by the administrators of the channel; may be null if not chosen manually + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("main_profile_tab")] + public ProfileTab MainProfileTab { get; set; } + + /// + /// Identifier of the basic group from which supergroup was upgraded; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_from_basic_group_id")] + public long UpgradedFromBasicGroupId { get; set; } + + /// + /// Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_from_max_message_id")] + public long UpgradedFromMaxMessageId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/SupergroupMembersFilterAdministrators.cs b/TdLib.Api/Objects/SupergroupMembersFilterAdministrators.cs index 6cfb2fb6..f22628e1 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterAdministrators.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterAdministrators.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Returns the owner and administrators + /// + public class SupergroupMembersFilterAdministrators : SupergroupMembersFilter { /// - /// Returns the owner and administrators + /// Data type for serialization /// - public class SupergroupMembersFilterAdministrators : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterAdministrators"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterAdministrators"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SupergroupMembersFilterBanned.cs b/TdLib.Api/Objects/SupergroupMembersFilterBanned.cs index 966164c6..ee223cef 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterBanned.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterBanned.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Returns users banned from the supergroup or channel; can be used only by administrators + /// + public class SupergroupMembersFilterBanned : SupergroupMembersFilter { /// - /// Returns users banned from the supergroup or channel; can be used only by administrators + /// Data type for serialization /// - public class SupergroupMembersFilterBanned : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterBanned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterBanned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } - } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } } } } diff --git a/TdLib.Api/Objects/SupergroupMembersFilterBots.cs b/TdLib.Api/Objects/SupergroupMembersFilterBots.cs index a0f8738f..de0e635b 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterBots.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Returns bot members of the supergroup or channel + /// + public class SupergroupMembersFilterBots : SupergroupMembersFilter { /// - /// Returns bot members of the supergroup or channel + /// Data type for serialization /// - public class SupergroupMembersFilterBots : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SupergroupMembersFilterContacts.cs b/TdLib.Api/Objects/SupergroupMembersFilterContacts.cs index 14e2b461..8461624f 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterContacts.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterContacts.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Returns contacts of the current user who are members of the supergroup or channel + /// + public class SupergroupMembersFilterContacts : SupergroupMembersFilter { /// - /// Returns contacts of the current user who are members of the supergroup or channel + /// Data type for serialization /// - public class SupergroupMembersFilterContacts : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterContacts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } - } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } } } } diff --git a/TdLib.Api/Objects/SupergroupMembersFilterMention.cs b/TdLib.Api/Objects/SupergroupMembersFilterMention.cs index d0102528..4a0e4d3b 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterMention.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterMention.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Returns users who can be mentioned in the supergroup + /// + public class SupergroupMembersFilterMention : SupergroupMembersFilter { /// - /// Returns users who can be mentioned in the supergroup + /// Data type for serialization /// - public class SupergroupMembersFilterMention : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterMention"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterMention"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Identifier of the topic in which the users will be mentioned; pass null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } - } + /// + /// Identifier of the topic in which the users will be mentioned; pass null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } } } } diff --git a/TdLib.Api/Objects/SupergroupMembersFilterRecent.cs b/TdLib.Api/Objects/SupergroupMembersFilterRecent.cs index c86fe201..a3ea4f79 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterRecent.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterRecent.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Specifies the kind of chat members to return in getSupergroupMembers + /// + public class SupergroupMembersFilterRecent : SupergroupMembersFilter { /// - /// Specifies the kind of chat members to return in getSupergroupMembers + /// Data type for serialization /// - public class SupergroupMembersFilterRecent : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterRecent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterRecent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/SupergroupMembersFilterRestricted.cs b/TdLib.Api/Objects/SupergroupMembersFilterRestricted.cs index bb75734f..9461d9dd 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterRestricted.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterRestricted.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Returns restricted supergroup members; can be used only by administrators + /// + public class SupergroupMembersFilterRestricted : SupergroupMembersFilter { /// - /// Returns restricted supergroup members; can be used only by administrators + /// Data type for serialization /// - public class SupergroupMembersFilterRestricted : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterRestricted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterRestricted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } - } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } } } } diff --git a/TdLib.Api/Objects/SupergroupMembersFilterSearch.cs b/TdLib.Api/Objects/SupergroupMembersFilterSearch.cs index ca7df8e4..9600129d 100644 --- a/TdLib.Api/Objects/SupergroupMembersFilterSearch.cs +++ b/TdLib.Api/Objects/SupergroupMembersFilterSearch.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class SupergroupMembersFilter : Object { - public partial class SupergroupMembersFilter : Object + /// + /// Used to search for supergroup or channel members via a (string) query + /// + public class SupergroupMembersFilterSearch : SupergroupMembersFilter { /// - /// Used to search for supergroup or channel members via a (string) query + /// Data type for serialization /// - public class SupergroupMembersFilterSearch : SupergroupMembersFilter - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "supergroupMembersFilterSearch"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "supergroupMembersFilterSearch"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Query to search for - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } - } + /// + /// Query to search for + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } } } } diff --git a/TdLib.Api/Objects/TMeUrl.cs b/TdLib.Api/Objects/TMeUrl.cs index e59acdf1..55aa9e1d 100644 --- a/TdLib.Api/Objects/TMeUrl.cs +++ b/TdLib.Api/Objects/TMeUrl.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a URL linking to an internal Telegram entity /// - public static partial class TdApi + public partial class TMeUrl : Object { /// - /// Represents a URL linking to an internal Telegram entity + /// Data type for serialization /// - public partial class TMeUrl : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tMeUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tMeUrl"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Type of the URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public TMeUrlType Type { get; set; } - } + /// + /// Type of the URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public TMeUrlType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TMeUrlTypeChatInvite.cs b/TdLib.Api/Objects/TMeUrlTypeChatInvite.cs index 5b12849c..653bb657 100644 --- a/TdLib.Api/Objects/TMeUrlTypeChatInvite.cs +++ b/TdLib.Api/Objects/TMeUrlTypeChatInvite.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TMeUrlType : Object { - public partial class TMeUrlType : Object + /// + /// A chat invite link + /// + public class TMeUrlTypeChatInvite : TMeUrlType { /// - /// A chat invite link + /// Data type for serialization /// - public class TMeUrlTypeChatInvite : TMeUrlType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tMeUrlTypeChatInvite"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tMeUrlTypeChatInvite"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about the chat invite link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info")] - public ChatInviteLinkInfo Info { get; set; } - } + /// + /// Information about the chat invite link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public ChatInviteLinkInfo Info { get; set; } } } } diff --git a/TdLib.Api/Objects/TMeUrlTypeStickerSet.cs b/TdLib.Api/Objects/TMeUrlTypeStickerSet.cs index fb2e4783..79831ead 100644 --- a/TdLib.Api/Objects/TMeUrlTypeStickerSet.cs +++ b/TdLib.Api/Objects/TMeUrlTypeStickerSet.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TMeUrlType : Object { - public partial class TMeUrlType : Object + /// + /// A URL linking to a sticker set + /// + public class TMeUrlTypeStickerSet : TMeUrlType { /// - /// A URL linking to a sticker set + /// Data type for serialization /// - public class TMeUrlTypeStickerSet : TMeUrlType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tMeUrlTypeStickerSet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tMeUrlTypeStickerSet"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sticker set - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sticker_set_id")] - public long StickerSetId { get; set; } - } + /// + /// Identifier of the sticker set + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sticker_set_id")] + public long StickerSetId { get; set; } } } } diff --git a/TdLib.Api/Objects/TMeUrlTypeSupergroup.cs b/TdLib.Api/Objects/TMeUrlTypeSupergroup.cs index 6aedfdb9..f368eadf 100644 --- a/TdLib.Api/Objects/TMeUrlTypeSupergroup.cs +++ b/TdLib.Api/Objects/TMeUrlTypeSupergroup.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TMeUrlType : Object { - public partial class TMeUrlType : Object + /// + /// A URL linking to a public supergroup or channel + /// + public class TMeUrlTypeSupergroup : TMeUrlType { /// - /// A URL linking to a public supergroup or channel + /// Data type for serialization /// - public class TMeUrlTypeSupergroup : TMeUrlType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tMeUrlTypeSupergroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tMeUrlTypeSupergroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } - } + /// + /// Identifier of the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } } } } diff --git a/TdLib.Api/Objects/TMeUrlTypeUser.cs b/TdLib.Api/Objects/TMeUrlTypeUser.cs index 26ee2431..1104209f 100644 --- a/TdLib.Api/Objects/TMeUrlTypeUser.cs +++ b/TdLib.Api/Objects/TMeUrlTypeUser.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TMeUrlType : Object { - public partial class TMeUrlType : Object + /// + /// Describes the type of URL linking to an internal Telegram entity + /// + public class TMeUrlTypeUser : TMeUrlType { /// - /// Describes the type of URL linking to an internal Telegram entity + /// Data type for serialization /// - public class TMeUrlTypeUser : TMeUrlType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tMeUrlTypeUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tMeUrlTypeUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/TMeUrls.cs b/TdLib.Api/Objects/TMeUrls.cs index 2b8c6089..6ef0ee17 100644 --- a/TdLib.Api/Objects/TMeUrls.cs +++ b/TdLib.Api/Objects/TMeUrls.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of t.me URLs /// - public static partial class TdApi + public partial class TMeUrls : Object { /// - /// Contains a list of t.me URLs + /// Data type for serialization /// - public partial class TMeUrls : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tMeUrls"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tMeUrls"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of URLs - /// - [JsonProperty("urls", ItemConverterType = typeof(Converter))] - public TMeUrl[] Urls { get; set; } - } + /// + /// List of URLs + /// + [JsonProperty("urls", ItemConverterType = typeof(Converter))] + public TMeUrl[] Urls { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TargetChatChosen.cs b/TdLib.Api/Objects/TargetChatChosen.cs index 32f583ee..81ee884c 100644 --- a/TdLib.Api/Objects/TargetChatChosen.cs +++ b/TdLib.Api/Objects/TargetChatChosen.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TargetChat : Object { - public partial class TargetChat : Object + /// + /// The chat needs to be chosen by the user among chats of the specified types + /// + public class TargetChatChosen : TargetChat { /// - /// The chat needs to be chosen by the user among chats of the specified types + /// Data type for serialization /// - public class TargetChatChosen : TargetChat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "targetChatChosen"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "targetChatChosen"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Allowed types for the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("types")] - public TargetChatTypes Types { get; set; } - } + /// + /// Allowed types for the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("types")] + public TargetChatTypes Types { get; set; } } } } diff --git a/TdLib.Api/Objects/TargetChatCurrent.cs b/TdLib.Api/Objects/TargetChatCurrent.cs index 7e9f8535..c3e960b8 100644 --- a/TdLib.Api/Objects/TargetChatCurrent.cs +++ b/TdLib.Api/Objects/TargetChatCurrent.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TargetChat : Object { - public partial class TargetChat : Object + /// + /// Describes the target chat to be opened + /// + public class TargetChatCurrent : TargetChat { /// - /// Describes the target chat to be opened + /// Data type for serialization /// - public class TargetChatCurrent : TargetChat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "targetChatCurrent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "targetChatCurrent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TargetChatInternalLink.cs b/TdLib.Api/Objects/TargetChatInternalLink.cs index f1794859..63a7a290 100644 --- a/TdLib.Api/Objects/TargetChatInternalLink.cs +++ b/TdLib.Api/Objects/TargetChatInternalLink.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TargetChat : Object { - public partial class TargetChat : Object + /// + /// The chat needs to be open with the provided internal link + /// + public class TargetChatInternalLink : TargetChat { /// - /// The chat needs to be open with the provided internal link + /// Data type for serialization /// - public class TargetChatInternalLink : TargetChat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "targetChatInternalLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "targetChatInternalLink"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// An internal link pointing to the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link")] - public InternalLinkType Link { get; set; } - } + /// + /// An internal link pointing to the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link")] + public InternalLinkType Link { get; set; } } } } diff --git a/TdLib.Api/Objects/TargetChatTypes.cs b/TdLib.Api/Objects/TargetChatTypes.cs index e8f7faa3..0b43cda3 100644 --- a/TdLib.Api/Objects/TargetChatTypes.cs +++ b/TdLib.Api/Objects/TargetChatTypes.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes allowed types for the target chat /// - public static partial class TdApi + public partial class TargetChatTypes : Object { /// - /// Describes allowed types for the target chat + /// Data type for serialization /// - public partial class TargetChatTypes : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "targetChatTypes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "targetChatTypes"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if private chats with ordinary users are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_user_chats")] - public bool AllowUserChats { get; set; } + /// + /// True, if private chats with ordinary users are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_user_chats")] + public bool AllowUserChats { get; set; } - /// - /// True, if private chats with other bots are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_bot_chats")] - public bool AllowBotChats { get; set; } + /// + /// True, if private chats with other bots are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_bot_chats")] + public bool AllowBotChats { get; set; } - /// - /// True, if basic group and supergroup chats are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_group_chats")] - public bool AllowGroupChats { get; set; } + /// + /// True, if basic group and supergroup chats are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_group_chats")] + public bool AllowGroupChats { get; set; } - /// - /// True, if channel chats are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allow_channel_chats")] - public bool AllowChannelChats { get; set; } - } + /// + /// True, if channel chats are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allow_channel_chats")] + public bool AllowChannelChats { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TelegramPaymentPurposeGiftedStars.cs b/TdLib.Api/Objects/TelegramPaymentPurposeGiftedStars.cs index 1d50b507..5a03bea9 100644 --- a/TdLib.Api/Objects/TelegramPaymentPurposeGiftedStars.cs +++ b/TdLib.Api/Objects/TelegramPaymentPurposeGiftedStars.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TelegramPaymentPurpose : Object { - public partial class TelegramPaymentPurpose : Object + /// + /// The user buying Telegram Stars for other users + /// + public class TelegramPaymentPurposeGiftedStars : TelegramPaymentPurpose { /// - /// The user buying Telegram Stars for other users + /// Data type for serialization /// - public class TelegramPaymentPurposeGiftedStars : TelegramPaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "telegramPaymentPurposeGiftedStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "telegramPaymentPurposeGiftedStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user to which Telegram Stars are gifted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user to which Telegram Stars are gifted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of bought Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// Number of bought Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/TelegramPaymentPurposeJoinChat.cs b/TdLib.Api/Objects/TelegramPaymentPurposeJoinChat.cs index 382a98cf..23d69dc9 100644 --- a/TdLib.Api/Objects/TelegramPaymentPurposeJoinChat.cs +++ b/TdLib.Api/Objects/TelegramPaymentPurposeJoinChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TelegramPaymentPurpose : Object { - public partial class TelegramPaymentPurpose : Object + /// + /// The user joins a chat and subscribes to regular payments in Telegram Stars + /// + public class TelegramPaymentPurposeJoinChat : TelegramPaymentPurpose { /// - /// The user joins a chat and subscribes to regular payments in Telegram Stars + /// Data type for serialization /// - public class TelegramPaymentPurposeJoinChat : TelegramPaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "telegramPaymentPurposeJoinChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "telegramPaymentPurposeJoinChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Invite link to use - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public string InviteLink { get; set; } - } + /// + /// Invite link to use + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public string InviteLink { get; set; } } } } diff --git a/TdLib.Api/Objects/TelegramPaymentPurposePremiumGift.cs b/TdLib.Api/Objects/TelegramPaymentPurposePremiumGift.cs index ae487165..f8758e7b 100644 --- a/TdLib.Api/Objects/TelegramPaymentPurposePremiumGift.cs +++ b/TdLib.Api/Objects/TelegramPaymentPurposePremiumGift.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TelegramPaymentPurpose : Object { - public partial class TelegramPaymentPurpose : Object + /// + /// Describes a purpose of a payment toward Telegram + /// + public class TelegramPaymentPurposePremiumGift : TelegramPaymentPurpose { /// - /// Describes a purpose of a payment toward Telegram + /// Data type for serialization /// - public class TelegramPaymentPurposePremiumGift : TelegramPaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "telegramPaymentPurposePremiumGift"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "telegramPaymentPurposePremiumGift"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Identifier of the user who will receive Telegram Premium - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who will receive Telegram Premium + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active for the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active for the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiftCodes.cs b/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiftCodes.cs index 9570fa4f..c9bfb97c 100644 --- a/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiftCodes.cs +++ b/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiftCodes.cs @@ -2,73 +2,72 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TelegramPaymentPurpose : Object { - public partial class TelegramPaymentPurpose : Object + /// + /// The user boosting a chat by creating Telegram Premium gift codes for other users + /// + public class TelegramPaymentPurposePremiumGiftCodes : TelegramPaymentPurpose { /// - /// The user boosting a chat by creating Telegram Premium gift codes for other users + /// Data type for serialization /// - public class TelegramPaymentPurposePremiumGiftCodes : TelegramPaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "telegramPaymentPurposePremiumGiftCodes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "telegramPaymentPurposePremiumGiftCodes"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boosted_chat_id")] - public long BoostedChatId { get; set; } + /// + /// Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boosted_chat_id")] + public long BoostedChatId { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Identifiers of the users who can activate the gift codes - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } + /// + /// Identifiers of the users who can activate the gift codes + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active for the users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } + /// + /// Number of months the Telegram Premium subscription will be active for the users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } - /// - /// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } - } + /// + /// Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } } } } diff --git a/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiveaway.cs b/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiveaway.cs index 6c673ce1..ecbe1239 100644 --- a/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiveaway.cs +++ b/TdLib.Api/Objects/TelegramPaymentPurposePremiumGiveaway.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TelegramPaymentPurpose : Object { - public partial class TelegramPaymentPurpose : Object + /// + /// The user creating a Telegram Premium giveaway + /// + public class TelegramPaymentPurposePremiumGiveaway : TelegramPaymentPurpose { /// - /// The user creating a Telegram Premium giveaway + /// Data type for serialization /// - public class TelegramPaymentPurposePremiumGiveaway : TelegramPaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "telegramPaymentPurposePremiumGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "telegramPaymentPurposePremiumGiveaway"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Giveaway parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public GiveawayParameters Parameters { get; set; } + /// + /// Giveaway parameters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public GiveawayParameters Parameters { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of users who will be able to activate the gift codes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// Number of users who will be able to activate the gift codes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// Number of months the Telegram Premium subscription will be active for the users - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("month_count")] - public int MonthCount { get; set; } - } + /// + /// Number of months the Telegram Premium subscription will be active for the users + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("month_count")] + public int MonthCount { get; set; } } } } diff --git a/TdLib.Api/Objects/TelegramPaymentPurposeStarGiveaway.cs b/TdLib.Api/Objects/TelegramPaymentPurposeStarGiveaway.cs index 4ce43f35..ce4e64e6 100644 --- a/TdLib.Api/Objects/TelegramPaymentPurposeStarGiveaway.cs +++ b/TdLib.Api/Objects/TelegramPaymentPurposeStarGiveaway.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TelegramPaymentPurpose : Object { - public partial class TelegramPaymentPurpose : Object + /// + /// The user creating a Telegram Star giveaway + /// + public class TelegramPaymentPurposeStarGiveaway : TelegramPaymentPurpose { /// - /// The user creating a Telegram Star giveaway + /// Data type for serialization /// - public class TelegramPaymentPurposeStarGiveaway : TelegramPaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "telegramPaymentPurposeStarGiveaway"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "telegramPaymentPurposeStarGiveaway"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Giveaway parameters - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public GiveawayParameters Parameters { get; set; } + /// + /// Giveaway parameters + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public GiveawayParameters Parameters { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// The number of users to receive Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("winner_count")] - public int WinnerCount { get; set; } + /// + /// The number of users to receive Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("winner_count")] + public int WinnerCount { get; set; } - /// - /// The number of Telegram Stars to be distributed through the giveaway - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The number of Telegram Stars to be distributed through the giveaway + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/TelegramPaymentPurposeStars.cs b/TdLib.Api/Objects/TelegramPaymentPurposeStars.cs index afe733b3..c6153280 100644 --- a/TdLib.Api/Objects/TelegramPaymentPurposeStars.cs +++ b/TdLib.Api/Objects/TelegramPaymentPurposeStars.cs @@ -2,60 +2,60 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TelegramPaymentPurpose : Object { - public partial class TelegramPaymentPurpose : Object + /// + /// The user buying Telegram Stars + /// + public class TelegramPaymentPurposeStars : TelegramPaymentPurpose { /// - /// The user buying Telegram Stars + /// Data type for serialization /// - public class TelegramPaymentPurposeStars : TelegramPaymentPurpose - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "telegramPaymentPurposeStars"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "telegramPaymentPurposeStars"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// ISO 4217 currency code of the payment currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// ISO 4217 currency code of the payment currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Paid amount, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("amount")] - public long Amount { get; set; } + /// + /// Paid amount, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } - /// - /// Number of bought Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// Number of bought Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none. If non-zero and getOption("star_top_up_disabled"), + /// then the payment isn't allowed and the user can't buy Telegram Stars in this place + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/TemporaryPasswordState.cs b/TdLib.Api/Objects/TemporaryPasswordState.cs index ce160fac..6c6768f3 100644 --- a/TdLib.Api/Objects/TemporaryPasswordState.cs +++ b/TdLib.Api/Objects/TemporaryPasswordState.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Returns information about the availability of a temporary password, which can be used for payments /// - public static partial class TdApi + public partial class TemporaryPasswordState : Object { /// - /// Returns information about the availability of a temporary password, which can be used for payments + /// Data type for serialization /// - public partial class TemporaryPasswordState : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "temporaryPasswordState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "temporaryPasswordState"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if a temporary password is available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_password")] - public bool HasPassword { get; set; } + /// + /// True, if a temporary password is available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_password")] + public bool HasPassword { get; set; } - /// - /// Time left before the temporary password expires, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("valid_for")] - public int ValidFor { get; set; } - } + /// + /// Time left before the temporary password expires, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("valid_for")] + public int ValidFor { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TermsOfService.cs b/TdLib.Api/Objects/TermsOfService.cs index 901c5aeb..018c80ea 100644 --- a/TdLib.Api/Objects/TermsOfService.cs +++ b/TdLib.Api/Objects/TermsOfService.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains Telegram terms of service /// - public static partial class TdApi + public partial class TermsOfService : Object { /// - /// Contains Telegram terms of service + /// Data type for serialization /// - public partial class TermsOfService : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "termsOfService"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "termsOfService"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the terms of service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text of the terms of service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// The minimum age of a user to be able to accept the terms; 0 if age isn't restricted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_user_age")] - public int MinUserAge { get; set; } + /// + /// The minimum age of a user to be able to accept the terms; 0 if age isn't restricted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_user_age")] + public int MinUserAge { get; set; } - /// - /// True, if a blocking popup with terms of service must be shown to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("show_popup")] - public bool ShowPopup { get; set; } - } + /// + /// True, if a blocking popup with terms of service must be shown to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("show_popup")] + public bool ShowPopup { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TestBytes.cs b/TdLib.Api/Objects/TestBytes.cs index b2f9c49d..a40e55b4 100644 --- a/TdLib.Api/Objects/TestBytes.cs +++ b/TdLib.Api/Objects/TestBytes.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A simple object containing a sequence of bytes; for testing only /// - public static partial class TdApi + public partial class TestBytes : Object { /// - /// A simple object containing a sequence of bytes; for testing only + /// Data type for serialization /// - public partial class TestBytes : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testBytes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testBytes"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public byte[] Value { get; set; } - } + /// + /// Bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public byte[] Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TestInt.cs b/TdLib.Api/Objects/TestInt.cs index c92bb3b9..c5393650 100644 --- a/TdLib.Api/Objects/TestInt.cs +++ b/TdLib.Api/Objects/TestInt.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A simple object containing a number; for testing only /// - public static partial class TdApi + public partial class TestInt : Object { /// - /// A simple object containing a number; for testing only + /// Data type for serialization /// - public partial class TestInt : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testInt"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testInt"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Number - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public int Value { get; set; } - } + /// + /// Number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public int Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TestString.cs b/TdLib.Api/Objects/TestString.cs index 7187b334..f109533b 100644 --- a/TdLib.Api/Objects/TestString.cs +++ b/TdLib.Api/Objects/TestString.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A simple object containing a string; for testing only /// - public static partial class TdApi + public partial class TestString : Object { /// - /// A simple object containing a string; for testing only + /// Data type for serialization /// - public partial class TestString : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testString"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testString"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// String - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public string Value { get; set; } - } + /// + /// String + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public string Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TestVectorInt.cs b/TdLib.Api/Objects/TestVectorInt.cs index 857fd28f..0382771e 100644 --- a/TdLib.Api/Objects/TestVectorInt.cs +++ b/TdLib.Api/Objects/TestVectorInt.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A simple object containing a vector of numbers; for testing only /// - public static partial class TdApi + public partial class TestVectorInt : Object { /// - /// A simple object containing a vector of numbers; for testing only + /// Data type for serialization /// - public partial class TestVectorInt : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testVectorInt"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testVectorInt"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Vector of numbers - /// - [JsonProperty("value", ItemConverterType = typeof(Converter))] - public int[] Value { get; set; } - } + /// + /// Vector of numbers + /// + [JsonProperty("value", ItemConverterType = typeof(Converter))] + public int[] Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TestVectorIntObject.cs b/TdLib.Api/Objects/TestVectorIntObject.cs index a5e229a6..2fe74769 100644 --- a/TdLib.Api/Objects/TestVectorIntObject.cs +++ b/TdLib.Api/Objects/TestVectorIntObject.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A simple object containing a vector of objects that hold a number; for testing only /// - public static partial class TdApi + public partial class TestVectorIntObject : Object { /// - /// A simple object containing a vector of objects that hold a number; for testing only + /// Data type for serialization /// - public partial class TestVectorIntObject : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testVectorIntObject"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testVectorIntObject"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Vector of objects - /// - [JsonProperty("value", ItemConverterType = typeof(Converter))] - public TestInt[] Value { get; set; } - } + /// + /// Vector of objects + /// + [JsonProperty("value", ItemConverterType = typeof(Converter))] + public TestInt[] Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TestVectorString.cs b/TdLib.Api/Objects/TestVectorString.cs index 1cf9392b..151e6753 100644 --- a/TdLib.Api/Objects/TestVectorString.cs +++ b/TdLib.Api/Objects/TestVectorString.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A simple object containing a vector of strings; for testing only /// - public static partial class TdApi + public partial class TestVectorString : Object { /// - /// A simple object containing a vector of strings; for testing only + /// Data type for serialization /// - public partial class TestVectorString : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testVectorString"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testVectorString"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Vector of strings - /// - [JsonProperty("value", ItemConverterType = typeof(Converter))] - public string[] Value { get; set; } - } + /// + /// Vector of strings + /// + [JsonProperty("value", ItemConverterType = typeof(Converter))] + public string[] Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TestVectorStringObject.cs b/TdLib.Api/Objects/TestVectorStringObject.cs index bf5562aa..964e9f4e 100644 --- a/TdLib.Api/Objects/TestVectorStringObject.cs +++ b/TdLib.Api/Objects/TestVectorStringObject.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A simple object containing a vector of objects that hold a string; for testing only /// - public static partial class TdApi + public partial class TestVectorStringObject : Object { /// - /// A simple object containing a vector of objects that hold a string; for testing only + /// Data type for serialization /// - public partial class TestVectorStringObject : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "testVectorStringObject"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "testVectorStringObject"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Vector of objects - /// - [JsonProperty("value", ItemConverterType = typeof(Converter))] - public TestString[] Value { get; set; } - } + /// + /// Vector of objects + /// + [JsonProperty("value", ItemConverterType = typeof(Converter))] + public TestString[] Value { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Text.cs b/TdLib.Api/Objects/Text.cs index 36c9dd4a..82b458f3 100644 --- a/TdLib.Api/Objects/Text.cs +++ b/TdLib.Api/Objects/Text.cs @@ -2,37 +2,36 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains some text /// - public static partial class TdApi + public partial class Text : Object { /// - /// Contains some text + /// Data type for serialization /// - public partial class Text : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "text"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "text"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text_ { get; set; } - } + /// + /// Text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TextCompositionStyle.cs b/TdLib.Api/Objects/TextCompositionStyle.cs index af509bf4..2d5a6120 100644 --- a/TdLib.Api/Objects/TextCompositionStyle.cs +++ b/TdLib.Api/Objects/TextCompositionStyle.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a style that can be used to compose a text /// - public static partial class TdApi + public partial class TextCompositionStyle : Object { /// - /// Describes a style that can be used to compose a text + /// Data type for serialization /// - public partial class TextCompositionStyle : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textCompositionStyle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textCompositionStyle"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the style + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Identifier of the custom emoji corresponding to the style; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } + /// + /// Identifier of the custom emoji corresponding to the style; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } - /// - /// Title of the style in the user application's language - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the style in the user application's language + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// True, if the style is created by a user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_custom")] - public bool IsCustom { get; set; } + /// + /// True, if the style is created by a user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_custom")] + public bool IsCustom { get; set; } - /// - /// True, if the user is creator of the style - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_creator")] - public bool IsCreator { get; set; } + /// + /// True, if the user is creator of the style + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_creator")] + public bool IsCreator { get; set; } - /// - /// Number of users that installed the style; for created custom styles only; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("install_count")] - public int InstallCount { get; set; } + /// + /// Number of users that installed the style; for created custom styles only; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("install_count")] + public int InstallCount { get; set; } - /// - /// Prompt of the style; for created custom styles only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("prompt")] - public string Prompt { get; set; } + /// + /// Prompt of the style; for created custom styles only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("prompt")] + public string Prompt { get; set; } - /// - /// User identifier of the creator of the style; 0 if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("creator_user_id")] - public long CreatorUserId { get; set; } + /// + /// User identifier of the creator of the style; 0 if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creator_user_id")] + public long CreatorUserId { get; set; } - /// - /// Example of the style usage in English; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("english_example")] - public TextCompositionStyleExample EnglishExample { get; set; } - } + /// + /// Example of the style usage in English; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("english_example")] + public TextCompositionStyleExample EnglishExample { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TextCompositionStyleExample.cs b/TdLib.Api/Objects/TextCompositionStyleExample.cs index bf22a222..2b523141 100644 --- a/TdLib.Api/Objects/TextCompositionStyleExample.cs +++ b/TdLib.Api/Objects/TextCompositionStyleExample.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains an example of text composition style usage /// - public static partial class TdApi + public partial class TextCompositionStyleExample : Object { /// - /// Contains an example of text composition style usage + /// Data type for serialization /// - public partial class TextCompositionStyleExample : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textCompositionStyleExample"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textCompositionStyleExample"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Source text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("source_text")] - public FormattedText SourceText { get; set; } + /// + /// Source text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("source_text")] + public FormattedText SourceText { get; set; } - /// - /// The text after the style was applied to the source text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result_text")] - public FormattedText ResultText { get; set; } - } + /// + /// The text after the style was applied to the source text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result_text")] + public FormattedText ResultText { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TextEntities.cs b/TdLib.Api/Objects/TextEntities.cs index 7a84bff8..cc22b0b8 100644 --- a/TdLib.Api/Objects/TextEntities.cs +++ b/TdLib.Api/Objects/TextEntities.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of text entities /// - public static partial class TdApi + public partial class TextEntities : Object { /// - /// Contains a list of text entities + /// Data type for serialization /// - public partial class TextEntities : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntities"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntities"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of text entities - /// - [JsonProperty("entities", ItemConverterType = typeof(Converter))] - public TextEntity[] Entities { get; set; } - } + /// + /// List of text entities + /// + [JsonProperty("entities", ItemConverterType = typeof(Converter))] + public TextEntity[] Entities { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TextEntity.cs b/TdLib.Api/Objects/TextEntity.cs index 5e8f3ab4..8b764494 100644 --- a/TdLib.Api/Objects/TextEntity.cs +++ b/TdLib.Api/Objects/TextEntity.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a part of the text that needs to be formatted in some unusual way /// - public static partial class TdApi + public partial class TextEntity : Object { /// - /// Represents a part of the text that needs to be formatted in some unusual way + /// Data type for serialization /// - public partial class TextEntity : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntity"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Offset of the entity, in UTF-16 code units - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public int Offset { get; set; } + /// + /// Offset of the entity, in UTF-16 code units + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public int Offset { get; set; } - /// - /// Length of the entity, in UTF-16 code units - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } + /// + /// Length of the entity, in UTF-16 code units + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } - /// - /// Type of the entity - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public TextEntityType Type { get; set; } - } + /// + /// Type of the entity + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public TextEntityType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TextEntityTypeBankCardNumber.cs b/TdLib.Api/Objects/TextEntityTypeBankCardNumber.cs index a8a01a1a..69ba58e4 100644 --- a/TdLib.Api/Objects/TextEntityTypeBankCardNumber.cs +++ b/TdLib.Api/Objects/TextEntityTypeBankCardNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A bank card number. The getBankCardInfo method can be used to get information about the bank card + /// + public class TextEntityTypeBankCardNumber : TextEntityType { /// - /// A bank card number. The getBankCardInfo method can be used to get information about the bank card + /// Data type for serialization /// - public class TextEntityTypeBankCardNumber : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeBankCardNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeBankCardNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeBlockQuote.cs b/TdLib.Api/Objects/TextEntityTypeBlockQuote.cs index fc6fae10..2c2a3d67 100644 --- a/TdLib.Api/Objects/TextEntityTypeBlockQuote.cs +++ b/TdLib.Api/Objects/TextEntityTypeBlockQuote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// Text that must be formatted as if inside a blockquote HTML tag; not supported in secret chats + /// + public class TextEntityTypeBlockQuote : TextEntityType { /// - /// Text that must be formatted as if inside a blockquote HTML tag; not supported in secret chats + /// Data type for serialization /// - public class TextEntityTypeBlockQuote : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeBlockQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeBlockQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeBold.cs b/TdLib.Api/Objects/TextEntityTypeBold.cs index af8d1b09..670a07cf 100644 --- a/TdLib.Api/Objects/TextEntityTypeBold.cs +++ b/TdLib.Api/Objects/TextEntityTypeBold.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A bold text + /// + public class TextEntityTypeBold : TextEntityType { /// - /// A bold text + /// Data type for serialization /// - public class TextEntityTypeBold : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeBold"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeBold"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeBotCommand.cs b/TdLib.Api/Objects/TextEntityTypeBotCommand.cs index 57d9f7d5..8ca247e7 100644 --- a/TdLib.Api/Objects/TextEntityTypeBotCommand.cs +++ b/TdLib.Api/Objects/TextEntityTypeBotCommand.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A bot command, beginning with "/" + /// + public class TextEntityTypeBotCommand : TextEntityType { /// - /// A bot command, beginning with "/" + /// Data type for serialization /// - public class TextEntityTypeBotCommand : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeBotCommand"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeBotCommand"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeCashtag.cs b/TdLib.Api/Objects/TextEntityTypeCashtag.cs index fe95bc0b..45ec3f07 100644 --- a/TdLib.Api/Objects/TextEntityTypeCashtag.cs +++ b/TdLib.Api/Objects/TextEntityTypeCashtag.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A cashtag text, beginning with "$", consisting of capital English letters (e.g., "$USD"), and optionally containing a chat username at the end + /// + public class TextEntityTypeCashtag : TextEntityType { /// - /// A cashtag text, beginning with "$", consisting of capital English letters (e.g., "$USD"), and optionally containing a chat username at the end + /// Data type for serialization /// - public class TextEntityTypeCashtag : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeCashtag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeCashtag"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeCode.cs b/TdLib.Api/Objects/TextEntityTypeCode.cs index 5b40320b..82df4fd9 100644 --- a/TdLib.Api/Objects/TextEntityTypeCode.cs +++ b/TdLib.Api/Objects/TextEntityTypeCode.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// Text that must be formatted as if inside a code HTML tag + /// + public class TextEntityTypeCode : TextEntityType { /// - /// Text that must be formatted as if inside a code HTML tag + /// Data type for serialization /// - public class TextEntityTypeCode : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeCustomEmoji.cs b/TdLib.Api/Objects/TextEntityTypeCustomEmoji.cs index 2c939bac..1e814a9f 100644 --- a/TdLib.Api/Objects/TextEntityTypeCustomEmoji.cs +++ b/TdLib.Api/Objects/TextEntityTypeCustomEmoji.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji + /// + public class TextEntityTypeCustomEmoji : TextEntityType { /// - /// A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji + /// Data type for serialization /// - public class TextEntityTypeCustomEmoji : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeCustomEmoji"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeCustomEmoji"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the custom emoji - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("custom_emoji_id")] - public long CustomEmojiId { get; set; } - } + /// + /// Unique identifier of the custom emoji + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("custom_emoji_id")] + public long CustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeDateTime.cs b/TdLib.Api/Objects/TextEntityTypeDateTime.cs index eeb96958..796519c2 100644 --- a/TdLib.Api/Objects/TextEntityTypeDateTime.cs +++ b/TdLib.Api/Objects/TextEntityTypeDateTime.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A date and time + /// + public class TextEntityTypeDateTime : TextEntityType { /// - /// A date and time + /// Data type for serialization /// - public class TextEntityTypeDateTime : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeDateTime"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeDateTime"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) representing the date and time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unix_time")] - public int UnixTime { get; set; } + /// + /// Point in time (Unix timestamp) representing the date and time + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unix_time")] + public int UnixTime { get; set; } - /// - /// Date and time formatting type; may be null if none and the original text must not be changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("formatting_type")] - public DateTimeFormattingType FormattingType { get; set; } - } + /// + /// Date and time formatting type; may be null if none and the original text must not be changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("formatting_type")] + public DateTimeFormattingType FormattingType { get; set; } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeEmailAddress.cs b/TdLib.Api/Objects/TextEntityTypeEmailAddress.cs index d2071b9e..cbe05990 100644 --- a/TdLib.Api/Objects/TextEntityTypeEmailAddress.cs +++ b/TdLib.Api/Objects/TextEntityTypeEmailAddress.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// An email address + /// + public class TextEntityTypeEmailAddress : TextEntityType { /// - /// An email address + /// Data type for serialization /// - public class TextEntityTypeEmailAddress : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeEmailAddress"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeEmailAddress"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeExpandableBlockQuote.cs b/TdLib.Api/Objects/TextEntityTypeExpandableBlockQuote.cs index 8cc378e4..c075a768 100644 --- a/TdLib.Api/Objects/TextEntityTypeExpandableBlockQuote.cs +++ b/TdLib.Api/Objects/TextEntityTypeExpandableBlockQuote.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// Text that must be formatted as if inside a blockquote HTML tag and collapsed by default to 3 lines with the ability to show full text; not supported in secret chats + /// + public class TextEntityTypeExpandableBlockQuote : TextEntityType { /// - /// Text that must be formatted as if inside a blockquote HTML tag and collapsed by default to 3 lines with the ability to show full text; not supported in secret chats + /// Data type for serialization /// - public class TextEntityTypeExpandableBlockQuote : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeExpandableBlockQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeExpandableBlockQuote"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeHashtag.cs b/TdLib.Api/Objects/TextEntityTypeHashtag.cs index 7cbf9d10..a79f9143 100644 --- a/TdLib.Api/Objects/TextEntityTypeHashtag.cs +++ b/TdLib.Api/Objects/TextEntityTypeHashtag.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A hashtag text, beginning with "#" and optionally containing a chat username at the end + /// + public class TextEntityTypeHashtag : TextEntityType { /// - /// A hashtag text, beginning with "#" and optionally containing a chat username at the end + /// Data type for serialization /// - public class TextEntityTypeHashtag : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeHashtag"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeHashtag"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeItalic.cs b/TdLib.Api/Objects/TextEntityTypeItalic.cs index 4b4ed0f0..291aba55 100644 --- a/TdLib.Api/Objects/TextEntityTypeItalic.cs +++ b/TdLib.Api/Objects/TextEntityTypeItalic.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// An italic text + /// + public class TextEntityTypeItalic : TextEntityType { /// - /// An italic text + /// Data type for serialization /// - public class TextEntityTypeItalic : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeItalic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeItalic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeMediaTimestamp.cs b/TdLib.Api/Objects/TextEntityTypeMediaTimestamp.cs index a1875e25..ebc5c9b7 100644 --- a/TdLib.Api/Objects/TextEntityTypeMediaTimestamp.cs +++ b/TdLib.Api/Objects/TextEntityTypeMediaTimestamp.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A media timestamp + /// + public class TextEntityTypeMediaTimestamp : TextEntityType { /// - /// A media timestamp + /// Data type for serialization /// - public class TextEntityTypeMediaTimestamp : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeMediaTimestamp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeMediaTimestamp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Timestamp from which a video/audio/video note/voice note/story playing must start, in seconds. The media can be in the content or the link preview of the current message, or in the same places in the replied message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("media_timestamp")] - public int MediaTimestamp { get; set; } - } + /// + /// Timestamp from which a video/audio/video note/voice note/story playing must start, in seconds. The media can be in the content or the link preview of the current message, or in the same places in the replied message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("media_timestamp")] + public int MediaTimestamp { get; set; } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeMention.cs b/TdLib.Api/Objects/TextEntityTypeMention.cs index e5641a3f..3856ec8d 100644 --- a/TdLib.Api/Objects/TextEntityTypeMention.cs +++ b/TdLib.Api/Objects/TextEntityTypeMention.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// Represents a part of the text which must be formatted differently + /// + public class TextEntityTypeMention : TextEntityType { /// - /// Represents a part of the text which must be formatted differently + /// Data type for serialization /// - public class TextEntityTypeMention : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeMention"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeMention"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeMentionName.cs b/TdLib.Api/Objects/TextEntityTypeMentionName.cs index 80600568..a2b9a094 100644 --- a/TdLib.Api/Objects/TextEntityTypeMentionName.cs +++ b/TdLib.Api/Objects/TextEntityTypeMentionName.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A text shows instead of a raw mention of the user (e.g., when the user has no username) + /// + public class TextEntityTypeMentionName : TextEntityType { /// - /// A text shows instead of a raw mention of the user (e.g., when the user has no username) + /// Data type for serialization /// - public class TextEntityTypeMentionName : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeMentionName"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeMentionName"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the mentioned user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } - } + /// + /// Identifier of the mentioned user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } } } } diff --git a/TdLib.Api/Objects/TextEntityTypePhoneNumber.cs b/TdLib.Api/Objects/TextEntityTypePhoneNumber.cs index 024813c9..7101bebf 100644 --- a/TdLib.Api/Objects/TextEntityTypePhoneNumber.cs +++ b/TdLib.Api/Objects/TextEntityTypePhoneNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A phone number + /// + public class TextEntityTypePhoneNumber : TextEntityType { /// - /// A phone number + /// Data type for serialization /// - public class TextEntityTypePhoneNumber : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypePhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypePhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypePre.cs b/TdLib.Api/Objects/TextEntityTypePre.cs index a8696b8e..985f4815 100644 --- a/TdLib.Api/Objects/TextEntityTypePre.cs +++ b/TdLib.Api/Objects/TextEntityTypePre.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// Text that must be formatted as if inside a pre HTML tag + /// + public class TextEntityTypePre : TextEntityType { /// - /// Text that must be formatted as if inside a pre HTML tag + /// Data type for serialization /// - public class TextEntityTypePre : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypePre"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypePre"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypePreCode.cs b/TdLib.Api/Objects/TextEntityTypePreCode.cs index 54885913..2007ff17 100644 --- a/TdLib.Api/Objects/TextEntityTypePreCode.cs +++ b/TdLib.Api/Objects/TextEntityTypePreCode.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// Text that must be formatted as if inside pre, and code HTML tags + /// + public class TextEntityTypePreCode : TextEntityType { /// - /// Text that must be formatted as if inside pre, and code HTML tags + /// Data type for serialization /// - public class TextEntityTypePreCode : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypePreCode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypePreCode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Programming language of the code; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language")] - public string Language { get; set; } - } + /// + /// Programming language of the code; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language")] + public string Language { get; set; } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeSpoiler.cs b/TdLib.Api/Objects/TextEntityTypeSpoiler.cs index 3d9fe279..57f5742f 100644 --- a/TdLib.Api/Objects/TextEntityTypeSpoiler.cs +++ b/TdLib.Api/Objects/TextEntityTypeSpoiler.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A spoiler text + /// + public class TextEntityTypeSpoiler : TextEntityType { /// - /// A spoiler text + /// Data type for serialization /// - public class TextEntityTypeSpoiler : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeSpoiler"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeSpoiler"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeStrikethrough.cs b/TdLib.Api/Objects/TextEntityTypeStrikethrough.cs index 497569b7..11a43ae0 100644 --- a/TdLib.Api/Objects/TextEntityTypeStrikethrough.cs +++ b/TdLib.Api/Objects/TextEntityTypeStrikethrough.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A strikethrough text + /// + public class TextEntityTypeStrikethrough : TextEntityType { /// - /// A strikethrough text + /// Data type for serialization /// - public class TextEntityTypeStrikethrough : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeStrikethrough"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeStrikethrough"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeTextUrl.cs b/TdLib.Api/Objects/TextEntityTypeTextUrl.cs index ad6d20d0..8c6de601 100644 --- a/TdLib.Api/Objects/TextEntityTypeTextUrl.cs +++ b/TdLib.Api/Objects/TextEntityTypeTextUrl.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// A text description shown instead of a raw URL + /// + public class TextEntityTypeTextUrl : TextEntityType { /// - /// A text description shown instead of a raw URL + /// Data type for serialization /// - public class TextEntityTypeTextUrl : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeTextUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeTextUrl"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// HTTP or tg:// URL to be opened when the link is clicked - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// HTTP or tg:// URL to be opened when the link is clicked + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeTonAddress.cs b/TdLib.Api/Objects/TextEntityTypeTonAddress.cs new file mode 100644 index 00000000..e26492c0 --- /dev/null +++ b/TdLib.Api/Objects/TextEntityTypeTonAddress.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TextEntityType : Object + { + /// + /// An address in the TON blockchain + /// + public class TextEntityTypeTonAddress : TextEntityType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeTonAddress"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TextEntityTypeUnderline.cs b/TdLib.Api/Objects/TextEntityTypeUnderline.cs index 5a821b33..69f7cd3c 100644 --- a/TdLib.Api/Objects/TextEntityTypeUnderline.cs +++ b/TdLib.Api/Objects/TextEntityTypeUnderline.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// An underlined text + /// + public class TextEntityTypeUnderline : TextEntityType { /// - /// An underlined text + /// Data type for serialization /// - public class TextEntityTypeUnderline : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeUnderline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeUnderline"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextEntityTypeUrl.cs b/TdLib.Api/Objects/TextEntityTypeUrl.cs index d221a09c..42f3336c 100644 --- a/TdLib.Api/Objects/TextEntityTypeUrl.cs +++ b/TdLib.Api/Objects/TextEntityTypeUrl.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextEntityType : Object { - public partial class TextEntityType : Object + /// + /// An HTTP URL + /// + public class TextEntityTypeUrl : TextEntityType { /// - /// An HTTP URL + /// Data type for serialization /// - public class TextEntityTypeUrl : TextEntityType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textEntityTypeUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textEntityTypeUrl"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextParseModeHTML.cs b/TdLib.Api/Objects/TextParseModeHTML.cs index ae0dfaf7..88de07da 100644 --- a/TdLib.Api/Objects/TextParseModeHTML.cs +++ b/TdLib.Api/Objects/TextParseModeHTML.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextParseMode : Object { - public partial class TextParseMode : Object + /// + /// The text uses HTML-style formatting. The same as Telegram Bot API "HTML" parse mode + /// + public class TextParseModeHTML : TextParseMode { /// - /// The text uses HTML-style formatting. The same as Telegram Bot API "HTML" parse mode + /// Data type for serialization /// - public class TextParseModeHTML : TextParseMode - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textParseModeHTML"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textParseModeHTML"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TextParseModeMarkdown.cs b/TdLib.Api/Objects/TextParseModeMarkdown.cs index 9dfb99b5..59371a23 100644 --- a/TdLib.Api/Objects/TextParseModeMarkdown.cs +++ b/TdLib.Api/Objects/TextParseModeMarkdown.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TextParseMode : Object { - public partial class TextParseMode : Object + /// + /// Describes the way the text needs to be parsed for text entities + /// + public class TextParseModeMarkdown : TextParseMode { /// - /// Describes the way the text needs to be parsed for text entities + /// Data type for serialization /// - public class TextParseModeMarkdown : TextParseMode - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textParseModeMarkdown"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textParseModeMarkdown"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Version of the parser: 0 or 1 - Telegram Bot API "Markdown" parse mode, 2 - Telegram Bot API "MarkdownV2" parse mode - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("version")] - public int Version { get; set; } - } + /// + /// Version of the parser: 0 or 1 - Telegram Bot API "Markdown" parse mode, 2 - Telegram Bot API "MarkdownV2" parse mode + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("version")] + public int Version { get; set; } } } } diff --git a/TdLib.Api/Objects/TextQuote.cs b/TdLib.Api/Objects/TextQuote.cs index cd4d0299..ce4c6694 100644 --- a/TdLib.Api/Objects/TextQuote.cs +++ b/TdLib.Api/Objects/TextQuote.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes manually or automatically chosen quote from another message /// - public static partial class TdApi + public partial class TextQuote : Object { /// - /// Describes manually or automatically chosen quote from another message + /// Data type for serialization /// - public partial class TextQuote : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "textQuote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "textQuote"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities can be present in the text - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities can be present in the text + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Approximate quote position in the original message in UTF-16 code units as specified by the message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public int Position { get; set; } + /// + /// Approximate quote position in the original message in UTF-16 code units as specified by the message sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public int Position { get; set; } - /// - /// True, if the quote was manually chosen by the message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_manual")] - public bool IsManual { get; set; } - } + /// + /// True, if the quote was manually chosen by the message sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_manual")] + public bool IsManual { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ThemeParameters.cs b/TdLib.Api/Objects/ThemeParameters.cs index f39f4538..f1304e98 100644 --- a/TdLib.Api/Objects/ThemeParameters.cs +++ b/TdLib.Api/Objects/ThemeParameters.cs @@ -2,135 +2,134 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains parameters of the application theme /// - public static partial class TdApi + public partial class ThemeParameters : Object { /// - /// Contains parameters of the application theme - /// - public partial class ThemeParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "themeParameters"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// A color of the background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background_color")] - public int BackgroundColor { get; set; } - - /// - /// A secondary color for the background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secondary_background_color")] - public int SecondaryBackgroundColor { get; set; } - - /// - /// A color of the header background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("header_background_color")] - public int HeaderBackgroundColor { get; set; } - - /// - /// A color of the bottom bar background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bottom_bar_background_color")] - public int BottomBarBackgroundColor { get; set; } - - /// - /// A color of the section background in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("section_background_color")] - public int SectionBackgroundColor { get; set; } - - /// - /// A color of the section separator in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("section_separator_color")] - public int SectionSeparatorColor { get; set; } - - /// - /// A color of text in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text_color")] - public int TextColor { get; set; } - - /// - /// An accent color of the text in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_text_color")] - public int AccentTextColor { get; set; } - - /// - /// A color of text on the section headers in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("section_header_text_color")] - public int SectionHeaderTextColor { get; set; } - - /// - /// A color of the subtitle text in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("subtitle_text_color")] - public int SubtitleTextColor { get; set; } - - /// - /// A color of the text for destructive actions in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("destructive_text_color")] - public int DestructiveTextColor { get; set; } - - /// - /// A color of hints in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("hint_color")] - public int HintColor { get; set; } - - /// - /// A color of links in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("link_color")] - public int LinkColor { get; set; } - - /// - /// A color of the buttons in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_color")] - public int ButtonColor { get; set; } - - /// - /// A color of text on the buttons in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("button_text_color")] - public int ButtonTextColor { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "themeParameters"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// A color of the background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background_color")] + public int BackgroundColor { get; set; } + + /// + /// A secondary color for the background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("secondary_background_color")] + public int SecondaryBackgroundColor { get; set; } + + /// + /// A color of the header background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("header_background_color")] + public int HeaderBackgroundColor { get; set; } + + /// + /// A color of the bottom bar background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bottom_bar_background_color")] + public int BottomBarBackgroundColor { get; set; } + + /// + /// A color of the section background in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("section_background_color")] + public int SectionBackgroundColor { get; set; } + + /// + /// A color of the section separator in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("section_separator_color")] + public int SectionSeparatorColor { get; set; } + + /// + /// A color of text in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text_color")] + public int TextColor { get; set; } + + /// + /// An accent color of the text in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_text_color")] + public int AccentTextColor { get; set; } + + /// + /// A color of text on the section headers in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("section_header_text_color")] + public int SectionHeaderTextColor { get; set; } + + /// + /// A color of the subtitle text in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("subtitle_text_color")] + public int SubtitleTextColor { get; set; } + + /// + /// A color of the text for destructive actions in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("destructive_text_color")] + public int DestructiveTextColor { get; set; } + + /// + /// A color of hints in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("hint_color")] + public int HintColor { get; set; } + + /// + /// A color of links in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("link_color")] + public int LinkColor { get; set; } + + /// + /// A color of the buttons in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_color")] + public int ButtonColor { get; set; } + + /// + /// A color of text on the buttons in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("button_text_color")] + public int ButtonTextColor { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ThemeSettings.cs b/TdLib.Api/Objects/ThemeSettings.cs index 701349c3..359e691f 100644 --- a/TdLib.Api/Objects/ThemeSettings.cs +++ b/TdLib.Api/Objects/ThemeSettings.cs @@ -2,72 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes theme settings /// - public static partial class TdApi + public partial class ThemeSettings : Object { /// - /// Describes theme settings + /// Data type for serialization /// - public partial class ThemeSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "themeSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "themeSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Base theme for this theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("base_theme")] - public BuiltInTheme BaseTheme { get; set; } + /// + /// Base theme for this theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("base_theme")] + public BuiltInTheme BaseTheme { get; set; } - /// - /// Theme accent color in ARGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color")] - public int AccentColor { get; set; } + /// + /// Theme accent color in ARGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color")] + public int AccentColor { get; set; } + + /// + /// The background to be used in chats; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public Background Background { get; set; } - /// - /// The background to be used in chats; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public Background Background { get; set; } + /// + /// The fill to be used as a background for outgoing messages; may be null if the fill from the base theme must be used instead + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("outgoing_message_fill")] + public BackgroundFill OutgoingMessageFill { get; set; } - /// - /// The fill to be used as a background for outgoing messages; may be null if the fill from the base theme must be used instead - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("outgoing_message_fill")] - public BackgroundFill OutgoingMessageFill { get; set; } + /// + /// If true, the freeform gradient fill needs to be animated on every sent message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animate_outgoing_message_fill")] + public bool AnimateOutgoingMessageFill { get; set; } - /// - /// If true, the freeform gradient fill needs to be animated on every sent message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animate_outgoing_message_fill")] - public bool AnimateOutgoingMessageFill { get; set; } + /// + /// True, if there is chosen accent color for outgoing messages; otherwise, the color must be deduced from other theme settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_outgoing_message_accent_color")] + public bool HasOutgoingMessageAccentColor { get; set; } - /// - /// Accent color of outgoing messages in ARGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("outgoing_message_accent_color")] - public int OutgoingMessageAccentColor { get; set; } - } + /// + /// Accent color of outgoing messages in ARGB format; must be ignored if has_outgoing_message_accent_color is false + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("outgoing_message_accent_color")] + public int OutgoingMessageAccentColor { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Thumbnail.cs b/TdLib.Api/Objects/Thumbnail.cs index f64bcb4d..aab8ea70 100644 --- a/TdLib.Api/Objects/Thumbnail.cs +++ b/TdLib.Api/Objects/Thumbnail.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a thumbnail /// - public static partial class TdApi + public partial class Thumbnail : Object { /// - /// Represents a thumbnail + /// Data type for serialization /// - public partial class Thumbnail : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnail"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnail"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Thumbnail format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("format")] - public ThumbnailFormat Format { get; set; } + /// + /// Thumbnail format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("format")] + public ThumbnailFormat Format { get; set; } - /// - /// Thumbnail width - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Thumbnail width + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Thumbnail height - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Thumbnail height + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// The thumbnail - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file")] - public File File { get; set; } - } + /// + /// The thumbnail + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file")] + public File File { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ThumbnailFormatGif.cs b/TdLib.Api/Objects/ThumbnailFormatGif.cs index d256068d..ed4d602f 100644 --- a/TdLib.Api/Objects/ThumbnailFormatGif.cs +++ b/TdLib.Api/Objects/ThumbnailFormatGif.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ThumbnailFormat : Object { - public partial class ThumbnailFormat : Object + /// + /// The thumbnail is in static GIF format. It will be used only for some bot inline query results + /// + public class ThumbnailFormatGif : ThumbnailFormat { /// - /// The thumbnail is in static GIF format. It will be used only for some bot inline query results + /// Data type for serialization /// - public class ThumbnailFormatGif : ThumbnailFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnailFormatGif"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnailFormatGif"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ThumbnailFormatJpeg.cs b/TdLib.Api/Objects/ThumbnailFormatJpeg.cs index 5db30bc7..4ce946b6 100644 --- a/TdLib.Api/Objects/ThumbnailFormatJpeg.cs +++ b/TdLib.Api/Objects/ThumbnailFormatJpeg.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ThumbnailFormat : Object { - public partial class ThumbnailFormat : Object + /// + /// Describes format of a thumbnail + /// + public class ThumbnailFormatJpeg : ThumbnailFormat { /// - /// Describes format of a thumbnail + /// Data type for serialization /// - public class ThumbnailFormatJpeg : ThumbnailFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnailFormatJpeg"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnailFormatJpeg"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ThumbnailFormatMpeg4.cs b/TdLib.Api/Objects/ThumbnailFormatMpeg4.cs index cdb474d6..4a362025 100644 --- a/TdLib.Api/Objects/ThumbnailFormatMpeg4.cs +++ b/TdLib.Api/Objects/ThumbnailFormatMpeg4.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ThumbnailFormat : Object { - public partial class ThumbnailFormat : Object + /// + /// The thumbnail is in MPEG4 format. It will be used only for some animations and videos + /// + public class ThumbnailFormatMpeg4 : ThumbnailFormat { /// - /// The thumbnail is in MPEG4 format. It will be used only for some animations and videos + /// Data type for serialization /// - public class ThumbnailFormatMpeg4 : ThumbnailFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnailFormatMpeg4"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnailFormatMpeg4"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ThumbnailFormatPng.cs b/TdLib.Api/Objects/ThumbnailFormatPng.cs index 2aee9bfc..c1ae5d35 100644 --- a/TdLib.Api/Objects/ThumbnailFormatPng.cs +++ b/TdLib.Api/Objects/ThumbnailFormatPng.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ThumbnailFormat : Object { - public partial class ThumbnailFormat : Object + /// + /// The thumbnail is in PNG format. It will be used only for background patterns + /// + public class ThumbnailFormatPng : ThumbnailFormat { /// - /// The thumbnail is in PNG format. It will be used only for background patterns + /// Data type for serialization /// - public class ThumbnailFormatPng : ThumbnailFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnailFormatPng"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnailFormatPng"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ThumbnailFormatTgs.cs b/TdLib.Api/Objects/ThumbnailFormatTgs.cs index 3def131a..dd7f8f37 100644 --- a/TdLib.Api/Objects/ThumbnailFormatTgs.cs +++ b/TdLib.Api/Objects/ThumbnailFormatTgs.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ThumbnailFormat : Object { - public partial class ThumbnailFormat : Object + /// + /// The thumbnail is in TGS format. It will be used only for sticker sets + /// + public class ThumbnailFormatTgs : ThumbnailFormat { /// - /// The thumbnail is in TGS format. It will be used only for sticker sets + /// Data type for serialization /// - public class ThumbnailFormatTgs : ThumbnailFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnailFormatTgs"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnailFormatTgs"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ThumbnailFormatWebm.cs b/TdLib.Api/Objects/ThumbnailFormatWebm.cs index 5dee5157..045eca1c 100644 --- a/TdLib.Api/Objects/ThumbnailFormatWebm.cs +++ b/TdLib.Api/Objects/ThumbnailFormatWebm.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ThumbnailFormat : Object { - public partial class ThumbnailFormat : Object + /// + /// The thumbnail is in WEBM format. It will be used only for sticker sets + /// + public class ThumbnailFormatWebm : ThumbnailFormat { /// - /// The thumbnail is in WEBM format. It will be used only for sticker sets + /// Data type for serialization /// - public class ThumbnailFormatWebm : ThumbnailFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnailFormatWebm"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnailFormatWebm"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/ThumbnailFormatWebp.cs b/TdLib.Api/Objects/ThumbnailFormatWebp.cs index bebd5f4e..71ece427 100644 --- a/TdLib.Api/Objects/ThumbnailFormatWebp.cs +++ b/TdLib.Api/Objects/ThumbnailFormatWebp.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class ThumbnailFormat : Object { - public partial class ThumbnailFormat : Object + /// + /// The thumbnail is in WEBP format. It will be used only for some stickers and sticker sets + /// + public class ThumbnailFormatWebp : ThumbnailFormat { /// - /// The thumbnail is in WEBP format. It will be used only for some stickers and sticker sets + /// Data type for serialization /// - public class ThumbnailFormatWebp : ThumbnailFormat - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "thumbnailFormatWebp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "thumbnailFormatWebp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TimeZone.cs b/TdLib.Api/Objects/TimeZone.cs index f3572cae..5bfec2e2 100644 --- a/TdLib.Api/Objects/TimeZone.cs +++ b/TdLib.Api/Objects/TimeZone.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a time zone /// - public static partial class TdApi + public partial class TimeZone : Object { /// - /// Describes a time zone + /// Data type for serialization /// - public partial class TimeZone : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "timeZone"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "timeZone"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique time zone identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique time zone identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Time zone name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Time zone name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Current UTC time offset for the time zone - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("utc_time_offset")] - public int UtcTimeOffset { get; set; } - } + /// + /// Current UTC time offset for the time zone + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("utc_time_offset")] + public int UtcTimeOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TimeZones.cs b/TdLib.Api/Objects/TimeZones.cs index d4f05ed3..b73b4b55 100644 --- a/TdLib.Api/Objects/TimeZones.cs +++ b/TdLib.Api/Objects/TimeZones.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of time zones /// - public static partial class TdApi + public partial class TimeZones : Object { /// - /// Contains a list of time zones + /// Data type for serialization /// - public partial class TimeZones : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "timeZones"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "timeZones"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of time zones - /// - [JsonProperty("time_zones", ItemConverterType = typeof(Converter))] - public TimeZone[] TimeZones_ { get; set; } - } + /// + /// A list of time zones + /// + [JsonProperty("time_zones", ItemConverterType = typeof(Converter))] + public TimeZone[] TimeZones_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonCenterApiRequestTypeGet.cs b/TdLib.Api/Objects/TonCenterApiRequestTypeGet.cs new file mode 100644 index 00000000..2fb9b073 --- /dev/null +++ b/TdLib.Api/Objects/TonCenterApiRequestTypeGet.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonCenterApiRequestType : Object + { + /// + /// Describes state of active stories posted by a chat + /// + public class TonCenterApiRequestTypeGet : TonCenterApiRequestType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonCenterApiRequestTypeGet"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// URL-encoded query of the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonCenterApiRequestTypePost.cs b/TdLib.Api/Objects/TonCenterApiRequestTypePost.cs new file mode 100644 index 00000000..902ee75d --- /dev/null +++ b/TdLib.Api/Objects/TonCenterApiRequestTypePost.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonCenterApiRequestType : Object + { + /// + /// A POST request + /// + public class TonCenterApiRequestTypePost : TonCenterApiRequestType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonCenterApiRequestTypePost"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Payload of the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonCenterStreamingApiUrl.cs b/TdLib.Api/Objects/TonCenterStreamingApiUrl.cs new file mode 100644 index 00000000..3e92a792 --- /dev/null +++ b/TdLib.Api/Objects/TonCenterStreamingApiUrl.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Contains an HTTP URL for TON Center Streaming API + /// + public partial class TonCenterStreamingApiUrl : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonCenterStreamingApiUrl"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + + /// + /// Time after which the URL expires + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expires_in")] + public int ExpiresIn { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectChallenge.cs b/TdLib.Api/Objects/TonConnectChallenge.cs new file mode 100644 index 00000000..c8a178b5 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectChallenge.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a TON Connect challenge + /// + public partial class TonConnectChallenge : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectChallenge"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// 104-byte challenge + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("challenge")] + public byte[] Challenge { get; set; } + + /// + /// Unique identifier of the first outgoing event + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("event_id")] + public long EventId { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectConnectItemAddress.cs b/TdLib.Api/Objects/TonConnectConnectItemAddress.cs new file mode 100644 index 00000000..9c2effc1 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectConnectItemAddress.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectConnectItem : Object + { + /// + /// Represents a data item to share with a dApp + /// + public class TonConnectConnectItemAddress : TonConnectConnectItem + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectConnectItemAddress"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Stringified TON network global_id (e.g. "-239" for mainnet); may be empty + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("network")] + public string Network { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectConnectItemProof.cs b/TdLib.Api/Objects/TonConnectConnectItemProof.cs new file mode 100644 index 00000000..092581eb --- /dev/null +++ b/TdLib.Api/Objects/TonConnectConnectItemProof.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectConnectItem : Object + { + /// + /// Proof of the wallet ownership + /// + public class TonConnectConnectItemProof : TonConnectConnectItem + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectConnectItemProof"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Payload to be used for the proof (e.g. nonce + expiration timestamp) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectConnectRequest.cs b/TdLib.Api/Objects/TonConnectConnectRequest.cs new file mode 100644 index 00000000..ae1c7dce --- /dev/null +++ b/TdLib.Api/Objects/TonConnectConnectRequest.cs @@ -0,0 +1,43 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Contains information about a request to connect the user's TON wallet to a dApp using TON Connect + /// + public partial class TonConnectConnectRequest : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectConnectRequest"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// URL of the manifest of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manifest_url")] + public string ManifestUrl { get; set; } + + /// + /// Items requested from the wallet + /// + [JsonProperty("items", ItemConverterType = typeof(Converter))] + public TonConnectConnectItem[] Items { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectManifestFailed.cs b/TdLib.Api/Objects/TonConnectManifestFailed.cs new file mode 100644 index 00000000..9797d4dd --- /dev/null +++ b/TdLib.Api/Objects/TonConnectManifestFailed.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectManifest : Object + { + /// + /// The manifest has failed to download + /// + public class TonConnectManifestFailed : TonConnectManifest + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectManifestFailed"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectManifestInfo.cs b/TdLib.Api/Objects/TonConnectManifestInfo.cs new file mode 100644 index 00000000..811a6a84 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectManifestInfo.cs @@ -0,0 +1,54 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectManifest : Object + { + /// + /// The manifest is available + /// + public class TonConnectManifestInfo : TonConnectManifest + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectManifestInfo"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// URL of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + + /// + /// Name of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// App icon in PNG or ICO format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("icon")] + public Document Icon { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectManifestInvalid.cs b/TdLib.Api/Objects/TonConnectManifestInvalid.cs new file mode 100644 index 00000000..b833c356 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectManifestInvalid.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectManifest : Object + { + /// + /// The manifest is invalid + /// + public class TonConnectManifestInvalid : TonConnectManifest + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectManifestInvalid"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectManifestPending.cs b/TdLib.Api/Objects/TonConnectManifestPending.cs new file mode 100644 index 00000000..253d2958 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectManifestPending.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectManifest : Object + { + /// + /// Describes manifest of the dApp that is being connected using TON Connect + /// + public class TonConnectManifestPending : TonConnectManifest + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectManifestPending"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectRequest.cs b/TdLib.Api/Objects/TonConnectRequest.cs new file mode 100644 index 00000000..6cdd8a3e --- /dev/null +++ b/TdLib.Api/Objects/TonConnectRequest.cs @@ -0,0 +1,72 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a pending TON Connect request + /// + public partial class TonConnectRequest : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectRequest"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("session_id")] + public long SessionId { get; set; } + + /// + /// Unique identifier of the service message in the chat 777000 with the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } + + /// + /// Body of the request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("body")] + public byte[] Body { get; set; } + + /// + /// Point in time (Unix timestamp) when the request will expire; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } + + /// + /// Topic of the request; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic")] + public string Topic { get; set; } + + /// + /// Identifier to trace the request; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("trace_id")] + public string TraceId { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectRequestStateAccepted.cs b/TdLib.Api/Objects/TonConnectRequestStateAccepted.cs new file mode 100644 index 00000000..25fb380f --- /dev/null +++ b/TdLib.Api/Objects/TonConnectRequestStateAccepted.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectRequestState : Object + { + /// + /// The request was accepted + /// + public class TonConnectRequestStateAccepted : TonConnectRequestState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectRequestStateAccepted"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectRequestStatePending.cs b/TdLib.Api/Objects/TonConnectRequestStatePending.cs new file mode 100644 index 00000000..aa8e6f37 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectRequestStatePending.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectRequestState : Object + { + /// + /// Describes state of a request received from a dApp through TON Connect + /// + public class TonConnectRequestStatePending : TonConnectRequestState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectRequestStatePending"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Point in time (Unix timestamp) when the request will expire or has expired + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expiration_date")] + public int ExpirationDate { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectRequestStateRejected.cs b/TdLib.Api/Objects/TonConnectRequestStateRejected.cs new file mode 100644 index 00000000..810fba31 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectRequestStateRejected.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectRequestState : Object + { + /// + /// The request was rejected + /// + public class TonConnectRequestStateRejected : TonConnectRequestState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectRequestStateRejected"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectRequests.cs b/TdLib.Api/Objects/TonConnectRequests.cs new file mode 100644 index 00000000..b056758e --- /dev/null +++ b/TdLib.Api/Objects/TonConnectRequests.cs @@ -0,0 +1,43 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a session with its pending TON Connect requests + /// + public partial class TonConnectRequests : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectRequests"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("session")] + public TonConnectSession Session { get; set; } + + /// + /// The requests + /// + [JsonProperty("requests", ItemConverterType = typeof(Converter))] + public TonConnectRequest[] Requests { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectSession.cs b/TdLib.Api/Objects/TonConnectSession.cs new file mode 100644 index 00000000..42a3f983 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectSession.cs @@ -0,0 +1,79 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a TON Connect session. See https://github.com/ton-blockchain/ton-connect/tree/main/spec for full TON Connect protocol documentation + /// + public partial class TonConnectSession : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectSession"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the session + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Hex-encoded public X25519 key of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dapp_client_id")] + public string DappClientId { get; set; } + + /// + /// Hex-encoded public X25519 key of the current user's application; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("wallet_client_id")] + public string WalletClientId { get; set; } + + /// + /// Point in time (Unix timestamp) when the session was created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("creation_date")] + public int CreationDate { get; set; } + + /// + /// Manifest of the dApp + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("manifest")] + public TonConnectManifest Manifest { get; set; } + + /// + /// Nonce used for the session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("nonce")] + public byte[] Nonce { get; set; } + + /// + /// Session state + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public TonConnectSessionState State { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectSessionEventId.cs b/TdLib.Api/Objects/TonConnectSessionEventId.cs new file mode 100644 index 00000000..68a1e07e --- /dev/null +++ b/TdLib.Api/Objects/TonConnectSessionEventId.cs @@ -0,0 +1,37 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents identifier of an event in a TON Connect session + /// + public partial class TonConnectSessionEventId : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectSessionEventId"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The event identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("event_id")] + public long EventId { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectSessionStateClosed.cs b/TdLib.Api/Objects/TonConnectSessionStateClosed.cs new file mode 100644 index 00000000..9140e8a8 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectSessionStateClosed.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectSessionState : Object + { + /// + /// The session is closed + /// + public class TonConnectSessionStateClosed : TonConnectSessionState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectSessionStateClosed"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectSessionStateClosing.cs b/TdLib.Api/Objects/TonConnectSessionStateClosing.cs new file mode 100644 index 00000000..12ce7492 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectSessionStateClosing.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectSessionState : Object + { + /// + /// The session is being closed + /// + public class TonConnectSessionStateClosing : TonConnectSessionState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectSessionStateClosing"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectSessionStatePending.cs b/TdLib.Api/Objects/TonConnectSessionStatePending.cs new file mode 100644 index 00000000..540ed831 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectSessionStatePending.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectSessionState : Object + { + /// + /// Describes state of a TON Connect session + /// + public class TonConnectSessionStatePending : TonConnectSessionState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectSessionStatePending"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectSessionStateReady.cs b/TdLib.Api/Objects/TonConnectSessionStateReady.cs new file mode 100644 index 00000000..9219abb7 --- /dev/null +++ b/TdLib.Api/Objects/TonConnectSessionStateReady.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonConnectSessionState : Object + { + /// + /// The session is ready + /// + public class TonConnectSessionStateReady : TonConnectSessionState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectSessionStateReady"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonConnectSessions.cs b/TdLib.Api/Objects/TonConnectSessions.cs new file mode 100644 index 00000000..949e23ad --- /dev/null +++ b/TdLib.Api/Objects/TonConnectSessions.cs @@ -0,0 +1,36 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Contains a list of TON Connect sessions + /// + public partial class TonConnectSessions : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonConnectSessions"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The list of sessions + /// + [JsonProperty("sessions", ItemConverterType = typeof(Converter))] + public TonConnectSession[] Sessions { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonNft.cs b/TdLib.Api/Objects/TonNft.cs new file mode 100644 index 00000000..c0bc5c1a --- /dev/null +++ b/TdLib.Api/Objects/TonNft.cs @@ -0,0 +1,113 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents an NFT in the TON blockchain + /// + public partial class TonNft : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonNft"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Address of the collection to which the NFT belongs; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("collection_address")] + public string CollectionAddress { get; set; } + + /// + /// Address of the NFT + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } + + /// + /// Address of the owner of the NFT + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_address")] + public string OwnerAddress { get; set; } + + /// + /// Index of the NFT among all NFTs from the collection as a decimal number + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("index")] + public string Index { get; set; } + + /// + /// Name of the NFT + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } + + /// + /// Image of the NFT; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("image")] + public PhotoSize Image { get; set; } + + /// + /// Thumbnail of the NFT; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public PhotoSize Thumbnail { get; set; } + + /// + /// Content of the NFT; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public Document Content { get; set; } + + /// + /// Sticker of the NFT; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } + + /// + /// Attributes of the NFT + /// + [JsonProperty("attributes", ItemConverterType = typeof(Converter))] + public TonNftAttribute[] Attributes { get; set; } + + /// + /// Additional data about the NFT; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("extra")] + public JsonValue Extra { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonNftAttribute.cs b/TdLib.Api/Objects/TonNftAttribute.cs new file mode 100644 index 00000000..38142170 --- /dev/null +++ b/TdLib.Api/Objects/TonNftAttribute.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents an attribute of an NFT in the TON blockchain + /// + public partial class TonNftAttribute : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonNftAttribute"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Trait type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("trait_type")] + public string TraitType { get; set; } + + /// + /// Value of the attribute + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public string Value { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonNfts.cs b/TdLib.Api/Objects/TonNfts.cs new file mode 100644 index 00000000..6cbc7324 --- /dev/null +++ b/TdLib.Api/Objects/TonNfts.cs @@ -0,0 +1,43 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a list of TON NFTs + /// + public partial class TonNfts : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonNfts"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// List of NFTs + /// + [JsonProperty("nfts", ItemConverterType = typeof(Converter))] + public TonNft[] Nfts { get; set; } + + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonTransaction.cs b/TdLib.Api/Objects/TonTransaction.cs index 2cbbe9e4..ca014c69 100644 --- a/TdLib.Api/Objects/TonTransaction.cs +++ b/TdLib.Api/Objects/TonTransaction.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a transaction changing the amount of owned TON Grams /// - public static partial class TdApi + public partial class TonTransaction : Object { /// - /// Represents a transaction changing the amount of owned TON Grams + /// Data type for serialization /// - public partial class TonTransaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Unique identifier of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// The amount of added owned Grams, in the smallest units of the cryptocurrency; negative for outgoing transactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_amount")] - public long GramAmount { get; set; } + /// + /// The amount of added owned Grams, in the smallest units of the cryptocurrency; negative for outgoing transactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } - /// - /// True, if the transaction is a refund of a previous transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_refund")] - public bool IsRefund { get; set; } + /// + /// True, if the transaction is a refund of a previous transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_refund")] + public bool IsRefund { get; set; } - /// - /// Point in time (Unix timestamp) when the transaction was completed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the transaction was completed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Type of the transaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public TonTransactionType Type { get; set; } - } + /// + /// Type of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public TonTransactionType Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonTransactionTypeFragmentDeposit.cs b/TdLib.Api/Objects/TonTransactionTypeFragmentDeposit.cs index 9452ea1b..c49888ba 100644 --- a/TdLib.Api/Objects/TonTransactionTypeFragmentDeposit.cs +++ b/TdLib.Api/Objects/TonTransactionTypeFragmentDeposit.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// Describes type of transaction with TON Grams + /// + public class TonTransactionTypeFragmentDeposit : TonTransactionType { /// - /// Describes type of transaction with TON Grams + /// Data type for serialization /// - public class TonTransactionTypeFragmentDeposit : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeFragmentDeposit"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeFragmentDeposit"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the transaction is a gift from another user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_gift")] - public bool IsGift { get; set; } + /// + /// True, if the transaction is a gift from another user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_gift")] + public bool IsGift { get; set; } - /// - /// The sticker to be shown in the transaction information; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// The sticker to be shown in the transaction information; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeFragmentWithdrawal.cs b/TdLib.Api/Objects/TonTransactionTypeFragmentWithdrawal.cs index fe211281..212f02bb 100644 --- a/TdLib.Api/Objects/TonTransactionTypeFragmentWithdrawal.cs +++ b/TdLib.Api/Objects/TonTransactionTypeFragmentWithdrawal.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is a withdrawal of earned Grams to Fragment + /// + public class TonTransactionTypeFragmentWithdrawal : TonTransactionType { /// - /// The transaction is a withdrawal of earned Grams to Fragment + /// Data type for serialization /// - public class TonTransactionTypeFragmentWithdrawal : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeFragmentWithdrawal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeFragmentWithdrawal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// State of the withdrawal; may be null for refunds from Fragment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("withdrawal_state")] - public RevenueWithdrawalState WithdrawalState { get; set; } - } + /// + /// State of the withdrawal; may be null for refunds from Fragment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("withdrawal_state")] + public RevenueWithdrawalState WithdrawalState { get; set; } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeGiftPurchaseOffer.cs b/TdLib.Api/Objects/TonTransactionTypeGiftPurchaseOffer.cs index d414fb12..8f238ee5 100644 --- a/TdLib.Api/Objects/TonTransactionTypeGiftPurchaseOffer.cs +++ b/TdLib.Api/Objects/TonTransactionTypeGiftPurchaseOffer.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is an offer of gift purchase + /// + public class TonTransactionTypeGiftPurchaseOffer : TonTransactionType { /// - /// The transaction is an offer of gift purchase + /// Data type for serialization /// - public class TonTransactionTypeGiftPurchaseOffer : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeGiftPurchaseOffer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeGiftPurchaseOffer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeStakeDicePayout.cs b/TdLib.Api/Objects/TonTransactionTypeStakeDicePayout.cs index 0be0a2a2..16acde73 100644 --- a/TdLib.Api/Objects/TonTransactionTypeStakeDicePayout.cs +++ b/TdLib.Api/Objects/TonTransactionTypeStakeDicePayout.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is a payment for successful stake dice throw + /// + public class TonTransactionTypeStakeDicePayout : TonTransactionType { /// - /// The transaction is a payment for successful stake dice throw + /// Data type for serialization /// - public class TonTransactionTypeStakeDicePayout : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeStakeDicePayout"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeStakeDicePayout"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeStakeDiceStake.cs b/TdLib.Api/Objects/TonTransactionTypeStakeDiceStake.cs index f80f51c4..8a6caca7 100644 --- a/TdLib.Api/Objects/TonTransactionTypeStakeDiceStake.cs +++ b/TdLib.Api/Objects/TonTransactionTypeStakeDiceStake.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is a payment for stake dice throw + /// + public class TonTransactionTypeStakeDiceStake : TonTransactionType { /// - /// The transaction is a payment for stake dice throw + /// Data type for serialization /// - public class TonTransactionTypeStakeDiceStake : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeStakeDiceStake"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeStakeDiceStake"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeSuggestedPostPayment.cs b/TdLib.Api/Objects/TonTransactionTypeSuggestedPostPayment.cs index e2dc911c..b0bcea84 100644 --- a/TdLib.Api/Objects/TonTransactionTypeSuggestedPostPayment.cs +++ b/TdLib.Api/Objects/TonTransactionTypeSuggestedPostPayment.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is a payment for a suggested post + /// + public class TonTransactionTypeSuggestedPostPayment : TonTransactionType { /// - /// The transaction is a payment for a suggested post + /// Data type for serialization /// - public class TonTransactionTypeSuggestedPostPayment : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeSuggestedPostPayment"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeSuggestedPostPayment"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the channel chat that posted the post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } - } + /// + /// Identifier of the channel chat that posted the post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeUnsupported.cs b/TdLib.Api/Objects/TonTransactionTypeUnsupported.cs index 0036b74f..82379dd8 100644 --- a/TdLib.Api/Objects/TonTransactionTypeUnsupported.cs +++ b/TdLib.Api/Objects/TonTransactionTypeUnsupported.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is a transaction of an unsupported type + /// + public class TonTransactionTypeUnsupported : TonTransactionType { /// - /// The transaction is a transaction of an unsupported type + /// Data type for serialization /// - public class TonTransactionTypeUnsupported : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeUnsupported"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeUnsupported"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftPurchase.cs b/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftPurchase.cs index bbf5b232..4229efa3 100644 --- a/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftPurchase.cs +++ b/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftPurchase.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is a purchase of an upgraded gift for some user or channel + /// + public class TonTransactionTypeUpgradedGiftPurchase : TonTransactionType { /// - /// The transaction is a purchase of an upgraded gift for some user or channel + /// Data type for serialization /// - public class TonTransactionTypeUpgradedGiftPurchase : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeUpgradedGiftPurchase"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeUpgradedGiftPurchase"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who sold the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who sold the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } - } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } } } } diff --git a/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftSale.cs b/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftSale.cs index c2cdeb1d..666667f7 100644 --- a/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftSale.cs +++ b/TdLib.Api/Objects/TonTransactionTypeUpgradedGiftSale.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TonTransactionType : Object { - public partial class TonTransactionType : Object + /// + /// The transaction is a sale of an upgraded gift + /// + public class TonTransactionTypeUpgradedGiftSale : TonTransactionType { /// - /// The transaction is a sale of an upgraded gift + /// Data type for serialization /// - public class TonTransactionTypeUpgradedGiftSale : TonTransactionType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactionTypeUpgradedGiftSale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactionTypeUpgradedGiftSale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who bought the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who bought the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// The gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// The number of Grams received by the Telegram for each 1000 Grams received by the seller of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_per_mille")] - public int CommissionPerMille { get; set; } + /// + /// The number of Grams received by the Telegram for each 1000 Grams received by the seller of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_per_mille")] + public int CommissionPerMille { get; set; } - /// - /// The Gram amount that was received by the Telegram; in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("commission_gram_amount")] - public long CommissionGramAmount { get; set; } + /// + /// The Gram amount that was received by the Telegram; in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("commission_gram_amount")] + public long CommissionGramAmount { get; set; } - /// - /// True, if the gift was sold through a purchase offer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_offer")] - public bool ViaOffer { get; set; } - } + /// + /// True, if the gift was sold through a purchase offer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_offer")] + public bool ViaOffer { get; set; } } } } diff --git a/TdLib.Api/Objects/TonTransactions.cs b/TdLib.Api/Objects/TonTransactions.cs index 0a83f09f..b6746758 100644 --- a/TdLib.Api/Objects/TonTransactions.cs +++ b/TdLib.Api/Objects/TonTransactions.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of TON Gram transactions /// - public static partial class TdApi + public partial class TonTransactions : Object { /// - /// Represents a list of TON Gram transactions + /// Data type for serialization /// - public partial class TonTransactions : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "tonTransactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonTransactions"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The total amount of owned Grams, in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_amount")] - public long GramAmount { get; set; } + /// + /// The total amount of owned Grams, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } - /// - /// List of Gram transactions - /// - [JsonProperty("transactions", ItemConverterType = typeof(Converter))] - public TonTransaction[] Transactions { get; set; } + /// + /// List of Gram transactions + /// + [JsonProperty("transactions", ItemConverterType = typeof(Converter))] + public TonTransaction[] Transactions { get; set; } - /// - /// The offset for the next request. If empty, then there are no more results - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_offset")] - public string NextOffset { get; set; } - } + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletGaslessTransfersInfo.cs b/TdLib.Api/Objects/TonWalletGaslessTransfersInfo.cs new file mode 100644 index 00000000..1b2493d8 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletGaslessTransfersInfo.cs @@ -0,0 +1,51 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents state of gasless transfers for the current user + /// + public partial class TonWalletGaslessTransfersInfo : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletGaslessTransfersInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Number of left gasless transfers. The daily available number of gasless transfers is available as getOption("ton_wallet_gasless_transfer_daily_count_max") + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("left_count")] + public int LeftCount { get; set; } + + /// + /// Point in time (Unix timestamp) when the number of left transfers will be reset; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reset_date")] + public int ResetDate { get; set; } + + /// + /// Address of the relayer for gasless transfers; may be empty if unavailable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("relayer_address")] + public string RelayerAddress { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletOwnershipProof.cs b/TdLib.Api/Objects/TonWalletOwnershipProof.cs new file mode 100644 index 00000000..e28f1687 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletOwnershipProof.cs @@ -0,0 +1,51 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a proof of TON wallet ownership + /// + public partial class TonWalletOwnershipProof : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletOwnershipProof"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Public key of the wallet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_key")] + public byte[] PublicKey { get; set; } + + /// + /// The current UNIX timestamp which was used to create the proof + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("timestamp")] + public int Timestamp { get; set; } + + /// + /// The signature prooving the ownership + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("signature")] + public byte[] Signature { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletOwnershipProofChallenge.cs b/TdLib.Api/Objects/TonWalletOwnershipProofChallenge.cs new file mode 100644 index 00000000..4002a3f2 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletOwnershipProofChallenge.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a challenge for TON wallet ownership proof + /// + public partial class TonWalletOwnershipProofChallenge : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletOwnershipProofChallenge"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Payload of the challenge + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } + + /// + /// Domain of the proof requester + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("domain")] + public string Domain { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletState.cs b/TdLib.Api/Objects/TonWalletState.cs new file mode 100644 index 00000000..3b1d18a3 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletState.cs @@ -0,0 +1,79 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes state of the wallet of the current user in the TON blockchain + /// + public partial class TonWalletState : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletState"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Address of the wallet; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } + + /// + /// Public key of the wallet; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_key")] + public byte[] PublicKey { get; set; } + + /// + /// The total amount of owned TON Grams, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } + + /// + /// True, if the wallet is being created + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_being_created")] + public bool IsBeingCreated { get; set; } + + /// + /// True, if backup for the wallet key is enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_backup_enabled")] + public bool IsBackupEnabled { get; set; } + + /// + /// True, if the user can enable backup for the wallet key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_enable_backup")] + public bool CanEnableBackup { get; set; } + + /// + /// True, if the wallet key can be exported using getTonWalletSecretPhrase + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_export_phrase")] + public bool CanExportPhrase { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransaction.cs b/TdLib.Api/Objects/TonWalletTransaction.cs new file mode 100644 index 00000000..9e06ef4c --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransaction.cs @@ -0,0 +1,86 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a transaction with the TON wallet of the current user + /// + public partial class TonWalletTransaction : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransaction"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } + + /// + /// Address in the TON blockchain of the transaction peer; may be empty if the transaction isn't a wallet transfer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("peer_address")] + public string PeerAddress { get; set; } + + /// + /// Identifier of the other user who participated in the transaction; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("peer_user_id")] + public long PeerUserId { get; set; } + + /// + /// Identifier of the domain assigned to the peer address; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("peer_domain")] + public string PeerDomain { get; set; } + + /// + /// Point in time (Unix timestamp) when the transaction was completed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } + + /// + /// The fee amount paid for the transaction in TON Grams, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fee_amount")] + public long FeeAmount { get; set; } + + /// + /// State of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public TonWalletTransactionState State { get; set; } + + /// + /// Type of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public TonWalletTransactionType Type { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransactionStateFailed.cs b/TdLib.Api/Objects/TonWalletTransactionStateFailed.cs new file mode 100644 index 00000000..d97e1216 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransactionStateFailed.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransactionState : Object + { + /// + /// The transaction failed + /// + public class TonWalletTransactionStateFailed : TonWalletTransactionState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransactionStateFailed"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransactionStateSucceeded.cs b/TdLib.Api/Objects/TonWalletTransactionStateSucceeded.cs new file mode 100644 index 00000000..8f3611cf --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransactionStateSucceeded.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransactionState : Object + { + /// + /// Describes state of a transaction with a TON wallet + /// + public class TonWalletTransactionStateSucceeded : TonWalletTransactionState + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransactionStateSucceeded"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Hash of the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tx_hash")] + public string TxHash { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransactionTypeKeyChange.cs b/TdLib.Api/Objects/TonWalletTransactionTypeKeyChange.cs new file mode 100644 index 00000000..c437477f --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransactionTypeKeyChange.cs @@ -0,0 +1,35 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransactionType : Object + { + /// + /// Change of the wallet key + /// + public class TonWalletTransactionTypeKeyChange : TonWalletTransactionType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransactionTypeKeyChange"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransactionTypeNftTransfer.cs b/TdLib.Api/Objects/TonWalletTransactionTypeNftTransfer.cs new file mode 100644 index 00000000..b9e25108 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransactionTypeNftTransfer.cs @@ -0,0 +1,61 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransactionType : Object + { + /// + /// A transfer of a TON NFT to or from the wallet + /// + public class TonWalletTransactionTypeNftTransfer : TonWalletTransactionType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransactionTypeNftTransfer"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The transferred NFT + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("nft")] + public TonNft Nft { get; set; } + + /// + /// True, if the transfer is outgoing + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_outgoing")] + public bool IsOutgoing { get; set; } + + /// + /// Comment added to the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + + /// + /// True, if the comment is encrypted and must be decrypted using the user's private key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_comment_encrypted")] + public bool IsCommentEncrypted { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransactionTypeOnRampDeposit.cs b/TdLib.Api/Objects/TonWalletTransactionTypeOnRampDeposit.cs new file mode 100644 index 00000000..834af7ce --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransactionTypeOnRampDeposit.cs @@ -0,0 +1,47 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransactionType : Object + { + /// + /// Describes type of transaction with a TON wallet + /// + public class TonWalletTransactionTypeOnRampDeposit : TonWalletTransactionType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransactionTypeOnRampDeposit"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The amount of received cryptocurrency, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } + + /// + /// Name of the on-ramp provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider_name")] + public string ProviderName { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransactionTypeTransfer.cs b/TdLib.Api/Objects/TonWalletTransactionTypeTransfer.cs new file mode 100644 index 00000000..c605dc14 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransactionTypeTransfer.cs @@ -0,0 +1,61 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransactionType : Object + { + /// + /// A transfer of TON Grams to or from the wallet + /// + public class TonWalletTransactionTypeTransfer : TonWalletTransactionType + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransactionTypeTransfer"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The amount of received cryptocurrency, in the smallest units of the cryptocurrency; negative for outgoing transactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("amount")] + public long Amount { get; set; } + + /// + /// True, if the fee was paid by Telegram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_gasless")] + public bool IsGasless { get; set; } + + /// + /// Comment added to the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("comment")] + public string Comment { get; set; } + + /// + /// True, if the comment is encrypted and must be decrypted using the user's private key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_comment_encrypted")] + public bool IsCommentEncrypted { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransactions.cs b/TdLib.Api/Objects/TonWalletTransactions.cs new file mode 100644 index 00000000..896d69f8 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransactions.cs @@ -0,0 +1,50 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a list of TON Gram transactions + /// + public partial class TonWalletTransactions : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransactions"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The total amount of owned TON Grams, in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } + + /// + /// List of transactions + /// + [JsonProperty("transactions", ItemConverterType = typeof(Converter))] + public TonWalletTransaction[] Transactions { get; set; } + + /// + /// The offset for the next request. If empty, then there are no more results + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_offset")] + public string NextOffset { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransferReceiverAddress.cs b/TdLib.Api/Objects/TonWalletTransferReceiverAddress.cs new file mode 100644 index 00000000..75bdb8c8 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransferReceiverAddress.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransferReceiver : Object + { + /// + /// The receiver is specified by its address + /// + public class TonWalletTransferReceiverAddress : TonWalletTransferReceiver + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransferReceiverAddress"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Address of the receiver. Use getAddressTonWallet to get information about the user's TON wallet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransferReceiverUser.cs b/TdLib.Api/Objects/TonWalletTransferReceiverUser.cs new file mode 100644 index 00000000..a2e68ffb --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransferReceiverUser.cs @@ -0,0 +1,41 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class TonWalletTransferReceiver : Object + { + /// + /// Represents expected receiver of a TON wallet transfer + /// + public class TonWalletTransferReceiverUser : TonWalletTransferReceiver + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransferReceiverUser"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Username of the user. Use searchPublicChat to find the user, check that it is a regular user, + /// and then use createUserTonWallet to get information about the user's TON wallet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("username")] + public string Username { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TonWalletTransferResult.cs b/TdLib.Api/Objects/TonWalletTransferResult.cs new file mode 100644 index 00000000..f1857d52 --- /dev/null +++ b/TdLib.Api/Objects/TonWalletTransferResult.cs @@ -0,0 +1,51 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents result of cryptocurrency transfer from the current user's TON wallet + /// + public partial class TonWalletTransferResult : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "tonWalletTransferResult"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if the transfer is gasless + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_gasless")] + public bool IsGasless { get; set; } + + /// + /// Unique identifier of the sent message; use getTonWalletTransactionByMsgHash to poll information about the transaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("msg_hash")] + public byte[] MsgHash { get; set; } + + /// + /// The completed transaction; may be null if the transaction is still pending + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transaction")] + public TonWalletTransaction Transaction { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/TopChatCategoryBots.cs b/TdLib.Api/Objects/TopChatCategoryBots.cs index 09c73658..1ebcc5e2 100644 --- a/TdLib.Api/Objects/TopChatCategoryBots.cs +++ b/TdLib.Api/Objects/TopChatCategoryBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used private chats with bot users + /// + public class TopChatCategoryBots : TopChatCategory { /// - /// A category containing frequently used private chats with bot users + /// Data type for serialization /// - public class TopChatCategoryBots : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryCalls.cs b/TdLib.Api/Objects/TopChatCategoryCalls.cs index 539dddfd..f6ecfb7e 100644 --- a/TdLib.Api/Objects/TopChatCategoryCalls.cs +++ b/TdLib.Api/Objects/TopChatCategoryCalls.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used chats used for calls + /// + public class TopChatCategoryCalls : TopChatCategory { /// - /// A category containing frequently used chats used for calls + /// Data type for serialization /// - public class TopChatCategoryCalls : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryCalls"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryCalls"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryChannels.cs b/TdLib.Api/Objects/TopChatCategoryChannels.cs index 62032a9f..9033de7e 100644 --- a/TdLib.Api/Objects/TopChatCategoryChannels.cs +++ b/TdLib.Api/Objects/TopChatCategoryChannels.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used channels + /// + public class TopChatCategoryChannels : TopChatCategory { /// - /// A category containing frequently used channels + /// Data type for serialization /// - public class TopChatCategoryChannels : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryChannels"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryChannels"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryForwardChats.cs b/TdLib.Api/Objects/TopChatCategoryForwardChats.cs index 5e4b5ec8..806f1c17 100644 --- a/TdLib.Api/Objects/TopChatCategoryForwardChats.cs +++ b/TdLib.Api/Objects/TopChatCategoryForwardChats.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used chats used to forward messages + /// + public class TopChatCategoryForwardChats : TopChatCategory { /// - /// A category containing frequently used chats used to forward messages + /// Data type for serialization /// - public class TopChatCategoryForwardChats : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryForwardChats"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryForwardChats"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryGroups.cs b/TdLib.Api/Objects/TopChatCategoryGroups.cs index fab3ed07..1d833c3e 100644 --- a/TdLib.Api/Objects/TopChatCategoryGroups.cs +++ b/TdLib.Api/Objects/TopChatCategoryGroups.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used basic groups and supergroups + /// + public class TopChatCategoryGroups : TopChatCategory { /// - /// A category containing frequently used basic groups and supergroups + /// Data type for serialization /// - public class TopChatCategoryGroups : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryGroups"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryGroups"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryGuestBots.cs b/TdLib.Api/Objects/TopChatCategoryGuestBots.cs index 85933c43..c458784c 100644 --- a/TdLib.Api/Objects/TopChatCategoryGuestBots.cs +++ b/TdLib.Api/Objects/TopChatCategoryGuestBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used chats with bots, which were used as guest bots + /// + public class TopChatCategoryGuestBots : TopChatCategory { /// - /// A category containing frequently used chats with bots, which were used as guest bots + /// Data type for serialization /// - public class TopChatCategoryGuestBots : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryGuestBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryGuestBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryInlineBots.cs b/TdLib.Api/Objects/TopChatCategoryInlineBots.cs index 326cd076..b6456930 100644 --- a/TdLib.Api/Objects/TopChatCategoryInlineBots.cs +++ b/TdLib.Api/Objects/TopChatCategoryInlineBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used chats with inline bots sorted by their usage in inline mode + /// + public class TopChatCategoryInlineBots : TopChatCategory { /// - /// A category containing frequently used chats with inline bots sorted by their usage in inline mode + /// Data type for serialization /// - public class TopChatCategoryInlineBots : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryInlineBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryInlineBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryUsers.cs b/TdLib.Api/Objects/TopChatCategoryUsers.cs index 3eada16e..ffd470bb 100644 --- a/TdLib.Api/Objects/TopChatCategoryUsers.cs +++ b/TdLib.Api/Objects/TopChatCategoryUsers.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// Represents the categories of chats for which a list of frequently used chats can be retrieved + /// + public class TopChatCategoryUsers : TopChatCategory { /// - /// Represents the categories of chats for which a list of frequently used chats can be retrieved + /// Data type for serialization /// - public class TopChatCategoryUsers : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryUsers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryUsers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TopChatCategoryWebAppBots.cs b/TdLib.Api/Objects/TopChatCategoryWebAppBots.cs index ce7b17f5..c53337db 100644 --- a/TdLib.Api/Objects/TopChatCategoryWebAppBots.cs +++ b/TdLib.Api/Objects/TopChatCategoryWebAppBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TopChatCategory : Object { - public partial class TopChatCategory : Object + /// + /// A category containing frequently used chats with bots, which Web Apps were opened + /// + public class TopChatCategoryWebAppBots : TopChatCategory { /// - /// A category containing frequently used chats with bots, which Web Apps were opened + /// Data type for serialization /// - public class TopChatCategoryWebAppBots : TopChatCategory - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "topChatCategoryWebAppBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "topChatCategoryWebAppBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TransactionDirectionIncoming.cs b/TdLib.Api/Objects/TransactionDirectionIncoming.cs index e42ae76e..3468e051 100644 --- a/TdLib.Api/Objects/TransactionDirectionIncoming.cs +++ b/TdLib.Api/Objects/TransactionDirectionIncoming.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TransactionDirection : Object { - public partial class TransactionDirection : Object + /// + /// Describes direction of transactions in a transaction list + /// + public class TransactionDirectionIncoming : TransactionDirection { /// - /// Describes direction of transactions in a transaction list + /// Data type for serialization /// - public class TransactionDirectionIncoming : TransactionDirection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "transactionDirectionIncoming"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "transactionDirectionIncoming"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TransactionDirectionOutgoing.cs b/TdLib.Api/Objects/TransactionDirectionOutgoing.cs index 05cf9888..9781254d 100644 --- a/TdLib.Api/Objects/TransactionDirectionOutgoing.cs +++ b/TdLib.Api/Objects/TransactionDirectionOutgoing.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class TransactionDirection : Object { - public partial class TransactionDirection : Object + /// + /// The transaction is outgoing and decreases the amount of owned currency + /// + public class TransactionDirectionOutgoing : TransactionDirection { /// - /// The transaction is outgoing and decreases the amount of owned currency + /// Data type for serialization /// - public class TransactionDirectionOutgoing : TransactionDirection - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "transactionDirectionOutgoing"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "transactionDirectionOutgoing"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/TrendingStickerSets.cs b/TdLib.Api/Objects/TrendingStickerSets.cs index d847e8e9..6d4a3665 100644 --- a/TdLib.Api/Objects/TrendingStickerSets.cs +++ b/TdLib.Api/Objects/TrendingStickerSets.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of trending sticker sets /// - public static partial class TdApi + public partial class TrendingStickerSets : Object { /// - /// Represents a list of trending sticker sets + /// Data type for serialization /// - public partial class TrendingStickerSets : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "trendingStickerSets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "trendingStickerSets"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of trending sticker sets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of trending sticker sets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of trending sticker sets - /// - [JsonProperty("sets", ItemConverterType = typeof(Converter))] - public StickerSetInfo[] Sets { get; set; } + /// + /// List of trending sticker sets + /// + [JsonProperty("sets", ItemConverterType = typeof(Converter))] + public StickerSetInfo[] Sets { get; set; } - /// - /// True, if the list contains sticker sets with premium stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_premium")] - public bool IsPremium { get; set; } - } + /// + /// True, if the list contains sticker sets with premium stickers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_premium")] + public bool IsPremium { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UnconfirmedSession.cs b/TdLib.Api/Objects/UnconfirmedSession.cs index a1cce058..fcaa3890 100644 --- a/TdLib.Api/Objects/UnconfirmedSession.cs +++ b/TdLib.Api/Objects/UnconfirmedSession.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an unconfirmed session /// - public static partial class TdApi + public partial class UnconfirmedSession : Object { /// - /// Contains information about an unconfirmed session + /// Data type for serialization /// - public partial class UnconfirmedSession : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "unconfirmedSession"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "unconfirmedSession"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Session type - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public SessionType Type { get; set; } + /// + /// Session type + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public SessionType Type { get; set; } - /// - /// Point in time (Unix timestamp) when the user has logged in or the business bot was connected - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the user has logged in or the business bot was connected + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Model of the device that was used for the session creation, as provided by the application - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("device_model")] - public string DeviceModel { get; set; } + /// + /// Model of the device that was used for the session creation, as provided by the application + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("device_model")] + public string DeviceModel { get; set; } - /// - /// A human-readable description of the location from which the session was created, based on the IP address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public string Location { get; set; } - } + /// + /// A human-readable description of the location from which the session was created, based on the IP address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public string Location { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UnreadReaction.cs b/TdLib.Api/Objects/UnreadReaction.cs index 88674c00..fc003ce6 100644 --- a/TdLib.Api/Objects/UnreadReaction.cs +++ b/TdLib.Api/Objects/UnreadReaction.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about an unread reaction to a message /// - public static partial class TdApi + public partial class UnreadReaction : Object { /// - /// Contains information about an unread reaction to a message + /// Data type for serialization /// - public partial class UnreadReaction : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "unreadReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "unreadReaction"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public ReactionType Type { get; set; } + /// + /// Type of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public ReactionType Type { get; set; } - /// - /// Identifier of the sender, added the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender, added the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// True, if the reaction was added with a big animation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_big")] - public bool IsBig { get; set; } - } + /// + /// True, if the reaction was added with a big animation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_big")] + public bool IsBig { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpdateAccentColors.cs b/TdLib.Api/Objects/UpdateAccentColors.cs index d2733163..abae2d93 100644 --- a/TdLib.Api/Objects/UpdateAccentColors.cs +++ b/TdLib.Api/Objects/UpdateAccentColors.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of supported accent colors has changed + /// + public class UpdateAccentColors : Update { /// - /// The list of supported accent colors has changed + /// Data type for serialization /// - public class UpdateAccentColors : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAccentColors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAccentColors"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about supported colors; colors with identifiers 0 (red), 1 (orange), 2 (purple/violet), 3 (green), 4 (cyan), 5 (blue), 6 (pink) must always be supported - /// - [JsonProperty("colors", ItemConverterType = typeof(Converter))] - public AccentColor[] Colors { get; set; } + /// + /// Information about supported colors; colors with identifiers 0 (red), 1 (orange), 2 (purple/violet), 3 (green), 4 (cyan), 5 (blue), 6 (pink) must always be supported + /// + [JsonProperty("colors", ItemConverterType = typeof(Converter))] + public AccentColor[] Colors { get; set; } - /// - /// The list of accent color identifiers, which can be set through setAccentColor and setChatAccentColor. The colors must be shown in the specified order - /// - [JsonProperty("available_accent_color_ids", ItemConverterType = typeof(Converter))] - public int[] AvailableAccentColorIds { get; set; } - } + /// + /// The list of accent color identifiers, which can be set through setAccentColor and setChatAccentColor. The colors must be shown in the specified order + /// + [JsonProperty("available_accent_color_ids", ItemConverterType = typeof(Converter))] + public int[] AvailableAccentColorIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateActiveEmojiReactions.cs b/TdLib.Api/Objects/UpdateActiveEmojiReactions.cs index b0e0dc3e..391f0003 100644 --- a/TdLib.Api/Objects/UpdateActiveEmojiReactions.cs +++ b/TdLib.Api/Objects/UpdateActiveEmojiReactions.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of active emoji reactions has changed + /// + public class UpdateActiveEmojiReactions : Update { /// - /// The list of active emoji reactions has changed + /// Data type for serialization /// - public class UpdateActiveEmojiReactions : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateActiveEmojiReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateActiveEmojiReactions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of active emoji reactions - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public string[] Emojis { get; set; } - } + /// + /// The new list of active emoji reactions + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public string[] Emojis { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateActiveGiftAuctions.cs b/TdLib.Api/Objects/UpdateActiveGiftAuctions.cs index 0e30f2d4..257be5ed 100644 --- a/TdLib.Api/Objects/UpdateActiveGiftAuctions.cs +++ b/TdLib.Api/Objects/UpdateActiveGiftAuctions.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of auctions in which the current user participates has changed + /// + public class UpdateActiveGiftAuctions : Update { /// - /// The list of auctions in which the current user participates has changed + /// Data type for serialization /// - public class UpdateActiveGiftAuctions : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateActiveGiftAuctions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateActiveGiftAuctions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New states of the auctions - /// - [JsonProperty("states", ItemConverterType = typeof(Converter))] - public GiftAuctionState[] States { get; set; } - } + /// + /// New states of the auctions + /// + [JsonProperty("states", ItemConverterType = typeof(Converter))] + public GiftAuctionState[] States { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateActiveLiveLocationMessages.cs b/TdLib.Api/Objects/UpdateActiveLiveLocationMessages.cs index 528ae3b8..62c1d1a7 100644 --- a/TdLib.Api/Objects/UpdateActiveLiveLocationMessages.cs +++ b/TdLib.Api/Objects/UpdateActiveLiveLocationMessages.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of messages with active live location that need to be updated by the application has changed. The list is persistent across application restarts only if the message database is used + /// + public class UpdateActiveLiveLocationMessages : Update { /// - /// The list of messages with active live location that need to be updated by the application has changed. The list is persistent across application restarts only if the message database is used + /// Data type for serialization /// - public class UpdateActiveLiveLocationMessages : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateActiveLiveLocationMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateActiveLiveLocationMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The list of messages with active live locations - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public Message[] Messages { get; set; } - } + /// + /// The list of messages with active live locations + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public Message[] Messages { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateActiveNotifications.cs b/TdLib.Api/Objects/UpdateActiveNotifications.cs index c157ffb4..d278c0ef 100644 --- a/TdLib.Api/Objects/UpdateActiveNotifications.cs +++ b/TdLib.Api/Objects/UpdateActiveNotifications.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Contains active notifications that were shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update + /// + public class UpdateActiveNotifications : Update { /// - /// Contains active notifications that were shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update + /// Data type for serialization /// - public class UpdateActiveNotifications : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateActiveNotifications"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateActiveNotifications"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Lists of active notification groups - /// - [JsonProperty("groups", ItemConverterType = typeof(Converter))] - public NotificationGroup[] Groups { get; set; } - } + /// + /// Lists of active notification groups + /// + [JsonProperty("groups", ItemConverterType = typeof(Converter))] + public NotificationGroup[] Groups { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateAgeVerificationParameters.cs b/TdLib.Api/Objects/UpdateAgeVerificationParameters.cs index 93f0227f..edc957ea 100644 --- a/TdLib.Api/Objects/UpdateAgeVerificationParameters.cs +++ b/TdLib.Api/Objects/UpdateAgeVerificationParameters.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The parameters for age verification of the current user's account have changed + /// + public class UpdateAgeVerificationParameters : Update { /// - /// The parameters for age verification of the current user's account have changed + /// Data type for serialization /// - public class UpdateAgeVerificationParameters : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAgeVerificationParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAgeVerificationParameters"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Parameters for the age verification; may be null if age verification isn't needed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("parameters")] - public AgeVerificationParameters Parameters { get; set; } - } + /// + /// Parameters for the age verification; may be null if age verification isn't needed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("parameters")] + public AgeVerificationParameters Parameters { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateAllowedBotUsernamePremiumSuffixes.cs b/TdLib.Api/Objects/UpdateAllowedBotUsernamePremiumSuffixes.cs new file mode 100644 index 00000000..b8e2ac16 --- /dev/null +++ b/TdLib.Api/Objects/UpdateAllowedBotUsernamePremiumSuffixes.cs @@ -0,0 +1,39 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class Update : Object + { + /// + /// Lists of suffixes allowed in secondary bot usernames, which can be added additionally to the main username if the bot's owner has a Telegram Premium subscription + /// + public class UpdateAllowedBotUsernamePremiumSuffixes : Update + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAllowedBotUsernamePremiumSuffixes"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The list of allowed suffixes + /// + [JsonProperty("suffixes", ItemConverterType = typeof(Converter))] + public string[] Suffixes { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpdateAnimatedEmojiMessageClicked.cs b/TdLib.Api/Objects/UpdateAnimatedEmojiMessageClicked.cs index 9bce975f..3c454ad2 100644 --- a/TdLib.Api/Objects/UpdateAnimatedEmojiMessageClicked.cs +++ b/TdLib.Api/Objects/UpdateAnimatedEmojiMessageClicked.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played + /// + public class UpdateAnimatedEmojiMessageClicked : Update { /// - /// Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played + /// Data type for serialization /// - public class UpdateAnimatedEmojiMessageClicked : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAnimatedEmojiMessageClicked"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAnimatedEmojiMessageClicked"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The animated sticker to be played - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } - } + /// + /// The animated sticker to be played + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateAnimationSearchParameters.cs b/TdLib.Api/Objects/UpdateAnimationSearchParameters.cs index dd13412c..baea8411 100644 --- a/TdLib.Api/Objects/UpdateAnimationSearchParameters.cs +++ b/TdLib.Api/Objects/UpdateAnimationSearchParameters.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The parameters of animation search through getOption("animation_search_bot_username") bot have changed + /// + public class UpdateAnimationSearchParameters : Update { /// - /// The parameters of animation search through getOption("animation_search_bot_username") bot have changed + /// Data type for serialization /// - public class UpdateAnimationSearchParameters : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAnimationSearchParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAnimationSearchParameters"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the animation search provider - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("provider")] - public string Provider { get; set; } + /// + /// Name of the animation search provider + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider")] + public string Provider { get; set; } - /// - /// The new list of emojis suggested for searching - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public string[] Emojis { get; set; } - } + /// + /// The new list of emojis suggested for searching + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public string[] Emojis { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateApplicationRecaptchaVerificationRequired.cs b/TdLib.Api/Objects/UpdateApplicationRecaptchaVerificationRequired.cs index 424030d5..69f941ac 100644 --- a/TdLib.Api/Objects/UpdateApplicationRecaptchaVerificationRequired.cs +++ b/TdLib.Api/Objects/UpdateApplicationRecaptchaVerificationRequired.cs @@ -2,54 +2,53 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A request can't be completed unless reCAPTCHA verification is performed; for official mobile applications only. + /// The method setApplicationVerificationToken must be called once the verification is completed or failed + /// + public class UpdateApplicationRecaptchaVerificationRequired : Update { /// - /// A request can't be completed unless reCAPTCHA verification is performed; for official mobile applications only. - /// The method setApplicationVerificationToken must be called once the verification is completed or failed + /// Data type for serialization /// - public class UpdateApplicationRecaptchaVerificationRequired : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateApplicationRecaptchaVerificationRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateApplicationRecaptchaVerificationRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier for the verification process - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_id")] - public long VerificationId { get; set; } + /// + /// Unique identifier for the verification process + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_id")] + public long VerificationId { get; set; } - /// - /// The action for the check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action")] - public string Action { get; set; } + /// + /// The action for the check + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("action")] + public string Action { get; set; } - /// - /// Identifier of the reCAPTCHA key - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("recaptcha_key_id")] - public string RecaptchaKeyId { get; set; } - } + /// + /// Identifier of the reCAPTCHA key + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("recaptcha_key_id")] + public string RecaptchaKeyId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateApplicationVerificationRequired.cs b/TdLib.Api/Objects/UpdateApplicationVerificationRequired.cs index cc43e231..7d7e6bf1 100644 --- a/TdLib.Api/Objects/UpdateApplicationVerificationRequired.cs +++ b/TdLib.Api/Objects/UpdateApplicationVerificationRequired.cs @@ -2,55 +2,54 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A request can't be completed unless application verification is performed; for official mobile applications only. + /// The method setApplicationVerificationToken must be called once the verification is completed or failed + /// + public class UpdateApplicationVerificationRequired : Update { /// - /// A request can't be completed unless application verification is performed; for official mobile applications only. - /// The method setApplicationVerificationToken must be called once the verification is completed or failed + /// Data type for serialization /// - public class UpdateApplicationVerificationRequired : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateApplicationVerificationRequired"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateApplicationVerificationRequired"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier for the verification process - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_id")] - public long VerificationId { get; set; } + /// + /// Unique identifier for the verification process + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_id")] + public long VerificationId { get; set; } - /// - /// Unique base64url-encoded nonce for the classic Play Integrity verification (https://developer.android.com/google/play/integrity/classic) for Android, - /// or a unique string to compare with verify_nonce field from a push notification for iOS - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("nonce")] - public string Nonce { get; set; } + /// + /// Unique base64url-encoded nonce for the classic Play Integrity verification (https://developer.android.com/google/play/integrity/classic) for Android, + /// or a unique string to compare with verify_nonce field from a push notification for iOS + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("nonce")] + public string Nonce { get; set; } - /// - /// Cloud project number to pass to the Play Integrity API on Android - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("cloud_project_number")] - public long CloudProjectNumber { get; set; } - } + /// + /// Cloud project number to pass to the Play Integrity API on Android + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("cloud_project_number")] + public long CloudProjectNumber { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateAttachmentMenuBots.cs b/TdLib.Api/Objects/UpdateAttachmentMenuBots.cs index 34386848..6db48e43 100644 --- a/TdLib.Api/Objects/UpdateAttachmentMenuBots.cs +++ b/TdLib.Api/Objects/UpdateAttachmentMenuBots.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of bots added to attachment or side menu has changed + /// + public class UpdateAttachmentMenuBots : Update { /// - /// The list of bots added to attachment or side menu has changed + /// Data type for serialization /// - public class UpdateAttachmentMenuBots : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAttachmentMenuBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAttachmentMenuBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of bots. The bots must not be shown on scheduled messages screen - /// - [JsonProperty("bots", ItemConverterType = typeof(Converter))] - public AttachmentMenuBot[] Bots { get; set; } - } + /// + /// The new list of bots. The bots must not be shown on scheduled messages screen + /// + [JsonProperty("bots", ItemConverterType = typeof(Converter))] + public AttachmentMenuBot[] Bots { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateAuthorizationState.cs b/TdLib.Api/Objects/UpdateAuthorizationState.cs index 734a392f..eaa4a604 100644 --- a/TdLib.Api/Objects/UpdateAuthorizationState.cs +++ b/TdLib.Api/Objects/UpdateAuthorizationState.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Contains notifications about data changes + /// + public class UpdateAuthorizationState : Update { /// - /// Contains notifications about data changes + /// Data type for serialization /// - public class UpdateAuthorizationState : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAuthorizationState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAuthorizationState"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New authorization state - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("authorization_state")] - public AuthorizationState AuthorizationState { get; set; } - } + /// + /// New authorization state + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("authorization_state")] + public AuthorizationState AuthorizationState { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateAutosaveSettings.cs b/TdLib.Api/Objects/UpdateAutosaveSettings.cs index 0acae3ab..ddb69d18 100644 --- a/TdLib.Api/Objects/UpdateAutosaveSettings.cs +++ b/TdLib.Api/Objects/UpdateAutosaveSettings.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Autosave settings for some type of chats were updated + /// + public class UpdateAutosaveSettings : Update { /// - /// Autosave settings for some type of chats were updated + /// Data type for serialization /// - public class UpdateAutosaveSettings : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAutosaveSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAutosaveSettings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of chats for which autosave settings were updated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public AutosaveSettingsScope Scope { get; set; } + /// + /// Type of chats for which autosave settings were updated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public AutosaveSettingsScope Scope { get; set; } - /// - /// The new autosave settings; may be null if the settings are reset to default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public ScopeAutosaveSettings Settings { get; set; } - } + /// + /// The new autosave settings; may be null if the settings are reset to default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public ScopeAutosaveSettings Settings { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateAvailableMessageEffects.cs b/TdLib.Api/Objects/UpdateAvailableMessageEffects.cs index 997ce8b5..bc5711f2 100644 --- a/TdLib.Api/Objects/UpdateAvailableMessageEffects.cs +++ b/TdLib.Api/Objects/UpdateAvailableMessageEffects.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of available message effects has changed + /// + public class UpdateAvailableMessageEffects : Update { /// - /// The list of available message effects has changed + /// Data type for serialization /// - public class UpdateAvailableMessageEffects : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateAvailableMessageEffects"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateAvailableMessageEffects"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of available message effects from emoji reactions - /// - [JsonProperty("reaction_effect_ids", ItemConverterType = typeof(Converter))] - public long[] ReactionEffectIds { get; set; } + /// + /// The new list of available message effects from emoji reactions + /// + [JsonProperty("reaction_effect_ids", ItemConverterType = typeof(Converter))] + public long[] ReactionEffectIds { get; set; } - /// - /// The new list of available message effects from Premium stickers - /// - [JsonProperty("sticker_effect_ids", ItemConverterType = typeof(Converter))] - public long[] StickerEffectIds { get; set; } - } + /// + /// The new list of available message effects from Premium stickers + /// + [JsonProperty("sticker_effect_ids", ItemConverterType = typeof(Converter))] + public long[] StickerEffectIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateBasicGroup.cs b/TdLib.Api/Objects/UpdateBasicGroup.cs index e52f45df..202b0014 100644 --- a/TdLib.Api/Objects/UpdateBasicGroup.cs +++ b/TdLib.Api/Objects/UpdateBasicGroup.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application + /// + public class UpdateBasicGroup : Update { /// - /// Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application + /// Data type for serialization /// - public class UpdateBasicGroup : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateBasicGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateBasicGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group")] - public BasicGroup BasicGroup { get; set; } - } + /// + /// New data about the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group")] + public BasicGroup BasicGroup { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateBasicGroupFullInfo.cs b/TdLib.Api/Objects/UpdateBasicGroupFullInfo.cs index 580fa567..99a61e4e 100644 --- a/TdLib.Api/Objects/UpdateBasicGroupFullInfo.cs +++ b/TdLib.Api/Objects/UpdateBasicGroupFullInfo.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data in basicGroupFullInfo has been changed + /// + public class UpdateBasicGroupFullInfo : Update { /// - /// Some data in basicGroupFullInfo has been changed + /// Data type for serialization /// - public class UpdateBasicGroupFullInfo : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateBasicGroupFullInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateBasicGroupFullInfo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of a basic group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group_id")] - public long BasicGroupId { get; set; } + /// + /// Identifier of a basic group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group_id")] + public long BasicGroupId { get; set; } - /// - /// New full information about the group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("basic_group_full_info")] - public BasicGroupFullInfo BasicGroupFullInfo { get; set; } - } + /// + /// New full information about the group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("basic_group_full_info")] + public BasicGroupFullInfo BasicGroupFullInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateBusinessConnection.cs b/TdLib.Api/Objects/UpdateBusinessConnection.cs index 48c408d6..00b03277 100644 --- a/TdLib.Api/Objects/UpdateBusinessConnection.cs +++ b/TdLib.Api/Objects/UpdateBusinessConnection.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A business connection has changed; for bots only + /// + public class UpdateBusinessConnection : Update { /// - /// A business connection has changed; for bots only + /// Data type for serialization /// - public class UpdateBusinessConnection : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateBusinessConnection"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateBusinessConnection"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection")] - public BusinessConnection Connection { get; set; } - } + /// + /// New data about the connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connection")] + public BusinessConnection Connection { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateBusinessMessageEdited.cs b/TdLib.Api/Objects/UpdateBusinessMessageEdited.cs index 7efb956e..c4b984b2 100644 --- a/TdLib.Api/Objects/UpdateBusinessMessageEdited.cs +++ b/TdLib.Api/Objects/UpdateBusinessMessageEdited.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message in a business account was edited; for bots only + /// + public class UpdateBusinessMessageEdited : Update { /// - /// A message in a business account was edited; for bots only + /// Data type for serialization /// - public class UpdateBusinessMessageEdited : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateBusinessMessageEdited"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateBusinessMessageEdited"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection_id")] - public string ConnectionId { get; set; } + /// + /// Unique identifier of the business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connection_id")] + public string ConnectionId { get; set; } - /// - /// The edited message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public BusinessMessage Message { get; set; } - } + /// + /// The edited message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public BusinessMessage Message { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateBusinessMessagesDeleted.cs b/TdLib.Api/Objects/UpdateBusinessMessagesDeleted.cs index 24feaff0..28b61b2b 100644 --- a/TdLib.Api/Objects/UpdateBusinessMessagesDeleted.cs +++ b/TdLib.Api/Objects/UpdateBusinessMessagesDeleted.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Messages in a business account were deleted; for bots only + /// + public class UpdateBusinessMessagesDeleted : Update { /// - /// Messages in a business account were deleted; for bots only + /// Data type for serialization /// - public class UpdateBusinessMessagesDeleted : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateBusinessMessagesDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateBusinessMessagesDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection_id")] - public string ConnectionId { get; set; } + /// + /// Unique identifier of the business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connection_id")] + public string ConnectionId { get; set; } - /// - /// Identifier of a chat in the business account in which messages were deleted - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of a chat in the business account in which messages were deleted + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Unique message identifiers of the deleted messages - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } - } + /// + /// Unique message identifiers of the deleted messages + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateCall.cs b/TdLib.Api/Objects/UpdateCall.cs index 209e699b..696d89df 100644 --- a/TdLib.Api/Objects/UpdateCall.cs +++ b/TdLib.Api/Objects/UpdateCall.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// New call was created or information about a call was updated + /// + public class UpdateCall : Update { /// - /// New call was created or information about a call was updated + /// Data type for serialization /// - public class UpdateCall : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about a call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call")] - public Call Call { get; set; } - } + /// + /// New data about a call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call")] + public Call Call { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatAccentColors.cs b/TdLib.Api/Objects/UpdateChatAccentColors.cs index fd1d1f43..95500857 100644 --- a/TdLib.Api/Objects/UpdateChatAccentColors.cs +++ b/TdLib.Api/Objects/UpdateChatAccentColors.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Chat accent colors have changed + /// + public class UpdateChatAccentColors : Update { /// - /// Chat accent colors have changed + /// Data type for serialization /// - public class UpdateChatAccentColors : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatAccentColors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatAccentColors"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new chat accent color identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } + /// + /// The new chat accent color identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } - /// - /// The new identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_custom_emoji_id")] - public long BackgroundCustomEmojiId { get; set; } + /// + /// The new identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_custom_emoji_id")] + public long BackgroundCustomEmojiId { get; set; } - /// - /// Color scheme based on an upgraded gift to be used for the chat instead of accent_color_id and background_custom_emoji_id; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_gift_colors")] - public UpgradedGiftColors UpgradedGiftColors { get; set; } + /// + /// Color scheme based on an upgraded gift to be used for the chat instead of accent_color_id and background_custom_emoji_id; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_gift_colors")] + public UpgradedGiftColors UpgradedGiftColors { get; set; } - /// - /// The new chat profile accent color identifier; -1 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("profile_accent_color_id")] - public int ProfileAccentColorId { get; set; } + /// + /// The new chat profile accent color identifier; -1 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("profile_accent_color_id")] + public int ProfileAccentColorId { get; set; } - /// - /// The new identifier of a custom emoji to be shown on the profile background; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("profile_background_custom_emoji_id")] - public long ProfileBackgroundCustomEmojiId { get; set; } - } + /// + /// The new identifier of a custom emoji to be shown on the profile background; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("profile_background_custom_emoji_id")] + public long ProfileBackgroundCustomEmojiId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatAction.cs b/TdLib.Api/Objects/UpdateChatAction.cs index ad89f982..f53ae6e5 100644 --- a/TdLib.Api/Objects/UpdateChatAction.cs +++ b/TdLib.Api/Objects/UpdateChatAction.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message sender activity in the chat has changed + /// + public class UpdateChatAction : Update { /// - /// A message sender activity in the chat has changed + /// Data type for serialization /// - public class UpdateChatAction : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatAction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatAction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the specific topic in which the action was performed; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the specific topic in which the action was performed; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Identifier of a message sender performing the action - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of a message sender performing the action + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// The action - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action")] - public ChatAction Action { get; set; } - } + /// + /// The action + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("action")] + public ChatAction Action { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatActionBar.cs b/TdLib.Api/Objects/UpdateChatActionBar.cs index 79a46061..dc8a7b40 100644 --- a/TdLib.Api/Objects/UpdateChatActionBar.cs +++ b/TdLib.Api/Objects/UpdateChatActionBar.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat action bar was changed + /// + public class UpdateChatActionBar : Update { /// - /// The chat action bar was changed + /// Data type for serialization /// - public class UpdateChatActionBar : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatActionBar"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatActionBar"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new value of the action bar; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("action_bar")] - public ChatActionBar ActionBar { get; set; } - } + /// + /// The new value of the action bar; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("action_bar")] + public ChatActionBar ActionBar { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatActiveStories.cs b/TdLib.Api/Objects/UpdateChatActiveStories.cs index acc0ad81..7b9683aa 100644 --- a/TdLib.Api/Objects/UpdateChatActiveStories.cs +++ b/TdLib.Api/Objects/UpdateChatActiveStories.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of active stories posted by a specific chat has changed + /// + public class UpdateChatActiveStories : Update { /// - /// The list of active stories posted by a specific chat has changed + /// Data type for serialization /// - public class UpdateChatActiveStories : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatActiveStories"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatActiveStories"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of active stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_stories")] - public ChatActiveStories ActiveStories { get; set; } - } + /// + /// The new list of active stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_stories")] + public ChatActiveStories ActiveStories { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatAddedToList.cs b/TdLib.Api/Objects/UpdateChatAddedToList.cs index 69e2beca..5ae42c1c 100644 --- a/TdLib.Api/Objects/UpdateChatAddedToList.cs +++ b/TdLib.Api/Objects/UpdateChatAddedToList.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat was added to a chat list + /// + public class UpdateChatAddedToList : Update { /// - /// A chat was added to a chat list + /// Data type for serialization /// - public class UpdateChatAddedToList : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatAddedToList"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatAddedToList"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The chat list to which the chat was added - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } - } + /// + /// The chat list to which the chat was added + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatAvailableReactions.cs b/TdLib.Api/Objects/UpdateChatAvailableReactions.cs index bf1f7241..9a767ced 100644 --- a/TdLib.Api/Objects/UpdateChatAvailableReactions.cs +++ b/TdLib.Api/Objects/UpdateChatAvailableReactions.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat available reactions were changed + /// + public class UpdateChatAvailableReactions : Update { /// - /// The chat available reactions were changed + /// Data type for serialization /// - public class UpdateChatAvailableReactions : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatAvailableReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatAvailableReactions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new reactions, available in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("available_reactions")] - public ChatAvailableReactions AvailableReactions { get; set; } - } + /// + /// The new reactions, available in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("available_reactions")] + public ChatAvailableReactions AvailableReactions { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatBackground.cs b/TdLib.Api/Objects/UpdateChatBackground.cs index 88301ab4..bb8baaca 100644 --- a/TdLib.Api/Objects/UpdateChatBackground.cs +++ b/TdLib.Api/Objects/UpdateChatBackground.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat background was changed + /// + public class UpdateChatBackground : Update { /// - /// The chat background was changed + /// Data type for serialization /// - public class UpdateChatBackground : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatBackground"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new chat background; may be null if background was reset to default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public ChatBackground Background { get; set; } - } + /// + /// The new chat background; may be null if background was reset to default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public ChatBackground Background { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatBlockList.cs b/TdLib.Api/Objects/UpdateChatBlockList.cs index 116255c4..a62dd8aa 100644 --- a/TdLib.Api/Objects/UpdateChatBlockList.cs +++ b/TdLib.Api/Objects/UpdateChatBlockList.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat was blocked or unblocked + /// + public class UpdateChatBlockList : Update { /// - /// A chat was blocked or unblocked + /// Data type for serialization /// - public class UpdateChatBlockList : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatBlockList"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatBlockList"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Block list to which the chat is added; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("block_list")] - public BlockList BlockList { get; set; } - } + /// + /// Block list to which the chat is added; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("block_list")] + public BlockList BlockList { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatBoost.cs b/TdLib.Api/Objects/UpdateChatBoost.cs index 474f980d..1d6b5102 100644 --- a/TdLib.Api/Objects/UpdateChatBoost.cs +++ b/TdLib.Api/Objects/UpdateChatBoost.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat boost has changed; for bots only + /// + public class UpdateChatBoost : Update { /// - /// A chat boost has changed; for bots only + /// Data type for serialization /// - public class UpdateChatBoost : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatBoost"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatBoost"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New information about the boost - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("boost")] - public ChatBoost Boost { get; set; } - } + /// + /// New information about the boost + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("boost")] + public ChatBoost Boost { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatBusinessBotManageBar.cs b/TdLib.Api/Objects/UpdateChatBusinessBotManageBar.cs index 04ea282d..8450f38a 100644 --- a/TdLib.Api/Objects/UpdateChatBusinessBotManageBar.cs +++ b/TdLib.Api/Objects/UpdateChatBusinessBotManageBar.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The bar for managing business bot was changed in a chat + /// + public class UpdateChatBusinessBotManageBar : Update { /// - /// The bar for managing business bot was changed in a chat + /// Data type for serialization /// - public class UpdateChatBusinessBotManageBar : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatBusinessBotManageBar"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatBusinessBotManageBar"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new value of the business bot manage bar; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_bot_manage_bar")] - public BusinessBotManageBar BusinessBotManageBar { get; set; } - } + /// + /// The new value of the business bot manage bar; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_bot_manage_bar")] + public BusinessBotManageBar BusinessBotManageBar { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatDefaultDisableNotification.cs b/TdLib.Api/Objects/UpdateChatDefaultDisableNotification.cs index 36d2a2d3..17f95358 100644 --- a/TdLib.Api/Objects/UpdateChatDefaultDisableNotification.cs +++ b/TdLib.Api/Objects/UpdateChatDefaultDisableNotification.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The value of the default disable_notification parameter, used when a message is sent to the chat, was changed + /// + public class UpdateChatDefaultDisableNotification : Update { /// - /// The value of the default disable_notification parameter, used when a message is sent to the chat, was changed + /// Data type for serialization /// - public class UpdateChatDefaultDisableNotification : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatDefaultDisableNotification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatDefaultDisableNotification"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new default_disable_notification value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_disable_notification")] - public bool DefaultDisableNotification { get; set; } - } + /// + /// The new default_disable_notification value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_disable_notification")] + public bool DefaultDisableNotification { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatDraftMessage.cs b/TdLib.Api/Objects/UpdateChatDraftMessage.cs index 203ed0da..ce00cc69 100644 --- a/TdLib.Api/Objects/UpdateChatDraftMessage.cs +++ b/TdLib.Api/Objects/UpdateChatDraftMessage.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update mustn't be applied + /// + public class UpdateChatDraftMessage : Update { /// - /// A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update mustn't be applied + /// Data type for serialization /// - public class UpdateChatDraftMessage : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatDraftMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatDraftMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new draft message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } + /// + /// The new draft message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } - /// - /// The new chat positions in the chat lists - /// - [JsonProperty("positions", ItemConverterType = typeof(Converter))] - public ChatPosition[] Positions { get; set; } - } + /// + /// The new chat positions in the chat lists + /// + [JsonProperty("positions", ItemConverterType = typeof(Converter))] + public ChatPosition[] Positions { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatEmojiStatus.cs b/TdLib.Api/Objects/UpdateChatEmojiStatus.cs index 9f88a53f..a98b9162 100644 --- a/TdLib.Api/Objects/UpdateChatEmojiStatus.cs +++ b/TdLib.Api/Objects/UpdateChatEmojiStatus.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Chat emoji status has changed + /// + public class UpdateChatEmojiStatus : Update { /// - /// Chat emoji status has changed + /// Data type for serialization /// - public class UpdateChatEmojiStatus : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatEmojiStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatEmojiStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new chat emoji status; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji_status")] - public EmojiStatus EmojiStatus { get; set; } - } + /// + /// The new chat emoji status; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji_status")] + public EmojiStatus EmojiStatus { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatFolders.cs b/TdLib.Api/Objects/UpdateChatFolders.cs index 82e38107..e72d43df 100644 --- a/TdLib.Api/Objects/UpdateChatFolders.cs +++ b/TdLib.Api/Objects/UpdateChatFolders.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of chat folders or a chat folder has changed + /// + public class UpdateChatFolders : Update { /// - /// The list of chat folders or a chat folder has changed + /// Data type for serialization /// - public class UpdateChatFolders : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatFolders"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatFolders"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of chat folders - /// - [JsonProperty("chat_folders", ItemConverterType = typeof(Converter))] - public ChatFolderInfo[] ChatFolders { get; set; } + /// + /// The new list of chat folders + /// + [JsonProperty("chat_folders", ItemConverterType = typeof(Converter))] + public ChatFolderInfo[] ChatFolders { get; set; } - /// - /// Position of the main chat list among chat folders, 0-based - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_chat_list_position")] - public int MainChatListPosition { get; set; } + /// + /// Position of the main chat list among chat folders, 0-based + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("main_chat_list_position")] + public int MainChatListPosition { get; set; } - /// - /// True, if folder tags are enabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("are_tags_enabled")] - public bool AreTagsEnabled { get; set; } - } + /// + /// True, if folder tags are enabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("are_tags_enabled")] + public bool AreTagsEnabled { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatHasProtectedContent.cs b/TdLib.Api/Objects/UpdateChatHasProtectedContent.cs index 00caf8ae..b3ce3af9 100644 --- a/TdLib.Api/Objects/UpdateChatHasProtectedContent.cs +++ b/TdLib.Api/Objects/UpdateChatHasProtectedContent.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat content was allowed or restricted for saving + /// + public class UpdateChatHasProtectedContent : Update { /// - /// A chat content was allowed or restricted for saving + /// Data type for serialization /// - public class UpdateChatHasProtectedContent : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatHasProtectedContent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatHasProtectedContent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of has_protected_content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_protected_content")] - public bool HasProtectedContent { get; set; } - } + /// + /// New value of has_protected_content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_protected_content")] + public bool HasProtectedContent { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatHasScheduledMessages.cs b/TdLib.Api/Objects/UpdateChatHasScheduledMessages.cs index a2c51b38..bcd23d8e 100644 --- a/TdLib.Api/Objects/UpdateChatHasScheduledMessages.cs +++ b/TdLib.Api/Objects/UpdateChatHasScheduledMessages.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat's has_scheduled_messages field has changed + /// + public class UpdateChatHasScheduledMessages : Update { /// - /// A chat's has_scheduled_messages field has changed + /// Data type for serialization /// - public class UpdateChatHasScheduledMessages : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatHasScheduledMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatHasScheduledMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of has_scheduled_messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_scheduled_messages")] - public bool HasScheduledMessages { get; set; } - } + /// + /// New value of has_scheduled_messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_scheduled_messages")] + public bool HasScheduledMessages { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatHasWelcomeMessages.cs b/TdLib.Api/Objects/UpdateChatHasWelcomeMessages.cs index 824d1a80..6670eb1f 100644 --- a/TdLib.Api/Objects/UpdateChatHasWelcomeMessages.cs +++ b/TdLib.Api/Objects/UpdateChatHasWelcomeMessages.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat's has_welcome_messages field has changed + /// + public class UpdateChatHasWelcomeMessages : Update { /// - /// A chat's has_welcome_messages field has changed + /// Data type for serialization /// - public class UpdateChatHasWelcomeMessages : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatHasWelcomeMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatHasWelcomeMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of has_welcome_messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_welcome_messages")] - public bool HasWelcomeMessages { get; set; } - } + /// + /// New value of has_welcome_messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_welcome_messages")] + public bool HasWelcomeMessages { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatIsMarkedAsUnread.cs b/TdLib.Api/Objects/UpdateChatIsMarkedAsUnread.cs index 65fd6c2e..9b8408e1 100644 --- a/TdLib.Api/Objects/UpdateChatIsMarkedAsUnread.cs +++ b/TdLib.Api/Objects/UpdateChatIsMarkedAsUnread.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat was marked as unread or was read + /// + public class UpdateChatIsMarkedAsUnread : Update { /// - /// A chat was marked as unread or was read + /// Data type for serialization /// - public class UpdateChatIsMarkedAsUnread : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatIsMarkedAsUnread"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatIsMarkedAsUnread"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of is_marked_as_unread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_marked_as_unread")] - public bool IsMarkedAsUnread { get; set; } - } + /// + /// New value of is_marked_as_unread + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_marked_as_unread")] + public bool IsMarkedAsUnread { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatIsTranslatable.cs b/TdLib.Api/Objects/UpdateChatIsTranslatable.cs index e0b8b3d8..5e6e5ddd 100644 --- a/TdLib.Api/Objects/UpdateChatIsTranslatable.cs +++ b/TdLib.Api/Objects/UpdateChatIsTranslatable.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Translation of chat messages was enabled or disabled + /// + public class UpdateChatIsTranslatable : Update { /// - /// Translation of chat messages was enabled or disabled + /// Data type for serialization /// - public class UpdateChatIsTranslatable : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatIsTranslatable"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatIsTranslatable"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of is_translatable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_translatable")] - public bool IsTranslatable { get; set; } - } + /// + /// New value of is_translatable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_translatable")] + public bool IsTranslatable { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatJoinResult.cs b/TdLib.Api/Objects/UpdateChatJoinResult.cs index 7260d2f2..a178ec9c 100644 --- a/TdLib.Api/Objects/UpdateChatJoinResult.cs +++ b/TdLib.Api/Objects/UpdateChatJoinResult.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A join request from the user was completed + /// + public class UpdateChatJoinResult : Update { /// - /// A join request from the user was completed + /// Data type for serialization /// - public class UpdateChatJoinResult : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatJoinResult"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatJoinResult"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the join request query as received in chatJoinResultGuardBotApprovalRequired. If the corresponding Web App is still open, then it must be closed - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } + /// + /// Identifier of the join request query as received in chatJoinResultGuardBotApprovalRequired. If the corresponding Web App is still open, then it must be closed + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } - /// - /// Identifier of the joined chat, or 0 if the request wasn't approved - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the joined chat, or 0 if the request wasn't approved + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Result of the join - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result")] - public ChatJoinRequestResult Result { get; set; } - } + /// + /// Result of the join + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result")] + public ChatJoinRequestResult Result { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatLastMessage.cs b/TdLib.Api/Objects/UpdateChatLastMessage.cs index 90c0eb24..d473cbc2 100644 --- a/TdLib.Api/Objects/UpdateChatLastMessage.cs +++ b/TdLib.Api/Objects/UpdateChatLastMessage.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The last message of a chat was changed + /// + public class UpdateChatLastMessage : Update { /// - /// The last message of a chat was changed + /// Data type for serialization /// - public class UpdateChatLastMessage : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatLastMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatLastMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new last message in the chat; may be null if the last message became unknown. While the last message is unknown, new messages can be added to the chat without corresponding updateNewMessage update - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_message")] - public Message LastMessage { get; set; } + /// + /// The new last message in the chat; may be null if the last message became unknown. While the last message is unknown, new messages can be added to the chat without corresponding updateNewMessage update + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_message")] + public Message LastMessage { get; set; } - /// - /// The new chat positions in the chat lists - /// - [JsonProperty("positions", ItemConverterType = typeof(Converter))] - public ChatPosition[] Positions { get; set; } - } + /// + /// The new chat positions in the chat lists + /// + [JsonProperty("positions", ItemConverterType = typeof(Converter))] + public ChatPosition[] Positions { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatMember.cs b/TdLib.Api/Objects/UpdateChatMember.cs index f47368bd..12e4e6fd 100644 --- a/TdLib.Api/Objects/UpdateChatMember.cs +++ b/TdLib.Api/Objects/UpdateChatMember.cs @@ -2,88 +2,87 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// User rights changed in a chat; for bots only + /// + public class UpdateChatMember : Update { /// - /// User rights changed in a chat; for bots only + /// Data type for serialization /// - public class UpdateChatMember : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatMember"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatMember"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the user, changing the rights - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("actor_user_id")] - public long ActorUserId { get; set; } + /// + /// Identifier of the user, changing the rights + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("actor_user_id")] + public long ActorUserId { get; set; } - /// - /// Point in time (Unix timestamp) when the user rights were changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the user rights were changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// If user has joined the chat using an invite link, the invite link; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } + /// + /// If user has joined the chat using an invite link, the invite link; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } - /// - /// True, if the user has joined the chat after sending a join request and being approved by an administrator - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_join_request")] - public bool ViaJoinRequest { get; set; } + /// + /// True, if the user has joined the chat after sending a join request and being approved by an administrator + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_join_request")] + public bool ViaJoinRequest { get; set; } - /// - /// True, if the user has joined the chat using an invite link for a chat folder - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("via_chat_folder_invite_link")] - public bool ViaChatFolderInviteLink { get; set; } + /// + /// True, if the user has joined the chat using an invite link for a chat folder + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("via_chat_folder_invite_link")] + public bool ViaChatFolderInviteLink { get; set; } - /// - /// Previous chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_chat_member")] - public ChatMember OldChatMember { get; set; } + /// + /// Previous chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_chat_member")] + public ChatMember OldChatMember { get; set; } - /// - /// New chat member - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_chat_member")] - public ChatMember NewChatMember { get; set; } - } + /// + /// New chat member + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_chat_member")] + public ChatMember NewChatMember { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatMessageAutoDeleteTime.cs b/TdLib.Api/Objects/UpdateChatMessageAutoDeleteTime.cs index 3436f014..30ffaf74 100644 --- a/TdLib.Api/Objects/UpdateChatMessageAutoDeleteTime.cs +++ b/TdLib.Api/Objects/UpdateChatMessageAutoDeleteTime.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The message auto-delete or self-destruct timer setting for a chat was changed + /// + public class UpdateChatMessageAutoDeleteTime : Update { /// - /// The message auto-delete or self-destruct timer setting for a chat was changed + /// Data type for serialization /// - public class UpdateChatMessageAutoDeleteTime : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatMessageAutoDeleteTime"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatMessageAutoDeleteTime"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of message_auto_delete_time - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_auto_delete_time")] - public int MessageAutoDeleteTime { get; set; } - } + /// + /// New value of message_auto_delete_time + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_auto_delete_time")] + public int MessageAutoDeleteTime { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatMessageSender.cs b/TdLib.Api/Objects/UpdateChatMessageSender.cs index 7baa24a5..6cea6a52 100644 --- a/TdLib.Api/Objects/UpdateChatMessageSender.cs +++ b/TdLib.Api/Objects/UpdateChatMessageSender.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The message sender that is selected to send messages in a chat has changed + /// + public class UpdateChatMessageSender : Update { /// - /// The message sender that is selected to send messages in a chat has changed + /// Data type for serialization /// - public class UpdateChatMessageSender : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatMessageSender"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatMessageSender"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of message_sender_id; may be null if the user can't change message sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_sender_id")] - public MessageSender MessageSenderId { get; set; } - } + /// + /// New value of message_sender_id; may be null if the user can't change message sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_sender_id")] + public MessageSender MessageSenderId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatNotificationSettings.cs b/TdLib.Api/Objects/UpdateChatNotificationSettings.cs index 0cd7ff0d..1d09980f 100644 --- a/TdLib.Api/Objects/UpdateChatNotificationSettings.cs +++ b/TdLib.Api/Objects/UpdateChatNotificationSettings.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Notification settings for a chat were changed + /// + public class UpdateChatNotificationSettings : Update { /// - /// Notification settings for a chat were changed + /// Data type for serialization /// - public class UpdateChatNotificationSettings : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatNotificationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatNotificationSettings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new notification settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ChatNotificationSettings NotificationSettings { get; set; } - } + /// + /// The new notification settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ChatNotificationSettings NotificationSettings { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatOnlineMemberCount.cs b/TdLib.Api/Objects/UpdateChatOnlineMemberCount.cs index 54ca09f0..ebf228ef 100644 --- a/TdLib.Api/Objects/UpdateChatOnlineMemberCount.cs +++ b/TdLib.Api/Objects/UpdateChatOnlineMemberCount.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The number of online group members has changed. This update with non-zero number of online group members is sent only for currently opened chats. + /// There is no guarantee that it is sent just after the number of online users has changed + /// + public class UpdateChatOnlineMemberCount : Update { /// - /// The number of online group members has changed. This update with non-zero number of online group members is sent only for currently opened chats. - /// There is no guarantee that it is sent just after the number of online users has changed + /// Data type for serialization /// - public class UpdateChatOnlineMemberCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatOnlineMemberCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatOnlineMemberCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New number of online members in the chat, or 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("online_member_count")] - public int OnlineMemberCount { get; set; } - } + /// + /// New number of online members in the chat, or 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("online_member_count")] + public int OnlineMemberCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatPendingJoinRequests.cs b/TdLib.Api/Objects/UpdateChatPendingJoinRequests.cs index 13282c72..049a7146 100644 --- a/TdLib.Api/Objects/UpdateChatPendingJoinRequests.cs +++ b/TdLib.Api/Objects/UpdateChatPendingJoinRequests.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat pending join requests were changed + /// + public class UpdateChatPendingJoinRequests : Update { /// - /// The chat pending join requests were changed + /// Data type for serialization /// - public class UpdateChatPendingJoinRequests : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatPendingJoinRequests"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatPendingJoinRequests"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new data about pending join requests; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_join_requests")] - public ChatJoinRequestsInfo PendingJoinRequests { get; set; } - } + /// + /// The new data about pending join requests; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_join_requests")] + public ChatJoinRequestsInfo PendingJoinRequests { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatPermissions.cs b/TdLib.Api/Objects/UpdateChatPermissions.cs index 5d37062e..40cfa73c 100644 --- a/TdLib.Api/Objects/UpdateChatPermissions.cs +++ b/TdLib.Api/Objects/UpdateChatPermissions.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Chat permissions were changed + /// + public class UpdateChatPermissions : Update { /// - /// Chat permissions were changed + /// Data type for serialization /// - public class UpdateChatPermissions : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatPermissions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatPermissions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new chat permissions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("permissions")] - public ChatPermissions Permissions { get; set; } - } + /// + /// The new chat permissions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("permissions")] + public ChatPermissions Permissions { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatPhoto.cs b/TdLib.Api/Objects/UpdateChatPhoto.cs index 1649b6f0..be3f9e83 100644 --- a/TdLib.Api/Objects/UpdateChatPhoto.cs +++ b/TdLib.Api/Objects/UpdateChatPhoto.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat photo was changed + /// + public class UpdateChatPhoto : Update { /// - /// A chat photo was changed + /// Data type for serialization /// - public class UpdateChatPhoto : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatPhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatPhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new chat photo; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhotoInfo Photo { get; set; } - } + /// + /// The new chat photo; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhotoInfo Photo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatPosition.cs b/TdLib.Api/Objects/UpdateChatPosition.cs index bda62093..01fc2412 100644 --- a/TdLib.Api/Objects/UpdateChatPosition.cs +++ b/TdLib.Api/Objects/UpdateChatPosition.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The position of a chat in a chat list has changed. An updateChatLastMessage or updateChatDraftMessage update might be sent instead of the update + /// + public class UpdateChatPosition : Update { /// - /// The position of a chat in a chat list has changed. An updateChatLastMessage or updateChatDraftMessage update might be sent instead of the update + /// Data type for serialization /// - public class UpdateChatPosition : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatPosition"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatPosition"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New chat position. If new order is 0, then the chat needs to be removed from the list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("position")] - public ChatPosition Position { get; set; } - } + /// + /// New chat position. If new order is 0, then the chat needs to be removed from the list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("position")] + public ChatPosition Position { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatReadInbox.cs b/TdLib.Api/Objects/UpdateChatReadInbox.cs index 14c64a1b..aab5a29b 100644 --- a/TdLib.Api/Objects/UpdateChatReadInbox.cs +++ b/TdLib.Api/Objects/UpdateChatReadInbox.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Incoming messages were read or the number of unread messages has been changed + /// + public class UpdateChatReadInbox : Update { /// - /// Incoming messages were read or the number of unread messages has been changed + /// Data type for serialization /// - public class UpdateChatReadInbox : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatReadInbox"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatReadInbox"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the last read incoming message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_inbox_message_id")] - public long LastReadInboxMessageId { get; set; } + /// + /// Identifier of the last read incoming message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_inbox_message_id")] + public long LastReadInboxMessageId { get; set; } - /// - /// The number of unread messages left in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_count")] - public int UnreadCount { get; set; } - } + /// + /// The number of unread messages left in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_count")] + public int UnreadCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatReadOutbox.cs b/TdLib.Api/Objects/UpdateChatReadOutbox.cs index d31645a4..9cb300d2 100644 --- a/TdLib.Api/Objects/UpdateChatReadOutbox.cs +++ b/TdLib.Api/Objects/UpdateChatReadOutbox.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Outgoing messages were read + /// + public class UpdateChatReadOutbox : Update { /// - /// Outgoing messages were read + /// Data type for serialization /// - public class UpdateChatReadOutbox : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatReadOutbox"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatReadOutbox"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of last read outgoing message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_outbox_message_id")] - public long LastReadOutboxMessageId { get; set; } - } + /// + /// Identifier of last read outgoing message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_outbox_message_id")] + public long LastReadOutboxMessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatRemovedFromList.cs b/TdLib.Api/Objects/UpdateChatRemovedFromList.cs index 75f0649a..a99ff74c 100644 --- a/TdLib.Api/Objects/UpdateChatRemovedFromList.cs +++ b/TdLib.Api/Objects/UpdateChatRemovedFromList.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat was removed from a chat list + /// + public class UpdateChatRemovedFromList : Update { /// - /// A chat was removed from a chat list + /// Data type for serialization /// - public class UpdateChatRemovedFromList : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatRemovedFromList"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatRemovedFromList"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The chat list from which the chat was removed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } - } + /// + /// The chat list from which the chat was removed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatReplyMarkup.cs b/TdLib.Api/Objects/UpdateChatReplyMarkup.cs index 7e1f9e8a..b059d2d5 100644 --- a/TdLib.Api/Objects/UpdateChatReplyMarkup.cs +++ b/TdLib.Api/Objects/UpdateChatReplyMarkup.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat reply markup was changed + /// + public class UpdateChatReplyMarkup : Update { /// - /// The chat reply markup was changed + /// Data type for serialization /// - public class UpdateChatReplyMarkup : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatReplyMarkup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatReplyMarkup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The message from which the reply markup must be used; may be null if there is no default reply markup in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup_message")] - public Message ReplyMarkupMessage { get; set; } - } + /// + /// The message from which the reply markup must be used; may be null if there is no default reply markup in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup_message")] + public Message ReplyMarkupMessage { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatRevenueAmount.cs b/TdLib.Api/Objects/UpdateChatRevenueAmount.cs index 3ee3f174..ffb16988 100644 --- a/TdLib.Api/Objects/UpdateChatRevenueAmount.cs +++ b/TdLib.Api/Objects/UpdateChatRevenueAmount.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then getChatRevenueTransactions may be called to fetch new transactions + /// + public class UpdateChatRevenueAmount : Update { /// - /// The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then getChatRevenueTransactions may be called to fetch new transactions + /// Data type for serialization /// - public class UpdateChatRevenueAmount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatRevenueAmount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatRevenueAmount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New amount of earned revenue - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("revenue_amount")] - public ChatRevenueAmount RevenueAmount { get; set; } - } + /// + /// New amount of earned revenue + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("revenue_amount")] + public ChatRevenueAmount RevenueAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatTheme.cs b/TdLib.Api/Objects/UpdateChatTheme.cs index 31b46dd2..0644ea5e 100644 --- a/TdLib.Api/Objects/UpdateChatTheme.cs +++ b/TdLib.Api/Objects/UpdateChatTheme.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat theme was changed + /// + public class UpdateChatTheme : Update { /// - /// The chat theme was changed + /// Data type for serialization /// - public class UpdateChatTheme : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatTheme"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatTheme"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new theme of the chat; may be null if theme was reset to default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme")] - public ChatTheme Theme { get; set; } - } + /// + /// The new theme of the chat; may be null if theme was reset to default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public ChatTheme Theme { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatTitle.cs b/TdLib.Api/Objects/UpdateChatTitle.cs index ec4f4cd8..15d64f37 100644 --- a/TdLib.Api/Objects/UpdateChatTitle.cs +++ b/TdLib.Api/Objects/UpdateChatTitle.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The title of a chat was changed + /// + public class UpdateChatTitle : Update { /// - /// The title of a chat was changed + /// Data type for serialization /// - public class UpdateChatTitle : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatTitle"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatTitle"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new chat title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - } + /// + /// The new chat title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatUnreadMentionCount.cs b/TdLib.Api/Objects/UpdateChatUnreadMentionCount.cs index b66cf2f5..71c9b683 100644 --- a/TdLib.Api/Objects/UpdateChatUnreadMentionCount.cs +++ b/TdLib.Api/Objects/UpdateChatUnreadMentionCount.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat unread_mention_count has changed + /// + public class UpdateChatUnreadMentionCount : Update { /// - /// The chat unread_mention_count has changed + /// Data type for serialization /// - public class UpdateChatUnreadMentionCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatUnreadMentionCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatUnreadMentionCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The number of unread mention messages left in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_mention_count")] - public int UnreadMentionCount { get; set; } - } + /// + /// The number of unread mention messages left in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_mention_count")] + public int UnreadMentionCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatUnreadPollVoteCount.cs b/TdLib.Api/Objects/UpdateChatUnreadPollVoteCount.cs index 80c73702..b8c843cd 100644 --- a/TdLib.Api/Objects/UpdateChatUnreadPollVoteCount.cs +++ b/TdLib.Api/Objects/UpdateChatUnreadPollVoteCount.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat unread_poll_vote_count has changed + /// + public class UpdateChatUnreadPollVoteCount : Update { /// - /// The chat unread_poll_vote_count has changed + /// Data type for serialization /// - public class UpdateChatUnreadPollVoteCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatUnreadPollVoteCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatUnreadPollVoteCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The number of messages with unread poll votes left in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_poll_vote_count")] - public int UnreadPollVoteCount { get; set; } - } + /// + /// The number of messages with unread poll votes left in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_poll_vote_count")] + public int UnreadPollVoteCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatUnreadReactionCount.cs b/TdLib.Api/Objects/UpdateChatUnreadReactionCount.cs index 1dcd93b9..fc2bf038 100644 --- a/TdLib.Api/Objects/UpdateChatUnreadReactionCount.cs +++ b/TdLib.Api/Objects/UpdateChatUnreadReactionCount.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The chat unread_reaction_count has changed + /// + public class UpdateChatUnreadReactionCount : Update { /// - /// The chat unread_reaction_count has changed + /// Data type for serialization /// - public class UpdateChatUnreadReactionCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatUnreadReactionCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatUnreadReactionCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The number of messages with unread reactions left in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_reaction_count")] - public int UnreadReactionCount { get; set; } - } + /// + /// The number of messages with unread reactions left in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_reaction_count")] + public int UnreadReactionCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatVideoChat.cs b/TdLib.Api/Objects/UpdateChatVideoChat.cs index 046351ed..c85ba6b6 100644 --- a/TdLib.Api/Objects/UpdateChatVideoChat.cs +++ b/TdLib.Api/Objects/UpdateChatVideoChat.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat video chat state has changed + /// + public class UpdateChatVideoChat : Update { /// - /// A chat video chat state has changed + /// Data type for serialization /// - public class UpdateChatVideoChat : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatVideoChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatVideoChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of video_chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video_chat")] - public VideoChat VideoChat { get; set; } - } + /// + /// New value of video_chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video_chat")] + public VideoChat VideoChat { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatViewAsTopics.cs b/TdLib.Api/Objects/UpdateChatViewAsTopics.cs index 8047ce07..24be2650 100644 --- a/TdLib.Api/Objects/UpdateChatViewAsTopics.cs +++ b/TdLib.Api/Objects/UpdateChatViewAsTopics.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A chat default appearance has changed + /// + public class UpdateChatViewAsTopics : Update { /// - /// A chat default appearance has changed + /// Data type for serialization /// - public class UpdateChatViewAsTopics : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatViewAsTopics"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatViewAsTopics"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// New value of view_as_topics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_as_topics")] - public bool ViewAsTopics { get; set; } - } + /// + /// New value of view_as_topics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_as_topics")] + public bool ViewAsTopics { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateChatWelcomeMessages.cs b/TdLib.Api/Objects/UpdateChatWelcomeMessages.cs index 1e1b9e19..80715f55 100644 --- a/TdLib.Api/Objects/UpdateChatWelcomeMessages.cs +++ b/TdLib.Api/Objects/UpdateChatWelcomeMessages.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of welcome messages of a chat has changed + /// + public class UpdateChatWelcomeMessages : Update { /// - /// The list of welcome messages of a chat has changed + /// Data type for serialization /// - public class UpdateChatWelcomeMessages : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateChatWelcomeMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateChatWelcomeMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// The identifier of the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The new list of welcome messages of the chat in the order from the first to the last sent - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public WelcomeMessage[] Messages { get; set; } - } + /// + /// The new list of welcome messages of the chat in the order from the first to the last sent + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public WelcomeMessage[] Messages { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateCommunity.cs b/TdLib.Api/Objects/UpdateCommunity.cs index cd485191..978a05bf 100644 --- a/TdLib.Api/Objects/UpdateCommunity.cs +++ b/TdLib.Api/Objects/UpdateCommunity.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data of a community has changed. This update is guaranteed to come before the community identifier is returned to the application + /// + public class UpdateCommunity : Update { /// - /// Some data of a community has changed. This update is guaranteed to come before the community identifier is returned to the application + /// Data type for serialization /// - public class UpdateCommunity : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateCommunity"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateCommunity"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community")] - public Community Community { get; set; } - } + /// + /// New data about the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community")] + public Community Community { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateCommunityFullInfo.cs b/TdLib.Api/Objects/UpdateCommunityFullInfo.cs index f9bd6dbb..63bfb511 100644 --- a/TdLib.Api/Objects/UpdateCommunityFullInfo.cs +++ b/TdLib.Api/Objects/UpdateCommunityFullInfo.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data in communityFullInfo has been changed + /// + public class UpdateCommunityFullInfo : Update { /// - /// Some data in communityFullInfo has been changed + /// Data type for serialization /// - public class UpdateCommunityFullInfo : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateCommunityFullInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateCommunityFullInfo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } + /// + /// Identifier of the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } - /// - /// New full information about the community - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_full_info")] - public CommunityFullInfo CommunityFullInfo { get; set; } - } + /// + /// New full information about the community + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_full_info")] + public CommunityFullInfo CommunityFullInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateConnectionState.cs b/TdLib.Api/Objects/UpdateConnectionState.cs index 57458596..28e3c034 100644 --- a/TdLib.Api/Objects/UpdateConnectionState.cs +++ b/TdLib.Api/Objects/UpdateConnectionState.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The connection state has changed. This update must be used only to show a human-readable description of the connection state + /// + public class UpdateConnectionState : Update { /// - /// The connection state has changed. This update must be used only to show a human-readable description of the connection state + /// Data type for serialization /// - public class UpdateConnectionState : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateConnectionState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateConnectionState"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new connection state - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public ConnectionState State { get; set; } - } + /// + /// The new connection state + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public ConnectionState State { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateContactCloseBirthdays.cs b/TdLib.Api/Objects/UpdateContactCloseBirthdays.cs index 4d57abc1..84689568 100644 --- a/TdLib.Api/Objects/UpdateContactCloseBirthdays.cs +++ b/TdLib.Api/Objects/UpdateContactCloseBirthdays.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of contacts that had birthdays recently or will have birthday soon has changed + /// + public class UpdateContactCloseBirthdays : Update { /// - /// The list of contacts that had birthdays recently or will have birthday soon has changed + /// Data type for serialization /// - public class UpdateContactCloseBirthdays : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateContactCloseBirthdays"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateContactCloseBirthdays"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of contact users with close birthday - /// - [JsonProperty("close_birthday_users", ItemConverterType = typeof(Converter))] - public CloseBirthdayUser[] CloseBirthdayUsers { get; set; } - } + /// + /// List of contact users with close birthday + /// + [JsonProperty("close_birthday_users", ItemConverterType = typeof(Converter))] + public CloseBirthdayUser[] CloseBirthdayUsers { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateDefaultBackground.cs b/TdLib.Api/Objects/UpdateDefaultBackground.cs index 9b8892e2..b27fc247 100644 --- a/TdLib.Api/Objects/UpdateDefaultBackground.cs +++ b/TdLib.Api/Objects/UpdateDefaultBackground.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The default background has changed + /// + public class UpdateDefaultBackground : Update { /// - /// The default background has changed + /// Data type for serialization /// - public class UpdateDefaultBackground : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateDefaultBackground"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateDefaultBackground"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if default background for dark theme has changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("for_dark_theme")] - public bool ForDarkTheme { get; set; } + /// + /// True, if default background for dark theme has changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("for_dark_theme")] + public bool ForDarkTheme { get; set; } - /// - /// The new default background; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("background")] - public Background Background { get; set; } - } + /// + /// The new default background; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("background")] + public Background Background { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateDefaultPaidReactionType.cs b/TdLib.Api/Objects/UpdateDefaultPaidReactionType.cs index 0cf7cc5b..c7d9221f 100644 --- a/TdLib.Api/Objects/UpdateDefaultPaidReactionType.cs +++ b/TdLib.Api/Objects/UpdateDefaultPaidReactionType.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The type of default paid reaction has changed + /// + public class UpdateDefaultPaidReactionType : Update { /// - /// The type of default paid reaction has changed + /// Data type for serialization /// - public class UpdateDefaultPaidReactionType : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateDefaultPaidReactionType"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateDefaultPaidReactionType"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new type of the default paid reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public PaidReactionType Type { get; set; } - } + /// + /// The new type of the default paid reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public PaidReactionType Type { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateDefaultReactionType.cs b/TdLib.Api/Objects/UpdateDefaultReactionType.cs index 98b03a1e..efc99095 100644 --- a/TdLib.Api/Objects/UpdateDefaultReactionType.cs +++ b/TdLib.Api/Objects/UpdateDefaultReactionType.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The type of default reaction has changed + /// + public class UpdateDefaultReactionType : Update { /// - /// The type of default reaction has changed + /// Data type for serialization /// - public class UpdateDefaultReactionType : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateDefaultReactionType"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateDefaultReactionType"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new type of the default reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reaction_type")] - public ReactionType ReactionType { get; set; } - } + /// + /// The new type of the default reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reaction_type")] + public ReactionType ReactionType { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateDeleteMessages.cs b/TdLib.Api/Objects/UpdateDeleteMessages.cs index ef192525..7873adfe 100644 --- a/TdLib.Api/Objects/UpdateDeleteMessages.cs +++ b/TdLib.Api/Objects/UpdateDeleteMessages.cs @@ -2,59 +2,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some messages were deleted + /// + public class UpdateDeleteMessages : Update { /// - /// Some messages were deleted + /// Data type for serialization /// - public class UpdateDeleteMessages : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateDeleteMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateDeleteMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifiers of the deleted messages - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public long[] MessageIds { get; set; } + /// + /// Identifiers of the deleted messages + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public long[] MessageIds { get; set; } - /// - /// True, if the messages are permanently deleted by a user (as opposed to just becoming inaccessible) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_permanent")] - public bool IsPermanent { get; set; } + /// + /// True, if the messages are permanently deleted by a user (as opposed to just becoming inaccessible) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_permanent")] + public bool IsPermanent { get; set; } - /// - /// True, if the messages are deleted only from the cache and can possibly be retrieved again in the future - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("from_cache")] - public bool FromCache { get; set; } - } + /// + /// True, if the messages are deleted only from the cache and can possibly be retrieved again in the future + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("from_cache")] + public bool FromCache { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateDiceEmojis.cs b/TdLib.Api/Objects/UpdateDiceEmojis.cs index 19b42c43..ef7d1b48 100644 --- a/TdLib.Api/Objects/UpdateDiceEmojis.cs +++ b/TdLib.Api/Objects/UpdateDiceEmojis.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of supported dice emojis has changed + /// + public class UpdateDiceEmojis : Update { /// - /// The list of supported dice emojis has changed + /// Data type for serialization /// - public class UpdateDiceEmojis : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateDiceEmojis"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateDiceEmojis"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of supported dice emojis - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public string[] Emojis { get; set; } - } + /// + /// The new list of supported dice emojis + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public string[] Emojis { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateDirectMessagesChatTopic.cs b/TdLib.Api/Objects/UpdateDirectMessagesChatTopic.cs index f3e84361..6f2f5cc8 100644 --- a/TdLib.Api/Objects/UpdateDirectMessagesChatTopic.cs +++ b/TdLib.Api/Objects/UpdateDirectMessagesChatTopic.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Basic information about a topic in a channel direct messages chat administered by the current user has changed. This update is guaranteed to come before the topic identifier is returned to the application + /// + public class UpdateDirectMessagesChatTopic : Update { /// - /// Basic information about a topic in a channel direct messages chat administered by the current user has changed. This update is guaranteed to come before the topic identifier is returned to the application + /// Data type for serialization /// - public class UpdateDirectMessagesChatTopic : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateDirectMessagesChatTopic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateDirectMessagesChatTopic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic")] - public DirectMessagesChatTopic Topic { get; set; } - } + /// + /// New data about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic")] + public DirectMessagesChatTopic Topic { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateEmojiChatThemes.cs b/TdLib.Api/Objects/UpdateEmojiChatThemes.cs index cfebddf8..dc0beac2 100644 --- a/TdLib.Api/Objects/UpdateEmojiChatThemes.cs +++ b/TdLib.Api/Objects/UpdateEmojiChatThemes.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of available emoji chat themes has changed + /// + public class UpdateEmojiChatThemes : Update { /// - /// The list of available emoji chat themes has changed + /// Data type for serialization /// - public class UpdateEmojiChatThemes : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateEmojiChatThemes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateEmojiChatThemes"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of emoji chat themes - /// - [JsonProperty("chat_themes", ItemConverterType = typeof(Converter))] - public EmojiChatTheme[] ChatThemes { get; set; } - } + /// + /// The new list of emoji chat themes + /// + [JsonProperty("chat_themes", ItemConverterType = typeof(Converter))] + public EmojiChatTheme[] ChatThemes { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFavoriteStickers.cs b/TdLib.Api/Objects/UpdateFavoriteStickers.cs index c0d53892..a98fcfc1 100644 --- a/TdLib.Api/Objects/UpdateFavoriteStickers.cs +++ b/TdLib.Api/Objects/UpdateFavoriteStickers.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of favorite stickers was updated + /// + public class UpdateFavoriteStickers : Update { /// - /// The list of favorite stickers was updated + /// Data type for serialization /// - public class UpdateFavoriteStickers : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFavoriteStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFavoriteStickers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of file identifiers of favorite stickers - /// - [JsonProperty("sticker_ids", ItemConverterType = typeof(Converter))] - public int[] StickerIds { get; set; } - } + /// + /// The new list of file identifiers of favorite stickers + /// + [JsonProperty("sticker_ids", ItemConverterType = typeof(Converter))] + public int[] StickerIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFile.cs b/TdLib.Api/Objects/UpdateFile.cs index c3b3be11..03f1f3c7 100644 --- a/TdLib.Api/Objects/UpdateFile.cs +++ b/TdLib.Api/Objects/UpdateFile.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Information about a file was updated + /// + public class UpdateFile : Update { /// - /// Information about a file was updated + /// Data type for serialization /// - public class UpdateFile : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFile"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFile"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file")] - public File File { get; set; } - } + /// + /// New data about the file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file")] + public File File { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFileAddedToDownloads.cs b/TdLib.Api/Objects/UpdateFileAddedToDownloads.cs index 6e88eea5..0f4dcdee 100644 --- a/TdLib.Api/Objects/UpdateFileAddedToDownloads.cs +++ b/TdLib.Api/Objects/UpdateFileAddedToDownloads.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A file was added to the file download list. This update is sent only after file download list is loaded for the first time + /// + public class UpdateFileAddedToDownloads : Update { /// - /// A file was added to the file download list. This update is sent only after file download list is loaded for the first time + /// Data type for serialization /// - public class UpdateFileAddedToDownloads : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFileAddedToDownloads"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFileAddedToDownloads"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The added file download - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_download")] - public FileDownload FileDownload { get; set; } + /// + /// The added file download + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_download")] + public FileDownload FileDownload { get; set; } - /// - /// New number of being downloaded and recently downloaded files found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("counts")] - public DownloadedFileCounts Counts { get; set; } - } + /// + /// New number of being downloaded and recently downloaded files found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("counts")] + public DownloadedFileCounts Counts { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFileDownload.cs b/TdLib.Api/Objects/UpdateFileDownload.cs index 8e9dbd0e..9b2246f0 100644 --- a/TdLib.Api/Objects/UpdateFileDownload.cs +++ b/TdLib.Api/Objects/UpdateFileDownload.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A file download was changed. This update is sent only after file download list is loaded for the first time + /// + public class UpdateFileDownload : Update { /// - /// A file download was changed. This update is sent only after file download list is loaded for the first time + /// Data type for serialization /// - public class UpdateFileDownload : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFileDownload"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFileDownload"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// File identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } - /// - /// Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("complete_date")] - public int CompleteDate { get; set; } + /// + /// Point in time (Unix timestamp) when the file downloading was completed; 0 if the file downloading isn't completed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("complete_date")] + public int CompleteDate { get; set; } - /// - /// True, if downloading of the file is paused - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_paused")] - public bool IsPaused { get; set; } + /// + /// True, if downloading of the file is paused + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_paused")] + public bool IsPaused { get; set; } - /// - /// New number of being downloaded and recently downloaded files found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("counts")] - public DownloadedFileCounts Counts { get; set; } - } + /// + /// New number of being downloaded and recently downloaded files found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("counts")] + public DownloadedFileCounts Counts { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFileDownloads.cs b/TdLib.Api/Objects/UpdateFileDownloads.cs index 0fc76fd1..40bd5e0d 100644 --- a/TdLib.Api/Objects/UpdateFileDownloads.cs +++ b/TdLib.Api/Objects/UpdateFileDownloads.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The state of the file download list has changed + /// + public class UpdateFileDownloads : Update { /// - /// The state of the file download list has changed + /// Data type for serialization /// - public class UpdateFileDownloads : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFileDownloads"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFileDownloads"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Total size of files in the file download list, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_size")] - public long TotalSize { get; set; } + /// + /// Total size of files in the file download list, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_size")] + public long TotalSize { get; set; } - /// - /// Total number of files in the file download list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of files in the file download list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// Total downloaded size of files in the file download list, in bytes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("downloaded_size")] - public long DownloadedSize { get; set; } - } + /// + /// Total downloaded size of files in the file download list, in bytes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("downloaded_size")] + public long DownloadedSize { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFileGenerationStart.cs b/TdLib.Api/Objects/UpdateFileGenerationStart.cs index ff39adf0..827b4ff6 100644 --- a/TdLib.Api/Objects/UpdateFileGenerationStart.cs +++ b/TdLib.Api/Objects/UpdateFileGenerationStart.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The file generation process needs to be started by the application. Use setFileGenerationProgress and finishFileGeneration to generate the file + /// + public class UpdateFileGenerationStart : Update { /// - /// The file generation process needs to be started by the application. Use setFileGenerationProgress and finishFileGeneration to generate the file + /// Data type for serialization /// - public class UpdateFileGenerationStart : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFileGenerationStart"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFileGenerationStart"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier for the generation process - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("generation_id")] - public long GenerationId { get; set; } + /// + /// Unique identifier for the generation process + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("generation_id")] + public long GenerationId { get; set; } - /// - /// The original path specified by the application in inputFileGenerated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("original_path")] - public string OriginalPath { get; set; } + /// + /// The original path specified by the application in inputFileGenerated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("original_path")] + public string OriginalPath { get; set; } - /// - /// The path to a file that must be created and where the new file must be generated by the application. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("destination_path")] - public string DestinationPath { get; set; } + /// + /// The path to a file that must be created and where the new file must be generated by the application. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("destination_path")] + public string DestinationPath { get; set; } - /// - /// If the conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the application. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("conversion")] - public string Conversion { get; set; } - } + /// + /// If the conversion is "#url#", then original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the application. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("conversion")] + public string Conversion { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFileGenerationStop.cs b/TdLib.Api/Objects/UpdateFileGenerationStop.cs index 234f7b5d..5fe60793 100644 --- a/TdLib.Api/Objects/UpdateFileGenerationStop.cs +++ b/TdLib.Api/Objects/UpdateFileGenerationStop.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// File generation is no longer needed + /// + public class UpdateFileGenerationStop : Update { /// - /// File generation is no longer needed + /// Data type for serialization /// - public class UpdateFileGenerationStop : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFileGenerationStop"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFileGenerationStop"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier for the generation process - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("generation_id")] - public long GenerationId { get; set; } - } + /// + /// Unique identifier for the generation process + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("generation_id")] + public long GenerationId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFileRemovedFromDownloads.cs b/TdLib.Api/Objects/UpdateFileRemovedFromDownloads.cs index b79e9302..c3d25672 100644 --- a/TdLib.Api/Objects/UpdateFileRemovedFromDownloads.cs +++ b/TdLib.Api/Objects/UpdateFileRemovedFromDownloads.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A file was removed from the file download list. This update is sent only after file download list is loaded for the first time + /// + public class UpdateFileRemovedFromDownloads : Update { /// - /// A file was removed from the file download list. This update is sent only after file download list is loaded for the first time + /// Data type for serialization /// - public class UpdateFileRemovedFromDownloads : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFileRemovedFromDownloads"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFileRemovedFromDownloads"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// File identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_id")] - public int FileId { get; set; } + /// + /// File identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_id")] + public int FileId { get; set; } - /// - /// New number of being downloaded and recently downloaded files found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("counts")] - public DownloadedFileCounts Counts { get; set; } - } + /// + /// New number of being downloaded and recently downloaded files found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("counts")] + public DownloadedFileCounts Counts { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateForumTopic.cs b/TdLib.Api/Objects/UpdateForumTopic.cs index 93de5bb0..ce4e99f6 100644 --- a/TdLib.Api/Objects/UpdateForumTopic.cs +++ b/TdLib.Api/Objects/UpdateForumTopic.cs @@ -2,102 +2,101 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Information about a topic in a forum chat was changed + /// + public class UpdateForumTopic : Update { /// - /// Information about a topic in a forum chat was changed + /// Data type for serialization /// - public class UpdateForumTopic : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateForumTopic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateForumTopic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Forum topic identifier of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// Forum topic identifier of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// True, if the topic is pinned in the topic list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } + /// + /// True, if the topic is pinned in the topic list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } - /// - /// Identifier of the last read incoming message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_inbox_message_id")] - public long LastReadInboxMessageId { get; set; } + /// + /// Identifier of the last read incoming message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_inbox_message_id")] + public long LastReadInboxMessageId { get; set; } - /// - /// Identifier of the last read outgoing message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_read_outbox_message_id")] - public long LastReadOutboxMessageId { get; set; } + /// + /// Identifier of the last read outgoing message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_read_outbox_message_id")] + public long LastReadOutboxMessageId { get; set; } - /// - /// Number of unread messages with a mention/reply in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_mention_count")] - public int UnreadMentionCount { get; set; } + /// + /// Number of unread messages with a mention/reply in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_mention_count")] + public int UnreadMentionCount { get; set; } - /// - /// Number of messages with unread reactions in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_reaction_count")] - public int UnreadReactionCount { get; set; } + /// + /// Number of messages with unread reactions in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_reaction_count")] + public int UnreadReactionCount { get; set; } - /// - /// Number of messages with unread poll votes in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_poll_vote_count")] - public int UnreadPollVoteCount { get; set; } + /// + /// Number of messages with unread poll votes in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_poll_vote_count")] + public int UnreadPollVoteCount { get; set; } - /// - /// Notification settings for the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ChatNotificationSettings NotificationSettings { get; set; } + /// + /// Notification settings for the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ChatNotificationSettings NotificationSettings { get; set; } - /// - /// A draft of a message in the topic; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("draft_message")] - public DraftMessage DraftMessage { get; set; } - } + /// + /// A draft of a message in the topic; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("draft_message")] + public DraftMessage DraftMessage { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateForumTopicInfo.cs b/TdLib.Api/Objects/UpdateForumTopicInfo.cs index 5fed588d..e124033f 100644 --- a/TdLib.Api/Objects/UpdateForumTopicInfo.cs +++ b/TdLib.Api/Objects/UpdateForumTopicInfo.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Basic information about a topic in a forum chat was changed + /// + public class UpdateForumTopicInfo : Update { /// - /// Basic information about a topic in a forum chat was changed + /// Data type for serialization /// - public class UpdateForumTopicInfo : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateForumTopicInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateForumTopicInfo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New information about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("info")] - public ForumTopicInfo Info { get; set; } - } + /// + /// New information about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public ForumTopicInfo Info { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateFreezeState.cs b/TdLib.Api/Objects/UpdateFreezeState.cs index e6b968c0..79de010a 100644 --- a/TdLib.Api/Objects/UpdateFreezeState.cs +++ b/TdLib.Api/Objects/UpdateFreezeState.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The freeze state of the current user's account has changed + /// + public class UpdateFreezeState : Update { /// - /// The freeze state of the current user's account has changed + /// Data type for serialization /// - public class UpdateFreezeState : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateFreezeState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateFreezeState"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the account is frozen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_frozen")] - public bool IsFrozen { get; set; } + /// + /// True, if the account is frozen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_frozen")] + public bool IsFrozen { get; set; } - /// - /// Point in time (Unix timestamp) when the account was frozen; 0 if the account isn't frozen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("freezing_date")] - public int FreezingDate { get; set; } + /// + /// Point in time (Unix timestamp) when the account was frozen; 0 if the account isn't frozen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("freezing_date")] + public int FreezingDate { get; set; } - /// - /// Point in time (Unix timestamp) when the account will be deleted and can't be unfrozen; 0 if the account isn't frozen - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("deletion_date")] - public int DeletionDate { get; set; } + /// + /// Point in time (Unix timestamp) when the account will be deleted and can't be unfrozen; 0 if the account isn't frozen + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("deletion_date")] + public int DeletionDate { get; set; } - /// - /// The link to open to send an appeal to unfreeze the account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("appeal_link")] - public string AppealLink { get; set; } - } + /// + /// The link to open to send an appeal to unfreeze the account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("appeal_link")] + public string AppealLink { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGiftAuctionState.cs b/TdLib.Api/Objects/UpdateGiftAuctionState.cs index fb97854c..d7b7053d 100644 --- a/TdLib.Api/Objects/UpdateGiftAuctionState.cs +++ b/TdLib.Api/Objects/UpdateGiftAuctionState.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// State of a gift auction was updated + /// + public class UpdateGiftAuctionState : Update { /// - /// State of a gift auction was updated + /// Data type for serialization /// - public class UpdateGiftAuctionState : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGiftAuctionState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGiftAuctionState"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New state of the auction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public GiftAuctionState State { get; set; } - } + /// + /// New state of the auction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public GiftAuctionState State { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGramRevenueStatus.cs b/TdLib.Api/Objects/UpdateGramRevenueStatus.cs index 48b6a9ae..d836753b 100644 --- a/TdLib.Api/Objects/UpdateGramRevenueStatus.cs +++ b/TdLib.Api/Objects/UpdateGramRevenueStatus.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The TON Gram revenue earned by the current user has changed. If Gram transaction screen of the chat is opened, then getTonTransactions may be called to fetch new transactions + /// + public class UpdateGramRevenueStatus : Update { /// - /// The TON Gram revenue earned by the current user has changed. If Gram transaction screen of the chat is opened, then getTonTransactions may be called to fetch new transactions + /// Data type for serialization /// - public class UpdateGramRevenueStatus : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGramRevenueStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGramRevenueStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New Gram revenue status - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public GramRevenueStatus Status { get; set; } - } + /// + /// New Gram revenue status + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public GramRevenueStatus Status { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGroupCall.cs b/TdLib.Api/Objects/UpdateGroupCall.cs index de240f43..9b6eba41 100644 --- a/TdLib.Api/Objects/UpdateGroupCall.cs +++ b/TdLib.Api/Objects/UpdateGroupCall.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Information about a group call was updated + /// + public class UpdateGroupCall : Update { /// - /// Information about a group call was updated + /// Data type for serialization /// - public class UpdateGroupCall : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGroupCall"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGroupCall"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call")] - public GroupCall GroupCall { get; set; } - } + /// + /// New data about the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call")] + public GroupCall GroupCall { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGroupCallMessageLevels.cs b/TdLib.Api/Objects/UpdateGroupCallMessageLevels.cs index 7d5d7647..550d26b2 100644 --- a/TdLib.Api/Objects/UpdateGroupCallMessageLevels.cs +++ b/TdLib.Api/Objects/UpdateGroupCallMessageLevels.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The levels of live story group call messages have changed + /// + public class UpdateGroupCallMessageLevels : Update { /// - /// The levels of live story group call messages have changed + /// Data type for serialization /// - public class UpdateGroupCallMessageLevels : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGroupCallMessageLevels"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGroupCallMessageLevels"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New description of the levels in decreasing order of groupCallMessageLevel.min_star_count - /// - [JsonProperty("levels", ItemConverterType = typeof(Converter))] - public GroupCallMessageLevel[] Levels { get; set; } - } + /// + /// New description of the levels in decreasing order of groupCallMessageLevel.min_star_count + /// + [JsonProperty("levels", ItemConverterType = typeof(Converter))] + public GroupCallMessageLevel[] Levels { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGroupCallMessageSendFailed.cs b/TdLib.Api/Objects/UpdateGroupCallMessageSendFailed.cs index 4f30804e..46c39510 100644 --- a/TdLib.Api/Objects/UpdateGroupCallMessageSendFailed.cs +++ b/TdLib.Api/Objects/UpdateGroupCallMessageSendFailed.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A group call message failed to send + /// + public class UpdateGroupCallMessageSendFailed : Update { /// - /// A group call message failed to send + /// Data type for serialization /// - public class UpdateGroupCallMessageSendFailed : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGroupCallMessageSendFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGroupCallMessageSendFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public int MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public int MessageId { get; set; } - /// - /// The cause of the message sending failure - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } - } + /// + /// The cause of the message sending failure + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGroupCallMessagesDeleted.cs b/TdLib.Api/Objects/UpdateGroupCallMessagesDeleted.cs index e57dc568..bd1ba543 100644 --- a/TdLib.Api/Objects/UpdateGroupCallMessagesDeleted.cs +++ b/TdLib.Api/Objects/UpdateGroupCallMessagesDeleted.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some group call messages were deleted + /// + public class UpdateGroupCallMessagesDeleted : Update { /// - /// Some group call messages were deleted + /// Data type for serialization /// - public class UpdateGroupCallMessagesDeleted : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGroupCallMessagesDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGroupCallMessagesDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Identifiers of the deleted messages - /// - [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] - public int[] MessageIds { get; set; } - } + /// + /// Identifiers of the deleted messages + /// + [JsonProperty("message_ids", ItemConverterType = typeof(Converter))] + public int[] MessageIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGroupCallParticipant.cs b/TdLib.Api/Objects/UpdateGroupCallParticipant.cs index 3ac8b6af..88a76e3b 100644 --- a/TdLib.Api/Objects/UpdateGroupCallParticipant.cs +++ b/TdLib.Api/Objects/UpdateGroupCallParticipant.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Information about a group call participant was changed. The updates are sent only after the group call is received through getGroupCall and only if the call is joined or being joined + /// + public class UpdateGroupCallParticipant : Update { /// - /// Information about a group call participant was changed. The updates are sent only after the group call is received through getGroupCall and only if the call is joined or being joined + /// Data type for serialization /// - public class UpdateGroupCallParticipant : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGroupCallParticipant"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGroupCallParticipant"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// New data about the participant - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("participant")] - public GroupCallParticipant Participant { get; set; } - } + /// + /// New data about the participant + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("participant")] + public GroupCallParticipant Participant { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGroupCallParticipants.cs b/TdLib.Api/Objects/UpdateGroupCallParticipants.cs index 47945bde..924218dd 100644 --- a/TdLib.Api/Objects/UpdateGroupCallParticipants.cs +++ b/TdLib.Api/Objects/UpdateGroupCallParticipants.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of group call participants that can send and receive encrypted call data has changed; for group calls not bound to a chat only + /// + public class UpdateGroupCallParticipants : Update { /// - /// The list of group call participants that can send and receive encrypted call data has changed; for group calls not bound to a chat only + /// Data type for serialization /// - public class UpdateGroupCallParticipants : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGroupCallParticipants"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGroupCallParticipants"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// New list of group call participant user identifiers. The identifiers may be invalid or the corresponding users may be unknown. - /// The participants must be shown in the list of group call participants even if there is no information about them - /// - [JsonProperty("participant_user_ids", ItemConverterType = typeof(Converter))] - public long[] ParticipantUserIds { get; set; } - } + /// + /// New list of group call participant user identifiers. The identifiers may be invalid or the corresponding users may be unknown. + /// The participants must be shown in the list of group call participants even if there is no information about them + /// + [JsonProperty("participant_user_ids", ItemConverterType = typeof(Converter))] + public long[] ParticipantUserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateGroupCallVerificationState.cs b/TdLib.Api/Objects/UpdateGroupCallVerificationState.cs index c82198bc..00757a07 100644 --- a/TdLib.Api/Objects/UpdateGroupCallVerificationState.cs +++ b/TdLib.Api/Objects/UpdateGroupCallVerificationState.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The verification state of an encrypted group call has changed; for group calls not bound to a chat only + /// + public class UpdateGroupCallVerificationState : Update { /// - /// The verification state of an encrypted group call has changed; for group calls not bound to a chat only + /// Data type for serialization /// - public class UpdateGroupCallVerificationState : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateGroupCallVerificationState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateGroupCallVerificationState"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// The call state generation to which the emoji corresponds. If generation is different for two users, then their emoji may be also different - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("generation")] - public int Generation { get; set; } + /// + /// The call state generation to which the emoji corresponds. If generation is different for two users, then their emoji may be also different + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("generation")] + public int Generation { get; set; } - /// - /// Group call state fingerprint represented as 4 emoji; may be empty if the state isn't verified yet - /// - [JsonProperty("emojis", ItemConverterType = typeof(Converter))] - public string[] Emojis { get; set; } - } + /// + /// Group call state fingerprint represented as 4 emoji; may be empty if the state isn't verified yet + /// + [JsonProperty("emojis", ItemConverterType = typeof(Converter))] + public string[] Emojis { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateHavePendingNotifications.cs b/TdLib.Api/Objects/UpdateHavePendingNotifications.cs index 1afbf2a4..7d89c153 100644 --- a/TdLib.Api/Objects/UpdateHavePendingNotifications.cs +++ b/TdLib.Api/Objects/UpdateHavePendingNotifications.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications + /// + public class UpdateHavePendingNotifications : Update { /// - /// Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications + /// Data type for serialization /// - public class UpdateHavePendingNotifications : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateHavePendingNotifications"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateHavePendingNotifications"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if there are some delayed notification updates, which will be sent soon - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("have_delayed_notifications")] - public bool HaveDelayedNotifications { get; set; } + /// + /// True, if there are some delayed notification updates, which will be sent soon + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("have_delayed_notifications")] + public bool HaveDelayedNotifications { get; set; } - /// - /// True, if there can be some yet unreceived notifications, which are being fetched from the server - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("have_unreceived_notifications")] - public bool HaveUnreceivedNotifications { get; set; } - } + /// + /// True, if there can be some yet unreceived notifications, which are being fetched from the server + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("have_unreceived_notifications")] + public bool HaveUnreceivedNotifications { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateInstalledStickerSets.cs b/TdLib.Api/Objects/UpdateInstalledStickerSets.cs index de882042..89d8e207 100644 --- a/TdLib.Api/Objects/UpdateInstalledStickerSets.cs +++ b/TdLib.Api/Objects/UpdateInstalledStickerSets.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of installed sticker sets was updated + /// + public class UpdateInstalledStickerSets : Update { /// - /// The list of installed sticker sets was updated + /// Data type for serialization /// - public class UpdateInstalledStickerSets : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateInstalledStickerSets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateInstalledStickerSets"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the affected stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Type of the affected stickers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// The new list of installed ordinary sticker sets - /// - [JsonProperty("sticker_set_ids", ItemConverterType = typeof(Converter))] - public long[] StickerSetIds { get; set; } - } + /// + /// The new list of installed ordinary sticker sets + /// + [JsonProperty("sticker_set_ids", ItemConverterType = typeof(Converter))] + public long[] StickerSetIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateLanguagePackStrings.cs b/TdLib.Api/Objects/UpdateLanguagePackStrings.cs index 3d453261..0506d34f 100644 --- a/TdLib.Api/Objects/UpdateLanguagePackStrings.cs +++ b/TdLib.Api/Objects/UpdateLanguagePackStrings.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some language pack strings have been updated + /// + public class UpdateLanguagePackStrings : Update { /// - /// Some language pack strings have been updated + /// Data type for serialization /// - public class UpdateLanguagePackStrings : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateLanguagePackStrings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateLanguagePackStrings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Localization target to which the language pack belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("localization_target")] - public string LocalizationTarget { get; set; } + /// + /// Localization target to which the language pack belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("localization_target")] + public string LocalizationTarget { get; set; } - /// - /// Identifier of the updated language pack - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_pack_id")] - public string LanguagePackId { get; set; } + /// + /// Identifier of the updated language pack + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_pack_id")] + public string LanguagePackId { get; set; } - /// - /// List of changed language pack strings; empty if all strings have changed - /// - [JsonProperty("strings", ItemConverterType = typeof(Converter))] - public LanguagePackString[] Strings { get; set; } - } + /// + /// List of changed language pack strings; empty if all strings have changed + /// + [JsonProperty("strings", ItemConverterType = typeof(Converter))] + public LanguagePackString[] Strings { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateLiveStoryTopDonors.cs b/TdLib.Api/Objects/UpdateLiveStoryTopDonors.cs index 340739b9..a408554a 100644 --- a/TdLib.Api/Objects/UpdateLiveStoryTopDonors.cs +++ b/TdLib.Api/Objects/UpdateLiveStoryTopDonors.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of top donors in live story group call has changed + /// + public class UpdateLiveStoryTopDonors : Update { /// - /// The list of top donors in live story group call has changed + /// Data type for serialization /// - public class UpdateLiveStoryTopDonors : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateLiveStoryTopDonors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateLiveStoryTopDonors"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// New list of live story donors - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("donors")] - public LiveStoryDonors Donors { get; set; } - } + /// + /// New list of live story donors + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("donors")] + public LiveStoryDonors Donors { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateManagedBot.cs b/TdLib.Api/Objects/UpdateManagedBot.cs index 7f287975..a072c76f 100644 --- a/TdLib.Api/Objects/UpdateManagedBot.cs +++ b/TdLib.Api/Objects/UpdateManagedBot.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A bot that can be managed by the current bot was created or updated; for bots only + /// + public class UpdateManagedBot : Update { /// - /// A bot that can be managed by the current bot was created or updated; for bots only + /// Data type for serialization /// - public class UpdateManagedBot : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateManagedBot"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateManagedBot"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who created the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user who created the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Identifier of the created managed bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_user_id")] - public long BotUserId { get; set; } - } + /// + /// Identifier of the created managed bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_user_id")] + public long BotUserId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageContainsUnreadPollVotes.cs b/TdLib.Api/Objects/UpdateMessageContainsUnreadPollVotes.cs index bec67f51..85df7ebd 100644 --- a/TdLib.Api/Objects/UpdateMessageContainsUnreadPollVotes.cs +++ b/TdLib.Api/Objects/UpdateMessageContainsUnreadPollVotes.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Unread votes were added or removed from a poll message + /// + public class UpdateMessageContainsUnreadPollVotes : Update { /// - /// Unread votes were added or removed from a poll message + /// Data type for serialization /// - public class UpdateMessageContainsUnreadPollVotes : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageContainsUnreadPollVotes"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageContainsUnreadPollVotes"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// True, if the message is a poll message with unread votes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("contains_unread_poll_votes")] - public bool ContainsUnreadPollVotes { get; set; } + /// + /// True, if the message is a poll message with unread votes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("contains_unread_poll_votes")] + public bool ContainsUnreadPollVotes { get; set; } - /// - /// The new number of messages with unread poll votes in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_poll_vote_count")] - public int UnreadPollVoteCount { get; set; } - } + /// + /// The new number of messages with unread poll votes in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_poll_vote_count")] + public int UnreadPollVoteCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageContent.cs b/TdLib.Api/Objects/UpdateMessageContent.cs index b1aea78a..a3359cb3 100644 --- a/TdLib.Api/Objects/UpdateMessageContent.cs +++ b/TdLib.Api/Objects/UpdateMessageContent.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The message content has changed + /// + public class UpdateMessageContent : Update { /// - /// The message content has changed + /// Data type for serialization /// - public class UpdateMessageContent : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageContent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageContent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New message content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("new_content")] - public MessageContent NewContent { get; set; } - } + /// + /// New message content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("new_content")] + public MessageContent NewContent { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageContentOpened.cs b/TdLib.Api/Objects/UpdateMessageContentOpened.cs index ad7eb5a7..7704b572 100644 --- a/TdLib.Api/Objects/UpdateMessageContentOpened.cs +++ b/TdLib.Api/Objects/UpdateMessageContentOpened.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the self-destruct timer + /// + public class UpdateMessageContentOpened : Update { /// - /// The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the self-destruct timer + /// Data type for serialization /// - public class UpdateMessageContentOpened : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageContentOpened"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageContentOpened"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageEdited.cs b/TdLib.Api/Objects/UpdateMessageEdited.cs index ba015120..c3b0404c 100644 --- a/TdLib.Api/Objects/UpdateMessageEdited.cs +++ b/TdLib.Api/Objects/UpdateMessageEdited.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message was edited. Changes in the message content will come in a separate updateMessageContent + /// + public class UpdateMessageEdited : Update { /// - /// A message was edited. Changes in the message content will come in a separate updateMessageContent + /// Data type for serialization /// - public class UpdateMessageEdited : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageEdited"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageEdited"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Point in time (Unix timestamp) when the message was edited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edit_date")] - public int EditDate { get; set; } + /// + /// Point in time (Unix timestamp) when the message was edited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edit_date")] + public int EditDate { get; set; } - /// - /// New message reply markup; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("reply_markup")] - public ReplyMarkup ReplyMarkup { get; set; } - } + /// + /// New message reply markup; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("reply_markup")] + public ReplyMarkup ReplyMarkup { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageEphemeralContent.cs b/TdLib.Api/Objects/UpdateMessageEphemeralContent.cs index d1494c1c..ef33b161 100644 --- a/TdLib.Api/Objects/UpdateMessageEphemeralContent.cs +++ b/TdLib.Api/Objects/UpdateMessageEphemeralContent.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The message ephemeral content has changed + /// + public class UpdateMessageEphemeralContent : Update { /// - /// The message ephemeral content has changed + /// Data type for serialization /// - public class UpdateMessageEphemeralContent : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageEphemeralContent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageEphemeralContent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New ephemeral content of the message; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("ephemeral_content")] - public EphemeralMessageContent EphemeralContent { get; set; } - } + /// + /// New ephemeral content of the message; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("ephemeral_content")] + public EphemeralMessageContent EphemeralContent { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageFactCheck.cs b/TdLib.Api/Objects/UpdateMessageFactCheck.cs index ba2843d1..f652feda 100644 --- a/TdLib.Api/Objects/UpdateMessageFactCheck.cs +++ b/TdLib.Api/Objects/UpdateMessageFactCheck.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A fact-check added to a message was changed + /// + public class UpdateMessageFactCheck : Update { /// - /// A fact-check added to a message was changed + /// Data type for serialization /// - public class UpdateMessageFactCheck : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageFactCheck"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageFactCheck"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The new fact-check - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fact_check")] - public FactCheck FactCheck { get; set; } - } + /// + /// The new fact-check + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fact_check")] + public FactCheck FactCheck { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageInteractionInfo.cs b/TdLib.Api/Objects/UpdateMessageInteractionInfo.cs index 5493e670..30198d48 100644 --- a/TdLib.Api/Objects/UpdateMessageInteractionInfo.cs +++ b/TdLib.Api/Objects/UpdateMessageInteractionInfo.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The information about interactions with a message has changed + /// + public class UpdateMessageInteractionInfo : Update { /// - /// The information about interactions with a message has changed + /// Data type for serialization /// - public class UpdateMessageInteractionInfo : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageInteractionInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageInteractionInfo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// New information about interactions with the message; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("interaction_info")] - public MessageInteractionInfo InteractionInfo { get; set; } - } + /// + /// New information about interactions with the message; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("interaction_info")] + public MessageInteractionInfo InteractionInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageIsPinned.cs b/TdLib.Api/Objects/UpdateMessageIsPinned.cs index b114742b..74799ea0 100644 --- a/TdLib.Api/Objects/UpdateMessageIsPinned.cs +++ b/TdLib.Api/Objects/UpdateMessageIsPinned.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The message pinned state was changed + /// + public class UpdateMessageIsPinned : Update { /// - /// The message pinned state was changed + /// Data type for serialization /// - public class UpdateMessageIsPinned : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageIsPinned"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageIsPinned"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// The message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// True, if the message is pinned - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_pinned")] - public bool IsPinned { get; set; } - } + /// + /// True, if the message is pinned + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_pinned")] + public bool IsPinned { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageLiveLocationViewed.cs b/TdLib.Api/Objects/UpdateMessageLiveLocationViewed.cs index b408d362..1dfa2ec5 100644 --- a/TdLib.Api/Objects/UpdateMessageLiveLocationViewed.cs +++ b/TdLib.Api/Objects/UpdateMessageLiveLocationViewed.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message with a live location was viewed. When the update is received, the application is expected to update the live location + /// + public class UpdateMessageLiveLocationViewed : Update { /// - /// A message with a live location was viewed. When the update is received, the application is expected to update the live location + /// Data type for serialization /// - public class UpdateMessageLiveLocationViewed : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageLiveLocationViewed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageLiveLocationViewed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat with the live location message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat with the live location message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message with live location - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the message with live location + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageMentionRead.cs b/TdLib.Api/Objects/UpdateMessageMentionRead.cs index 87d50b33..36742a89 100644 --- a/TdLib.Api/Objects/UpdateMessageMentionRead.cs +++ b/TdLib.Api/Objects/UpdateMessageMentionRead.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message with an unread mention was read + /// + public class UpdateMessageMentionRead : Update { /// - /// A message with an unread mention was read + /// Data type for serialization /// - public class UpdateMessageMentionRead : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageMentionRead"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageMentionRead"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The new number of unread mention messages left in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_mention_count")] - public int UnreadMentionCount { get; set; } - } + /// + /// The new number of unread mention messages left in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_mention_count")] + public int UnreadMentionCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageReaction.cs b/TdLib.Api/Objects/UpdateMessageReaction.cs index add00bac..62e2406c 100644 --- a/TdLib.Api/Objects/UpdateMessageReaction.cs +++ b/TdLib.Api/Objects/UpdateMessageReaction.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// User changed its reactions on a message with public reactions; for bots only + /// + public class UpdateMessageReaction : Update { /// - /// User changed its reactions on a message with public reactions; for bots only + /// Data type for serialization /// - public class UpdateMessageReaction : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageReaction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Identifier of the user or chat that changed reactions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("actor_id")] - public MessageSender ActorId { get; set; } + /// + /// Identifier of the user or chat that changed reactions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("actor_id")] + public MessageSender ActorId { get; set; } - /// - /// Point in time (Unix timestamp) when the reactions were changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the reactions were changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// Old list of chosen reactions - /// - [JsonProperty("old_reaction_types", ItemConverterType = typeof(Converter))] - public ReactionType[] OldReactionTypes { get; set; } + /// + /// Old list of chosen reactions + /// + [JsonProperty("old_reaction_types", ItemConverterType = typeof(Converter))] + public ReactionType[] OldReactionTypes { get; set; } - /// - /// New list of chosen reactions - /// - [JsonProperty("new_reaction_types", ItemConverterType = typeof(Converter))] - public ReactionType[] NewReactionTypes { get; set; } - } + /// + /// New list of chosen reactions + /// + [JsonProperty("new_reaction_types", ItemConverterType = typeof(Converter))] + public ReactionType[] NewReactionTypes { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageReactions.cs b/TdLib.Api/Objects/UpdateMessageReactions.cs index 654ccc18..c623812c 100644 --- a/TdLib.Api/Objects/UpdateMessageReactions.cs +++ b/TdLib.Api/Objects/UpdateMessageReactions.cs @@ -2,59 +2,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Reactions added to a message with anonymous reactions have changed; for bots only + /// + public class UpdateMessageReactions : Update { /// - /// Reactions added to a message with anonymous reactions have changed; for bots only + /// Data type for serialization /// - public class UpdateMessageReactions : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageReactions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Point in time (Unix timestamp) when the reactions were changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } + /// + /// Point in time (Unix timestamp) when the reactions were changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } - /// - /// The list of reactions added to the message - /// - [JsonProperty("reactions", ItemConverterType = typeof(Converter))] - public MessageReaction[] Reactions { get; set; } - } + /// + /// The list of reactions added to the message + /// + [JsonProperty("reactions", ItemConverterType = typeof(Converter))] + public MessageReaction[] Reactions { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageSendAcknowledged.cs b/TdLib.Api/Objects/UpdateMessageSendAcknowledged.cs index d13b2aa4..3936f168 100644 --- a/TdLib.Api/Objects/UpdateMessageSendAcknowledged.cs +++ b/TdLib.Api/Objects/UpdateMessageSendAcknowledged.cs @@ -2,47 +2,46 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully. + /// This update is sent only if the option "use_quick_ack" is set to true. This update may be sent multiple times for the same message + /// + public class UpdateMessageSendAcknowledged : Update { /// - /// A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully. - /// This update is sent only if the option "use_quick_ack" is set to true. This update may be sent multiple times for the same message + /// Data type for serialization /// - public class UpdateMessageSendAcknowledged : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageSendAcknowledged"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageSendAcknowledged"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat identifier of the sent message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// The chat identifier of the sent message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// A temporary message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// A temporary message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageSendFailed.cs b/TdLib.Api/Objects/UpdateMessageSendFailed.cs index fc1a7ab5..cbeaa539 100644 --- a/TdLib.Api/Objects/UpdateMessageSendFailed.cs +++ b/TdLib.Api/Objects/UpdateMessageSendFailed.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update + /// + public class UpdateMessageSendFailed : Update { /// - /// A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update + /// Data type for serialization /// - public class UpdateMessageSendFailed : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageSendFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageSendFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The failed to send message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// The failed to send message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// The previous temporary message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_message_id")] - public long OldMessageId { get; set; } + /// + /// The previous temporary message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_message_id")] + public long OldMessageId { get; set; } - /// - /// The cause of the message sending failure - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } - } + /// + /// The cause of the message sending failure + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageSendSucceeded.cs b/TdLib.Api/Objects/UpdateMessageSendSucceeded.cs index aad811c1..0541b16d 100644 --- a/TdLib.Api/Objects/UpdateMessageSendSucceeded.cs +++ b/TdLib.Api/Objects/UpdateMessageSendSucceeded.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message has been successfully sent + /// + public class UpdateMessageSendSucceeded : Update { /// - /// A message has been successfully sent + /// Data type for serialization /// - public class UpdateMessageSendSucceeded : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageSendSucceeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageSendSucceeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The sent message. Almost any field of the new message can be different from the corresponding field of the original message. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// The sent message. Almost any field of the new message can be different from the corresponding field of the original message. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// The previous temporary message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_message_id")] - public long OldMessageId { get; set; } - } + /// + /// The previous temporary message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_message_id")] + public long OldMessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageSuggestedPostInfo.cs b/TdLib.Api/Objects/UpdateMessageSuggestedPostInfo.cs index ea9c2e40..29dcf885 100644 --- a/TdLib.Api/Objects/UpdateMessageSuggestedPostInfo.cs +++ b/TdLib.Api/Objects/UpdateMessageSuggestedPostInfo.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Information about suggested post of a message was changed + /// + public class UpdateMessageSuggestedPostInfo : Update { /// - /// Information about suggested post of a message was changed + /// Data type for serialization /// - public class UpdateMessageSuggestedPostInfo : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageSuggestedPostInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageSuggestedPostInfo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The new information about the suggested post - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("suggested_post_info")] - public SuggestedPostInfo SuggestedPostInfo { get; set; } - } + /// + /// The new information about the suggested post + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("suggested_post_info")] + public SuggestedPostInfo SuggestedPostInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateMessageUnreadReactions.cs b/TdLib.Api/Objects/UpdateMessageUnreadReactions.cs index 7fe9750a..d315c619 100644 --- a/TdLib.Api/Objects/UpdateMessageUnreadReactions.cs +++ b/TdLib.Api/Objects/UpdateMessageUnreadReactions.cs @@ -2,59 +2,58 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of unread reactions added to a message was changed + /// + public class UpdateMessageUnreadReactions : Update { /// - /// The list of unread reactions added to a message was changed + /// Data type for serialization /// - public class UpdateMessageUnreadReactions : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateMessageUnreadReactions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateMessageUnreadReactions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Message identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Message identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// The new list of unread reactions - /// - [JsonProperty("unread_reactions", ItemConverterType = typeof(Converter))] - public UnreadReaction[] UnreadReactions { get; set; } + /// + /// The new list of unread reactions + /// + [JsonProperty("unread_reactions", ItemConverterType = typeof(Converter))] + public UnreadReaction[] UnreadReactions { get; set; } - /// - /// The new number of messages with unread reactions in the chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_reaction_count")] - public int UnreadReactionCount { get; set; } - } + /// + /// The new number of messages with unread reactions in the chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_reaction_count")] + public int UnreadReactionCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewBusinessCallbackQuery.cs b/TdLib.Api/Objects/UpdateNewBusinessCallbackQuery.cs index 5a12d450..686387d4 100644 --- a/TdLib.Api/Objects/UpdateNewBusinessCallbackQuery.cs +++ b/TdLib.Api/Objects/UpdateNewBusinessCallbackQuery.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming callback query from a business message; for bots only + /// + public class UpdateNewBusinessCallbackQuery : Update { /// - /// A new incoming callback query from a business message; for bots only + /// Data type for serialization /// - public class UpdateNewBusinessCallbackQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewBusinessCallbackQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewBusinessCallbackQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the user who sent the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } + /// + /// Identifier of the user who sent the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } - /// - /// Unique identifier of the business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection_id")] - public string ConnectionId { get; set; } + /// + /// Unique identifier of the business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connection_id")] + public string ConnectionId { get; set; } - /// - /// The message from the business account from which the query originated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public BusinessMessage Message { get; set; } + /// + /// The message from the business account from which the query originated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public BusinessMessage Message { get; set; } - /// - /// An identifier uniquely corresponding to the chat a message was sent to - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("chat_instance")] - public long ChatInstance { get; set; } + /// + /// An identifier uniquely corresponding to the chat a message was sent to + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("chat_instance")] + public long ChatInstance { get; set; } - /// - /// Query payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public CallbackQueryPayload Payload { get; set; } - } + /// + /// Query payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public CallbackQueryPayload Payload { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewBusinessMessage.cs b/TdLib.Api/Objects/UpdateNewBusinessMessage.cs index 2d81d621..e85c9360 100644 --- a/TdLib.Api/Objects/UpdateNewBusinessMessage.cs +++ b/TdLib.Api/Objects/UpdateNewBusinessMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new message was added to a business account; for bots only + /// + public class UpdateNewBusinessMessage : Update { /// - /// A new message was added to a business account; for bots only + /// Data type for serialization /// - public class UpdateNewBusinessMessage : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewBusinessMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewBusinessMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the business connection - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("connection_id")] - public string ConnectionId { get; set; } + /// + /// Unique identifier of the business connection + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("connection_id")] + public string ConnectionId { get; set; } - /// - /// The new message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public BusinessMessage Message { get; set; } - } + /// + /// The new message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public BusinessMessage Message { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewCallSignalingData.cs b/TdLib.Api/Objects/UpdateNewCallSignalingData.cs index 99180bf3..b4e42fc4 100644 --- a/TdLib.Api/Objects/UpdateNewCallSignalingData.cs +++ b/TdLib.Api/Objects/UpdateNewCallSignalingData.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// New call signaling data arrived + /// + public class UpdateNewCallSignalingData : Update { /// - /// New call signaling data arrived + /// Data type for serialization /// - public class UpdateNewCallSignalingData : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewCallSignalingData"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewCallSignalingData"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The call identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("call_id")] - public int CallId { get; set; } + /// + /// The call identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("call_id")] + public int CallId { get; set; } - /// - /// The data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public byte[] Data { get; set; } - } + /// + /// The data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public byte[] Data { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewCallbackQuery.cs b/TdLib.Api/Objects/UpdateNewCallbackQuery.cs index 61b2d4b9..d74715d3 100644 --- a/TdLib.Api/Objects/UpdateNewCallbackQuery.cs +++ b/TdLib.Api/Objects/UpdateNewCallbackQuery.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming callback query; for bots only + /// + public class UpdateNewCallbackQuery : Update { /// - /// A new incoming callback query; for bots only + /// Data type for serialization /// - public class UpdateNewCallbackQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewCallbackQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewCallbackQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the user who sent the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } + /// + /// Identifier of the user who sent the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } - /// - /// Identifier of the chat where the query was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat where the query was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the message from which the query originated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } + /// + /// Identifier of the message from which the query originated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } - /// - /// Identifier that uniquely corresponds to the chat to which the message was sent - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("chat_instance")] - public long ChatInstance { get; set; } + /// + /// Identifier that uniquely corresponds to the chat to which the message was sent + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("chat_instance")] + public long ChatInstance { get; set; } - /// - /// Query payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public CallbackQueryPayload Payload { get; set; } - } + /// + /// Query payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public CallbackQueryPayload Payload { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewChat.cs b/TdLib.Api/Objects/UpdateNewChat.cs index d0095a3f..39aa7658 100644 --- a/TdLib.Api/Objects/UpdateNewChat.cs +++ b/TdLib.Api/Objects/UpdateNewChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates + /// + public class UpdateNewChat : Update { /// - /// A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates + /// Data type for serialization /// - public class UpdateNewChat : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat")] - public Chat Chat { get; set; } - } + /// + /// The chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat")] + public Chat Chat { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewChatJoinRequest.cs b/TdLib.Api/Objects/UpdateNewChatJoinRequest.cs index 2c83b6cf..5ab3f043 100644 --- a/TdLib.Api/Objects/UpdateNewChatJoinRequest.cs +++ b/TdLib.Api/Objects/UpdateNewChatJoinRequest.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A user sent a join request to a chat; for bots only + /// + public class UpdateNewChatJoinRequest : Update { /// - /// A user sent a join request to a chat; for bots only + /// Data type for serialization /// - public class UpdateNewChatJoinRequest : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewChatJoinRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewChatJoinRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Join request - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("request")] - public ChatJoinRequest Request { get; set; } + /// + /// Join request + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("request")] + public ChatJoinRequest Request { get; set; } - /// - /// Chat identifier of the private chat with the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_chat_id")] - public long UserChatId { get; set; } + /// + /// Chat identifier of the private chat with the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_chat_id")] + public long UserChatId { get; set; } - /// - /// The invite link, which was used to send join request; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invite_link")] - public ChatInviteLink InviteLink { get; set; } + /// + /// The invite link, which was used to send join request; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invite_link")] + public ChatInviteLink InviteLink { get; set; } - /// - /// Identifier of the join request query, which can be used in answerChatJoinRequestQuery; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("query_id")] - public long QueryId { get; set; } - } + /// + /// Identifier of the join request query, which can be used in answerChatJoinRequestQuery; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("query_id")] + public long QueryId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewChosenInlineResult.cs b/TdLib.Api/Objects/UpdateNewChosenInlineResult.cs index 81e3efe9..3a86754f 100644 --- a/TdLib.Api/Objects/UpdateNewChosenInlineResult.cs +++ b/TdLib.Api/Objects/UpdateNewChosenInlineResult.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The user has chosen a result of an inline query; for bots only + /// + public class UpdateNewChosenInlineResult : Update { /// - /// The user has chosen a result of an inline query; for bots only + /// Data type for serialization /// - public class UpdateNewChosenInlineResult : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewChosenInlineResult"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewChosenInlineResult"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user who sent the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } + /// + /// Identifier of the user who sent the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } - /// - /// User location; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_location")] - public Location UserLocation { get; set; } + /// + /// User location; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_location")] + public Location UserLocation { get; set; } - /// - /// Text of the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Text of the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Identifier of the chosen result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("result_id")] - public string ResultId { get; set; } + /// + /// Identifier of the chosen result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("result_id")] + public string ResultId { get; set; } - /// - /// Identifier of the sent inline message, if known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } - } + /// + /// Identifier of the sent inline message, if known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewCustomEvent.cs b/TdLib.Api/Objects/UpdateNewCustomEvent.cs index cc3f4082..e55cdb8a 100644 --- a/TdLib.Api/Objects/UpdateNewCustomEvent.cs +++ b/TdLib.Api/Objects/UpdateNewCustomEvent.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming event; for bots only + /// + public class UpdateNewCustomEvent : Update { /// - /// A new incoming event; for bots only + /// Data type for serialization /// - public class UpdateNewCustomEvent : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewCustomEvent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewCustomEvent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A JSON-serialized event - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("event")] - public string Event { get; set; } - } + /// + /// A JSON-serialized event + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("event")] + public string Event { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewCustomQuery.cs b/TdLib.Api/Objects/UpdateNewCustomQuery.cs index e468478b..4857e89c 100644 --- a/TdLib.Api/Objects/UpdateNewCustomQuery.cs +++ b/TdLib.Api/Objects/UpdateNewCustomQuery.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming query; for bots only + /// + public class UpdateNewCustomQuery : Update { /// - /// A new incoming query; for bots only + /// Data type for serialization /// - public class UpdateNewCustomQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewCustomQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewCustomQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// The query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// JSON-serialized query data - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("data")] - public string Data { get; set; } + /// + /// JSON-serialized query data + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("data")] + public string Data { get; set; } - /// - /// Query timeout - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("timeout")] - public int Timeout { get; set; } - } + /// + /// Query timeout + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("timeout")] + public int Timeout { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewGroupCallMessage.cs b/TdLib.Api/Objects/UpdateNewGroupCallMessage.cs index e6167da6..05a39423 100644 --- a/TdLib.Api/Objects/UpdateNewGroupCallMessage.cs +++ b/TdLib.Api/Objects/UpdateNewGroupCallMessage.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new message was received in a group call + /// + public class UpdateNewGroupCallMessage : Update { /// - /// A new message was received in a group call + /// Data type for serialization /// - public class UpdateNewGroupCallMessage : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewGroupCallMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewGroupCallMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// The message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public GroupCallMessage Message { get; set; } - } + /// + /// The message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public GroupCallMessage Message { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewGroupCallPaidReaction.cs b/TdLib.Api/Objects/UpdateNewGroupCallPaidReaction.cs index 5715c031..2ce70328 100644 --- a/TdLib.Api/Objects/UpdateNewGroupCallPaidReaction.cs +++ b/TdLib.Api/Objects/UpdateNewGroupCallPaidReaction.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new paid reaction was received in a live story group call + /// + public class UpdateNewGroupCallPaidReaction : Update { /// - /// A new paid reaction was received in a live story group call + /// Data type for serialization /// - public class UpdateNewGroupCallPaidReaction : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewGroupCallPaidReaction"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewGroupCallPaidReaction"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the group call - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Identifier of the group call + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// Identifier of the sender of the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the sender of the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// The number of Telegram Stars that were paid to send the reaction - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } - } + /// + /// The number of Telegram Stars that were paid to send the reaction + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewGuestQuery.cs b/TdLib.Api/Objects/UpdateNewGuestQuery.cs index 1a03f54a..82ef489a 100644 --- a/TdLib.Api/Objects/UpdateNewGuestQuery.cs +++ b/TdLib.Api/Objects/UpdateNewGuestQuery.cs @@ -2,52 +2,51 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming guest query; for bots only + /// + public class UpdateNewGuestQuery : Update { /// - /// A new incoming guest query; for bots only + /// Data type for serialization /// - public class UpdateNewGuestQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewGuestQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewGuestQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// The message with the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } + /// + /// The message with the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } - /// - /// The list of reference messages - /// - [JsonProperty("reference_messages", ItemConverterType = typeof(Converter))] - public Message[] ReferenceMessages { get; set; } - } + /// + /// The list of reference messages + /// + [JsonProperty("reference_messages", ItemConverterType = typeof(Converter))] + public Message[] ReferenceMessages { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewInlineCallbackQuery.cs b/TdLib.Api/Objects/UpdateNewInlineCallbackQuery.cs index a720c370..521c641c 100644 --- a/TdLib.Api/Objects/UpdateNewInlineCallbackQuery.cs +++ b/TdLib.Api/Objects/UpdateNewInlineCallbackQuery.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming callback query from a message sent via a bot; for bots only + /// + public class UpdateNewInlineCallbackQuery : Update { /// - /// A new incoming callback query from a message sent via a bot; for bots only + /// Data type for serialization /// - public class UpdateNewInlineCallbackQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewInlineCallbackQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewInlineCallbackQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the user who sent the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } + /// + /// Identifier of the user who sent the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } - /// - /// Identifier of the inline message from which the query originated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_message_id")] - public string InlineMessageId { get; set; } + /// + /// Identifier of the inline message from which the query originated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_message_id")] + public string InlineMessageId { get; set; } - /// - /// An identifier uniquely corresponding to the chat a message was sent to - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("chat_instance")] - public long ChatInstance { get; set; } + /// + /// An identifier uniquely corresponding to the chat a message was sent to + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("chat_instance")] + public long ChatInstance { get; set; } - /// - /// Query payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public CallbackQueryPayload Payload { get; set; } - } + /// + /// Query payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public CallbackQueryPayload Payload { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewInlineQuery.cs b/TdLib.Api/Objects/UpdateNewInlineQuery.cs index 2dd5cca8..ec2d88b4 100644 --- a/TdLib.Api/Objects/UpdateNewInlineQuery.cs +++ b/TdLib.Api/Objects/UpdateNewInlineQuery.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming inline query; for bots only + /// + public class UpdateNewInlineQuery : Update { /// - /// A new incoming inline query; for bots only + /// Data type for serialization /// - public class UpdateNewInlineQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewInlineQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewInlineQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the user who sent the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } + /// + /// Identifier of the user who sent the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } - /// - /// User location; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_location")] - public Location UserLocation { get; set; } + /// + /// User location; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_location")] + public Location UserLocation { get; set; } - /// - /// The type of the chat from which the query originated; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_type")] - public ChatType ChatType { get; set; } + /// + /// The type of the chat from which the query originated; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_type")] + public ChatType ChatType { get; set; } - /// - /// Text of the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("query")] - public string Query { get; set; } + /// + /// Text of the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("query")] + public string Query { get; set; } - /// - /// Offset of the first entry to return - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("offset")] - public string Offset { get; set; } - } + /// + /// Offset of the first entry to return + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("offset")] + public string Offset { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewMessage.cs b/TdLib.Api/Objects/UpdateNewMessage.cs index 0e0f36d0..c0c6eea1 100644 --- a/TdLib.Api/Objects/UpdateNewMessage.cs +++ b/TdLib.Api/Objects/UpdateNewMessage.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new message was received; can also be an outgoing message + /// + public class UpdateNewMessage : Update { /// - /// A new message was received; can also be an outgoing message + /// Data type for serialization /// - public class UpdateNewMessage : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public Message Message { get; set; } - } + /// + /// The new message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public Message Message { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewOauthRequest.cs b/TdLib.Api/Objects/UpdateNewOauthRequest.cs index 5f24896d..98aa6360 100644 --- a/TdLib.Api/Objects/UpdateNewOauthRequest.cs +++ b/TdLib.Api/Objects/UpdateNewOauthRequest.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// An OAuth authorization request was received + /// + public class UpdateNewOauthRequest : Update { /// - /// An OAuth authorization request was received + /// Data type for serialization /// - public class UpdateNewOauthRequest : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewOauthRequest"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewOauthRequest"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A domain of the URL where the user authorizes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("domain")] - public string Domain { get; set; } + /// + /// A domain of the URL where the user authorizes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("domain")] + public string Domain { get; set; } - /// - /// Human-readable description of a country and a region from which the authorization is performed, based on the IP address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public string Location { get; set; } + /// + /// Human-readable description of a country and a region from which the authorization is performed, based on the IP address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public string Location { get; set; } - /// - /// The URL to pass to getOauthLinkInfo; the link is valid for 60 seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } - } + /// + /// The URL to pass to getOauthLinkInfo; the link is valid for 60 seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewPreCheckoutQuery.cs b/TdLib.Api/Objects/UpdateNewPreCheckoutQuery.cs index 49eb4cf3..d2989a7e 100644 --- a/TdLib.Api/Objects/UpdateNewPreCheckoutQuery.cs +++ b/TdLib.Api/Objects/UpdateNewPreCheckoutQuery.cs @@ -2,81 +2,80 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming pre-checkout query; for bots only. Contains full information about a checkout + /// + public class UpdateNewPreCheckoutQuery : Update { /// - /// A new incoming pre-checkout query; for bots only. Contains full information about a checkout + /// Data type for serialization /// - public class UpdateNewPreCheckoutQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewPreCheckoutQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewPreCheckoutQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the user who sent the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } + /// + /// Identifier of the user who sent the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } - /// - /// Currency for the product price - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } + /// + /// Currency for the product price + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } - /// - /// Total price for the product, in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_amount")] - public long TotalAmount { get; set; } + /// + /// Total price for the product, in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_amount")] + public long TotalAmount { get; set; } - /// - /// Invoice payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_payload")] - public byte[] InvoicePayload { get; set; } + /// + /// Invoice payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_payload")] + public byte[] InvoicePayload { get; set; } - /// - /// Identifier of a shipping option chosen by the user; may be empty if not applicable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shipping_option_id")] - public string ShippingOptionId { get; set; } + /// + /// Identifier of a shipping option chosen by the user; may be empty if not applicable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shipping_option_id")] + public string ShippingOptionId { get; set; } - /// - /// Information about the order; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order_info")] - public OrderInfo OrderInfo { get; set; } - } + /// + /// Information about the order; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order_info")] + public OrderInfo OrderInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNewShippingQuery.cs b/TdLib.Api/Objects/UpdateNewShippingQuery.cs index e6b258c0..e2f13245 100644 --- a/TdLib.Api/Objects/UpdateNewShippingQuery.cs +++ b/TdLib.Api/Objects/UpdateNewShippingQuery.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new incoming shipping query; for bots only. Only for invoices with flexible price + /// + public class UpdateNewShippingQuery : Update { /// - /// A new incoming shipping query; for bots only. Only for invoices with flexible price + /// Data type for serialization /// - public class UpdateNewShippingQuery : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNewShippingQuery"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNewShippingQuery"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique query identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique query identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Identifier of the user who sent the query - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_user_id")] - public long SenderUserId { get; set; } + /// + /// Identifier of the user who sent the query + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_user_id")] + public long SenderUserId { get; set; } - /// - /// Invoice payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("invoice_payload")] - public string InvoicePayload { get; set; } + /// + /// Invoice payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("invoice_payload")] + public string InvoicePayload { get; set; } - /// - /// User shipping address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shipping_address")] - public Address ShippingAddress { get; set; } - } + /// + /// User shipping address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shipping_address")] + public Address ShippingAddress { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNotification.cs b/TdLib.Api/Objects/UpdateNotification.cs index 709c77bc..56d41bac 100644 --- a/TdLib.Api/Objects/UpdateNotification.cs +++ b/TdLib.Api/Objects/UpdateNotification.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A notification was changed + /// + public class UpdateNotification : Update { /// - /// A notification was changed + /// Data type for serialization /// - public class UpdateNotification : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNotification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNotification"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique notification group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_group_id")] - public int NotificationGroupId { get; set; } + /// + /// Unique notification group identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_group_id")] + public int NotificationGroupId { get; set; } - /// - /// Changed notification - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification")] - public Notification Notification { get; set; } - } + /// + /// Changed notification + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification")] + public Notification Notification { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateNotificationGroup.cs b/TdLib.Api/Objects/UpdateNotificationGroup.cs index 8f116ac3..ffdcf31f 100644 --- a/TdLib.Api/Objects/UpdateNotificationGroup.cs +++ b/TdLib.Api/Objects/UpdateNotificationGroup.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A list of active notifications in a notification group has changed + /// + public class UpdateNotificationGroup : Update { /// - /// A list of active notifications in a notification group has changed + /// Data type for serialization /// - public class UpdateNotificationGroup : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateNotificationGroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateNotificationGroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique notification group identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_group_id")] - public int NotificationGroupId { get; set; } + /// + /// Unique notification group identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_group_id")] + public int NotificationGroupId { get; set; } - /// - /// New type of the notification group - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public NotificationGroupType Type { get; set; } + /// + /// New type of the notification group + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public NotificationGroupType Type { get; set; } - /// - /// Identifier of a chat to which all notifications in the group belong - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of a chat to which all notifications in the group belong + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Chat identifier, which notification settings must be applied to the added notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings_chat_id")] - public long NotificationSettingsChatId { get; set; } + /// + /// Chat identifier, which notification settings must be applied to the added notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings_chat_id")] + public long NotificationSettingsChatId { get; set; } - /// - /// Identifier of the notification sound to be played; 0 if sound is disabled - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("notification_sound_id")] - public long NotificationSoundId { get; set; } + /// + /// Identifier of the notification sound to be played; 0 if sound is disabled + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("notification_sound_id")] + public long NotificationSoundId { get; set; } - /// - /// Total number of unread notifications in the group, can be bigger than number of active notifications - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Total number of unread notifications in the group, can be bigger than number of active notifications + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// List of added group notifications, sorted by notification identifier - /// - [JsonProperty("added_notifications", ItemConverterType = typeof(Converter))] - public Notification[] AddedNotifications { get; set; } + /// + /// List of added group notifications, sorted by notification identifier + /// + [JsonProperty("added_notifications", ItemConverterType = typeof(Converter))] + public Notification[] AddedNotifications { get; set; } - /// - /// Identifiers of removed group notifications, sorted by notification identifier - /// - [JsonProperty("removed_notification_ids", ItemConverterType = typeof(Converter))] - public int[] RemovedNotificationIds { get; set; } - } + /// + /// Identifiers of removed group notifications, sorted by notification identifier + /// + [JsonProperty("removed_notification_ids", ItemConverterType = typeof(Converter))] + public int[] RemovedNotificationIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateOption.cs b/TdLib.Api/Objects/UpdateOption.cs index 89aadc86..abe7a8ed 100644 --- a/TdLib.Api/Objects/UpdateOption.cs +++ b/TdLib.Api/Objects/UpdateOption.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// An option changed its value + /// + public class UpdateOption : Update { /// - /// An option changed its value + /// Data type for serialization /// - public class UpdateOption : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateOption"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateOption"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The option name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// The option name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// The new option value - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public OptionValue Value { get; set; } - } + /// + /// The new option value + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public OptionValue Value { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateOwnedGramCount.cs b/TdLib.Api/Objects/UpdateOwnedGramCount.cs index c3a6c8b0..54758b77 100644 --- a/TdLib.Api/Objects/UpdateOwnedGramCount.cs +++ b/TdLib.Api/Objects/UpdateOwnedGramCount.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The number of TON Grams owned by the current user has changed + /// + public class UpdateOwnedGramCount : Update { /// - /// The number of TON Grams owned by the current user has changed + /// Data type for serialization /// - public class UpdateOwnedGramCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateOwnedGramCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateOwnedGramCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new amount of owned Grams; in the smallest units of the cryptocurrency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gram_amount")] - public long GramAmount { get; set; } - } + /// + /// The new amount of owned Grams; in the smallest units of the cryptocurrency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gram_amount")] + public long GramAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateOwnedStarCount.cs b/TdLib.Api/Objects/UpdateOwnedStarCount.cs index 43df5bb4..eb38a53b 100644 --- a/TdLib.Api/Objects/UpdateOwnedStarCount.cs +++ b/TdLib.Api/Objects/UpdateOwnedStarCount.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The number of Telegram Stars owned by the current user has changed + /// + public class UpdateOwnedStarCount : Update { /// - /// The number of Telegram Stars owned by the current user has changed + /// Data type for serialization /// - public class UpdateOwnedStarCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateOwnedStarCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateOwnedStarCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new amount of owned Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_amount")] - public StarAmount StarAmount { get; set; } - } + /// + /// The new amount of owned Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_amount")] + public StarAmount StarAmount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdatePaidMediaPurchased.cs b/TdLib.Api/Objects/UpdatePaidMediaPurchased.cs index 5d90d662..974f79dd 100644 --- a/TdLib.Api/Objects/UpdatePaidMediaPurchased.cs +++ b/TdLib.Api/Objects/UpdatePaidMediaPurchased.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Paid media were purchased by a user; for bots only + /// + public class UpdatePaidMediaPurchased : Update { /// - /// Paid media were purchased by a user; for bots only + /// Data type for serialization /// - public class UpdatePaidMediaPurchased : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updatePaidMediaPurchased"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updatePaidMediaPurchased"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Bot-specified payload for the paid media - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } - } + /// + /// Bot-specified payload for the paid media + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdatePendingMessage.cs b/TdLib.Api/Objects/UpdatePendingMessage.cs index e90bb762..c605f3e6 100644 --- a/TdLib.Api/Objects/UpdatePendingMessage.cs +++ b/TdLib.Api/Objects/UpdatePendingMessage.cs @@ -2,75 +2,74 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, + /// replace any other pending message with the same draft_id with animation, and be deleted whenever any incoming message or a pending message with another draft_id is received in the message thread + /// + public class UpdatePendingMessage : Update { /// - /// A new pending text or rich message was received in a chat with a bot. The message must be shown in the chat for at most getOption("pending_text_message_period") seconds, - /// replace any other pending message with the same draft_id with animation, and be deleted whenever any incoming message or a pending message with another draft_id is received in the message thread + /// Data type for serialization /// - public class UpdatePendingMessage : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updatePendingMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updatePendingMessage"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The forum topic identifier in which the message will be sent; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// The forum topic identifier in which the message will be sent; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// Unique identifier of the message draft within the message thread - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("draft_id")] - public long DraftId { get; set; } + /// + /// Unique identifier of the message draft within the message thread + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("draft_id")] + public long DraftId { get; set; } - /// - /// True, if a button that calls stopPendingMessage to stop further message generation must be shown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_stop")] - public bool CanStop { get; set; } + /// + /// True, if a button that calls stopPendingMessage to stop further message generation must be shown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_stop")] + public bool CanStop { get; set; } - /// - /// True, if the pending message must not be automatically deleted when the user presses the Stop button - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("keep_on_stop")] - public bool KeepOnStop { get; set; } + /// + /// True, if the pending message must not be automatically deleted when the user presses the Stop button + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("keep_on_stop")] + public bool KeepOnStop { get; set; } - /// - /// Content of the message; always of the type messageText or messageRichMessage - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } - } + /// + /// Content of the message; always of the type messageText or messageRichMessage + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdatePoll.cs b/TdLib.Api/Objects/UpdatePoll.cs index 09a4a11b..8cabf90f 100644 --- a/TdLib.Api/Objects/UpdatePoll.cs +++ b/TdLib.Api/Objects/UpdatePoll.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A poll was updated; for bots only + /// + public class UpdatePoll : Update { /// - /// A poll was updated; for bots only + /// Data type for serialization /// - public class UpdatePoll : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updatePoll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updatePoll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("poll")] - public Poll Poll { get; set; } - } + /// + /// New data about the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("poll")] + public Poll Poll { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdatePollAnswer.cs b/TdLib.Api/Objects/UpdatePollAnswer.cs index da27cf73..a6f2099c 100644 --- a/TdLib.Api/Objects/UpdatePollAnswer.cs +++ b/TdLib.Api/Objects/UpdatePollAnswer.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A user changed the answer to a poll; for bots only + /// + public class UpdatePollAnswer : Update { /// - /// A user changed the answer to a poll; for bots only + /// Data type for serialization /// - public class UpdatePollAnswer : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updatePollAnswer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updatePollAnswer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique poll identifier - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("poll_id")] - public long PollId { get; set; } + /// + /// Unique poll identifier + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("poll_id")] + public long PollId { get; set; } - /// - /// Identifier of the message sender that changed the answer to the poll - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voter_id")] - public MessageSender VoterId { get; set; } + /// + /// Identifier of the message sender that changed the answer to the poll + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voter_id")] + public MessageSender VoterId { get; set; } - /// - /// Unique identifiers of answer options, that were chosen by the user - /// - [JsonProperty("option_ids", ItemConverterType = typeof(Converter))] - public string[] OptionIds { get; set; } + /// + /// Unique identifiers of answer options, that were chosen by the user + /// + [JsonProperty("option_ids", ItemConverterType = typeof(Converter))] + public string[] OptionIds { get; set; } - /// - /// 0-based identifiers of answer options, that were chosen by the user - /// - [JsonProperty("option_positions", ItemConverterType = typeof(Converter))] - public int[] OptionPositions { get; set; } - } + /// + /// 0-based identifiers of answer options, that were chosen by the user + /// + [JsonProperty("option_positions", ItemConverterType = typeof(Converter))] + public int[] OptionPositions { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateProfileAccentColors.cs b/TdLib.Api/Objects/UpdateProfileAccentColors.cs index bea18fd4..4f5916ea 100644 --- a/TdLib.Api/Objects/UpdateProfileAccentColors.cs +++ b/TdLib.Api/Objects/UpdateProfileAccentColors.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of supported accent colors for user profiles has changed + /// + public class UpdateProfileAccentColors : Update { /// - /// The list of supported accent colors for user profiles has changed + /// Data type for serialization /// - public class UpdateProfileAccentColors : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateProfileAccentColors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateProfileAccentColors"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information about supported colors - /// - [JsonProperty("colors", ItemConverterType = typeof(Converter))] - public ProfileAccentColor[] Colors { get; set; } + /// + /// Information about supported colors + /// + [JsonProperty("colors", ItemConverterType = typeof(Converter))] + public ProfileAccentColor[] Colors { get; set; } - /// - /// The list of accent color identifiers, which can be set through setProfileAccentColor and setChatProfileAccentColor. The colors must be shown in the specified order - /// - [JsonProperty("available_accent_color_ids", ItemConverterType = typeof(Converter))] - public int[] AvailableAccentColorIds { get; set; } - } + /// + /// The list of accent color identifiers, which can be set through setProfileAccentColor and setChatProfileAccentColor. The colors must be shown in the specified order + /// + [JsonProperty("available_accent_color_ids", ItemConverterType = typeof(Converter))] + public int[] AvailableAccentColorIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateQuickReplyShortcut.cs b/TdLib.Api/Objects/UpdateQuickReplyShortcut.cs index e94058ee..eb59a40c 100644 --- a/TdLib.Api/Objects/UpdateQuickReplyShortcut.cs +++ b/TdLib.Api/Objects/UpdateQuickReplyShortcut.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Basic information about a quick reply shortcut has changed. This update is guaranteed to come before the quick shortcut name is returned to the application + /// + public class UpdateQuickReplyShortcut : Update { /// - /// Basic information about a quick reply shortcut has changed. This update is guaranteed to come before the quick shortcut name is returned to the application + /// Data type for serialization /// - public class UpdateQuickReplyShortcut : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateQuickReplyShortcut"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateQuickReplyShortcut"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut")] - public QuickReplyShortcut Shortcut { get; set; } - } + /// + /// New data about the shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut")] + public QuickReplyShortcut Shortcut { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateQuickReplyShortcutDeleted.cs b/TdLib.Api/Objects/UpdateQuickReplyShortcutDeleted.cs index 6da9b1b7..51399a29 100644 --- a/TdLib.Api/Objects/UpdateQuickReplyShortcutDeleted.cs +++ b/TdLib.Api/Objects/UpdateQuickReplyShortcutDeleted.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A quick reply shortcut and all its messages were deleted + /// + public class UpdateQuickReplyShortcutDeleted : Update { /// - /// A quick reply shortcut and all its messages were deleted + /// Data type for serialization /// - public class UpdateQuickReplyShortcutDeleted : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateQuickReplyShortcutDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateQuickReplyShortcutDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the deleted shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } - } + /// + /// The identifier of the deleted shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateQuickReplyShortcutMessages.cs b/TdLib.Api/Objects/UpdateQuickReplyShortcutMessages.cs index 2ac9105e..4d30a49d 100644 --- a/TdLib.Api/Objects/UpdateQuickReplyShortcutMessages.cs +++ b/TdLib.Api/Objects/UpdateQuickReplyShortcutMessages.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of quick reply shortcut messages has changed + /// + public class UpdateQuickReplyShortcutMessages : Update { /// - /// The list of quick reply shortcut messages has changed + /// Data type for serialization /// - public class UpdateQuickReplyShortcutMessages : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateQuickReplyShortcutMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateQuickReplyShortcutMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The identifier of the shortcut - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("shortcut_id")] - public int ShortcutId { get; set; } + /// + /// The identifier of the shortcut + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("shortcut_id")] + public int ShortcutId { get; set; } - /// - /// The new list of quick reply messages for the shortcut in order from the first to the last sent - /// - [JsonProperty("messages", ItemConverterType = typeof(Converter))] - public QuickReplyMessage[] Messages { get; set; } - } + /// + /// The new list of quick reply messages for the shortcut in order from the first to the last sent + /// + [JsonProperty("messages", ItemConverterType = typeof(Converter))] + public QuickReplyMessage[] Messages { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateQuickReplyShortcuts.cs b/TdLib.Api/Objects/UpdateQuickReplyShortcuts.cs index 25cdeb8c..1402e3c9 100644 --- a/TdLib.Api/Objects/UpdateQuickReplyShortcuts.cs +++ b/TdLib.Api/Objects/UpdateQuickReplyShortcuts.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of quick reply shortcuts has changed + /// + public class UpdateQuickReplyShortcuts : Update { /// - /// The list of quick reply shortcuts has changed + /// Data type for serialization /// - public class UpdateQuickReplyShortcuts : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateQuickReplyShortcuts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateQuickReplyShortcuts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of identifiers of quick reply shortcuts - /// - [JsonProperty("shortcut_ids", ItemConverterType = typeof(Converter))] - public int[] ShortcutIds { get; set; } - } + /// + /// The new list of identifiers of quick reply shortcuts + /// + [JsonProperty("shortcut_ids", ItemConverterType = typeof(Converter))] + public int[] ShortcutIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateReactionNotificationSettings.cs b/TdLib.Api/Objects/UpdateReactionNotificationSettings.cs index 517a18c2..222a3b78 100644 --- a/TdLib.Api/Objects/UpdateReactionNotificationSettings.cs +++ b/TdLib.Api/Objects/UpdateReactionNotificationSettings.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Notification settings for reactions were updated + /// + public class UpdateReactionNotificationSettings : Update { /// - /// Notification settings for reactions were updated + /// Data type for serialization /// - public class UpdateReactionNotificationSettings : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateReactionNotificationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateReactionNotificationSettings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new notification settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ReactionNotificationSettings NotificationSettings { get; set; } - } + /// + /// The new notification settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ReactionNotificationSettings NotificationSettings { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateRecentStickers.cs b/TdLib.Api/Objects/UpdateRecentStickers.cs index 0d546549..45441f88 100644 --- a/TdLib.Api/Objects/UpdateRecentStickers.cs +++ b/TdLib.Api/Objects/UpdateRecentStickers.cs @@ -2,45 +2,44 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of recently used stickers was updated + /// + public class UpdateRecentStickers : Update { /// - /// The list of recently used stickers was updated + /// Data type for serialization /// - public class UpdateRecentStickers : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateRecentStickers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateRecentStickers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the list of stickers attached to photo or video files was updated; otherwise, the list of sent stickers is updated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_attached")] - public bool IsAttached { get; set; } + /// + /// True, if the list of stickers attached to photo or video files was updated; otherwise, the list of sent stickers is updated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_attached")] + public bool IsAttached { get; set; } - /// - /// The new list of file identifiers of recently used stickers - /// - [JsonProperty("sticker_ids", ItemConverterType = typeof(Converter))] - public int[] StickerIds { get; set; } - } + /// + /// The new list of file identifiers of recently used stickers + /// + [JsonProperty("sticker_ids", ItemConverterType = typeof(Converter))] + public int[] StickerIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSavedAnimations.cs b/TdLib.Api/Objects/UpdateSavedAnimations.cs index 3f4906c2..a82f3e8d 100644 --- a/TdLib.Api/Objects/UpdateSavedAnimations.cs +++ b/TdLib.Api/Objects/UpdateSavedAnimations.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of saved animations was updated + /// + public class UpdateSavedAnimations : Update { /// - /// The list of saved animations was updated + /// Data type for serialization /// - public class UpdateSavedAnimations : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSavedAnimations"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSavedAnimations"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of file identifiers of saved animations - /// - [JsonProperty("animation_ids", ItemConverterType = typeof(Converter))] - public int[] AnimationIds { get; set; } - } + /// + /// The new list of file identifiers of saved animations + /// + [JsonProperty("animation_ids", ItemConverterType = typeof(Converter))] + public int[] AnimationIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSavedMessagesTags.cs b/TdLib.Api/Objects/UpdateSavedMessagesTags.cs index 592864b9..4d05da47 100644 --- a/TdLib.Api/Objects/UpdateSavedMessagesTags.cs +++ b/TdLib.Api/Objects/UpdateSavedMessagesTags.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Tags used in Saved Messages or a Saved Messages topic have changed + /// + public class UpdateSavedMessagesTags : Update { /// - /// Tags used in Saved Messages or a Saved Messages topic have changed + /// Data type for serialization /// - public class UpdateSavedMessagesTags : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSavedMessagesTags"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSavedMessagesTags"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of Saved Messages topic which tags were changed; 0 if tags for the whole chat has changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("saved_messages_topic_id")] - public long SavedMessagesTopicId { get; set; } + /// + /// Identifier of Saved Messages topic which tags were changed; 0 if tags for the whole chat has changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("saved_messages_topic_id")] + public long SavedMessagesTopicId { get; set; } - /// - /// The new tags - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("tags")] - public SavedMessagesTags Tags { get; set; } - } + /// + /// The new tags + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("tags")] + public SavedMessagesTags Tags { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSavedMessagesTopic.cs b/TdLib.Api/Objects/UpdateSavedMessagesTopic.cs index e006924f..9dfa0a2e 100644 --- a/TdLib.Api/Objects/UpdateSavedMessagesTopic.cs +++ b/TdLib.Api/Objects/UpdateSavedMessagesTopic.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Basic information about a Saved Messages topic has changed. This update is guaranteed to come before the topic identifier is returned to the application + /// + public class UpdateSavedMessagesTopic : Update { /// - /// Basic information about a Saved Messages topic has changed. This update is guaranteed to come before the topic identifier is returned to the application + /// Data type for serialization /// - public class UpdateSavedMessagesTopic : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSavedMessagesTopic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSavedMessagesTopic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic")] - public SavedMessagesTopic Topic { get; set; } - } + /// + /// New data about the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic")] + public SavedMessagesTopic Topic { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSavedMessagesTopicCount.cs b/TdLib.Api/Objects/UpdateSavedMessagesTopicCount.cs index 2b91aa0a..b3e11441 100644 --- a/TdLib.Api/Objects/UpdateSavedMessagesTopicCount.cs +++ b/TdLib.Api/Objects/UpdateSavedMessagesTopicCount.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Number of Saved Messages topics has changed + /// + public class UpdateSavedMessagesTopicCount : Update { /// - /// Number of Saved Messages topics has changed + /// Data type for serialization /// - public class UpdateSavedMessagesTopicCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSavedMessagesTopicCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSavedMessagesTopicCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of Saved Messages topics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_count")] - public int TopicCount { get; set; } - } + /// + /// Approximate total number of Saved Messages topics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_count")] + public int TopicCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSavedNotificationSounds.cs b/TdLib.Api/Objects/UpdateSavedNotificationSounds.cs index ce4daab3..ce7ab615 100644 --- a/TdLib.Api/Objects/UpdateSavedNotificationSounds.cs +++ b/TdLib.Api/Objects/UpdateSavedNotificationSounds.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of saved notification sounds was updated. This update may not be sent until information about a notification sound was requested for the first time + /// + public class UpdateSavedNotificationSounds : Update { /// - /// The list of saved notification sounds was updated. This update may not be sent until information about a notification sound was requested for the first time + /// Data type for serialization /// - public class UpdateSavedNotificationSounds : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSavedNotificationSounds"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSavedNotificationSounds"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of identifiers of saved notification sounds - /// - [JsonProperty("notification_sound_ids", ItemConverterType = typeof(Converter))] - public long[] NotificationSoundIds { get; set; } - } + /// + /// The new list of identifiers of saved notification sounds + /// + [JsonProperty("notification_sound_ids", ItemConverterType = typeof(Converter))] + public long[] NotificationSoundIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateScopeNotificationSettings.cs b/TdLib.Api/Objects/UpdateScopeNotificationSettings.cs index 16ecf444..1b6f6e8d 100644 --- a/TdLib.Api/Objects/UpdateScopeNotificationSettings.cs +++ b/TdLib.Api/Objects/UpdateScopeNotificationSettings.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Notification settings for some type of chats were updated + /// + public class UpdateScopeNotificationSettings : Update { /// - /// Notification settings for some type of chats were updated + /// Data type for serialization /// - public class UpdateScopeNotificationSettings : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateScopeNotificationSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateScopeNotificationSettings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Types of chats for which notification settings were updated - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("scope")] - public NotificationSettingsScope Scope { get; set; } + /// + /// Types of chats for which notification settings were updated + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("scope")] + public NotificationSettingsScope Scope { get; set; } - /// - /// The new notification settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("notification_settings")] - public ScopeNotificationSettings NotificationSettings { get; set; } - } + /// + /// The new notification settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("notification_settings")] + public ScopeNotificationSettings NotificationSettings { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSecretChat.cs b/TdLib.Api/Objects/UpdateSecretChat.cs index eea039aa..36c86ae5 100644 --- a/TdLib.Api/Objects/UpdateSecretChat.cs +++ b/TdLib.Api/Objects/UpdateSecretChat.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application + /// + public class UpdateSecretChat : Update { /// - /// Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application + /// Data type for serialization /// - public class UpdateSecretChat : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSecretChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSecretChat"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the secret chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("secret_chat")] - public SecretChat SecretChat { get; set; } - } + /// + /// New data about the secret chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("secret_chat")] + public SecretChat SecretChat { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateServiceNotification.cs b/TdLib.Api/Objects/UpdateServiceNotification.cs index 15e5d9a9..a01b0785 100644 --- a/TdLib.Api/Objects/UpdateServiceNotification.cs +++ b/TdLib.Api/Objects/UpdateServiceNotification.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification + /// + public class UpdateServiceNotification : Update { /// - /// A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification + /// Data type for serialization /// - public class UpdateServiceNotification : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateServiceNotification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateServiceNotification"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under notification; if user presses the second, all local data must be destroyed using Destroy method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public string Type { get; set; } + /// + /// Notification type. If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" must be shown under notification; if user presses the second, all local data must be destroyed using Destroy method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public string Type { get; set; } - /// - /// Notification content - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } - } + /// + /// Notification content + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSpeechRecognitionTrial.cs b/TdLib.Api/Objects/UpdateSpeechRecognitionTrial.cs index adb842f9..d766b35e 100644 --- a/TdLib.Api/Objects/UpdateSpeechRecognitionTrial.cs +++ b/TdLib.Api/Objects/UpdateSpeechRecognitionTrial.cs @@ -2,60 +2,59 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The parameters of speech recognition without Telegram Premium subscription have changed + /// + public class UpdateSpeechRecognitionTrial : Update { /// - /// The parameters of speech recognition without Telegram Premium subscription have changed + /// Data type for serialization /// - public class UpdateSpeechRecognitionTrial : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSpeechRecognitionTrial"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSpeechRecognitionTrial"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_media_duration")] - public int MaxMediaDuration { get; set; } + /// + /// The maximum allowed duration of media for speech recognition without Telegram Premium subscription, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_media_duration")] + public int MaxMediaDuration { get; set; } - /// - /// The total number of allowed speech recognitions per week; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("weekly_count")] - public int WeeklyCount { get; set; } + /// + /// The total number of allowed speech recognitions per week; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("weekly_count")] + public int WeeklyCount { get; set; } - /// - /// Number of left speech recognition attempts this week - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("left_count")] - public int LeftCount { get; set; } + /// + /// Number of left speech recognition attempts this week + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("left_count")] + public int LeftCount { get; set; } - /// - /// Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_reset_date")] - public int NextResetDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the weekly number of tries will reset; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_reset_date")] + public int NextResetDate { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSpeedLimitNotification.cs b/TdLib.Api/Objects/UpdateSpeedLimitNotification.cs index fbe8124c..3bcb39e1 100644 --- a/TdLib.Api/Objects/UpdateSpeedLimitNotification.cs +++ b/TdLib.Api/Objects/UpdateSpeedLimitNotification.cs @@ -2,40 +2,39 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a file being downloaded or uploaded is visible to the user. + /// Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium + /// + public class UpdateSpeedLimitNotification : Update { /// - /// Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a file being downloaded or uploaded is visible to the user. - /// Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium + /// Data type for serialization /// - public class UpdateSpeedLimitNotification : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSpeedLimitNotification"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSpeedLimitNotification"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if upload speed was limited; false, if download speed was limited - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_upload")] - public bool IsUpload { get; set; } - } + /// + /// True, if upload speed was limited; false, if download speed was limited + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_upload")] + public bool IsUpload { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStakeDiceState.cs b/TdLib.Api/Objects/UpdateStakeDiceState.cs index 4c812422..c2269dc7 100644 --- a/TdLib.Api/Objects/UpdateStakeDiceState.cs +++ b/TdLib.Api/Objects/UpdateStakeDiceState.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The stake dice state has changed + /// + public class UpdateStakeDiceState : Update { /// - /// The stake dice state has changed + /// Data type for serialization /// - public class UpdateStakeDiceState : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStakeDiceState"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStakeDiceState"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new state. The state can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("state")] - public StakeDiceState State { get; set; } - } + /// + /// The new state. The state can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public StakeDiceState State { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStarRevenueStatus.cs b/TdLib.Api/Objects/UpdateStarRevenueStatus.cs index 1bfdcedf..61108853 100644 --- a/TdLib.Api/Objects/UpdateStarRevenueStatus.cs +++ b/TdLib.Api/Objects/UpdateStarRevenueStatus.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The Telegram Star revenue earned by a user or a chat has changed. If Telegram Star transaction screen of the chat is opened, then getStarTransactions may be called to fetch new transactions + /// + public class UpdateStarRevenueStatus : Update { /// - /// The Telegram Star revenue earned by a user or a chat has changed. If Telegram Star transaction screen of the chat is opened, then getStarTransactions may be called to fetch new transactions + /// Data type for serialization /// - public class UpdateStarRevenueStatus : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStarRevenueStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStarRevenueStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the owner of the Telegram Stars - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the owner of the Telegram Stars + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// New Telegram Star revenue status - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public StarRevenueStatus Status { get; set; } - } + /// + /// New Telegram Star revenue status + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public StarRevenueStatus Status { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStickerSet.cs b/TdLib.Api/Objects/UpdateStickerSet.cs index a8585768..0f188dae 100644 --- a/TdLib.Api/Objects/UpdateStickerSet.cs +++ b/TdLib.Api/Objects/UpdateStickerSet.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A sticker set has changed + /// + public class UpdateStickerSet : Update { /// - /// A sticker set has changed + /// Data type for serialization /// - public class UpdateStickerSet : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStickerSet"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStickerSet"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The sticker set - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_set")] - public StickerSet StickerSet { get; set; } - } + /// + /// The sticker set + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_set")] + public StickerSet StickerSet { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStopMessageDraft.cs b/TdLib.Api/Objects/UpdateStopMessageDraft.cs index d933cbd5..24a3154c 100644 --- a/TdLib.Api/Objects/UpdateStopMessageDraft.cs +++ b/TdLib.Api/Objects/UpdateStopMessageDraft.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message draft generation was stopped by the user + /// + public class UpdateStopMessageDraft : Update { /// - /// A message draft generation was stopped by the user + /// Data type for serialization /// - public class UpdateStopMessageDraft : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStopMessageDraft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStopMessageDraft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Chat identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Chat identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// The forum topic identifier of the message draft - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("forum_topic_id")] - public int ForumTopicId { get; set; } + /// + /// The forum topic identifier of the message draft + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("forum_topic_id")] + public int ForumTopicId { get; set; } - /// - /// Identifier of the message draft within the message thread - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("draft_id")] - public long DraftId { get; set; } - } + /// + /// Identifier of the message draft within the message thread + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("draft_id")] + public long DraftId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStory.cs b/TdLib.Api/Objects/UpdateStory.cs index a2df6124..7942a78b 100644 --- a/TdLib.Api/Objects/UpdateStory.cs +++ b/TdLib.Api/Objects/UpdateStory.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A story was changed + /// + public class UpdateStory : Update { /// - /// A story was changed + /// Data type for serialization /// - public class UpdateStory : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStory"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStory"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new information about the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story")] - public Story Story { get; set; } - } + /// + /// The new information about the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story")] + public Story Story { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStoryDeleted.cs b/TdLib.Api/Objects/UpdateStoryDeleted.cs index 3b644882..3a0fa09a 100644 --- a/TdLib.Api/Objects/UpdateStoryDeleted.cs +++ b/TdLib.Api/Objects/UpdateStoryDeleted.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A story became inaccessible + /// + public class UpdateStoryDeleted : Update { /// - /// A story became inaccessible + /// Data type for serialization /// - public class UpdateStoryDeleted : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStoryDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStoryDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat that posted the story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_poster_chat_id")] - public long StoryPosterChatId { get; set; } + /// + /// Identifier of the chat that posted the story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_poster_chat_id")] + public long StoryPosterChatId { get; set; } - /// - /// Story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_id")] - public int StoryId { get; set; } - } + /// + /// Story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_id")] + public int StoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStoryListChatCount.cs b/TdLib.Api/Objects/UpdateStoryListChatCount.cs index 3b95e7c0..d04eb55a 100644 --- a/TdLib.Api/Objects/UpdateStoryListChatCount.cs +++ b/TdLib.Api/Objects/UpdateStoryListChatCount.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Number of chats in a story list has changed + /// + public class UpdateStoryListChatCount : Update { /// - /// Number of chats in a story list has changed + /// Data type for serialization /// - public class UpdateStoryListChatCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStoryListChatCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStoryListChatCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The story list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story_list")] - public StoryList StoryList { get; set; } + /// + /// The story list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story_list")] + public StoryList StoryList { get; set; } - /// - /// Approximate total number of chats with active stories in the list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_count")] - public int ChatCount { get; set; } - } + /// + /// Approximate total number of chats with active stories in the list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_count")] + public int ChatCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStoryPostFailed.cs b/TdLib.Api/Objects/UpdateStoryPostFailed.cs index 7a4e3130..c5c538b6 100644 --- a/TdLib.Api/Objects/UpdateStoryPostFailed.cs +++ b/TdLib.Api/Objects/UpdateStoryPostFailed.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A story failed to post. If the story posting is canceled, then updateStoryDeleted will be received instead of this update + /// + public class UpdateStoryPostFailed : Update { /// - /// A story failed to post. If the story posting is canceled, then updateStoryDeleted will be received instead of this update + /// Data type for serialization /// - public class UpdateStoryPostFailed : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStoryPostFailed"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStoryPostFailed"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The failed to post story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story")] - public Story Story { get; set; } + /// + /// The failed to post story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story")] + public Story Story { get; set; } - /// - /// The cause of the story posting failure - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error")] - public Error Error { get; set; } + /// + /// The cause of the story posting failure + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error")] + public Error Error { get; set; } - /// - /// Type of the error; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("error_type")] - public CanPostStoryResult ErrorType { get; set; } - } + /// + /// Type of the error; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("error_type")] + public CanPostStoryResult ErrorType { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStoryPostSucceeded.cs b/TdLib.Api/Objects/UpdateStoryPostSucceeded.cs index 50b25880..92a1de9f 100644 --- a/TdLib.Api/Objects/UpdateStoryPostSucceeded.cs +++ b/TdLib.Api/Objects/UpdateStoryPostSucceeded.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A story has been successfully posted + /// + public class UpdateStoryPostSucceeded : Update { /// - /// A story has been successfully posted + /// Data type for serialization /// - public class UpdateStoryPostSucceeded : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStoryPostSucceeded"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStoryPostSucceeded"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The posted story - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("story")] - public Story Story { get; set; } + /// + /// The posted story + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("story")] + public Story Story { get; set; } - /// - /// The previous temporary story identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("old_story_id")] - public int OldStoryId { get; set; } - } + /// + /// The previous temporary story identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("old_story_id")] + public int OldStoryId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateStoryStealthMode.cs b/TdLib.Api/Objects/UpdateStoryStealthMode.cs index 64672f32..9384442d 100644 --- a/TdLib.Api/Objects/UpdateStoryStealthMode.cs +++ b/TdLib.Api/Objects/UpdateStoryStealthMode.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Story stealth mode settings have changed + /// + public class UpdateStoryStealthMode : Update { /// - /// Story stealth mode settings have changed + /// Data type for serialization /// - public class UpdateStoryStealthMode : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateStoryStealthMode"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateStoryStealthMode"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) until stealth mode is active; 0 if it is disabled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_until_date")] - public int ActiveUntilDate { get; set; } + /// + /// Point in time (Unix timestamp) until stealth mode is active; 0 if it is disabled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_until_date")] + public int ActiveUntilDate { get; set; } - /// - /// Point in time (Unix timestamp) when stealth mode can be enabled again; 0 if there is no active cooldown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("cooldown_until_date")] - public int CooldownUntilDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when stealth mode can be enabled again; 0 if there is no active cooldown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("cooldown_until_date")] + public int CooldownUntilDate { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSuggestedActions.cs b/TdLib.Api/Objects/UpdateSuggestedActions.cs index e2d904cc..f9bd9cf6 100644 --- a/TdLib.Api/Objects/UpdateSuggestedActions.cs +++ b/TdLib.Api/Objects/UpdateSuggestedActions.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of suggested to the user actions has changed + /// + public class UpdateSuggestedActions : Update { /// - /// The list of suggested to the user actions has changed + /// Data type for serialization /// - public class UpdateSuggestedActions : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSuggestedActions"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSuggestedActions"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Added suggested actions - /// - [JsonProperty("added_actions", ItemConverterType = typeof(Converter))] - public SuggestedAction[] AddedActions { get; set; } + /// + /// Added suggested actions + /// + [JsonProperty("added_actions", ItemConverterType = typeof(Converter))] + public SuggestedAction[] AddedActions { get; set; } - /// - /// Removed suggested actions - /// - [JsonProperty("removed_actions", ItemConverterType = typeof(Converter))] - public SuggestedAction[] RemovedActions { get; set; } - } + /// + /// Removed suggested actions + /// + [JsonProperty("removed_actions", ItemConverterType = typeof(Converter))] + public SuggestedAction[] RemovedActions { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSupergroup.cs b/TdLib.Api/Objects/UpdateSupergroup.cs index 4b371adc..aad500cf 100644 --- a/TdLib.Api/Objects/UpdateSupergroup.cs +++ b/TdLib.Api/Objects/UpdateSupergroup.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application + /// + public class UpdateSupergroup : Update { /// - /// Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application + /// Data type for serialization /// - public class UpdateSupergroup : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSupergroup"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSupergroup"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup")] - public Supergroup Supergroup { get; set; } - } + /// + /// New data about the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup")] + public Supergroup Supergroup { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateSupergroupFullInfo.cs b/TdLib.Api/Objects/UpdateSupergroupFullInfo.cs index 276d3053..75a3593a 100644 --- a/TdLib.Api/Objects/UpdateSupergroupFullInfo.cs +++ b/TdLib.Api/Objects/UpdateSupergroupFullInfo.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data in supergroupFullInfo has been changed + /// + public class UpdateSupergroupFullInfo : Update { /// - /// Some data in supergroupFullInfo has been changed + /// Data type for serialization /// - public class UpdateSupergroupFullInfo : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateSupergroupFullInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateSupergroupFullInfo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the supergroup or channel - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_id")] - public long SupergroupId { get; set; } + /// + /// Identifier of the supergroup or channel + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_id")] + public long SupergroupId { get; set; } - /// - /// New full information about the supergroup - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supergroup_full_info")] - public SupergroupFullInfo SupergroupFullInfo { get; set; } - } + /// + /// New full information about the supergroup + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supergroup_full_info")] + public SupergroupFullInfo SupergroupFullInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateTermsOfService.cs b/TdLib.Api/Objects/UpdateTermsOfService.cs index 5a062daa..9ef888bb 100644 --- a/TdLib.Api/Objects/UpdateTermsOfService.cs +++ b/TdLib.Api/Objects/UpdateTermsOfService.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason "Decline ToS update" + /// + public class UpdateTermsOfService : Update { /// - /// New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason "Decline ToS update" + /// Data type for serialization /// - public class UpdateTermsOfService : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateTermsOfService"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTermsOfService"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the terms of service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("terms_of_service_id")] - public string TermsOfServiceId { get; set; } + /// + /// Identifier of the terms of service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("terms_of_service_id")] + public string TermsOfServiceId { get; set; } - /// - /// The new terms of service - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("terms_of_service")] - public TermsOfService TermsOfService { get; set; } - } + /// + /// The new terms of service + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("terms_of_service")] + public TermsOfService TermsOfService { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateTextCompositionStyles.cs b/TdLib.Api/Objects/UpdateTextCompositionStyles.cs index 4cfd08a6..84726207 100644 --- a/TdLib.Api/Objects/UpdateTextCompositionStyles.cs +++ b/TdLib.Api/Objects/UpdateTextCompositionStyles.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The styles supported for text composition have changed + /// + public class UpdateTextCompositionStyles : Update { /// - /// The styles supported for text composition have changed + /// Data type for serialization /// - public class UpdateTextCompositionStyles : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateTextCompositionStyles"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTextCompositionStyles"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The new list of supported styles - /// - [JsonProperty("styles", ItemConverterType = typeof(Converter))] - public TextCompositionStyle[] Styles { get; set; } - } + /// + /// The new list of supported styles + /// + [JsonProperty("styles", ItemConverterType = typeof(Converter))] + public TextCompositionStyle[] Styles { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateTonWalletGaslessTransfersInfo.cs b/TdLib.Api/Objects/UpdateTonWalletGaslessTransfersInfo.cs new file mode 100644 index 00000000..8d4f806e --- /dev/null +++ b/TdLib.Api/Objects/UpdateTonWalletGaslessTransfersInfo.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class Update : Object + { + /// + /// The information about gasless transfers has changed + /// + public class UpdateTonWalletGaslessTransfersInfo : Update + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTonWalletGaslessTransfersInfo"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The new state of the wallet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("info")] + public TonWalletGaslessTransfersInfo Info { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpdateTonWalletState.cs b/TdLib.Api/Objects/UpdateTonWalletState.cs new file mode 100644 index 00000000..3ddde57c --- /dev/null +++ b/TdLib.Api/Objects/UpdateTonWalletState.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class Update : Object + { + /// + /// The state of the TON wallet of the current user has changed + /// + public class UpdateTonWalletState : Update + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTonWalletState"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The new state of the wallet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("state")] + public TonWalletState State { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpdateTonWalletTonConnectSession.cs b/TdLib.Api/Objects/UpdateTonWalletTonConnectSession.cs new file mode 100644 index 00000000..2c266bbd --- /dev/null +++ b/TdLib.Api/Objects/UpdateTonWalletTonConnectSession.cs @@ -0,0 +1,40 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class Update : Object + { + /// + /// A session of a TON Connect has changed + /// + public class UpdateTonWalletTonConnectSession : Update + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTonWalletTonConnectSession"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// The new state of the session + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("session")] + public TonConnectSession Session { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpdateTonWalletTonConnectSessionDisconnectRequired.cs b/TdLib.Api/Objects/UpdateTonWalletTonConnectSessionDisconnectRequired.cs new file mode 100644 index 00000000..60331dec --- /dev/null +++ b/TdLib.Api/Objects/UpdateTonWalletTonConnectSessionDisconnectRequired.cs @@ -0,0 +1,39 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + public partial class Update : Object + { + /// + /// TON Connect sessions must be disconnected in a regular way + /// + public class UpdateTonWalletTonConnectSessionDisconnectRequired : Update + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTonWalletTonConnectSessionDisconnectRequired"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifiers of the sessions + /// + [JsonProperty("session_ids", ItemConverterType = typeof(Converter))] + public long[] SessionIds { get; set; } + } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpdateTopicMessageCount.cs b/TdLib.Api/Objects/UpdateTopicMessageCount.cs index 69b5bbc0..6557fb73 100644 --- a/TdLib.Api/Objects/UpdateTopicMessageCount.cs +++ b/TdLib.Api/Objects/UpdateTopicMessageCount.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Number of messages in a topic has changed; for Saved Messages and channel direct messages chat topics only + /// + public class UpdateTopicMessageCount : Update { /// - /// Number of messages in a topic has changed; for Saved Messages and channel direct messages chat topics only + /// Data type for serialization /// - public class UpdateTopicMessageCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateTopicMessageCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTopicMessageCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat in topic of which the number of messages has changed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat in topic of which the number of messages has changed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("topic_id")] - public MessageTopic TopicId { get; set; } + /// + /// Identifier of the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("topic_id")] + public MessageTopic TopicId { get; set; } - /// - /// Approximate number of messages in the topic - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_count")] - public int MessageCount { get; set; } - } + /// + /// Approximate number of messages in the topic + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_count")] + public int MessageCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateTrendingStickerSets.cs b/TdLib.Api/Objects/UpdateTrendingStickerSets.cs index 958f4287..109fd376 100644 --- a/TdLib.Api/Objects/UpdateTrendingStickerSets.cs +++ b/TdLib.Api/Objects/UpdateTrendingStickerSets.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The list of trending sticker sets was updated or some of them were viewed + /// + public class UpdateTrendingStickerSets : Update { /// - /// The list of trending sticker sets was updated or some of them were viewed + /// Data type for serialization /// - public class UpdateTrendingStickerSets : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateTrendingStickerSets"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTrendingStickerSets"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Type of the affected stickers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_type")] - public StickerType StickerType { get; set; } + /// + /// Type of the affected stickers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_type")] + public StickerType StickerType { get; set; } - /// - /// The prefix of the list of trending sticker sets with the newest trending sticker sets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker_sets")] - public TrendingStickerSets StickerSets { get; set; } - } + /// + /// The prefix of the list of trending sticker sets with the newest trending sticker sets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker_sets")] + public TrendingStickerSets StickerSets { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateTrustedMiniAppBots.cs b/TdLib.Api/Objects/UpdateTrustedMiniAppBots.cs index 5fda420c..e5a5f201 100644 --- a/TdLib.Api/Objects/UpdateTrustedMiniAppBots.cs +++ b/TdLib.Api/Objects/UpdateTrustedMiniAppBots.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Lists of bots which Mini Apps must be allowed to read text from clipboard and must be opened without a warning + /// + public class UpdateTrustedMiniAppBots : Update { /// - /// Lists of bots which Mini Apps must be allowed to read text from clipboard and must be opened without a warning + /// Data type for serialization /// - public class UpdateTrustedMiniAppBots : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateTrustedMiniAppBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateTrustedMiniAppBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of user identifiers of the bots; the corresponding users may not be sent using updateUser updates and may not be accessible - /// - [JsonProperty("bot_user_ids", ItemConverterType = typeof(Converter))] - public long[] BotUserIds { get; set; } - } + /// + /// List of user identifiers of the bots; the corresponding users may not be sent using updateUser updates and may not be accessible + /// + [JsonProperty("bot_user_ids", ItemConverterType = typeof(Converter))] + public long[] BotUserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUnconfirmedSession.cs b/TdLib.Api/Objects/UpdateUnconfirmedSession.cs index 2cea1159..e1927178 100644 --- a/TdLib.Api/Objects/UpdateUnconfirmedSession.cs +++ b/TdLib.Api/Objects/UpdateUnconfirmedSession.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The first unconfirmed session has changed + /// + public class UpdateUnconfirmedSession : Update { /// - /// The first unconfirmed session has changed + /// Data type for serialization /// - public class UpdateUnconfirmedSession : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUnconfirmedSession"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUnconfirmedSession"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The unconfirmed session; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("session")] - public UnconfirmedSession Session { get; set; } + /// + /// The unconfirmed session; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("session")] + public UnconfirmedSession Session { get; set; } - /// - /// The total number of unconfirmed sessions - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unconfirmed_session_count")] - public int UnconfirmedSessionCount { get; set; } - } + /// + /// The total number of unconfirmed sessions + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unconfirmed_session_count")] + public int UnconfirmedSessionCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUnreadChatCount.cs b/TdLib.Api/Objects/UpdateUnreadChatCount.cs index 10f2193d..06dfba8e 100644 --- a/TdLib.Api/Objects/UpdateUnreadChatCount.cs +++ b/TdLib.Api/Objects/UpdateUnreadChatCount.cs @@ -2,74 +2,73 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used + /// + public class UpdateUnreadChatCount : Update { /// - /// Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used + /// Data type for serialization /// - public class UpdateUnreadChatCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUnreadChatCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUnreadChatCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat list with changed number of unread messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } + /// + /// The chat list with changed number of unread messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } - /// - /// Approximate total number of chats in the chat list - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of chats in the chat list + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// Total number of unread chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_count")] - public int UnreadCount { get; set; } + /// + /// Total number of unread chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_count")] + public int UnreadCount { get; set; } - /// - /// Total number of unread unmuted chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_unmuted_count")] - public int UnreadUnmutedCount { get; set; } + /// + /// Total number of unread unmuted chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_unmuted_count")] + public int UnreadUnmutedCount { get; set; } - /// - /// Total number of chats marked as unread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("marked_as_unread_count")] - public int MarkedAsUnreadCount { get; set; } + /// + /// Total number of chats marked as unread + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("marked_as_unread_count")] + public int MarkedAsUnreadCount { get; set; } - /// - /// Total number of unmuted chats marked as unread - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("marked_as_unread_unmuted_count")] - public int MarkedAsUnreadUnmutedCount { get; set; } - } + /// + /// Total number of unmuted chats marked as unread + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("marked_as_unread_unmuted_count")] + public int MarkedAsUnreadUnmutedCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUnreadMessageCount.cs b/TdLib.Api/Objects/UpdateUnreadMessageCount.cs index 413c3953..9689e9a0 100644 --- a/TdLib.Api/Objects/UpdateUnreadMessageCount.cs +++ b/TdLib.Api/Objects/UpdateUnreadMessageCount.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Number of unread messages in a chat list has changed. This update is sent only if the message database is used + /// + public class UpdateUnreadMessageCount : Update { /// - /// Number of unread messages in a chat list has changed. This update is sent only if the message database is used + /// Data type for serialization /// - public class UpdateUnreadMessageCount : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUnreadMessageCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUnreadMessageCount"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat list with changed number of unread messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_list")] - public ChatList ChatList { get; set; } + /// + /// The chat list with changed number of unread messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_list")] + public ChatList ChatList { get; set; } - /// - /// Total number of unread messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_count")] - public int UnreadCount { get; set; } + /// + /// Total number of unread messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_count")] + public int UnreadCount { get; set; } - /// - /// Total number of unread messages in unmuted chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unread_unmuted_count")] - public int UnreadUnmutedCount { get; set; } - } + /// + /// Total number of unread messages in unmuted chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unread_unmuted_count")] + public int UnreadUnmutedCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUser.cs b/TdLib.Api/Objects/UpdateUser.cs index d3c3ae81..02f136e6 100644 --- a/TdLib.Api/Objects/UpdateUser.cs +++ b/TdLib.Api/Objects/UpdateUser.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application + /// + public class UpdateUser : Update { /// - /// Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application + /// Data type for serialization /// - public class UpdateUser : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUser"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUser"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New data about the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user")] - public User User { get; set; } - } + /// + /// New data about the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user")] + public User User { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUserFullInfo.cs b/TdLib.Api/Objects/UpdateUserFullInfo.cs index 440e6e24..427e1a0c 100644 --- a/TdLib.Api/Objects/UpdateUserFullInfo.cs +++ b/TdLib.Api/Objects/UpdateUserFullInfo.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some data in userFullInfo has been changed + /// + public class UpdateUserFullInfo : Update { /// - /// Some data in userFullInfo has been changed + /// Data type for serialization /// - public class UpdateUserFullInfo : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUserFullInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUserFullInfo"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// New full information about the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_full_info")] - public UserFullInfo UserFullInfo { get; set; } - } + /// + /// New full information about the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_full_info")] + public UserFullInfo UserFullInfo { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUserPrivacySettingRules.cs b/TdLib.Api/Objects/UpdateUserPrivacySettingRules.cs index 230c5109..b5223d93 100644 --- a/TdLib.Api/Objects/UpdateUserPrivacySettingRules.cs +++ b/TdLib.Api/Objects/UpdateUserPrivacySettingRules.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Some privacy setting rules have been changed + /// + public class UpdateUserPrivacySettingRules : Update { /// - /// Some privacy setting rules have been changed + /// Data type for serialization /// - public class UpdateUserPrivacySettingRules : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUserPrivacySettingRules"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUserPrivacySettingRules"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The privacy setting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("setting")] - public UserPrivacySetting Setting { get; set; } + /// + /// The privacy setting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("setting")] + public UserPrivacySetting Setting { get; set; } - /// - /// New privacy rules - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rules")] - public UserPrivacySettingRules Rules { get; set; } - } + /// + /// New privacy rules + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rules")] + public UserPrivacySettingRules Rules { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUserStatus.cs b/TdLib.Api/Objects/UpdateUserStatus.cs index 8a491191..afc2577f 100644 --- a/TdLib.Api/Objects/UpdateUserStatus.cs +++ b/TdLib.Api/Objects/UpdateUserStatus.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// The user went online or offline + /// + public class UpdateUserStatus : Update { /// - /// The user went online or offline + /// Data type for serialization /// - public class UpdateUserStatus : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUserStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUserStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// New status of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public UserStatus Status { get; set; } - } + /// + /// New status of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public UserStatus Status { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateUserSubscription.cs b/TdLib.Api/Objects/UpdateUserSubscription.cs index ecd3163a..90eb995b 100644 --- a/TdLib.Api/Objects/UpdateUserSubscription.cs +++ b/TdLib.Api/Objects/UpdateUserSubscription.cs @@ -2,67 +2,66 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Subscription of a user to the bot was changed; for bots only + /// + public class UpdateUserSubscription : Update { /// - /// Subscription of a user to the bot was changed; for bots only + /// Data type for serialization /// - public class UpdateUserSubscription : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateUserSubscription"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateUserSubscription"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("user_id")] - public long UserId { get; set; } + /// + /// Identifier of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } - /// - /// Bot-specified subscription invoice payload - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("payload")] - public string Payload { get; set; } + /// + /// Bot-specified subscription invoice payload + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("payload")] + public string Payload { get; set; } - /// - /// True, if the subscription was canceled - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_canceled")] - public bool IsCanceled { get; set; } + /// + /// True, if the subscription was canceled + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_canceled")] + public bool IsCanceled { get; set; } - /// - /// True, if the subscription was restored - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_restored")] - public bool IsRestored { get; set; } + /// + /// True, if the subscription was restored + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_restored")] + public bool IsRestored { get; set; } - /// - /// True, if the payment for the subscription has failed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_payment_failed")] - public bool IsPaymentFailed { get; set; } - } + /// + /// True, if the payment for the subscription has failed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_payment_failed")] + public bool IsPaymentFailed { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateVideoPublished.cs b/TdLib.Api/Objects/UpdateVideoPublished.cs index b930bf5b..7a6f8be7 100644 --- a/TdLib.Api/Objects/UpdateVideoPublished.cs +++ b/TdLib.Api/Objects/UpdateVideoPublished.cs @@ -2,46 +2,45 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// An automatically scheduled message with video has been successfully sent after conversion + /// + public class UpdateVideoPublished : Update { /// - /// An automatically scheduled message with video has been successfully sent after conversion + /// Data type for serialization /// - public class UpdateVideoPublished : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateVideoPublished"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateVideoPublished"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the chat with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("chat_id")] - public long ChatId { get; set; } + /// + /// Identifier of the chat with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("chat_id")] + public long ChatId { get; set; } - /// - /// Identifier of the sent message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message_id")] - public long MessageId { get; set; } - } + /// + /// Identifier of the sent message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message_id")] + public long MessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateWebAppMessageSent.cs b/TdLib.Api/Objects/UpdateWebAppMessageSent.cs index 0439b44a..b0a3c7ba 100644 --- a/TdLib.Api/Objects/UpdateWebAppMessageSent.cs +++ b/TdLib.Api/Objects/UpdateWebAppMessageSent.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// A message was sent by an opened Web App, so the Web App needs to be closed + /// + public class UpdateWebAppMessageSent : Update { /// - /// A message was sent by an opened Web App, so the Web App needs to be closed + /// Data type for serialization /// - public class UpdateWebAppMessageSent : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateWebAppMessageSent"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateWebAppMessageSent"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of Web App launch - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("web_app_launch_id")] - public long WebAppLaunchId { get; set; } - } + /// + /// Identifier of Web App launch + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("web_app_launch_id")] + public long WebAppLaunchId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpdateWebBrowserSettings.cs b/TdLib.Api/Objects/UpdateWebBrowserSettings.cs index 277008bb..ef3cb074 100644 --- a/TdLib.Api/Objects/UpdateWebBrowserSettings.cs +++ b/TdLib.Api/Objects/UpdateWebBrowserSettings.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class Update : Object { - public partial class Update : Object + /// + /// Web browser settings have been updated + /// + public class UpdateWebBrowserSettings : Update { /// - /// Web browser settings have been updated + /// Data type for serialization /// - public class UpdateWebBrowserSettings : Update - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updateWebBrowserSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updateWebBrowserSettings"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// New settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("settings")] - public WebBrowserSettings Settings { get; set; } - } + /// + /// New settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("settings")] + public WebBrowserSettings Settings { get; set; } } } } diff --git a/TdLib.Api/Objects/Updates.cs b/TdLib.Api/Objects/Updates.cs index c545d5f3..b3faf396 100644 --- a/TdLib.Api/Objects/Updates.cs +++ b/TdLib.Api/Objects/Updates.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of updates /// - public static partial class TdApi + public partial class Updates : Object { /// - /// Contains a list of updates + /// Data type for serialization /// - public partial class Updates : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "updates"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "updates"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of updates - /// - [JsonProperty("updates", ItemConverterType = typeof(Converter))] - public Update[] Updates_ { get; set; } - } + /// + /// List of updates + /// + [JsonProperty("updates", ItemConverterType = typeof(Converter))] + public Update[] Updates_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradeGiftResult.cs b/TdLib.Api/Objects/UpgradeGiftResult.cs index 13f39192..9a93f43b 100644 --- a/TdLib.Api/Objects/UpgradeGiftResult.cs +++ b/TdLib.Api/Objects/UpgradeGiftResult.cs @@ -2,93 +2,92 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains result of gift upgrading /// - public static partial class TdApi + public partial class UpgradeGiftResult : Object { /// - /// Contains result of gift upgrading + /// Data type for serialization /// - public partial class UpgradeGiftResult : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradeGiftResult"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradeGiftResult"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift")] - public UpgradedGift Gift { get; set; } + /// + /// The upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift")] + public UpgradedGift Gift { get; set; } - /// - /// Unique identifier of the received gift for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("received_gift_id")] - public string ReceivedGiftId { get; set; } + /// + /// Unique identifier of the received gift for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("received_gift_id")] + public string ReceivedGiftId { get; set; } - /// - /// True, if the gift is displayed on the user's or the channel's profile page - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_saved")] - public bool IsSaved { get; set; } + /// + /// True, if the gift is displayed on the user's or the channel's profile page + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_saved")] + public bool IsSaved { get; set; } - /// - /// True, if the gift can be transferred to another owner - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_transferred")] - public bool CanBeTransferred { get; set; } + /// + /// True, if the gift can be transferred to another owner + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_transferred")] + public bool CanBeTransferred { get; set; } - /// - /// Number of Telegram Stars that must be paid to transfer the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("transfer_star_count")] - public long TransferStarCount { get; set; } + /// + /// Number of Telegram Stars that must be paid to transfer the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("transfer_star_count")] + public long TransferStarCount { get; set; } - /// - /// Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("drop_original_details_star_count")] - public long DropOriginalDetailsStarCount { get; set; } + /// + /// Number of Telegram Stars that must be paid to drop original details of the upgraded gift; 0 if not available + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("drop_original_details_star_count")] + public long DropOriginalDetailsStarCount { get; set; } - /// - /// Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_transfer_date")] - public int NextTransferDate { get; set; } + /// + /// Point in time (Unix timestamp) when the gift can be transferred to another owner; can be in the past; 0 if the gift can be transferred immediately or transfer isn't possible + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_transfer_date")] + public int NextTransferDate { get; set; } - /// - /// Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_resale_date")] - public int NextResaleDate { get; set; } + /// + /// Point in time (Unix timestamp) when the gift can be resold to another user; can be in the past; 0 if the gift can't be resold; only for the receiver of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_resale_date")] + public int NextResaleDate { get; set; } - /// - /// Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("export_date")] - public int ExportDate { get; set; } - } + /// + /// Point in time (Unix timestamp) when the gift can be transferred to the TON blockchain as an NFT; can be in the past + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("export_date")] + public int ExportDate { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGift.cs b/TdLib.Api/Objects/UpgradedGift.cs index bc52f290..6ccd1396 100644 --- a/TdLib.Api/Objects/UpgradedGift.cs +++ b/TdLib.Api/Objects/UpgradedGift.cs @@ -2,233 +2,232 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT /// - public static partial class TdApi + public partial class UpgradedGift : Object { /// - /// Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT - /// - public partial class UpgradedGift : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGift"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// Unique identifier of the gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// Unique identifier of the regular gift from which the gift was upgraded; may be 0 for short period of time for old gifts from database - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("regular_gift_id")] - public long RegularGiftId { get; set; } - - /// - /// Identifier of the chat that published the gift; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("publisher_chat_id")] - public long PublisherChatId { get; set; } - - /// - /// The title of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } - - /// - /// Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } - - /// - /// Unique number of the upgraded gift among gifts upgraded from the same gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("number")] - public int Number { get; set; } - - /// - /// Total number of gifts that were upgraded from the same gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_upgraded_count")] - public int TotalUpgradedCount { get; set; } - - /// - /// The maximum number of gifts that can be upgraded from the same gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_upgraded_count")] - public int MaxUpgradedCount { get; set; } - - /// - /// True, if the gift was used to craft another gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_burned")] - public bool IsBurned { get; set; } - - /// - /// True, if the gift was crafted from other gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_crafted")] - public bool IsCrafted { get; set; } - - /// - /// True, if the original gift could have been bought only by Telegram Premium subscribers - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_premium")] - public bool IsPremium { get; set; } - - /// - /// True, if the gift can be used to set a theme in a chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_theme_available")] - public bool IsThemeAvailable { get; set; } - - /// - /// Identifier of the chat for which the gift is used to set a theme; 0 if none or the gift isn't owned by the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("used_theme_chat_id")] - public long UsedThemeChatId { get; set; } - - /// - /// Identifier of the user or the chat to which the upgraded gift was assigned from blockchain; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("host_id")] - public MessageSender HostId { get; set; } - - /// - /// Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } - - /// - /// Address of the gift NFT owner in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_address")] - public string OwnerAddress { get; set; } - - /// - /// Name of the owner for the case when owner identifier and address aren't known - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_name")] - public string OwnerName { get; set; } - - /// - /// Address of the gift NFT in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_address")] - public string GiftAddress { get; set; } - - /// - /// Model of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("model")] - public UpgradedGiftModel Model { get; set; } - - /// - /// Symbol of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("symbol")] - public UpgradedGiftSymbol Symbol { get; set; } - - /// - /// Backdrop of the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("backdrop")] - public UpgradedGiftBackdrop Backdrop { get; set; } - - /// - /// Information about the originally sent gift; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("original_details")] - public UpgradedGiftOriginalDetails OriginalDetails { get; set; } - - /// - /// Colors that can be set for user's name, background of empty chat photo, replies to messages and link previews; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("colors")] - public UpgradedGiftColors Colors { get; set; } - - /// - /// Resale parameters of the gift; may be null if resale isn't possible - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("resale_parameters")] - public GiftResaleParameters ResaleParameters { get; set; } - - /// - /// True, if an offer to purchase the gift can be sent using sendGiftPurchaseOffer - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_send_purchase_offer")] - public bool CanSendPurchaseOffer { get; set; } - - /// - /// Probability that the gift adds to the chance of successful crafting of a new gift; 0 if the gift can't be used for crafting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("craft_probability_per_mille")] - public int CraftProbabilityPerMille { get; set; } - - /// - /// ISO 4217 currency code of the currency in which value of the gift is represented; may be empty if unavailable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value_currency")] - public string ValueCurrency { get; set; } - - /// - /// Estimated value of the gift; in the smallest units of the currency; 0 if unavailable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value_amount")] - public long ValueAmount { get; set; } - - /// - /// Estimated value of the gift in USD; in USD cents; 0 if unavailable - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value_usd_amount")] - public long ValueUsdAmount { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGift"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Unique identifier of the gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// Unique identifier of the regular gift from which the gift was upgraded; may be 0 for short period of time for old gifts from database + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("regular_gift_id")] + public long RegularGiftId { get; set; } + + /// + /// Identifier of the chat that published the gift; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("publisher_chat_id")] + public long PublisherChatId { get; set; } + + /// + /// The title of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } + + /// + /// Unique name of the upgraded gift that can be used with internalLinkTypeUpgradedGift or sendResoldGift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } + + /// + /// Unique number of the upgraded gift among gifts upgraded from the same gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("number")] + public int Number { get; set; } + + /// + /// Total number of gifts that were upgraded from the same gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_upgraded_count")] + public int TotalUpgradedCount { get; set; } + + /// + /// The maximum number of gifts that can be upgraded from the same gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_upgraded_count")] + public int MaxUpgradedCount { get; set; } + + /// + /// True, if the gift was used to craft another gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_burned")] + public bool IsBurned { get; set; } + + /// + /// True, if the gift was crafted from other gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_crafted")] + public bool IsCrafted { get; set; } + + /// + /// True, if the original gift could have been bought only by Telegram Premium subscribers + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_premium")] + public bool IsPremium { get; set; } + + /// + /// True, if the gift can be used to set a theme in a chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_theme_available")] + public bool IsThemeAvailable { get; set; } + + /// + /// Identifier of the chat for which the gift is used to set a theme; 0 if none or the gift isn't owned by the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("used_theme_chat_id")] + public long UsedThemeChatId { get; set; } + + /// + /// Identifier of the user or the chat to which the upgraded gift was assigned from blockchain; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("host_id")] + public MessageSender HostId { get; set; } + + /// + /// Identifier of the user or the chat that owns the upgraded gift; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } + + /// + /// Address of the gift NFT owner in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_address")] + public string OwnerAddress { get; set; } + + /// + /// Name of the owner for the case when owner identifier and address aren't known + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_name")] + public string OwnerName { get; set; } + + /// + /// Address of the gift NFT in TON blockchain; may be empty if none. Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_address")] + public string GiftAddress { get; set; } + + /// + /// Model of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("model")] + public UpgradedGiftModel Model { get; set; } + + /// + /// Symbol of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("symbol")] + public UpgradedGiftSymbol Symbol { get; set; } + + /// + /// Backdrop of the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("backdrop")] + public UpgradedGiftBackdrop Backdrop { get; set; } + + /// + /// Information about the originally sent gift; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("original_details")] + public UpgradedGiftOriginalDetails OriginalDetails { get; set; } + + /// + /// Colors that can be set for user's name, background of empty chat photo, replies to messages and link previews; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("colors")] + public UpgradedGiftColors Colors { get; set; } + + /// + /// Resale parameters of the gift; may be null if resale isn't possible + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("resale_parameters")] + public GiftResaleParameters ResaleParameters { get; set; } + + /// + /// True, if an offer to purchase the gift can be sent using sendGiftPurchaseOffer + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_send_purchase_offer")] + public bool CanSendPurchaseOffer { get; set; } + + /// + /// Probability that the gift adds to the chance of successful crafting of a new gift; 0 if the gift can't be used for crafting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("craft_probability_per_mille")] + public int CraftProbabilityPerMille { get; set; } + + /// + /// ISO 4217 currency code of the currency in which value of the gift is represented; may be empty if unavailable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value_currency")] + public string ValueCurrency { get; set; } + + /// + /// Estimated value of the gift; in the smallest units of the currency; 0 if unavailable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value_amount")] + public long ValueAmount { get; set; } + + /// + /// Estimated value of the gift in USD; in USD cents; 0 if unavailable + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value_usd_amount")] + public long ValueUsdAmount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeIdBackdrop.cs b/TdLib.Api/Objects/UpgradedGiftAttributeIdBackdrop.cs index a5c4a49d..3822b58b 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeIdBackdrop.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeIdBackdrop.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeId : Object { - public partial class UpgradedGiftAttributeId : Object + /// + /// Identifier of a gift backdrop + /// + public class UpgradedGiftAttributeIdBackdrop : UpgradedGiftAttributeId { /// - /// Identifier of a gift backdrop + /// Data type for serialization /// - public class UpgradedGiftAttributeIdBackdrop : UpgradedGiftAttributeId - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeIdBackdrop"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeIdBackdrop"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the backdrop - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("backdrop_id")] - public int BackdropId { get; set; } - } + /// + /// Identifier of the backdrop + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("backdrop_id")] + public int BackdropId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeIdModel.cs b/TdLib.Api/Objects/UpgradedGiftAttributeIdModel.cs index 6f9cf33c..37aaacfe 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeIdModel.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeIdModel.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeId : Object { - public partial class UpgradedGiftAttributeId : Object + /// + /// Contains identifier of an upgraded gift attribute to search for + /// + public class UpgradedGiftAttributeIdModel : UpgradedGiftAttributeId { /// - /// Contains identifier of an upgraded gift attribute to search for + /// Data type for serialization /// - public class UpgradedGiftAttributeIdModel : UpgradedGiftAttributeId - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeIdModel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeIdModel"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sticker representing the model - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sticker_id")] - public long StickerId { get; set; } - } + /// + /// Identifier of the sticker representing the model + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sticker_id")] + public long StickerId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeIdSymbol.cs b/TdLib.Api/Objects/UpgradedGiftAttributeIdSymbol.cs index 85877eb9..7068d086 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeIdSymbol.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeIdSymbol.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeId : Object { - public partial class UpgradedGiftAttributeId : Object + /// + /// Identifier of a gift symbol + /// + public class UpgradedGiftAttributeIdSymbol : UpgradedGiftAttributeId { /// - /// Identifier of a gift symbol + /// Data type for serialization /// - public class UpgradedGiftAttributeIdSymbol : UpgradedGiftAttributeId - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeIdSymbol"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeIdSymbol"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the sticker representing the symbol - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("sticker_id")] - public long StickerId { get; set; } - } + /// + /// Identifier of the sticker representing the symbol + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("sticker_id")] + public long StickerId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeRarityEpic.cs b/TdLib.Api/Objects/UpgradedGiftAttributeRarityEpic.cs index 8fbee569..ca7689a7 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeRarityEpic.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeRarityEpic.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeRarity : Object { - public partial class UpgradedGiftAttributeRarity : Object + /// + /// The attribute is epic + /// + public class UpgradedGiftAttributeRarityEpic : UpgradedGiftAttributeRarity { /// - /// The attribute is epic + /// Data type for serialization /// - public class UpgradedGiftAttributeRarityEpic : UpgradedGiftAttributeRarity - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeRarityEpic"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeRarityEpic"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeRarityLegendary.cs b/TdLib.Api/Objects/UpgradedGiftAttributeRarityLegendary.cs index d791def0..e1e305a8 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeRarityLegendary.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeRarityLegendary.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeRarity : Object { - public partial class UpgradedGiftAttributeRarity : Object + /// + /// The attribute is legendary + /// + public class UpgradedGiftAttributeRarityLegendary : UpgradedGiftAttributeRarity { /// - /// The attribute is legendary + /// Data type for serialization /// - public class UpgradedGiftAttributeRarityLegendary : UpgradedGiftAttributeRarity - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeRarityLegendary"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeRarityLegendary"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeRarityPerMille.cs b/TdLib.Api/Objects/UpgradedGiftAttributeRarityPerMille.cs index d66a385f..ac1673b4 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeRarityPerMille.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeRarityPerMille.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeRarity : Object { - public partial class UpgradedGiftAttributeRarity : Object + /// + /// Describes rarity of an upgraded gift attribute + /// + public class UpgradedGiftAttributeRarityPerMille : UpgradedGiftAttributeRarity { /// - /// Describes rarity of an upgraded gift attribute + /// Data type for serialization /// - public class UpgradedGiftAttributeRarityPerMille : UpgradedGiftAttributeRarity - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeRarityPerMille"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeRarityPerMille"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of upgraded gifts that receive this attribute for each 1000 gifts upgraded; if 0, then it can be shown as "<0.1%" - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("per_mille")] - public int PerMille { get; set; } - } + /// + /// The number of upgraded gifts that receive this attribute for each 1000 gifts upgraded; if 0, then it can be shown as "<0.1%" + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("per_mille")] + public int PerMille { get; set; } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeRarityRare.cs b/TdLib.Api/Objects/UpgradedGiftAttributeRarityRare.cs index d494a74b..f2b4382f 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeRarityRare.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeRarityRare.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeRarity : Object { - public partial class UpgradedGiftAttributeRarity : Object + /// + /// The attribute is rare + /// + public class UpgradedGiftAttributeRarityRare : UpgradedGiftAttributeRarity { /// - /// The attribute is rare + /// Data type for serialization /// - public class UpgradedGiftAttributeRarityRare : UpgradedGiftAttributeRarity - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeRarityRare"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeRarityRare"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftAttributeRarityUncommon.cs b/TdLib.Api/Objects/UpgradedGiftAttributeRarityUncommon.cs index 97dc8809..c0f6513c 100644 --- a/TdLib.Api/Objects/UpgradedGiftAttributeRarityUncommon.cs +++ b/TdLib.Api/Objects/UpgradedGiftAttributeRarityUncommon.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftAttributeRarity : Object { - public partial class UpgradedGiftAttributeRarity : Object + /// + /// The attribute is uncommon + /// + public class UpgradedGiftAttributeRarityUncommon : UpgradedGiftAttributeRarity { /// - /// The attribute is uncommon + /// Data type for serialization /// - public class UpgradedGiftAttributeRarityUncommon : UpgradedGiftAttributeRarity - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftAttributeRarityUncommon"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftAttributeRarityUncommon"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftBackdrop.cs b/TdLib.Api/Objects/UpgradedGiftBackdrop.cs index 13cd6c99..97adc24b 100644 --- a/TdLib.Api/Objects/UpgradedGiftBackdrop.cs +++ b/TdLib.Api/Objects/UpgradedGiftBackdrop.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a backdrop of an upgraded gift /// - public static partial class TdApi + public partial class UpgradedGiftBackdrop : Object { /// - /// Describes a backdrop of an upgraded gift + /// Data type for serialization /// - public partial class UpgradedGiftBackdrop : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftBackdrop"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftBackdrop"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the backdrop - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Unique identifier of the backdrop + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Name of the backdrop - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the backdrop + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// Colors of the backdrop - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("colors")] - public UpgradedGiftBackdropColors Colors { get; set; } + /// + /// Colors of the backdrop + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("colors")] + public UpgradedGiftBackdropColors Colors { get; set; } - /// - /// The rarity of the backdrop - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rarity")] - public UpgradedGiftAttributeRarity Rarity { get; set; } - } + /// + /// The rarity of the backdrop + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rarity")] + public UpgradedGiftAttributeRarity Rarity { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftBackdropColors.cs b/TdLib.Api/Objects/UpgradedGiftBackdropColors.cs index bd7b70a0..7a3d0b92 100644 --- a/TdLib.Api/Objects/UpgradedGiftBackdropColors.cs +++ b/TdLib.Api/Objects/UpgradedGiftBackdropColors.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes colors of a backdrop of an upgraded gift /// - public static partial class TdApi + public partial class UpgradedGiftBackdropColors : Object { /// - /// Describes colors of a backdrop of an upgraded gift + /// Data type for serialization /// - public partial class UpgradedGiftBackdropColors : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftBackdropColors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftBackdropColors"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A color in the center of the backdrop in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("center_color")] - public int CenterColor { get; set; } + /// + /// A color in the center of the backdrop in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("center_color")] + public int CenterColor { get; set; } - /// - /// A color on the edges of the backdrop in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("edge_color")] - public int EdgeColor { get; set; } + /// + /// A color on the edges of the backdrop in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("edge_color")] + public int EdgeColor { get; set; } - /// - /// A color to be applied for the symbol in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("symbol_color")] - public int SymbolColor { get; set; } + /// + /// A color to be applied for the symbol in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("symbol_color")] + public int SymbolColor { get; set; } - /// - /// A color for the text on the backdrop in the RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text_color")] - public int TextColor { get; set; } - } + /// + /// A color for the text on the backdrop in the RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text_color")] + public int TextColor { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftBackdropCount.cs b/TdLib.Api/Objects/UpgradedGiftBackdropCount.cs index 8e7b2c61..5385f305 100644 --- a/TdLib.Api/Objects/UpgradedGiftBackdropCount.cs +++ b/TdLib.Api/Objects/UpgradedGiftBackdropCount.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a backdrop of an upgraded gift /// - public static partial class TdApi + public partial class UpgradedGiftBackdropCount : Object { /// - /// Describes a backdrop of an upgraded gift + /// Data type for serialization /// - public partial class UpgradedGiftBackdropCount : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftBackdropCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftBackdropCount"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The backdrop - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("backdrop")] - public UpgradedGiftBackdrop Backdrop { get; set; } + /// + /// The backdrop + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("backdrop")] + public UpgradedGiftBackdrop Backdrop { get; set; } - /// - /// Total number of gifts with the symbol - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } - } + /// + /// Total number of gifts with the symbol + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftColors.cs b/TdLib.Api/Objects/UpgradedGiftColors.cs index d5aeaee2..b29d370b 100644 --- a/TdLib.Api/Objects/UpgradedGiftColors.cs +++ b/TdLib.Api/Objects/UpgradedGiftColors.cs @@ -2,77 +2,76 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about color scheme for user's name, background of empty chat photo, replies to messages and link previews /// - public static partial class TdApi + public partial class UpgradedGiftColors : Object { /// - /// Contains information about color scheme for user's name, background of empty chat photo, replies to messages and link previews + /// Data type for serialization /// - public partial class UpgradedGiftColors : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftColors"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftColors"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of the upgraded gift colors - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("id")] - public long Id { get; set; } + /// + /// Unique identifier of the upgraded gift colors + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("id")] + public long Id { get; set; } - /// - /// Custom emoji identifier of the model of the upgraded gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("model_custom_emoji_id")] - public long ModelCustomEmojiId { get; set; } + /// + /// Custom emoji identifier of the model of the upgraded gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("model_custom_emoji_id")] + public long ModelCustomEmojiId { get; set; } - /// - /// Custom emoji identifier of the symbol of the upgraded gift - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("symbol_custom_emoji_id")] - public long SymbolCustomEmojiId { get; set; } + /// + /// Custom emoji identifier of the symbol of the upgraded gift + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("symbol_custom_emoji_id")] + public long SymbolCustomEmojiId { get; set; } - /// - /// Accent color to use in light themes in RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("light_theme_accent_color")] - public int LightThemeAccentColor { get; set; } + /// + /// Accent color to use in light themes in RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("light_theme_accent_color")] + public int LightThemeAccentColor { get; set; } - /// - /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes - /// - [JsonProperty("light_theme_colors", ItemConverterType = typeof(Converter))] - public int[] LightThemeColors { get; set; } + /// + /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes + /// + [JsonProperty("light_theme_colors", ItemConverterType = typeof(Converter))] + public int[] LightThemeColors { get; set; } - /// - /// Accent color to use in dark themes in RGB format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("dark_theme_accent_color")] - public int DarkThemeAccentColor { get; set; } + /// + /// Accent color to use in dark themes in RGB format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("dark_theme_accent_color")] + public int DarkThemeAccentColor { get; set; } - /// - /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes - /// - [JsonProperty("dark_theme_colors", ItemConverterType = typeof(Converter))] - public int[] DarkThemeColors { get; set; } - } + /// + /// The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes + /// + [JsonProperty("dark_theme_colors", ItemConverterType = typeof(Converter))] + public int[] DarkThemeColors { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftModel.cs b/TdLib.Api/Objects/UpgradedGiftModel.cs index 3fc287bb..1affc788 100644 --- a/TdLib.Api/Objects/UpgradedGiftModel.cs +++ b/TdLib.Api/Objects/UpgradedGiftModel.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a model of an upgraded gift /// - public static partial class TdApi + public partial class UpgradedGiftModel : Object { /// - /// Describes a model of an upgraded gift + /// Data type for serialization /// - public partial class UpgradedGiftModel : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftModel"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftModel"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the model - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the model + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// The sticker representing the upgraded gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } + /// + /// The sticker representing the upgraded gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } - /// - /// The rarity of the model - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rarity")] - public UpgradedGiftAttributeRarity Rarity { get; set; } + /// + /// The rarity of the model + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rarity")] + public UpgradedGiftAttributeRarity Rarity { get; set; } - /// - /// True, if the model can be obtained only through gift crafting - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_crafted")] - public bool IsCrafted { get; set; } - } + /// + /// True, if the model can be obtained only through gift crafting + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_crafted")] + public bool IsCrafted { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftModelCount.cs b/TdLib.Api/Objects/UpgradedGiftModelCount.cs index 2ea0ebec..8f1ddd8b 100644 --- a/TdLib.Api/Objects/UpgradedGiftModelCount.cs +++ b/TdLib.Api/Objects/UpgradedGiftModelCount.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a model of an upgraded gift with the number of gifts found /// - public static partial class TdApi + public partial class UpgradedGiftModelCount : Object { /// - /// Describes a model of an upgraded gift with the number of gifts found + /// Data type for serialization /// - public partial class UpgradedGiftModelCount : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftModelCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftModelCount"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The model - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("model")] - public UpgradedGiftModel Model { get; set; } + /// + /// The model + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("model")] + public UpgradedGiftModel Model { get; set; } - /// - /// Total number of gifts with the model - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } - } + /// + /// Total number of gifts with the model + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftOriginBlockchain.cs b/TdLib.Api/Objects/UpgradedGiftOriginBlockchain.cs index 70b2b29e..65415d12 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginBlockchain.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginBlockchain.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftOrigin : Object { - public partial class UpgradedGiftOrigin : Object + /// + /// The gift was assigned from blockchain and isn't owned by the current user. The gift can't be transferred, resold or withdrawn to blockchain + /// + public class UpgradedGiftOriginBlockchain : UpgradedGiftOrigin { /// - /// The gift was assigned from blockchain and isn't owned by the current user. The gift can't be transferred, resold or withdrawn to blockchain + /// Data type for serialization /// - public class UpgradedGiftOriginBlockchain : UpgradedGiftOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginBlockchain"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginBlockchain"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftOriginCraft.cs b/TdLib.Api/Objects/UpgradedGiftOriginCraft.cs index 7d02b034..3b74c4f4 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginCraft.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginCraft.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftOrigin : Object { - public partial class UpgradedGiftOrigin : Object + /// + /// The gift was crafted from other gifts + /// + public class UpgradedGiftOriginCraft : UpgradedGiftOrigin { /// - /// The gift was crafted from other gifts + /// Data type for serialization /// - public class UpgradedGiftOriginCraft : UpgradedGiftOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginCraft"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginCraft"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftOriginOffer.cs b/TdLib.Api/Objects/UpgradedGiftOriginOffer.cs index 1f168f61..e33ce4c2 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginOffer.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginOffer.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftOrigin : Object { - public partial class UpgradedGiftOrigin : Object + /// + /// The gift was bought through an offer + /// + public class UpgradedGiftOriginOffer : UpgradedGiftOrigin { /// - /// The gift was bought through an offer + /// Data type for serialization /// - public class UpgradedGiftOriginOffer : UpgradedGiftOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginOffer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginOffer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Price paid for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } - } + /// + /// Price paid for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftOriginPrepaidUpgrade.cs b/TdLib.Api/Objects/UpgradedGiftOriginPrepaidUpgrade.cs index 19335eec..98d369f5 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginPrepaidUpgrade.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginPrepaidUpgrade.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftOrigin : Object { - public partial class UpgradedGiftOrigin : Object + /// + /// The sender or receiver of the message has paid for upgrade of the gift, which has been completed + /// + public class UpgradedGiftOriginPrepaidUpgrade : UpgradedGiftOrigin { /// - /// The sender or receiver of the message has paid for upgrade of the gift, which has been completed + /// Data type for serialization /// - public class UpgradedGiftOriginPrepaidUpgrade : UpgradedGiftOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginPrepaidUpgrade"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginPrepaidUpgrade"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftOriginResale.cs b/TdLib.Api/Objects/UpgradedGiftOriginResale.cs index daf84a94..f5dcc227 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginResale.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginResale.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftOrigin : Object { - public partial class UpgradedGiftOrigin : Object + /// + /// The gift was bought from another user + /// + public class UpgradedGiftOriginResale : UpgradedGiftOrigin { /// - /// The gift was bought from another user + /// Data type for serialization /// - public class UpgradedGiftOriginResale : UpgradedGiftOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginResale"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginResale"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Price paid for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("price")] - public GiftResalePrice Price { get; set; } - } + /// + /// Price paid for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("price")] + public GiftResalePrice Price { get; set; } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftOriginTransfer.cs b/TdLib.Api/Objects/UpgradedGiftOriginTransfer.cs index 96691a80..e555e45b 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginTransfer.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginTransfer.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftOrigin : Object { - public partial class UpgradedGiftOrigin : Object + /// + /// The gift was transferred from another owner + /// + public class UpgradedGiftOriginTransfer : UpgradedGiftOrigin { /// - /// The gift was transferred from another owner + /// Data type for serialization /// - public class UpgradedGiftOriginTransfer : UpgradedGiftOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginTransfer"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginTransfer"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftOriginUpgrade.cs b/TdLib.Api/Objects/UpgradedGiftOriginUpgrade.cs index 752de6f6..61f340e1 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginUpgrade.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginUpgrade.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UpgradedGiftOrigin : Object { - public partial class UpgradedGiftOrigin : Object + /// + /// Describes origin from which the upgraded gift was obtained + /// + public class UpgradedGiftOriginUpgrade : UpgradedGiftOrigin { /// - /// Describes origin from which the upgraded gift was obtained + /// Data type for serialization /// - public class UpgradedGiftOriginUpgrade : UpgradedGiftOrigin - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginUpgrade"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginUpgrade"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the message with the regular gift that was upgraded; may be 0 or an identifier of a deleted message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_message_id")] - public long GiftMessageId { get; set; } - } + /// + /// Identifier of the message with the regular gift that was upgraded; may be 0 or an identifier of a deleted message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_message_id")] + public long GiftMessageId { get; set; } } } } diff --git a/TdLib.Api/Objects/UpgradedGiftOriginalDetails.cs b/TdLib.Api/Objects/UpgradedGiftOriginalDetails.cs index d494d93b..a0c526a2 100644 --- a/TdLib.Api/Objects/UpgradedGiftOriginalDetails.cs +++ b/TdLib.Api/Objects/UpgradedGiftOriginalDetails.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes the original details about the gift /// - public static partial class TdApi + public partial class UpgradedGiftOriginalDetails : Object { /// - /// Describes the original details about the gift + /// Data type for serialization /// - public partial class UpgradedGiftOriginalDetails : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftOriginalDetails"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftOriginalDetails"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Identifier of the user or the chat that sent the gift; may be null if the gift was private - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sender_id")] - public MessageSender SenderId { get; set; } + /// + /// Identifier of the user or the chat that sent the gift; may be null if the gift was private + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sender_id")] + public MessageSender SenderId { get; set; } - /// - /// Identifier of the user or the chat that received the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("receiver_id")] - public MessageSender ReceiverId { get; set; } + /// + /// Identifier of the user or the chat that received the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("receiver_id")] + public MessageSender ReceiverId { get; set; } - /// - /// Message added to the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public FormattedText Text { get; set; } + /// + /// Message added to the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public FormattedText Text { get; set; } - /// - /// Point in time (Unix timestamp) when the gift was sent - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Point in time (Unix timestamp) when the gift was sent + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftSymbol.cs b/TdLib.Api/Objects/UpgradedGiftSymbol.cs index 2206bbff..83e6863e 100644 --- a/TdLib.Api/Objects/UpgradedGiftSymbol.cs +++ b/TdLib.Api/Objects/UpgradedGiftSymbol.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a symbol shown on the pattern of an upgraded gift /// - public static partial class TdApi + public partial class UpgradedGiftSymbol : Object { /// - /// Describes a symbol shown on the pattern of an upgraded gift + /// Data type for serialization /// - public partial class UpgradedGiftSymbol : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftSymbol"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftSymbol"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Name of the symbol - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("name")] - public string Name { get; set; } + /// + /// Name of the symbol + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("name")] + public string Name { get; set; } - /// - /// The sticker representing the symbol - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sticker")] - public Sticker Sticker { get; set; } + /// + /// The sticker representing the symbol + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sticker")] + public Sticker Sticker { get; set; } - /// - /// The rarity of the symbol - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rarity")] - public UpgradedGiftAttributeRarity Rarity { get; set; } - } + /// + /// The rarity of the symbol + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rarity")] + public UpgradedGiftAttributeRarity Rarity { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftSymbolCount.cs b/TdLib.Api/Objects/UpgradedGiftSymbolCount.cs index 0008d660..7b38ff3b 100644 --- a/TdLib.Api/Objects/UpgradedGiftSymbolCount.cs +++ b/TdLib.Api/Objects/UpgradedGiftSymbolCount.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a symbol shown on the pattern of an upgraded gift /// - public static partial class TdApi + public partial class UpgradedGiftSymbolCount : Object { /// - /// Describes a symbol shown on the pattern of an upgraded gift + /// Data type for serialization /// - public partial class UpgradedGiftSymbolCount : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftSymbolCount"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftSymbolCount"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The symbol - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("symbol")] - public UpgradedGiftSymbol Symbol { get; set; } + /// + /// The symbol + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("symbol")] + public UpgradedGiftSymbol Symbol { get; set; } - /// - /// Total number of gifts with the symbol - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } - } + /// + /// Total number of gifts with the symbol + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UpgradedGiftValueInfo.cs b/TdLib.Api/Objects/UpgradedGiftValueInfo.cs index 9acf8ab6..39153868 100644 --- a/TdLib.Api/Objects/UpgradedGiftValueInfo.cs +++ b/TdLib.Api/Objects/UpgradedGiftValueInfo.cs @@ -2,128 +2,127 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about value of an upgraded gift /// - public static partial class TdApi + public partial class UpgradedGiftValueInfo : Object { /// - /// Contains information about value of an upgraded gift - /// - public partial class UpgradedGiftValueInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "upgradedGiftValueInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// ISO 4217 currency code of the currency in which the prices are represented - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("currency")] - public string Currency { get; set; } - - /// - /// Estimated value of the gift; in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("value")] - public long Value { get; set; } - - /// - /// True, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_value_average")] - public bool IsValueAverage { get; set; } - - /// - /// Point in time (Unix timestamp) when the corresponding regular gift was originally purchased - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("initial_sale_date")] - public int InitialSaleDate { get; set; } - - /// - /// The Telegram Star amount that was paid for the gift - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("initial_sale_star_count")] - public long InitialSaleStarCount { get; set; } - - /// - /// Initial price of the gift; in the smallest units of the currency - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("initial_sale_price")] - public long InitialSalePrice { get; set; } - - /// - /// Point in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_sale_date")] - public int LastSaleDate { get; set; } - - /// - /// Last purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_sale_price")] - public long LastSalePrice { get; set; } - - /// - /// True, if the last sale was completed on Fragment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_last_sale_on_fragment")] - public bool IsLastSaleOnFragment { get; set; } - - /// - /// The current minimum price of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there are no such gifts - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minimum_price")] - public long MinimumPrice { get; set; } - - /// - /// The average sale price in the last month of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there were no such sales - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("average_sale_price")] - public long AverageSalePrice { get; set; } - - /// - /// Number of gifts upgraded from the same gift being resold on Telegram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("telegram_listed_gift_count")] - public int TelegramListedGiftCount { get; set; } - - /// - /// Number of gifts upgraded from the same gift being resold on Fragment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fragment_listed_gift_count")] - public int FragmentListedGiftCount { get; set; } - - /// - /// The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("fragment_url")] - public string FragmentUrl { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "upgradedGiftValueInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// ISO 4217 currency code of the currency in which the prices are represented + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("currency")] + public string Currency { get; set; } + + /// + /// Estimated value of the gift; in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("value")] + public long Value { get; set; } + + /// + /// True, if the value is calculated as average value of similar sold gifts. Otherwise, it is based on the sale price of the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_value_average")] + public bool IsValueAverage { get; set; } + + /// + /// Point in time (Unix timestamp) when the corresponding regular gift was originally purchased + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("initial_sale_date")] + public int InitialSaleDate { get; set; } + + /// + /// The Telegram Star amount that was paid for the gift + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("initial_sale_star_count")] + public long InitialSaleStarCount { get; set; } + + /// + /// Initial price of the gift; in the smallest units of the currency + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("initial_sale_price")] + public long InitialSalePrice { get; set; } + + /// + /// Point in time (Unix timestamp) when the upgraded gift was purchased last time; 0 if never + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_sale_date")] + public int LastSaleDate { get; set; } + + /// + /// Last purchase price of the gift; in the smallest units of the currency; 0 if the gift has never been resold + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_sale_price")] + public long LastSalePrice { get; set; } + + /// + /// True, if the last sale was completed on Fragment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_last_sale_on_fragment")] + public bool IsLastSaleOnFragment { get; set; } + + /// + /// The current minimum price of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there are no such gifts + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minimum_price")] + public long MinimumPrice { get; set; } + + /// + /// The average sale price in the last month of gifts upgraded from the same gift; in the smallest units of the currency; 0 if there were no such sales + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("average_sale_price")] + public long AverageSalePrice { get; set; } + + /// + /// Number of gifts upgraded from the same gift being resold on Telegram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("telegram_listed_gift_count")] + public int TelegramListedGiftCount { get; set; } + + /// + /// Number of gifts upgraded from the same gift being resold on Fragment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fragment_listed_gift_count")] + public int FragmentListedGiftCount { get; set; } + + /// + /// The HTTPS link to the Fragment for the gift; may be empty if there are no such gifts being sold on Fragment + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("fragment_url")] + public string FragmentUrl { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/User.cs b/TdLib.Api/Objects/User.cs index 16f24295..1125bbda 100644 --- a/TdLib.Api/Objects/User.cs +++ b/TdLib.Api/Objects/User.cs @@ -2,219 +2,218 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a user /// - public static partial class TdApi + public partial class User : Object { /// - /// Represents a user - /// - public partial class User : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "user"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User identifier - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public long Id { get; set; } - - /// - /// First name of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_name")] - public string FirstName { get; set; } - - /// - /// Last name of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("last_name")] - public string LastName { get; set; } - - /// - /// Usernames of the user; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("usernames")] - public Usernames Usernames { get; set; } - - /// - /// Phone number of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("phone_number")] - public string PhoneNumber { get; set; } - - /// - /// Current online status of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("status")] - public UserStatus Status { get; set; } - - /// - /// Profile photo of the user; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("profile_photo")] - public ProfilePhoto ProfilePhoto { get; set; } - - /// - /// Identifier of the accent color for name, and backgrounds of profile photo, reply header, and link preview - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("accent_color_id")] - public int AccentColorId { get; set; } - - /// - /// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("background_custom_emoji_id")] - public long BackgroundCustomEmojiId { get; set; } - - /// - /// Color scheme based on an upgraded gift to be used for the user instead of accent_color_id and background_custom_emoji_id; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("upgraded_gift_colors")] - public UpgradedGiftColors UpgradedGiftColors { get; set; } - - /// - /// Identifier of the accent color for the user's profile; -1 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("profile_accent_color_id")] - public int ProfileAccentColorId { get; set; } - - /// - /// Identifier of a custom emoji to be shown on the background of the user's profile; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("profile_background_custom_emoji_id")] - public long ProfileBackgroundCustomEmojiId { get; set; } - - /// - /// Emoji status to be shown instead of the default Telegram Premium badge; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("emoji_status")] - public EmojiStatus EmojiStatus { get; set; } - - /// - /// The user is a contact of the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_contact")] - public bool IsContact { get; set; } - - /// - /// The user is a contact of the current user and the current user is a contact of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_mutual_contact")] - public bool IsMutualContact { get; set; } - - /// - /// The user is a close friend of the current user; implies that the user is a contact - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_close_friend")] - public bool IsCloseFriend { get; set; } - - /// - /// Information about verification status of the user; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("verification_status")] - public VerificationStatus VerificationStatus { get; set; } - - /// - /// True, if the user is a Telegram Premium user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_premium")] - public bool IsPremium { get; set; } - - /// - /// True, if the user is Telegram support account - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_support")] - public bool IsSupport { get; set; } - - /// - /// Information about restrictions that must be applied to the corresponding private chat; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restriction_info")] - public RestrictionInfo RestrictionInfo { get; set; } - - /// - /// State of active stories of the user; may be null if the user has no active stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_story_state")] - public ActiveStoryState ActiveStoryState { get; set; } - - /// - /// True, if the user may restrict new chats with non-contacts. Use canSendMessageToUser to check whether the current user can message the user or try to create a chat with them - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("restricts_new_chats")] - public bool RestrictsNewChats { get; set; } - - /// - /// Number of Telegram Stars that must be paid by general user for each sent message to the user. If positive and userFullInfo is unknown, use canSendMessageToUser to check whether the current user must pay - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("paid_message_star_count")] - public long PaidMessageStarCount { get; set; } - - /// - /// If false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of the user can't be passed to any method - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("have_access")] - public bool HaveAccess { get; set; } - - /// - /// Type of the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public UserType Type { get; set; } - - /// - /// IETF language tag of the user's language; only available to bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("language_code")] - public string LanguageCode { get; set; } - - /// - /// True, if the user added the current bot to attachment menu; only available to bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("added_to_attachment_menu")] - public bool AddedToAttachmentMenu { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "user"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// User identifier + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public long Id { get; set; } + + /// + /// First name of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_name")] + public string FirstName { get; set; } + + /// + /// Last name of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("last_name")] + public string LastName { get; set; } + + /// + /// Usernames of the user; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("usernames")] + public Usernames Usernames { get; set; } + + /// + /// Phone number of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("phone_number")] + public string PhoneNumber { get; set; } + + /// + /// Current online status of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("status")] + public UserStatus Status { get; set; } + + /// + /// Profile photo of the user; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("profile_photo")] + public ProfilePhoto ProfilePhoto { get; set; } + + /// + /// Identifier of the accent color for name, and backgrounds of profile photo, reply header, and link preview + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("accent_color_id")] + public int AccentColorId { get; set; } + + /// + /// Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("background_custom_emoji_id")] + public long BackgroundCustomEmojiId { get; set; } + + /// + /// Color scheme based on an upgraded gift to be used for the user instead of accent_color_id and background_custom_emoji_id; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("upgraded_gift_colors")] + public UpgradedGiftColors UpgradedGiftColors { get; set; } + + /// + /// Identifier of the accent color for the user's profile; -1 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("profile_accent_color_id")] + public int ProfileAccentColorId { get; set; } + + /// + /// Identifier of a custom emoji to be shown on the background of the user's profile; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("profile_background_custom_emoji_id")] + public long ProfileBackgroundCustomEmojiId { get; set; } + + /// + /// Emoji status to be shown instead of the default Telegram Premium badge; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("emoji_status")] + public EmojiStatus EmojiStatus { get; set; } + + /// + /// The user is a contact of the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_contact")] + public bool IsContact { get; set; } + + /// + /// The user is a contact of the current user and the current user is a contact of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_mutual_contact")] + public bool IsMutualContact { get; set; } + + /// + /// The user is a close friend of the current user; implies that the user is a contact + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_close_friend")] + public bool IsCloseFriend { get; set; } + + /// + /// Information about verification status of the user; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("verification_status")] + public VerificationStatus VerificationStatus { get; set; } + + /// + /// True, if the user is a Telegram Premium user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_premium")] + public bool IsPremium { get; set; } + + /// + /// True, if the user is Telegram support account + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_support")] + public bool IsSupport { get; set; } + + /// + /// Information about restrictions that must be applied to the corresponding private chat; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restriction_info")] + public RestrictionInfo RestrictionInfo { get; set; } + + /// + /// State of active stories of the user; may be null if the user has no active stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_story_state")] + public ActiveStoryState ActiveStoryState { get; set; } + + /// + /// True, if the user may restrict new chats with non-contacts. Use canSendMessageToUser to check whether the current user can message the user or try to create a chat with them + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("restricts_new_chats")] + public bool RestrictsNewChats { get; set; } + + /// + /// Number of Telegram Stars that must be paid by general user for each sent message to the user. If positive and userFullInfo is unknown, use canSendMessageToUser to check whether the current user must pay + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("paid_message_star_count")] + public long PaidMessageStarCount { get; set; } + + /// + /// If false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of the user can't be passed to any method + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("have_access")] + public bool HaveAccess { get; set; } + + /// + /// Type of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public UserType Type { get; set; } + + /// + /// IETF language tag of the user's language; only available to bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("language_code")] + public string LanguageCode { get; set; } + + /// + /// True, if the user added the current bot to attachment menu; only available to bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("added_to_attachment_menu")] + public bool AddedToAttachmentMenu { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserAuctionBid.cs b/TdLib.Api/Objects/UserAuctionBid.cs index 02f410bf..81fe302b 100644 --- a/TdLib.Api/Objects/UserAuctionBid.cs +++ b/TdLib.Api/Objects/UserAuctionBid.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a bid of the current user in an auction /// - public static partial class TdApi + public partial class UserAuctionBid : Object { /// - /// Describes a bid of the current user in an auction + /// Data type for serialization /// - public partial class UserAuctionBid : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userAuctionBid"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userAuctionBid"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The number of Telegram Stars that were put in the bid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("star_count")] - public long StarCount { get; set; } + /// + /// The number of Telegram Stars that were put in the bid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("star_count")] + public long StarCount { get; set; } - /// - /// Point in time (Unix timestamp) when the bid was made - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bid_date")] - public int BidDate { get; set; } + /// + /// Point in time (Unix timestamp) when the bid was made + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bid_date")] + public int BidDate { get; set; } - /// - /// The minimum number of Telegram Stars that can be put for the next bid - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_bid_star_count")] - public long NextBidStarCount { get; set; } + /// + /// The minimum number of Telegram Stars that can be put for the next bid + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_bid_star_count")] + public long NextBidStarCount { get; set; } - /// - /// Identifier of the user or the chat that will receive the auctioned item. If the auction is opened in context of another user or chat, then a warning is supposed to be shown to the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("owner_id")] - public MessageSender OwnerId { get; set; } + /// + /// Identifier of the user or the chat that will receive the auctioned item. If the auction is opened in context of another user or chat, then a warning is supposed to be shown to the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("owner_id")] + public MessageSender OwnerId { get; set; } - /// - /// True, if the bid was returned to the user, because it was outbid and can't win anymore - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_returned")] - public bool WasReturned { get; set; } - } + /// + /// True, if the bid was returned to the user, because it was outbid and can't win anymore + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_returned")] + public bool WasReturned { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserFullInfo.cs b/TdLib.Api/Objects/UserFullInfo.cs index 65d86e58..a725672e 100644 --- a/TdLib.Api/Objects/UserFullInfo.cs +++ b/TdLib.Api/Objects/UserFullInfo.cs @@ -2,254 +2,253 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains full information about a user /// - public static partial class TdApi + public partial class UserFullInfo : Object { /// - /// Contains full information about a user - /// - public partial class UserFullInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userFullInfo"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("personal_photo")] - public ChatPhoto PersonalPhoto { get; set; } - - /// - /// User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public ChatPhoto Photo { get; set; } - - /// - /// User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("public_photo")] - public ChatPhoto PublicPhoto { get; set; } - - /// - /// Identifier of the community to which chat with the bot was added; for bots only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("community_id")] - public long CommunityId { get; set; } - - /// - /// Block list to which the user is added; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("block_list")] - public BlockList BlockList { get; set; } - - /// - /// True, if the user can be called - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_called")] - public bool CanBeCalled { get; set; } - - /// - /// True, if a video call can be created with the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_video_calls")] - public bool SupportsVideoCalls { get; set; } - - /// - /// True, if the user can't be called due to their privacy settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_private_calls")] - public bool HasPrivateCalls { get; set; } - - /// - /// True, if the user can't be linked in forwarded messages due to their privacy settings - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_private_forwards")] - public bool HasPrivateForwards { get; set; } - - /// - /// True, if voice and video notes can't be sent or forwarded to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_restricted_voice_and_video_note_messages")] - public bool HasRestrictedVoiceAndVideoNoteMessages { get; set; } - - /// - /// True, if the user has posted to profile stories - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_posted_to_profile_stories")] - public bool HasPostedToProfileStories { get; set; } - - /// - /// True, if the user always enabled sponsored messages; known only for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_sponsored_messages_enabled")] - public bool HasSponsoredMessagesEnabled { get; set; } - - /// - /// True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_phone_number_privacy_exception")] - public bool NeedPhoneNumberPrivacyException { get; set; } - - /// - /// True, if the user set chat background for both chat users and it wasn't reverted yet - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("set_chat_background")] - public bool SetChatBackground { get; set; } - - /// - /// True, if the user uses an unofficial application that poses a security risk - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("uses_unofficial_app")] - public bool UsesUnofficialApp { get; set; } - - /// - /// A short user bio; may be null for bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bio")] - public FormattedText Bio { get; set; } - - /// - /// Birthdate of the user; may be null if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("birthdate")] - public Birthdate Birthdate { get; set; } - - /// - /// Identifier of the personal chat of the user; 0 if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("personal_chat_id")] - public long PersonalChatId { get; set; } - - /// - /// Number of saved to profile gifts for other users or the total number of received gifts for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_count")] - public int GiftCount { get; set; } - - /// - /// Number of group chats where both the other user and the current user are a member; 0 for the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_in_common_count")] - public int GroupInCommonCount { get; set; } - - /// - /// Number of Telegram Stars that must be paid by the user for each sent message to the current user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("incoming_paid_message_star_count")] - public long IncomingPaidMessageStarCount { get; set; } - - /// - /// Number of Telegram Stars that must be paid by the current user for each sent message to the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("outgoing_paid_message_star_count")] - public long OutgoingPaidMessageStarCount { get; set; } - - /// - /// Settings for gift receiving for the user - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("gift_settings")] - public GiftSettings GiftSettings { get; set; } - - /// - /// Information about verification status of the user provided by a bot; may be null if none or unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_verification")] - public BotVerification BotVerification { get; set; } - - /// - /// The main tab chosen by the user; may be null if not chosen manually - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("main_profile_tab")] - public ProfileTab MainProfileTab { get; set; } - - /// - /// The first audio file added to the user's profile; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("first_profile_audio")] - public Audio FirstProfileAudio { get; set; } - - /// - /// The current rating of the user; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rating")] - public UserRating Rating { get; set; } - - /// - /// The rating of the user after the next change; may be null if the user isn't the current user or there are no pending rating changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_rating")] - public UserRating PendingRating { get; set; } - - /// - /// Unix timestamp when rating of the user will change to pending_rating; 0 if the user isn't the current user or there are no pending rating changes - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("pending_rating_date")] - public int PendingRatingDate { get; set; } - - /// - /// Note added to the user's contact; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("note")] - public FormattedText Note { get; set; } - - /// - /// Information about business settings for Telegram Business accounts; may be null if none - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("business_info")] - public BusinessInfo BusinessInfo { get; set; } - - /// - /// For bots, information about the bot; may be null if the user isn't a bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("bot_info")] - public BotInfo BotInfo { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "userFullInfo"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("personal_photo")] + public ChatPhoto PersonalPhoto { get; set; } + + /// + /// User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public ChatPhoto Photo { get; set; } + + /// + /// User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_photo")] + public ChatPhoto PublicPhoto { get; set; } + + /// + /// Identifier of the community to which chat with the bot was added; for bots only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("community_id")] + public long CommunityId { get; set; } + + /// + /// Block list to which the user is added; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("block_list")] + public BlockList BlockList { get; set; } + + /// + /// True, if the user can be called + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_called")] + public bool CanBeCalled { get; set; } + + /// + /// True, if a video call can be created with the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_video_calls")] + public bool SupportsVideoCalls { get; set; } + + /// + /// True, if the user can't be called due to their privacy settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_private_calls")] + public bool HasPrivateCalls { get; set; } + + /// + /// True, if the user can't be linked in forwarded messages due to their privacy settings + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_private_forwards")] + public bool HasPrivateForwards { get; set; } + + /// + /// True, if voice and video notes can't be sent or forwarded to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_restricted_voice_and_video_note_messages")] + public bool HasRestrictedVoiceAndVideoNoteMessages { get; set; } + + /// + /// True, if the user has posted to profile stories + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_posted_to_profile_stories")] + public bool HasPostedToProfileStories { get; set; } + + /// + /// True, if the user always enabled sponsored messages; known only for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_sponsored_messages_enabled")] + public bool HasSponsoredMessagesEnabled { get; set; } + + /// + /// True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_phone_number_privacy_exception")] + public bool NeedPhoneNumberPrivacyException { get; set; } + + /// + /// True, if the user set chat background for both chat users and it wasn't reverted yet + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("set_chat_background")] + public bool SetChatBackground { get; set; } + + /// + /// True, if the user uses an unofficial application that poses a security risk + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("uses_unofficial_app")] + public bool UsesUnofficialApp { get; set; } + + /// + /// A short user bio; may be null for bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bio")] + public FormattedText Bio { get; set; } + + /// + /// Birthdate of the user; may be null if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("birthdate")] + public Birthdate Birthdate { get; set; } + + /// + /// Identifier of the personal chat of the user; 0 if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("personal_chat_id")] + public long PersonalChatId { get; set; } + + /// + /// Number of saved to profile gifts for other users or the total number of received gifts for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_count")] + public int GiftCount { get; set; } + + /// + /// Number of group chats where both the other user and the current user are a member; 0 for the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_in_common_count")] + public int GroupInCommonCount { get; set; } + + /// + /// Number of Telegram Stars that must be paid by the user for each sent message to the current user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("incoming_paid_message_star_count")] + public long IncomingPaidMessageStarCount { get; set; } + + /// + /// Number of Telegram Stars that must be paid by the current user for each sent message to the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("outgoing_paid_message_star_count")] + public long OutgoingPaidMessageStarCount { get; set; } + + /// + /// Settings for gift receiving for the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("gift_settings")] + public GiftSettings GiftSettings { get; set; } + + /// + /// Information about verification status of the user provided by a bot; may be null if none or unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_verification")] + public BotVerification BotVerification { get; set; } + + /// + /// The main tab chosen by the user; may be null if not chosen manually + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("main_profile_tab")] + public ProfileTab MainProfileTab { get; set; } + + /// + /// The first audio file added to the user's profile; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("first_profile_audio")] + public Audio FirstProfileAudio { get; set; } + + /// + /// The current rating of the user; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rating")] + public UserRating Rating { get; set; } + + /// + /// The rating of the user after the next change; may be null if the user isn't the current user or there are no pending rating changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_rating")] + public UserRating PendingRating { get; set; } + + /// + /// Unix timestamp when rating of the user will change to pending_rating; 0 if the user isn't the current user or there are no pending rating changes + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("pending_rating_date")] + public int PendingRatingDate { get; set; } + + /// + /// Note added to the user's contact; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("note")] + public FormattedText Note { get; set; } + + /// + /// Information about business settings for Telegram Business accounts; may be null if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("business_info")] + public BusinessInfo BusinessInfo { get; set; } + + /// + /// For bots, information about the bot; may be null if the user isn't a bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("bot_info")] + public BotInfo BotInfo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserLink.cs b/TdLib.Api/Objects/UserLink.cs index bb4ca279..9ebf04cc 100644 --- a/TdLib.Api/Objects/UserLink.cs +++ b/TdLib.Api/Objects/UserLink.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains an HTTPS URL, which can be used to get information about a user /// - public static partial class TdApi + public partial class UserLink : Object { /// - /// Contains an HTTPS URL, which can be used to get information about a user + /// Data type for serialization /// - public partial class UserLink : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userLink"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userLink"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// The URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Left time for which the link is valid, in seconds; 0 if the link is a public username link - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expires_in")] - public int ExpiresIn { get; set; } - } + /// + /// Left time for which the link is valid, in seconds; 0 if the link is a public username link + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expires_in")] + public int ExpiresIn { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserPrivacySettingAllowCalls.cs b/TdLib.Api/Objects/UserPrivacySettingAllowCalls.cs index 8e2bcfab..81833cf0 100644 --- a/TdLib.Api/Objects/UserPrivacySettingAllowCalls.cs +++ b/TdLib.Api/Objects/UserPrivacySettingAllowCalls.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user can be called + /// + public class UserPrivacySettingAllowCalls : UserPrivacySetting { /// - /// A privacy setting for managing whether the user can be called + /// Data type for serialization /// - public class UserPrivacySettingAllowCalls : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingAllowCalls"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingAllowCalls"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingAllowChatInvites.cs b/TdLib.Api/Objects/UserPrivacySettingAllowChatInvites.cs index b8591320..b32a49f9 100644 --- a/TdLib.Api/Objects/UserPrivacySettingAllowChatInvites.cs +++ b/TdLib.Api/Objects/UserPrivacySettingAllowChatInvites.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user can be invited to chats + /// + public class UserPrivacySettingAllowChatInvites : UserPrivacySetting { /// - /// A privacy setting for managing whether the user can be invited to chats + /// Data type for serialization /// - public class UserPrivacySettingAllowChatInvites : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingAllowChatInvites"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingAllowChatInvites"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingAllowFindingByPhoneNumber.cs b/TdLib.Api/Objects/UserPrivacySettingAllowFindingByPhoneNumber.cs index 165a77aa..bd7cabdf 100644 --- a/TdLib.Api/Objects/UserPrivacySettingAllowFindingByPhoneNumber.cs +++ b/TdLib.Api/Objects/UserPrivacySettingAllowFindingByPhoneNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to "Allow contacts" or "Allow all" + /// + public class UserPrivacySettingAllowFindingByPhoneNumber : UserPrivacySetting { /// - /// A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to "Allow contacts" or "Allow all" + /// Data type for serialization /// - public class UserPrivacySettingAllowFindingByPhoneNumber : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingAllowFindingByPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingAllowFindingByPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingAllowPeerToPeerCalls.cs b/TdLib.Api/Objects/UserPrivacySettingAllowPeerToPeerCalls.cs index b752ca98..9aa8475c 100644 --- a/TdLib.Api/Objects/UserPrivacySettingAllowPeerToPeerCalls.cs +++ b/TdLib.Api/Objects/UserPrivacySettingAllowPeerToPeerCalls.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether peer-to-peer connections can be used for calls + /// + public class UserPrivacySettingAllowPeerToPeerCalls : UserPrivacySetting { /// - /// A privacy setting for managing whether peer-to-peer connections can be used for calls + /// Data type for serialization /// - public class UserPrivacySettingAllowPeerToPeerCalls : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingAllowPeerToPeerCalls"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingAllowPeerToPeerCalls"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages.cs b/TdLib.Api/Objects/UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages.cs index 8e8da445..28ce7346 100644 --- a/TdLib.Api/Objects/UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages.cs +++ b/TdLib.Api/Objects/UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user can receive voice and video messages in private chats; for Telegram Premium users only + /// + public class UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages : UserPrivacySetting { /// - /// A privacy setting for managing whether the user can receive voice and video messages in private chats; for Telegram Premium users only + /// Data type for serialization /// - public class UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingAllowUnpaidMessages.cs b/TdLib.Api/Objects/UserPrivacySettingAllowUnpaidMessages.cs index 539008ce..9715cd75 100644 --- a/TdLib.Api/Objects/UserPrivacySettingAllowUnpaidMessages.cs +++ b/TdLib.Api/Objects/UserPrivacySettingAllowUnpaidMessages.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user can receive messages without additional payment + /// + public class UserPrivacySettingAllowUnpaidMessages : UserPrivacySetting { /// - /// A privacy setting for managing whether the user can receive messages without additional payment + /// Data type for serialization /// - public class UserPrivacySettingAllowUnpaidMessages : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingAllowUnpaidMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingAllowUnpaidMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingAutosaveGifts.cs b/TdLib.Api/Objects/UserPrivacySettingAutosaveGifts.cs index f21488a7..23af2268 100644 --- a/TdLib.Api/Objects/UserPrivacySettingAutosaveGifts.cs +++ b/TdLib.Api/Objects/UserPrivacySettingAutosaveGifts.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether received gifts are automatically shown on the user's profile page + /// + public class UserPrivacySettingAutosaveGifts : UserPrivacySetting { /// - /// A privacy setting for managing whether received gifts are automatically shown on the user's profile page + /// Data type for serialization /// - public class UserPrivacySettingAutosaveGifts : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingAutosaveGifts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingAutosaveGifts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleAllowAll.cs b/TdLib.Api/Objects/UserPrivacySettingRuleAllowAll.cs index a39b615f..b1114a0f 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleAllowAll.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleAllowAll.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// Represents a single rule for managing user privacy settings + /// + public class UserPrivacySettingRuleAllowAll : UserPrivacySettingRule { /// - /// Represents a single rule for managing user privacy settings + /// Data type for serialization /// - public class UserPrivacySettingRuleAllowAll : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleAllowAll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleAllowAll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleAllowBots.cs b/TdLib.Api/Objects/UserPrivacySettingRuleAllowBots.cs index b46d7e3b..eebf32c0 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleAllowBots.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleAllowBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to allow all bots to do something + /// + public class UserPrivacySettingRuleAllowBots : UserPrivacySettingRule { /// - /// A rule to allow all bots to do something + /// Data type for serialization /// - public class UserPrivacySettingRuleAllowBots : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleAllowBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleAllowBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleAllowChatMembers.cs b/TdLib.Api/Objects/UserPrivacySettingRuleAllowChatMembers.cs index 22051b10..baa5e959 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleAllowChatMembers.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleAllowChatMembers.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to allow all members of certain specified basic groups and supergroups to doing something + /// + public class UserPrivacySettingRuleAllowChatMembers : UserPrivacySettingRule { /// - /// A rule to allow all members of certain specified basic groups and supergroups to doing something + /// Data type for serialization /// - public class UserPrivacySettingRuleAllowChatMembers : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleAllowChatMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleAllowChatMembers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat identifiers, total number of chats in all rules must not exceed 20 - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// The chat identifiers, total number of chats in all rules must not exceed 20 + /// + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleAllowContacts.cs b/TdLib.Api/Objects/UserPrivacySettingRuleAllowContacts.cs index e3798204..fc71fa1b 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleAllowContacts.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleAllowContacts.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to allow all contacts of the user to do something + /// + public class UserPrivacySettingRuleAllowContacts : UserPrivacySettingRule { /// - /// A rule to allow all contacts of the user to do something + /// Data type for serialization /// - public class UserPrivacySettingRuleAllowContacts : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleAllowContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleAllowContacts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleAllowPremiumUsers.cs b/TdLib.Api/Objects/UserPrivacySettingRuleAllowPremiumUsers.cs index 2f6a8d1a..7d431031 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleAllowPremiumUsers.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleAllowPremiumUsers.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to allow all Premium Users to do something; currently, allowed only for userPrivacySettingAllowChatInvites + /// + public class UserPrivacySettingRuleAllowPremiumUsers : UserPrivacySettingRule { /// - /// A rule to allow all Premium Users to do something; currently, allowed only for userPrivacySettingAllowChatInvites + /// Data type for serialization /// - public class UserPrivacySettingRuleAllowPremiumUsers : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleAllowPremiumUsers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleAllowPremiumUsers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleAllowUsers.cs b/TdLib.Api/Objects/UserPrivacySettingRuleAllowUsers.cs index 5dea2d4b..a798c837 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleAllowUsers.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleAllowUsers.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to allow certain specified users to do something + /// + public class UserPrivacySettingRuleAllowUsers : UserPrivacySettingRule { /// - /// A rule to allow certain specified users to do something + /// Data type for serialization /// - public class UserPrivacySettingRuleAllowUsers : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleAllowUsers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleAllowUsers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The user identifiers, total number of users in all rules must not exceed 1000 - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// The user identifiers, total number of users in all rules must not exceed 1000 + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictAll.cs b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictAll.cs index 862b2a26..b4654d73 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictAll.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictAll.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to restrict all users from doing something + /// + public class UserPrivacySettingRuleRestrictAll : UserPrivacySettingRule { /// - /// A rule to restrict all users from doing something + /// Data type for serialization /// - public class UserPrivacySettingRuleRestrictAll : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleRestrictAll"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleRestrictAll"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictBots.cs b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictBots.cs index 36096f52..725b95aa 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictBots.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictBots.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to restrict all bots from doing something + /// + public class UserPrivacySettingRuleRestrictBots : UserPrivacySettingRule { /// - /// A rule to restrict all bots from doing something + /// Data type for serialization /// - public class UserPrivacySettingRuleRestrictBots : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleRestrictBots"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleRestrictBots"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictChatMembers.cs b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictChatMembers.cs index e8d37e5c..8ade4970 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictChatMembers.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictChatMembers.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to restrict all members of specified basic groups and supergroups from doing something + /// + public class UserPrivacySettingRuleRestrictChatMembers : UserPrivacySettingRule { /// - /// A rule to restrict all members of specified basic groups and supergroups from doing something + /// Data type for serialization /// - public class UserPrivacySettingRuleRestrictChatMembers : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleRestrictChatMembers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleRestrictChatMembers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The chat identifiers, total number of chats in all rules must not exceed 20 - /// - [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] - public long[] ChatIds { get; set; } - } + /// + /// The chat identifiers, total number of chats in all rules must not exceed 20 + /// + [JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] + public long[] ChatIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictContacts.cs b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictContacts.cs index c0fe88dd..5ea97a3a 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictContacts.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictContacts.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to restrict all contacts of the user from doing something + /// + public class UserPrivacySettingRuleRestrictContacts : UserPrivacySettingRule { /// - /// A rule to restrict all contacts of the user from doing something + /// Data type for serialization /// - public class UserPrivacySettingRuleRestrictContacts : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleRestrictContacts"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleRestrictContacts"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictUsers.cs b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictUsers.cs index 0be2cbc2..595d076a 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRuleRestrictUsers.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRuleRestrictUsers.cs @@ -2,38 +2,37 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySettingRule : Object { - public partial class UserPrivacySettingRule : Object + /// + /// A rule to restrict all specified users from doing something + /// + public class UserPrivacySettingRuleRestrictUsers : UserPrivacySettingRule { /// - /// A rule to restrict all specified users from doing something + /// Data type for serialization /// - public class UserPrivacySettingRuleRestrictUsers : UserPrivacySettingRule - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRuleRestrictUsers"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRuleRestrictUsers"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The user identifiers, total number of users in all rules must not exceed 1000 - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// The user identifiers, total number of users in all rules must not exceed 1000 + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingRules.cs b/TdLib.Api/Objects/UserPrivacySettingRules.cs index 1465517e..8a280e00 100644 --- a/TdLib.Api/Objects/UserPrivacySettingRules.cs +++ b/TdLib.Api/Objects/UserPrivacySettingRules.cs @@ -2,36 +2,35 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed /// - public static partial class TdApi + public partial class UserPrivacySettingRules : Object { /// - /// A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed + /// Data type for serialization /// - public partial class UserPrivacySettingRules : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingRules"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingRules"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A list of rules - /// - [JsonProperty("rules", ItemConverterType = typeof(Converter))] - public UserPrivacySettingRule[] Rules { get; set; } - } + /// + /// A list of rules + /// + [JsonProperty("rules", ItemConverterType = typeof(Converter))] + public UserPrivacySettingRule[] Rules { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserPrivacySettingShowBio.cs b/TdLib.Api/Objects/UserPrivacySettingShowBio.cs index 9bbac508..6d8828b7 100644 --- a/TdLib.Api/Objects/UserPrivacySettingShowBio.cs +++ b/TdLib.Api/Objects/UserPrivacySettingShowBio.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user's bio is visible + /// + public class UserPrivacySettingShowBio : UserPrivacySetting { /// - /// A privacy setting for managing whether the user's bio is visible + /// Data type for serialization /// - public class UserPrivacySettingShowBio : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingShowBio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingShowBio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingShowBirthdate.cs b/TdLib.Api/Objects/UserPrivacySettingShowBirthdate.cs index 9a946641..390cfd82 100644 --- a/TdLib.Api/Objects/UserPrivacySettingShowBirthdate.cs +++ b/TdLib.Api/Objects/UserPrivacySettingShowBirthdate.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user's birthdate is visible + /// + public class UserPrivacySettingShowBirthdate : UserPrivacySetting { /// - /// A privacy setting for managing whether the user's birthdate is visible + /// Data type for serialization /// - public class UserPrivacySettingShowBirthdate : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingShowBirthdate"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingShowBirthdate"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingShowLinkInForwardedMessages.cs b/TdLib.Api/Objects/UserPrivacySettingShowLinkInForwardedMessages.cs index ec8bea40..9914c971 100644 --- a/TdLib.Api/Objects/UserPrivacySettingShowLinkInForwardedMessages.cs +++ b/TdLib.Api/Objects/UserPrivacySettingShowLinkInForwardedMessages.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether a link to the user's account is included in forwarded messages + /// + public class UserPrivacySettingShowLinkInForwardedMessages : UserPrivacySetting { /// - /// A privacy setting for managing whether a link to the user's account is included in forwarded messages + /// Data type for serialization /// - public class UserPrivacySettingShowLinkInForwardedMessages : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingShowLinkInForwardedMessages"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingShowLinkInForwardedMessages"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingShowPhoneNumber.cs b/TdLib.Api/Objects/UserPrivacySettingShowPhoneNumber.cs index 971a5bf3..a4a0fef5 100644 --- a/TdLib.Api/Objects/UserPrivacySettingShowPhoneNumber.cs +++ b/TdLib.Api/Objects/UserPrivacySettingShowPhoneNumber.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user's phone number is visible + /// + public class UserPrivacySettingShowPhoneNumber : UserPrivacySetting { /// - /// A privacy setting for managing whether the user's phone number is visible + /// Data type for serialization /// - public class UserPrivacySettingShowPhoneNumber : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingShowPhoneNumber"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingShowPhoneNumber"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingShowProfileAudio.cs b/TdLib.Api/Objects/UserPrivacySettingShowProfileAudio.cs index e0c66f49..e31a0210 100644 --- a/TdLib.Api/Objects/UserPrivacySettingShowProfileAudio.cs +++ b/TdLib.Api/Objects/UserPrivacySettingShowProfileAudio.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user's profile audio files are visible + /// + public class UserPrivacySettingShowProfileAudio : UserPrivacySetting { /// - /// A privacy setting for managing whether the user's profile audio files are visible + /// Data type for serialization /// - public class UserPrivacySettingShowProfileAudio : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingShowProfileAudio"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingShowProfileAudio"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingShowProfilePhoto.cs b/TdLib.Api/Objects/UserPrivacySettingShowProfilePhoto.cs index 2f71edb0..59fb0589 100644 --- a/TdLib.Api/Objects/UserPrivacySettingShowProfilePhoto.cs +++ b/TdLib.Api/Objects/UserPrivacySettingShowProfilePhoto.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// A privacy setting for managing whether the user's profile photo is visible + /// + public class UserPrivacySettingShowProfilePhoto : UserPrivacySetting { /// - /// A privacy setting for managing whether the user's profile photo is visible + /// Data type for serialization /// - public class UserPrivacySettingShowProfilePhoto : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingShowProfilePhoto"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingShowProfilePhoto"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserPrivacySettingShowStatus.cs b/TdLib.Api/Objects/UserPrivacySettingShowStatus.cs index 65d426bd..7a1d7f63 100644 --- a/TdLib.Api/Objects/UserPrivacySettingShowStatus.cs +++ b/TdLib.Api/Objects/UserPrivacySettingShowStatus.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserPrivacySetting : Object { - public partial class UserPrivacySetting : Object + /// + /// Describes available user privacy settings + /// + public class UserPrivacySettingShowStatus : UserPrivacySetting { /// - /// Describes available user privacy settings + /// Data type for serialization /// - public class UserPrivacySettingShowStatus : UserPrivacySetting - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userPrivacySettingShowStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userPrivacySettingShowStatus"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserRating.cs b/TdLib.Api/Objects/UserRating.cs index d25fc9a3..aa1b74d7 100644 --- a/TdLib.Api/Objects/UserRating.cs +++ b/TdLib.Api/Objects/UserRating.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains description of user rating /// - public static partial class TdApi + public partial class UserRating : Object { /// - /// Contains description of user rating + /// Data type for serialization /// - public partial class UserRating : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userRating"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userRating"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The level of the user; may be negative - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("level")] - public int Level { get; set; } + /// + /// The level of the user; may be negative + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("level")] + public int Level { get; set; } - /// - /// True, if the maximum level is reached - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_maximum_level_reached")] - public bool IsMaximumLevelReached { get; set; } + /// + /// True, if the maximum level is reached + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_maximum_level_reached")] + public bool IsMaximumLevelReached { get; set; } - /// - /// Numerical value of the rating - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("rating")] - public long Rating { get; set; } + /// + /// Numerical value of the rating + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("rating")] + public long Rating { get; set; } - /// - /// The rating required for the current level - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("current_level_rating")] - public long CurrentLevelRating { get; set; } + /// + /// The rating required for the current level + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("current_level_rating")] + public long CurrentLevelRating { get; set; } - /// - /// The rating required for the next level; 0 if the maximum level is reached - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("next_level_rating")] - public long NextLevelRating { get; set; } - } + /// + /// The rating required for the next level; 0 if the maximum level is reached + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("next_level_rating")] + public long NextLevelRating { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserStatusEmpty.cs b/TdLib.Api/Objects/UserStatusEmpty.cs index 34a27e1a..1dc6df4d 100644 --- a/TdLib.Api/Objects/UserStatusEmpty.cs +++ b/TdLib.Api/Objects/UserStatusEmpty.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserStatus : Object { - public partial class UserStatus : Object + /// + /// Describes the last time the user was online + /// + public class UserStatusEmpty : UserStatus { /// - /// Describes the last time the user was online + /// Data type for serialization /// - public class UserStatusEmpty : UserStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userStatusEmpty"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userStatusEmpty"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserStatusLastMonth.cs b/TdLib.Api/Objects/UserStatusLastMonth.cs index b2084438..576a4014 100644 --- a/TdLib.Api/Objects/UserStatusLastMonth.cs +++ b/TdLib.Api/Objects/UserStatusLastMonth.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserStatus : Object { - public partial class UserStatus : Object + /// + /// The user is offline, but was online last month + /// + public class UserStatusLastMonth : UserStatus { /// - /// The user is offline, but was online last month + /// Data type for serialization /// - public class UserStatusLastMonth : UserStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userStatusLastMonth"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userStatusLastMonth"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("by_my_privacy_settings")] - public bool ByMyPrivacySettings { get; set; } - } + /// + /// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("by_my_privacy_settings")] + public bool ByMyPrivacySettings { get; set; } } } } diff --git a/TdLib.Api/Objects/UserStatusLastWeek.cs b/TdLib.Api/Objects/UserStatusLastWeek.cs index c93c9667..6a8bd02a 100644 --- a/TdLib.Api/Objects/UserStatusLastWeek.cs +++ b/TdLib.Api/Objects/UserStatusLastWeek.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserStatus : Object { - public partial class UserStatus : Object + /// + /// The user is offline, but was online last week + /// + public class UserStatusLastWeek : UserStatus { /// - /// The user is offline, but was online last week + /// Data type for serialization /// - public class UserStatusLastWeek : UserStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userStatusLastWeek"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userStatusLastWeek"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("by_my_privacy_settings")] - public bool ByMyPrivacySettings { get; set; } - } + /// + /// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("by_my_privacy_settings")] + public bool ByMyPrivacySettings { get; set; } } } } diff --git a/TdLib.Api/Objects/UserStatusOffline.cs b/TdLib.Api/Objects/UserStatusOffline.cs index da88c67d..cfb5c278 100644 --- a/TdLib.Api/Objects/UserStatusOffline.cs +++ b/TdLib.Api/Objects/UserStatusOffline.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserStatus : Object { - public partial class UserStatus : Object + /// + /// The user is offline + /// + public class UserStatusOffline : UserStatus { /// - /// The user is offline + /// Data type for serialization /// - public class UserStatusOffline : UserStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userStatusOffline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userStatusOffline"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the user was last online - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("was_online")] - public int WasOnline { get; set; } - } + /// + /// Point in time (Unix timestamp) when the user was last online + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("was_online")] + public int WasOnline { get; set; } } } } diff --git a/TdLib.Api/Objects/UserStatusOnline.cs b/TdLib.Api/Objects/UserStatusOnline.cs index 94a9a8e9..31709550 100644 --- a/TdLib.Api/Objects/UserStatusOnline.cs +++ b/TdLib.Api/Objects/UserStatusOnline.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserStatus : Object { - public partial class UserStatus : Object + /// + /// The user is online + /// + public class UserStatusOnline : UserStatus { /// - /// The user is online + /// Data type for serialization /// - public class UserStatusOnline : UserStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userStatusOnline"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userStatusOnline"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Point in time (Unix timestamp) when the user's online status will expire - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("expires")] - public int Expires { get; set; } - } + /// + /// Point in time (Unix timestamp) when the user's online status will expire + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("expires")] + public int Expires { get; set; } } } } diff --git a/TdLib.Api/Objects/UserStatusRecently.cs b/TdLib.Api/Objects/UserStatusRecently.cs index 4e2046dd..116e0c77 100644 --- a/TdLib.Api/Objects/UserStatusRecently.cs +++ b/TdLib.Api/Objects/UserStatusRecently.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserStatus : Object { - public partial class UserStatus : Object + /// + /// The user was online recently + /// + public class UserStatusRecently : UserStatus { /// - /// The user was online recently + /// Data type for serialization /// - public class UserStatusRecently : UserStatus - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userStatusRecently"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userStatusRecently"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("by_my_privacy_settings")] - public bool ByMyPrivacySettings { get; set; } - } + /// + /// Exact user's status is hidden because the current user enabled userPrivacySettingShowStatus privacy setting for the user and has no Telegram Premium + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("by_my_privacy_settings")] + public bool ByMyPrivacySettings { get; set; } } } } diff --git a/TdLib.Api/Objects/UserSupportInfo.cs b/TdLib.Api/Objects/UserSupportInfo.cs index 2b36fb12..15896049 100644 --- a/TdLib.Api/Objects/UserSupportInfo.cs +++ b/TdLib.Api/Objects/UserSupportInfo.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains custom information about the user /// - public static partial class TdApi + public partial class UserSupportInfo : Object { /// - /// Contains custom information about the user + /// Data type for serialization /// - public partial class UserSupportInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userSupportInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userSupportInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Information message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("message")] - public FormattedText Message { get; set; } + /// + /// Information message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("message")] + public FormattedText Message { get; set; } - /// - /// Information author - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("author")] - public string Author { get; set; } + /// + /// Information author + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("author")] + public string Author { get; set; } - /// - /// Information change date - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("date")] - public int Date { get; set; } - } + /// + /// Information change date + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("date")] + public int Date { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserTonWalletAddress.cs b/TdLib.Api/Objects/UserTonWalletAddress.cs new file mode 100644 index 00000000..de1c6368 --- /dev/null +++ b/TdLib.Api/Objects/UserTonWalletAddress.cs @@ -0,0 +1,51 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Contains TON wallet address of a user + /// + public partial class UserTonWalletAddress : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "userTonWalletAddress"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// Identifier of the user; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("user_id")] + public long UserId { get; set; } + + /// + /// Address of the user's wallet in the TON blockchain + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("wallet_address")] + public string WalletAddress { get; set; } + + /// + /// Public key of the user + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("public_key")] + public byte[] PublicKey { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserTonWalletAddresses.cs b/TdLib.Api/Objects/UserTonWalletAddresses.cs new file mode 100644 index 00000000..31f2a0a6 --- /dev/null +++ b/TdLib.Api/Objects/UserTonWalletAddresses.cs @@ -0,0 +1,36 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Represents a list of TON wallet addresses of users + /// + public partial class UserTonWalletAddresses : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "userTonWalletAddresses"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// A list of TON wallet addresses + /// + [JsonProperty("addresses", ItemConverterType = typeof(Converter))] + public UserTonWalletAddress[] Addresses { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/UserTypeBot.cs b/TdLib.Api/Objects/UserTypeBot.cs index 9bbdeb84..3d5ccf61 100644 --- a/TdLib.Api/Objects/UserTypeBot.cs +++ b/TdLib.Api/Objects/UserTypeBot.cs @@ -2,137 +2,136 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserType : Object { - public partial class UserType : Object + /// + /// A bot (see https://core.telegram.org/bots) + /// + public class UserTypeBot : UserType { /// - /// A bot (see https://core.telegram.org/bots) - /// - public class UserTypeBot : UserType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userTypeBot"; - - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_edited")] - public bool CanBeEdited { get; set; } - - /// - /// True, if the bot can be invited to basic group and supergroup chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_join_groups")] - public bool CanJoinGroups { get; set; } - - /// - /// True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_read_all_group_messages")] - public bool CanReadAllGroupMessages { get; set; } - - /// - /// True, if the bot has the main Web App - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_main_web_app")] - public bool HasMainWebApp { get; set; } - - /// - /// True, if the bot has topics - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_topics")] - public bool HasTopics { get; set; } - - /// - /// True, if users can create and delete topics in the chat with the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("allows_users_to_create_topics")] - public bool AllowsUsersToCreateTopics { get; set; } - - /// - /// True, if the bot can manage other bots - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_manage_bots")] - public bool CanManageBots { get; set; } - - /// - /// True, if the bot supports inline queries - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_inline")] - public bool IsInline { get; set; } - - /// - /// Placeholder for inline queries (displayed on the application input field) - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("inline_query_placeholder")] - public string InlineQueryPlaceholder { get; set; } - - /// - /// True, if the bot can be queried by username from any non-secret chat - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_guest_queries")] - public bool SupportsGuestQueries { get; set; } - - /// - /// True, if the bot can be set as a guard bot in supergroup chats - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_guard")] - public bool IsGuard { get; set; } - - /// - /// True, if the location of the user is expected to be sent with every inline query to this bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("need_location")] - public bool NeedLocation { get; set; } - - /// - /// True, if the bot supports connection to user accounts for chat automation - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_connect_to_business")] - public bool CanConnectToBusiness { get; set; } - - /// - /// True, if the bot can be added to attachment or side menu - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_added_to_attachment_menu")] - public bool CanBeAddedToAttachmentMenu { get; set; } - - /// - /// The number of recently active users of the bot - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("active_user_count")] - public int ActiveUserCount { get; set; } - } + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "userTypeBot"; + + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_edited")] + public bool CanBeEdited { get; set; } + + /// + /// True, if the bot can be invited to basic group and supergroup chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_join_groups")] + public bool CanJoinGroups { get; set; } + + /// + /// True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_read_all_group_messages")] + public bool CanReadAllGroupMessages { get; set; } + + /// + /// True, if the bot has the main Web App + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_main_web_app")] + public bool HasMainWebApp { get; set; } + + /// + /// True, if the bot has topics + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_topics")] + public bool HasTopics { get; set; } + + /// + /// True, if users can create and delete topics in the chat with the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("allows_users_to_create_topics")] + public bool AllowsUsersToCreateTopics { get; set; } + + /// + /// True, if the bot can manage other bots + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_manage_bots")] + public bool CanManageBots { get; set; } + + /// + /// True, if the bot supports inline queries + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_inline")] + public bool IsInline { get; set; } + + /// + /// Placeholder for inline queries (displayed on the application input field) + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("inline_query_placeholder")] + public string InlineQueryPlaceholder { get; set; } + + /// + /// True, if the bot can be queried by username from any non-secret chat + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_guest_queries")] + public bool SupportsGuestQueries { get; set; } + + /// + /// True, if the bot can be set as a guard bot in supergroup chats + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_guard")] + public bool IsGuard { get; set; } + + /// + /// True, if the location of the user is expected to be sent with every inline query to this bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("need_location")] + public bool NeedLocation { get; set; } + + /// + /// True, if the bot supports connection to user accounts for chat automation + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_connect_to_business")] + public bool CanConnectToBusiness { get; set; } + + /// + /// True, if the bot can be added to attachment or side menu + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_added_to_attachment_menu")] + public bool CanBeAddedToAttachmentMenu { get; set; } + + /// + /// The number of recently active users of the bot + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("active_user_count")] + public int ActiveUserCount { get; set; } } } } diff --git a/TdLib.Api/Objects/UserTypeDeleted.cs b/TdLib.Api/Objects/UserTypeDeleted.cs index 1a288d16..49f922d9 100644 --- a/TdLib.Api/Objects/UserTypeDeleted.cs +++ b/TdLib.Api/Objects/UserTypeDeleted.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserType : Object { - public partial class UserType : Object + /// + /// A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user + /// + public class UserTypeDeleted : UserType { /// - /// A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user + /// Data type for serialization /// - public class UserTypeDeleted : UserType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userTypeDeleted"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userTypeDeleted"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserTypeRegular.cs b/TdLib.Api/Objects/UserTypeRegular.cs index 8647081c..3c23c226 100644 --- a/TdLib.Api/Objects/UserTypeRegular.cs +++ b/TdLib.Api/Objects/UserTypeRegular.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserType : Object { - public partial class UserType : Object + /// + /// Represents the type of user. The following types are possible: regular users, deleted users and bots + /// + public class UserTypeRegular : UserType { /// - /// Represents the type of user. The following types are possible: regular users, deleted users and bots + /// Data type for serialization /// - public class UserTypeRegular : UserType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userTypeRegular"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userTypeRegular"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/UserTypeUnknown.cs b/TdLib.Api/Objects/UserTypeUnknown.cs index 10e918e2..5e283251 100644 --- a/TdLib.Api/Objects/UserTypeUnknown.cs +++ b/TdLib.Api/Objects/UserTypeUnknown.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class UserType : Object { - public partial class UserType : Object + /// + /// No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type + /// + public class UserTypeUnknown : UserType { /// - /// No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type + /// Data type for serialization /// - public class UserTypeUnknown : UserType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "userTypeUnknown"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "userTypeUnknown"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/Usernames.cs b/TdLib.Api/Objects/Usernames.cs index 1d8d2db3..2dfc7928 100644 --- a/TdLib.Api/Objects/Usernames.cs +++ b/TdLib.Api/Objects/Usernames.cs @@ -2,55 +2,61 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes usernames assigned to a user, a supergroup, or a channel /// - public static partial class TdApi + public partial class Usernames : Object { /// - /// Describes usernames assigned to a user, a supergroup, or a channel + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "usernames"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames + /// + [JsonProperty("active_usernames", ItemConverterType = typeof(Converter))] + public string[] ActiveUsernames { get; set; } + + /// + /// List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive + /// + [JsonProperty("disabled_usernames", ItemConverterType = typeof(Converter))] + public string[] DisabledUsernames { get; set; } + + /// + /// Active or disabled username, which may be changed with setUsername or setSupergroupUsername + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("editable_username")] + public string EditableUsername { get; set; } + + /// + /// Collectible usernames that were purchased at https://fragment.com and can be passed to getCollectibleItemInfo for more details + /// + [JsonProperty("collectible_usernames", ItemConverterType = typeof(Converter))] + public string[] CollectibleUsernames { get; set; } + + /// + /// Secondary non-collectible username; for bots only. Can't be used in toggleBotUsernameIsActive; use addBotSecondaryUsername or deleteBotSecondaryUsername to edit it. /// - public partial class Usernames : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "usernames"; - - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } - - /// - /// List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames - /// - [JsonProperty("active_usernames", ItemConverterType = typeof(Converter))] - public string[] ActiveUsernames { get; set; } - - /// - /// List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive - /// - [JsonProperty("disabled_usernames", ItemConverterType = typeof(Converter))] - public string[] DisabledUsernames { get; set; } - - /// - /// Active or disabled username, which may be changed with setUsername or setSupergroupUsername - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("editable_username")] - public string EditableUsername { get; set; } - - /// - /// Collectible usernames that were purchased at https://fragment.com and can be passed to getCollectibleItemInfo for more details - /// - [JsonProperty("collectible_usernames", ItemConverterType = typeof(Converter))] - public string[] CollectibleUsernames { get; set; } - } + [JsonConverter(typeof(Converter))] + [JsonProperty("secondary_username")] + public string SecondaryUsername { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Users.cs b/TdLib.Api/Objects/Users.cs index a5edce33..7b3b39e2 100644 --- a/TdLib.Api/Objects/Users.cs +++ b/TdLib.Api/Objects/Users.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Represents a list of users /// - public static partial class TdApi + public partial class Users : Object { /// - /// Represents a list of users + /// Data type for serialization /// - public partial class Users : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "users"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "users"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Approximate total number of users found - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("total_count")] - public int TotalCount { get; set; } + /// + /// Approximate total number of users found + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("total_count")] + public int TotalCount { get; set; } - /// - /// A list of user identifiers - /// - [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] - public long[] UserIds { get; set; } - } + /// + /// A list of user identifiers + /// + [JsonProperty("user_ids", ItemConverterType = typeof(Converter))] + public long[] UserIds { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/ValidatedOrderInfo.cs b/TdLib.Api/Objects/ValidatedOrderInfo.cs index 658b9cdf..ef3fd917 100644 --- a/TdLib.Api/Objects/ValidatedOrderInfo.cs +++ b/TdLib.Api/Objects/ValidatedOrderInfo.cs @@ -2,43 +2,42 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a temporary identifier of validated order information, which is stored for one hour, and the available shipping options /// - public static partial class TdApi + public partial class ValidatedOrderInfo : Object { /// - /// Contains a temporary identifier of validated order information, which is stored for one hour, and the available shipping options + /// Data type for serialization /// - public partial class ValidatedOrderInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "validatedOrderInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "validatedOrderInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Temporary identifier of the order information - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("order_info_id")] - public string OrderInfoId { get; set; } + /// + /// Temporary identifier of the order information + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("order_info_id")] + public string OrderInfoId { get; set; } - /// - /// Available shipping options - /// - [JsonProperty("shipping_options", ItemConverterType = typeof(Converter))] - public ShippingOption[] ShippingOptions { get; set; } - } + /// + /// Available shipping options + /// + [JsonProperty("shipping_options", ItemConverterType = typeof(Converter))] + public ShippingOption[] ShippingOptions { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VectorPathCommandCubicBezierCurve.cs b/TdLib.Api/Objects/VectorPathCommandCubicBezierCurve.cs index 8ac517d8..d6261f3f 100644 --- a/TdLib.Api/Objects/VectorPathCommandCubicBezierCurve.cs +++ b/TdLib.Api/Objects/VectorPathCommandCubicBezierCurve.cs @@ -2,53 +2,52 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class VectorPathCommand : Object { - public partial class VectorPathCommand : Object + /// + /// A cubic Bézier curve to a given point + /// + public class VectorPathCommandCubicBezierCurve : VectorPathCommand { /// - /// A cubic Bézier curve to a given point + /// Data type for serialization /// - public class VectorPathCommandCubicBezierCurve : VectorPathCommand - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "vectorPathCommandCubicBezierCurve"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "vectorPathCommandCubicBezierCurve"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The start control point of the curve - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_control_point")] - public Point StartControlPoint { get; set; } + /// + /// The start control point of the curve + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_control_point")] + public Point StartControlPoint { get; set; } - /// - /// The end control point of the curve - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_control_point")] - public Point EndControlPoint { get; set; } + /// + /// The end control point of the curve + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_control_point")] + public Point EndControlPoint { get; set; } - /// - /// The end point of the curve - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_point")] - public Point EndPoint { get; set; } - } + /// + /// The end point of the curve + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_point")] + public Point EndPoint { get; set; } } } } diff --git a/TdLib.Api/Objects/VectorPathCommandLine.cs b/TdLib.Api/Objects/VectorPathCommandLine.cs index 2bd28fd6..e2943e1f 100644 --- a/TdLib.Api/Objects/VectorPathCommandLine.cs +++ b/TdLib.Api/Objects/VectorPathCommandLine.cs @@ -2,39 +2,38 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class VectorPathCommand : Object { - public partial class VectorPathCommand : Object + /// + /// Represents a vector path command + /// + public class VectorPathCommandLine : VectorPathCommand { /// - /// Represents a vector path command + /// Data type for serialization /// - public class VectorPathCommandLine : VectorPathCommand - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "vectorPathCommandLine"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "vectorPathCommandLine"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The end point of the straight line - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("end_point")] - public Point EndPoint { get; set; } - } + /// + /// The end point of the straight line + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("end_point")] + public Point EndPoint { get; set; } } } } diff --git a/TdLib.Api/Objects/Venue.cs b/TdLib.Api/Objects/Venue.cs index a5c538f7..fefb38a9 100644 --- a/TdLib.Api/Objects/Venue.cs +++ b/TdLib.Api/Objects/Venue.cs @@ -2,72 +2,71 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a venue /// - public static partial class TdApi + public partial class Venue : Object { /// - /// Describes a venue + /// Data type for serialization /// - public partial class Venue : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "venue"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "venue"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Venue location; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("location")] - public Location Location { get; set; } + /// + /// Venue location; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("location")] + public Location Location { get; set; } - /// - /// Venue name; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Venue name; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Venue address; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("address")] - public string Address { get; set; } + /// + /// Venue address; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("address")] + public string Address { get; set; } - /// - /// Provider of the venue database; as defined by the sender. Currently, only "foursquare" and "gplaces" (Google Places) need to be supported - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("provider")] - public string Provider { get; set; } + /// + /// Provider of the venue database; as defined by the sender. Currently, only "foursquare" and "gplaces" (Google Places) need to be supported + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("provider")] + public string Provider { get; set; } - /// - /// Identifier of the venue in the provider database; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public string Id { get; set; } + /// + /// Identifier of the venue in the provider database; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public string Id { get; set; } - /// - /// Type of the venue in the provider database; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("type")] - public string Type { get; set; } - } + /// + /// Type of the venue in the provider database; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("type")] + public string Type { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VerificationStatus.cs b/TdLib.Api/Objects/VerificationStatus.cs index 0e4caeb6..2e384ccc 100644 --- a/TdLib.Api/Objects/VerificationStatus.cs +++ b/TdLib.Api/Objects/VerificationStatus.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about verification status of a chat or a user /// - public static partial class TdApi + public partial class VerificationStatus : Object { /// - /// Contains information about verification status of a chat or a user + /// Data type for serialization /// - public partial class VerificationStatus : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "verificationStatus"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "verificationStatus"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if the chat or the user is verified by Telegram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_verified")] - public bool IsVerified { get; set; } + /// + /// True, if the chat or the user is verified by Telegram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_verified")] + public bool IsVerified { get; set; } - /// - /// True, if the chat or the user is marked as scam by Telegram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_scam")] - public bool IsScam { get; set; } + /// + /// True, if the chat or the user is marked as scam by Telegram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_scam")] + public bool IsScam { get; set; } - /// - /// True, if the chat or the user is marked as fake by Telegram - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_fake")] - public bool IsFake { get; set; } + /// + /// True, if the chat or the user is marked as fake by Telegram + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_fake")] + public bool IsFake { get; set; } - /// - /// Identifier of the custom emoji to be shown as verification sign provided by a bot for the user; 0 if none - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("bot_verification_icon_custom_emoji_id")] - public long BotVerificationIconCustomEmojiId { get; set; } - } + /// + /// Identifier of the custom emoji to be shown as verification sign provided by a bot for the user; 0 if none + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("bot_verification_icon_custom_emoji_id")] + public long BotVerificationIconCustomEmojiId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/Video.cs b/TdLib.Api/Objects/Video.cs index 28627849..7b5f47ac 100644 --- a/TdLib.Api/Objects/Video.cs +++ b/TdLib.Api/Objects/Video.cs @@ -2,100 +2,99 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a video file /// - public static partial class TdApi + public partial class Video : Object { /// - /// Describes a video file + /// Data type for serialization /// - public partial class Video : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "video"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "video"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Duration of the video, in seconds; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the video, in seconds; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// Video width; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Video width; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Video height; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Video height; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// Original name of the file; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("file_name")] - public string FileName { get; set; } + /// + /// Original name of the file; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("file_name")] + public string FileName { get; set; } - /// - /// MIME type of the file; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the file; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_stickers")] - public bool HasStickers { get; set; } + /// + /// True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_stickers")] + public bool HasStickers { get; set; } - /// - /// True, if the video is expected to be streamed - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("supports_streaming")] - public bool SupportsStreaming { get; set; } + /// + /// True, if the video is expected to be streamed + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("supports_streaming")] + public bool SupportsStreaming { get; set; } - /// - /// Video minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Video minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } + /// + /// Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } - /// - /// File containing the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public File Video_ { get; set; } - } + /// + /// File containing the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public File Video_ { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VideoChat.cs b/TdLib.Api/Objects/VideoChat.cs index 5f39f089..fc08f545 100644 --- a/TdLib.Api/Objects/VideoChat.cs +++ b/TdLib.Api/Objects/VideoChat.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a video chat, i.e. a group call bound to a chat /// - public static partial class TdApi + public partial class VideoChat : Object { /// - /// Describes a video chat, i.e. a group call bound to a chat + /// Data type for serialization /// - public partial class VideoChat : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "videoChat"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "videoChat"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Group call identifier of an active video chat; 0 if none. Full information about the video chat can be received through the method getGroupCall - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("group_call_id")] - public int GroupCallId { get; set; } + /// + /// Group call identifier of an active video chat; 0 if none. Full information about the video chat can be received through the method getGroupCall + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("group_call_id")] + public int GroupCallId { get; set; } - /// - /// True, if the video chat has participants - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("has_participants")] - public bool HasParticipants { get; set; } + /// + /// True, if the video chat has participants + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_participants")] + public bool HasParticipants { get; set; } - /// - /// Default group call participant identifier to join the video chat; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("default_participant_id")] - public MessageSender DefaultParticipantId { get; set; } - } + /// + /// Default group call participant identifier to join the video chat; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("default_participant_id")] + public MessageSender DefaultParticipantId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VideoMessageAdvertisement.cs b/TdLib.Api/Objects/VideoMessageAdvertisement.cs index 4ad8772f..3768d934 100644 --- a/TdLib.Api/Objects/VideoMessageAdvertisement.cs +++ b/TdLib.Api/Objects/VideoMessageAdvertisement.cs @@ -2,86 +2,85 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an advertisement to be shown while a video from a message is watched /// - public static partial class TdApi + public partial class VideoMessageAdvertisement : Object { /// - /// Describes an advertisement to be shown while a video from a message is watched + /// Data type for serialization /// - public partial class VideoMessageAdvertisement : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "videoMessageAdvertisement"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "videoMessageAdvertisement"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier of this result - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("unique_id")] - public long UniqueId { get; set; } + /// + /// Unique identifier of this result + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("unique_id")] + public long UniqueId { get; set; } - /// - /// Text of the advertisement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("text")] - public string Text { get; set; } + /// + /// Text of the advertisement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("text")] + public string Text { get; set; } - /// - /// The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("min_display_duration")] - public int MinDisplayDuration { get; set; } + /// + /// The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("min_display_duration")] + public int MinDisplayDuration { get; set; } - /// - /// The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("max_display_duration")] - public int MaxDisplayDuration { get; set; } + /// + /// The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("max_display_duration")] + public int MaxDisplayDuration { get; set; } - /// - /// True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("can_be_reported")] - public bool CanBeReported { get; set; } + /// + /// True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("can_be_reported")] + public bool CanBeReported { get; set; } - /// - /// Information about the sponsor of the advertisement - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("sponsor")] - public AdvertisementSponsor Sponsor { get; set; } + /// + /// Information about the sponsor of the advertisement + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("sponsor")] + public AdvertisementSponsor Sponsor { get; set; } - /// - /// Title of the sponsored message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the sponsored message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// If non-empty, additional information about the sponsored message to be shown along with the message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("additional_info")] - public string AdditionalInfo { get; set; } - } + /// + /// If non-empty, additional information about the sponsored message to be shown along with the message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("additional_info")] + public string AdditionalInfo { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VideoMessageAdvertisements.cs b/TdLib.Api/Objects/VideoMessageAdvertisements.cs index 1d07b03e..289b918c 100644 --- a/TdLib.Api/Objects/VideoMessageAdvertisements.cs +++ b/TdLib.Api/Objects/VideoMessageAdvertisements.cs @@ -2,50 +2,49 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains a list of advertisements to be shown while a video from a message is watched /// - public static partial class TdApi + public partial class VideoMessageAdvertisements : Object { /// - /// Contains a list of advertisements to be shown while a video from a message is watched + /// Data type for serialization /// - public partial class VideoMessageAdvertisements : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "videoMessageAdvertisements"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "videoMessageAdvertisements"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// List of advertisements - /// - [JsonProperty("advertisements", ItemConverterType = typeof(Converter))] - public VideoMessageAdvertisement[] Advertisements { get; set; } + /// + /// List of advertisements + /// + [JsonProperty("advertisements", ItemConverterType = typeof(Converter))] + public VideoMessageAdvertisement[] Advertisements { get; set; } - /// - /// Delay before the first advertisement is shown, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("start_delay")] - public int StartDelay { get; set; } + /// + /// Delay before the first advertisement is shown, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("start_delay")] + public int StartDelay { get; set; } - /// - /// Delay between consecutive advertisements, in seconds - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("between_delay")] - public int BetweenDelay { get; set; } - } + /// + /// Delay between consecutive advertisements, in seconds + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("between_delay")] + public int BetweenDelay { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VideoNote.cs b/TdLib.Api/Objects/VideoNote.cs index abd72a3a..fb832be0 100644 --- a/TdLib.Api/Objects/VideoNote.cs +++ b/TdLib.Api/Objects/VideoNote.cs @@ -2,79 +2,78 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format /// - public static partial class TdApi + public partial class VideoNote : Object { /// - /// Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format + /// Data type for serialization /// - public partial class VideoNote : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "videoNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "videoNote"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Duration of the video, in seconds; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the video, in seconds; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// A waveform representation of the video note's audio in 5-bit format; may be empty if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("waveform")] - public byte[] Waveform { get; set; } + /// + /// A waveform representation of the video note's audio in 5-bit format; may be empty if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("waveform")] + public byte[] Waveform { get; set; } - /// - /// Video width and height; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("length")] - public int Length { get; set; } + /// + /// Video width and height; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("length")] + public int Length { get; set; } - /// - /// Video minithumbnail; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("minithumbnail")] - public Minithumbnail Minithumbnail { get; set; } + /// + /// Video minithumbnail; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("minithumbnail")] + public Minithumbnail Minithumbnail { get; set; } - /// - /// Video thumbnail in JPEG format; as defined by the sender; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("thumbnail")] - public Thumbnail Thumbnail { get; set; } + /// + /// Video thumbnail in JPEG format; as defined by the sender; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("thumbnail")] + public Thumbnail Thumbnail { get; set; } - /// - /// Result of speech recognition in the video note; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("speech_recognition_result")] - public SpeechRecognitionResult SpeechRecognitionResult { get; set; } + /// + /// Result of speech recognition in the video note; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("speech_recognition_result")] + public SpeechRecognitionResult SpeechRecognitionResult { get; set; } - /// - /// File containing the video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("video")] - public File Video { get; set; } - } + /// + /// File containing the video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("video")] + public File Video { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VideoStoryboard.cs b/TdLib.Api/Objects/VideoStoryboard.cs index 2a2d6801..9b583dd5 100644 --- a/TdLib.Api/Objects/VideoStoryboard.cs +++ b/TdLib.Api/Objects/VideoStoryboard.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a storyboard for a video /// - public static partial class TdApi + public partial class VideoStoryboard : Object { /// - /// Describes a storyboard for a video + /// Data type for serialization /// - public partial class VideoStoryboard : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "videoStoryboard"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "videoStoryboard"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// A JPEG file that contains tiled previews of video - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("storyboard_file")] - public File StoryboardFile { get; set; } + /// + /// A JPEG file that contains tiled previews of video + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("storyboard_file")] + public File StoryboardFile { get; set; } - /// - /// Width of a tile - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("width")] - public int Width { get; set; } + /// + /// Width of a tile + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("width")] + public int Width { get; set; } - /// - /// Height of a tile - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("height")] - public int Height { get; set; } + /// + /// Height of a tile + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("height")] + public int Height { get; set; } - /// - /// File that describes mapping of position in the video to a tile in the JPEG file - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("map_file")] - public File MapFile { get; set; } - } + /// + /// File that describes mapping of position in the video to a tile in the JPEG file + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("map_file")] + public File MapFile { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/VoiceNote.cs b/TdLib.Api/Objects/VoiceNote.cs index 768d805e..d61292e5 100644 --- a/TdLib.Api/Objects/VoiceNote.cs +++ b/TdLib.Api/Objects/VoiceNote.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a voice note /// - public static partial class TdApi + public partial class VoiceNote : Object { /// - /// Describes a voice note + /// Data type for serialization /// - public partial class VoiceNote : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "voiceNote"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "voiceNote"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Duration of the voice note, in seconds; as defined by the sender - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("duration")] - public int Duration { get; set; } + /// + /// Duration of the voice note, in seconds; as defined by the sender + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("duration")] + public int Duration { get; set; } - /// - /// A waveform representation of the voice note in 5-bit format - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("waveform")] - public byte[] Waveform { get; set; } + /// + /// A waveform representation of the voice note in 5-bit format + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("waveform")] + public byte[] Waveform { get; set; } - /// - /// MIME type of the file; as defined by the sender. Usually, one of "audio/ogg" for Opus in an OGG container, "audio/mpeg" for an MP3 audio, or "audio/mp4" for an M4A audio - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mime_type")] - public string MimeType { get; set; } + /// + /// MIME type of the file; as defined by the sender. Usually, one of "audio/ogg" for Opus in an OGG container, "audio/mpeg" for an MP3 audio, or "audio/mp4" for an M4A audio + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mime_type")] + public string MimeType { get; set; } - /// - /// Result of speech recognition in the voice note; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("speech_recognition_result")] - public SpeechRecognitionResult SpeechRecognitionResult { get; set; } + /// + /// Result of speech recognition in the voice note; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("speech_recognition_result")] + public SpeechRecognitionResult SpeechRecognitionResult { get; set; } - /// - /// File containing the voice note - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("voice")] - public File Voice { get; set; } - } + /// + /// File containing the voice note + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("voice")] + public File Voice { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WalletBotBalance.cs b/TdLib.Api/Objects/WalletBotBalance.cs new file mode 100644 index 00000000..07742e5a --- /dev/null +++ b/TdLib.Api/Objects/WalletBotBalance.cs @@ -0,0 +1,44 @@ +using System; +using Newtonsoft.Json; + +// REUSE-IgnoreStart +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi +{ + /// + /// Describes balance of the current user in the bot https://t.me/walt + /// + public partial class WalletBotBalance : Object + { + /// + /// Data type for serialization + /// + [JsonProperty("@type")] + public override string DataType { get; set; } = "walletBotBalance"; + + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } + + /// + /// True, if the user has positive TON Gram balance + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("has_balance")] + public bool HasBalance { get; set; } + + /// + /// The URL to open to launch the bot; may be empty if none + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } + } +} +// REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WebApp.cs b/TdLib.Api/Objects/WebApp.cs index 26c976bb..e97753bb 100644 --- a/TdLib.Api/Objects/WebApp.cs +++ b/TdLib.Api/Objects/WebApp.cs @@ -2,65 +2,64 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a Web App. Use getInternalLink with internalLinkTypeWebApp to share the Web App /// - public static partial class TdApi + public partial class WebApp : Object { /// - /// Describes a Web App. Use getInternalLink with internalLinkTypeWebApp to share the Web App + /// Data type for serialization /// - public partial class WebApp : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webApp"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Web App short name - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("short_name")] - public string ShortName { get; set; } + /// + /// Web App short name + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("short_name")] + public string ShortName { get; set; } - /// - /// Web App title - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Web App title + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("description")] - public string Description { get; set; } + /// + /// + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("description")] + public string Description { get; set; } - /// - /// Web App photo - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("photo")] - public Photo Photo { get; set; } + /// + /// Web App photo + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("photo")] + public Photo Photo { get; set; } - /// - /// Web App animation; may be null - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("animation")] - public Animation Animation { get; set; } - } + /// + /// Web App animation; may be null + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("animation")] + public Animation Animation { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WebAppInfo.cs b/TdLib.Api/Objects/WebAppInfo.cs index 44acdc33..40ac0d57 100644 --- a/TdLib.Api/Objects/WebAppInfo.cs +++ b/TdLib.Api/Objects/WebAppInfo.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Web App /// - public static partial class TdApi + public partial class WebAppInfo : Object { /// - /// Contains information about a Web App + /// Data type for serialization /// - public partial class WebAppInfo : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webAppInfo"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webAppInfo"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Unique identifier for the Web App launch - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("launch_id")] - public long LaunchId { get; set; } + /// + /// Unique identifier for the Web App launch + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("launch_id")] + public long LaunchId { get; set; } - /// - /// The Web App URL to open in a web view - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public WebAppUrl Url { get; set; } - } + /// + /// The Web App URL to open in a web view + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public WebAppUrl Url { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WebAppOpenModeCompact.cs b/TdLib.Api/Objects/WebAppOpenModeCompact.cs index 05a4c3e9..5745800e 100644 --- a/TdLib.Api/Objects/WebAppOpenModeCompact.cs +++ b/TdLib.Api/Objects/WebAppOpenModeCompact.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class WebAppOpenMode : Object { - public partial class WebAppOpenMode : Object + /// + /// Describes mode in which a Web App is opened + /// + public class WebAppOpenModeCompact : WebAppOpenMode { /// - /// Describes mode in which a Web App is opened + /// Data type for serialization /// - public class WebAppOpenModeCompact : WebAppOpenMode - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webAppOpenModeCompact"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webAppOpenModeCompact"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/WebAppOpenModeFullScreen.cs b/TdLib.Api/Objects/WebAppOpenModeFullScreen.cs index 4fe5d0fb..faff01ef 100644 --- a/TdLib.Api/Objects/WebAppOpenModeFullScreen.cs +++ b/TdLib.Api/Objects/WebAppOpenModeFullScreen.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class WebAppOpenMode : Object { - public partial class WebAppOpenMode : Object + /// + /// The Web App is opened in the full-screen mode + /// + public class WebAppOpenModeFullScreen : WebAppOpenMode { /// - /// The Web App is opened in the full-screen mode + /// Data type for serialization /// - public class WebAppOpenModeFullScreen : WebAppOpenMode - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webAppOpenModeFullScreen"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webAppOpenModeFullScreen"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/WebAppOpenModeFullSize.cs b/TdLib.Api/Objects/WebAppOpenModeFullSize.cs index 29e6a9c7..a69ef12a 100644 --- a/TdLib.Api/Objects/WebAppOpenModeFullSize.cs +++ b/TdLib.Api/Objects/WebAppOpenModeFullSize.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class WebAppOpenMode : Object { - public partial class WebAppOpenMode : Object + /// + /// The Web App is opened in the full-size mode + /// + public class WebAppOpenModeFullSize : WebAppOpenMode { /// - /// The Web App is opened in the full-size mode + /// Data type for serialization /// - public class WebAppOpenModeFullSize : WebAppOpenMode - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webAppOpenModeFullSize"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webAppOpenModeFullSize"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/WebAppOpenParameters.cs b/TdLib.Api/Objects/WebAppOpenParameters.cs index b5371214..c491a0be 100644 --- a/TdLib.Api/Objects/WebAppOpenParameters.cs +++ b/TdLib.Api/Objects/WebAppOpenParameters.cs @@ -2,51 +2,50 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Options to be used when a Web App is opened /// - public static partial class TdApi + public partial class WebAppOpenParameters : Object { /// - /// Options to be used when a Web App is opened + /// Data type for serialization /// - public partial class WebAppOpenParameters : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webAppOpenParameters"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webAppOpenParameters"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Preferred Web App theme; pass null to use the default theme - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("theme")] - public ThemeParameters Theme { get; set; } + /// + /// Preferred Web App theme; pass null to use the default theme + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("theme")] + public ThemeParameters Theme { get; set; } - /// - /// Short name of the current application; 0-64 English letters, digits, and underscores - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("application_name")] - public string ApplicationName { get; set; } + /// + /// Short name of the current application; 0-64 English letters, digits, and underscores + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("application_name")] + public string ApplicationName { get; set; } - /// - /// The mode in which the Web App is opened; pass null to open in webAppOpenModeFullSize - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("mode")] - public WebAppOpenMode Mode { get; set; } - } + /// + /// The mode in which the Web App is opened; pass null to open in webAppOpenModeFullSize + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("mode")] + public WebAppOpenMode Mode { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WebAppUrl.cs b/TdLib.Api/Objects/WebAppUrl.cs index c02dc26c..ca717f4e 100644 --- a/TdLib.Api/Objects/WebAppUrl.cs +++ b/TdLib.Api/Objects/WebAppUrl.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Contains information about a Web App URL /// - public static partial class TdApi + public partial class WebAppUrl : Object { /// - /// Contains information about a Web App URL + /// Data type for serialization /// - public partial class WebAppUrl : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webAppUrl"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webAppUrl"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// The Web App URL to open in a web view - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// The Web App URL to open in a web view + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// True, if events from the Web App must be accepted only from the same origin as the URL - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("require_same_origin")] - public bool RequireSameOrigin { get; set; } - } + /// + /// True, if events from the Web App must be accepted only from the same origin as the URL + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("require_same_origin")] + public bool RequireSameOrigin { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WebBrowserSettings.cs b/TdLib.Api/Objects/WebBrowserSettings.cs index 67b69b00..e5abe5a2 100644 --- a/TdLib.Api/Objects/WebBrowserSettings.cs +++ b/TdLib.Api/Objects/WebBrowserSettings.cs @@ -2,56 +2,55 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes web browser settings /// - public static partial class TdApi + public partial class WebBrowserSettings : Object { /// - /// Describes web browser settings + /// Data type for serialization /// - public partial class WebBrowserSettings : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webBrowserSettings"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webBrowserSettings"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// True, if links are opened in an external browser by default - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("open_external_browser")] - public bool OpenExternalBrowser { get; set; } + /// + /// True, if links are opened in an external browser by default + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("open_external_browser")] + public bool OpenExternalBrowser { get; set; } - /// - /// The list of websites which must always be opened in an external browser - /// - [JsonProperty("external_exceptions", ItemConverterType = typeof(Converter))] - public WebDomainException[] ExternalExceptions { get; set; } + /// + /// The list of websites which must always be opened in an external browser + /// + [JsonProperty("external_exceptions", ItemConverterType = typeof(Converter))] + public WebDomainException[] ExternalExceptions { get; set; } - /// - /// The list of websites which must always be opened in the in-app browser - /// - [JsonProperty("in_app_exceptions", ItemConverterType = typeof(Converter))] - public WebDomainException[] InAppExceptions { get; set; } + /// + /// The list of websites which must always be opened in the in-app browser + /// + [JsonProperty("in_app_exceptions", ItemConverterType = typeof(Converter))] + public WebDomainException[] InAppExceptions { get; set; } - /// - /// True, if a close button must be shown in the in-app browser; for Android app only - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("display_close_button")] - public bool DisplayCloseButton { get; set; } - } + /// + /// True, if a close button must be shown in the in-app browser; for Android app only + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("display_close_button")] + public bool DisplayCloseButton { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WebBrowserTypeExternal.cs b/TdLib.Api/Objects/WebBrowserTypeExternal.cs index f162edb7..b791a83f 100644 --- a/TdLib.Api/Objects/WebBrowserTypeExternal.cs +++ b/TdLib.Api/Objects/WebBrowserTypeExternal.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class WebBrowserType : Object { - public partial class WebBrowserType : Object + /// + /// Describes the type of web browser + /// + public class WebBrowserTypeExternal : WebBrowserType { /// - /// Describes the type of web browser + /// Data type for serialization /// - public class WebBrowserTypeExternal : WebBrowserType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webBrowserTypeExternal"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webBrowserTypeExternal"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/WebBrowserTypeInApp.cs b/TdLib.Api/Objects/WebBrowserTypeInApp.cs index aa759ce5..e6e69fa0 100644 --- a/TdLib.Api/Objects/WebBrowserTypeInApp.cs +++ b/TdLib.Api/Objects/WebBrowserTypeInApp.cs @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class WebBrowserType : Object { - public partial class WebBrowserType : Object + /// + /// The in-app browser + /// + public class WebBrowserTypeInApp : WebBrowserType { /// - /// The in-app browser + /// Data type for serialization /// - public class WebBrowserTypeInApp : WebBrowserType - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webBrowserTypeInApp"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webBrowserTypeInApp"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - } } } } diff --git a/TdLib.Api/Objects/WebDomainException.cs b/TdLib.Api/Objects/WebDomainException.cs index 0b18b0b6..29752ec3 100644 --- a/TdLib.Api/Objects/WebDomainException.cs +++ b/TdLib.Api/Objects/WebDomainException.cs @@ -2,58 +2,57 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an exception for built-in browser usage /// - public static partial class TdApi + public partial class WebDomainException : Object { /// - /// Describes an exception for built-in browser usage + /// Data type for serialization /// - public partial class WebDomainException : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webDomainException"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webDomainException"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// URL for which the exception is done - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("url")] - public string Url { get; set; } + /// + /// URL for which the exception is done + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("url")] + public string Url { get; set; } - /// - /// Domain of the URL. All URLs on the domain and subdomains of the domain are subject to the exception - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("domain")] - public string Domain { get; set; } + /// + /// Domain of the URL. All URLs on the domain and subdomains of the domain are subject to the exception + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("domain")] + public string Domain { get; set; } - /// - /// Title of the website - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("title")] - public string Title { get; set; } + /// + /// Title of the website + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("title")] + public string Title { get; set; } - /// - /// Identifier of the custom emoji with favicon of the website; may be 0 if unknown, in which case the first letter of the domain must be used - /// - [JsonConverter(typeof(Converter.Int64))] - [JsonProperty("favicon_custom_emoji_id")] - public long FaviconCustomEmojiId { get; set; } - } + /// + /// Identifier of the custom emoji with favicon of the website; may be 0 if unknown, in which case the first letter of the domain must be used + /// + [JsonConverter(typeof(Converter.Int64))] + [JsonProperty("favicon_custom_emoji_id")] + public long FaviconCustomEmojiId { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WebPageInstantView.cs b/TdLib.Api/Objects/WebPageInstantView.cs index fefb174a..5f3cc811 100644 --- a/TdLib.Api/Objects/WebPageInstantView.cs +++ b/TdLib.Api/Objects/WebPageInstantView.cs @@ -2,71 +2,70 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes an instant view page for a web page /// - public static partial class TdApi + public partial class WebPageInstantView : Object { /// - /// Describes an instant view page for a web page + /// Data type for serialization /// - public partial class WebPageInstantView : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "webPageInstantView"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "webPageInstantView"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Content of the instant view page - /// - [JsonProperty("blocks", ItemConverterType = typeof(Converter))] - public PageBlock[] Blocks { get; set; } + /// + /// Content of the instant view page + /// + [JsonProperty("blocks", ItemConverterType = typeof(Converter))] + public PageBlock[] Blocks { get; set; } - /// - /// Number of the instant view views; 0 if unknown - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("view_count")] - public int ViewCount { get; set; } + /// + /// Number of the instant view views; 0 if unknown + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("view_count")] + public int ViewCount { get; set; } - /// - /// Version of the instant view; currently, can be 1 or 2 - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("version")] - public int Version { get; set; } + /// + /// Version of the instant view; currently, can be 1 or 2 + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("version")] + public int Version { get; set; } - /// - /// True, if the instant view must be shown from right to left - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_rtl")] - public bool IsRtl { get; set; } + /// + /// True, if the instant view must be shown from right to left + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_rtl")] + public bool IsRtl { get; set; } - /// - /// True, if the instant view contains the full page. A network request might be needed to get the full instant view - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("is_full")] - public bool IsFull { get; set; } + /// + /// True, if the instant view contains the full page. A network request might be needed to get the full instant view + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("is_full")] + public bool IsFull { get; set; } - /// - /// An internal link to be opened to leave feedback about the instant view - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("feedback_link")] - public InternalLinkType FeedbackLink { get; set; } - } + /// + /// An internal link to be opened to leave feedback about the instant view + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("feedback_link")] + public InternalLinkType FeedbackLink { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.Api/Objects/WelcomeMessage.cs b/TdLib.Api/Objects/WelcomeMessage.cs index ba228a43..8b1af6c7 100644 --- a/TdLib.Api/Objects/WelcomeMessage.cs +++ b/TdLib.Api/Objects/WelcomeMessage.cs @@ -2,44 +2,43 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// Describes a set up welcome message /// - public static partial class TdApi + public partial class WelcomeMessage : Object { /// - /// Describes a set up welcome message + /// Data type for serialization /// - public partial class WelcomeMessage : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "welcomeMessage"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "welcomeMessage"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } - /// - /// Welcome message identifier; unique for the chat to which the welcome message belongs - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("id")] - public int Id { get; set; } + /// + /// Welcome message identifier; unique for the chat to which the welcome message belongs + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("id")] + public int Id { get; set; } - /// - /// Content of the welcome message - /// - [JsonConverter(typeof(Converter))] - [JsonProperty("content")] - public MessageContent Content { get; set; } - } + /// + /// Content of the welcome message + /// + [JsonConverter(typeof(Converter))] + [JsonProperty("content")] + public MessageContent Content { get; set; } } } // REUSE-IgnoreEnd \ No newline at end of file diff --git a/TdLib.CodeGen/Function.tpl b/TdLib.CodeGen/Function.tpl index 7206cf0b..255c98a4 100644 --- a/TdLib.CodeGen/Function.tpl +++ b/TdLib.CodeGen/Function.tpl @@ -3,44 +3,46 @@ using System.Threading.Tasks; using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// $FUNC_DESCRIPTION /// - public static partial class TdApi + public class $FUNC_NAME : Function<$RETURN_TYPE_NAME> { /// - /// $FUNC_DESCRIPTION + /// Data type for serialization /// - public class $FUNC_NAME : Function<$RETURN_TYPE_NAME> - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "$TL_FUNC_NAME"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "$TL_FUNC_NAME"; - /// - /// Extra data attached to the function - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the function. + /// + /// + /// TdSharp internally uses this to find responses corresponding to each request initiated by the user. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } $FUNC_FIELDS - } + } - /// - /// $FUNC_DESCRIPTION - /// - public static Task<$RETURN_TYPE_NAME> $FUNC_NAMEAsync( - this IClient client$FUNC_PARAMS) + /// + /// $FUNC_DESCRIPTION + /// + public static Task<$RETURN_TYPE_NAME> $FUNC_NAMEAsync( + this IClient client$FUNC_PARAMS) + { + return client.ExecuteAsync(new $FUNC_NAME { - return client.ExecuteAsync(new $FUNC_NAME - { - $FUNC_ARGS - }); - } + $FUNC_ARGS + }); } } // REUSE-IgnoreEnd diff --git a/TdLib.CodeGen/Generator.fs b/TdLib.CodeGen/Generator.fs index 6369c853..c0d5ce49 100644 --- a/TdLib.CodeGen/Generator.fs +++ b/TdLib.CodeGen/Generator.fs @@ -101,7 +101,7 @@ let generateType (def: Parser.TlDef) (annotations: Parser.TlAnnotation list) = let tlTypeName = Utils.toCamelCase objectTypeName Utils.LowerCase let isObjectType = objectTypeName = baseTypeName - let tabulation = if isObjectType then 12 else 16 + let tabulation = if isObjectType then 8 else 12 let objectFields = fields @@ -135,7 +135,7 @@ let generateFunc (def: Parser.TlDef) (annotations: Parser.TlAnnotation list) = let funcFields = fields - |> List.map (fun field -> generateField def field annotations 12) + |> List.map (fun field -> generateField def field annotations 8) |> String.concat "\n\n" let funcParams = diff --git a/TdLib.CodeGen/Methods.tl b/TdLib.CodeGen/Methods.tl index f22baed1..eb4222f8 100644 --- a/TdLib.CodeGen/Methods.tl +++ b/TdLib.CodeGen/Methods.tl @@ -510,8 +510,8 @@ toggleSavedMessagesTopicIsPinned saved_messages_topic_id:int53 is_pinned:Bool = setPinnedSavedMessagesTopics saved_messages_topic_ids:vector = Ok; -//@description Returns full information about a community. The data will be sent through update. @community_id Community identifier -loadCommunityFullInfo community_id:int53 = Ok; +//@description Returns full information about a community @community_id Community identifier +getCommunityFullInfo community_id:int53 = CommunityFullInfo; //@description Creates a new community for the given chat. Returns identifier of the created community //@name Name of the new community @@ -525,6 +525,19 @@ createCommunity name:string chat_id:int53 is_chat_hidden:Bool = CommunityId; //@name New name of the community setCommunityName community_id:int53 name:string = Ok; +//@description Changes the photo of a community; requires can_change_info administrator right in the community +//@community_id Identifier of the community +//@photo New chat photo; pass null to delete the chat photo +setCommunityPhoto community_id:int53 photo:InputChatPhoto = Ok; + +//@description Changes permissions of regular members in the given community; requires can_ban_members administrator right in the community +//@community_id Identifier of the community +//@permissions New permissions of the community +setCommunityPermissions community_id:int53 permissions:communityPermissions = Ok; + +//@description Deletes a community; requires owner privileges @community_id Identifier of the community +deleteCommunity community_id:int53 = Ok; + //@description Returns a list of common group chats with a given user. Chats are sorted by their type and creation date //@user_id User identifier @@ -1107,13 +1120,14 @@ editEphemeralMessage chat_id:int53 receiver_user_id:int53 ephemeral_message_id:i //@show_caption_above_media Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages editEphemeralMessageCaption chat_id:int53 receiver_user_id:int53 ephemeral_message_id:int32 reply_markup:ReplyMarkup caption:formattedText show_caption_above_media:Bool = Ok; -//@description Edits the message from which a callback query has originated with an ephemeral message; for bots only +//@description Replies to a callback query with an ephemeral message; for bots only //@callback_query_id Identifier of the callback query +//@replace_callback_query_message Pass true if the ephemeral message must replace the message from which the callback query originated //@protect_content Pass true if the content of the message must be protected from forwarding and saving //@reply_markup The new message reply markup; pass null if none //@input_message_content New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, //-inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote -editCallbackQueryMessage callback_query_id:int64 protect_content:Bool reply_markup:ReplyMarkup input_message_content:InputMessageContent = Ok; +replyToCallbackQueryWithEphemeralMessage callback_query_id:int64 replace_callback_query_message:Bool protect_content:Bool reply_markup:ReplyMarkup input_message_content:InputMessageContent = Ok; //@description Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed //@chat_id The chat the message belongs to @@ -1583,7 +1597,8 @@ getMessageEffect effect_id:int64 = MessageEffect; //@quote_position Approximate quote position in UTF-16 code units searchQuote text:formattedText quote:formattedText quote_position:int32 = FoundPosition; -//@description Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in the text. Can be called synchronously @text The text in which to look for entities +//@description Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, TON blockchain addresses, URLs, and email addresses) found in the text. Can be called synchronously +//@text The text in which to look for entities getTextEntities text:string = TextEntities; //@description Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl, @@ -3730,15 +3745,18 @@ reorderBotMediaPreviews bot_user_id:int53 language_code:string file_ids:vector = Ok; -//@description Checks whether a username can be set for a new bot. Use checkChatUsername to check username for other chat types +//@description Checks whether a username can be set for a new bot or assigned as a secondary username to an existing bot. Use checkChatUsername to check username for other chat types //@username Username to be checked -checkBotUsername username:string = CheckChatUsernameResult; +//@is_secondary Pass true to check whether the username is suitable as a secondary username for an existing bot; pass false to check whether the username is suitable for createBot +checkBotUsername username:string is_secondary:Bool = CheckChatUsernameResult; //@description Creates a bot which will be managed by another bot. Returns the created bot. May return an error with a message "BOT_CREATE_LIMIT_EXCEEDED" //-if the user already owns the maximum allowed number of bots as per getOption("owned_bot_count_max"). An internal link "https://t.me/BotFather?start=deletebot" can be processed to handle the error //@manager_bot_user_id Identifier of the bot that will manage the created bot //@name Name of the bot; 1-64 characters -//@username Username of the bot. The username must end with "bot". Use checkBotUsername to find whether the name is suitable +//@username Username of the bot. The username must end with "bot" or a string from updateAllowedBotUsernamePremiumSuffixes case-insensitive. +//-Use checkBotUsername to find whether the name is suitable. If the username doesn't end with "bot", then the current user must have Telegram Premium subscription, +//-the chosen username will be assigned as secondary and an additional regular username ending with "bot" will be automatically assigned to the created bot //@via_link Pass true if the bot is created from an internalLinkTypeRequestManagedBot link createBot manager_bot_user_id:int53 name:string username:string via_link:Bool = User; @@ -3767,6 +3785,16 @@ getBotName bot_user_id:int53 language_code:string = Text; //@description Changes a profile photo for a bot @bot_user_id Identifier of the target bot @photo Profile photo to set; pass null to delete the chat photo setBotProfilePhoto bot_user_id:int53 photo:InputChatPhoto = Ok; +//@description Adds a secondary username to a bot. Can be called only if userTypeBot.can_be_edited, the bot has no secondary username and the current user has Telegram Premium subscription. +//-May return an error with a message "OWNER_USERNAMES_LIMIT_EXCEEDED" if the current user already owns at least getOption("secondary_bot_username_count_max") bots with a secondary username +//@bot_user_id Identifier of the target bot +//@username The new secondary username; must be non-empty. Use checkBotUsername to check username validness +addBotSecondaryUsername bot_user_id:int53 username:string = Ok; + +//@description Removes a secondary username from a bot. Can be called only if userTypeBot.can_be_edited == true and the bot has a secondary username +//@bot_user_id Identifier of the target bot +deleteBotSecondaryUsername bot_user_id:int53 = Ok; + //@description Changes active state for a username of a bot. The editable username can be disabled only if there are other active usernames. //-May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true //@bot_user_id Identifier of the target bot @@ -3803,9 +3831,9 @@ getBotInfoShortDescription bot_user_id:int53 language_code:string = Text; //@description Changes the verification status of a user or a chat by an owned bot //@bot_user_id Identifier of the owned bot, which will verify the user or the chat //@verified_id Identifier of the user or the supergroup or channel chat, which will be verified by the bot -//@custom_description Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max"). +//@custom_description Custom description of verification reason; 0-getOption("bot_verification_custom_description_length_max") characters. Only TextUrl entities are supported. //-If empty, then "was verified by organization "organization_name"" will be used as description. Can be specified only if the bot is allowed to provide custom description -setMessageSenderBotVerification bot_user_id:int53 verified_id:MessageSender custom_description:string = Ok; +setMessageSenderBotVerification bot_user_id:int53 verified_id:MessageSender custom_description:formattedText = Ok; //@description Removes the verification status of a user or a chat by an owned bot //@bot_user_id Identifier of the owned bot, which verified the user or the chat @@ -4400,7 +4428,7 @@ getDefaultMessageAutoDeleteTime = MessageAutoDeleteTime; //@description Removes a chat action bar without any other action @chat_id Chat identifier removeChatActionBar chat_id:int53 = Ok; -//@description Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported +//@description Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, if chat.can_be_reported, or if messageProperties.can_report_chat //@chat_id Chat identifier //@option_id Option identifier chosen by the user; leave empty for the initial request //@message_ids Identifiers of reported messages. Use messageProperties.can_report_chat to check whether the message can be reported @@ -4440,12 +4468,197 @@ getChatRevenueWithdrawalUrl chat_id:int53 password:string = HttpUrl; //@limit The maximum number of transactions to be returned; up to 100 getChatRevenueTransactions chat_id:int53 offset:string limit:int32 = ChatRevenueTransactions; -//@description Returns the list of TON blockchain transactions of the current user +//@description Returns the list of TON Gram transactions of the current user //@direction Direction of the transactions to receive; pass null to get all transactions //@offset Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results //@limit The maximum number of transactions to return getTonTransactions direction:TransactionDirection offset:string limit:int32 = TonTransactions; +//@description Returns the list of TON wallet transactions of the current user; can be used only if getOption("can_use_ton_wallet") +//@direction Direction of the transactions to receive; pass null to get all transactions +//@offset Offset of the first transaction to return as received from the previous request; use empty string to get the first chunk of results +//@limit The maximum number of transactions to return +getTonWalletTransactions direction:TransactionDirection offset:string limit:int32 = TonWalletTransactions; + +//@description Returns a TON wallet transaction by their identifier @transaction_id Identifier of the transaction +getTonWalletTransaction transaction_id:string = TonWalletTransaction; + +//@description Returns a TON wallet transaction by their msg_hash; return an error if the transaction isn't finalized yet @msg_hash Value of msg_hash of the transaction +getTonWalletTransactionByMsgHash msg_hash:string = TonWalletTransaction; + + +//@description Loads state of the TON wallet of the current user; can be used only if getOption("can_use_ton_wallet") +loadTonWalletState = Ok; + +//@description Loads or reloads the current state of gasless transfers for the current user; can be used only if getOption("can_use_ton_wallet") +loadTonWalletGaslessTransfersInfo = Ok; + +//@description Returns information about balance of the current user in the bot https://t.me/walt; can be used only if getOption("can_use_ton_wallet") +checkWalletBotBalance = WalletBotBalance; + +//@description Returns TON wallet addresses of the specified users; can be used only if getOption("can_use_ton_wallet") +//@user_ids Identifiers of the users whose wallet addresses have to be returned. If a user has no TON wallet, it will be skipped in the result +getUserTonWalletAddresses user_ids:vector = UserTonWalletAddresses; + +//@description Creates a TON wallet for the specified regular user; can be used only if getOption("can_use_ton_wallet"). The current user must have positive TON wallet balance @user_id Identifier of the user +createUserTonWallet user_id:int53 = UserTonWalletAddress; + +//@description Returns information about a TON wallet with the given address; can be used only if getOption("can_use_ton_wallet") @address Address in the TON blockchain +getAddressTonWallet address:string = UserTonWalletAddress; + +//@description Returns the secret phrase of the user's TON wallet as a space separated list of words. Works only if tonWalletState.can_export_phrase is true +//@password Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request +getTonWalletSecretPhrase password:string = Text; + +//@description Returns a challenge which may be used to proof ownership of a TON wallet; can be used only if getOption("can_use_ton_wallet") +getTonWalletOwnershipProofChallenge = TonWalletOwnershipProofChallenge; + +//@description Enables backup of the TON wallet of the user. Works only if tonWalletState.can_enable_backup is true +//@secret_phrase The secret phrase of the user's TON wallet as a space separated list of words +//@proof Proof of the TON wallet ownership; use getTonWalletOwnershipProofChallenge to get a challenge for the proof +enableTonWalletBackup secret_phrase:string proof:tonWalletOwnershipProof = Ok; + +//@description Disables backup of the TON wallet of the user. Works only if tonWalletState.is_backup_enabled is true +//@password Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request +disableTonWalletBackup password:string = Ok; + +//@description Disables backup of the TON wallet of the user using proof of wallet ownership instead of the password. Works only if tonWalletState.is_backup_enabled is true +//@proof Proof of the TON wallet ownership; use getTonWalletOwnershipProofChallenge to get a challenge for the proof +disableTonWalletBackupWithProof proof:tonWalletOwnershipProof = Ok; + +//@description Sends a cryptocurrency from the user's TON wallet; can be used only if getOption("can_use_ton_wallet") +//@user_id Identifier of the user who will receive the transfer; pass 0 if unknown +//@address Address in the TON blockchain of the transaction peer +//@amount The amount of the sent cryptocurrency, in the smallest units of the cryptocurrency +//@comment Comment added to the transaction +//@is_comment_encrypted Pass true if the comment is encrypted and must be decrypted using the receiver's or sender's private key +//@sending_id Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates +//@regular_transfer_data Serialized data for regular cryptocurrency transfer request. The minimum allowed transfer amount is getOption("ton_wallet_transfer_amount_min") +//@gasless_transfer_data Serialized data for gasless cryptocurrency transfer request; pass an empty string to force a regular request. +//-The minimum allowed transfer amount for a gassless transfer is getOption("ton_wallet_gasless_transfer_amount_min") +sendTonWalletTransfer user_id:int53 address:string amount:int53 comment:string is_comment_encrypted:Bool sending_id:int32 regular_transfer_data:bytes gasless_transfer_data:bytes = TonWalletTransferResult; + +//@description Deletes the current TON wallet of the user and creates a new one; can be used only if getOption("can_use_ton_wallet") +//@password Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request +deleteTonWallet password:string = Ok; + +//@description Replaces the current TON wallet with another existing v6r2 wallet or changes private key of the current TON wallet; can be used only if getOption("can_use_ton_wallet") +//@password Password of the current user; pass an empty string unless receive an error with a message "PASSWORD_MISSING" for a passwordless request +//@anchor_public_key Original public key of the new TON wallet +//@proof Proof of ownership of the new private key of the TON wallet; use getTonWalletOwnershipProofChallenge to get a challenge for the proof +replaceTonWallet password:string anchor_public_key:bytes proof:tonWalletOwnershipProof = Ok; + +//@description Returns exchange rates of currencies to USD +getCurrencyExchangeRates = CurrencyExchangeRates; + +//@description Returns NFTs stored on the TON wallet of the user; can be used only if getOption("can_use_ton_wallet") +//@offset Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results +//@limit The maximum number of NFTs to be returned; must be positive and can't be greater than 20 +getTonWalletNfts offset:string limit:int32 = TonNfts; + + +//@description Returns active TON Connect sessions; can be used only if getOption("can_use_ton_wallet") +getTonConnectSessions = TonConnectSessions; + +//@description Creates a TON Connect session; can be used only if getOption("can_use_ton_wallet") +//@dapp_client_id Hex-encoded public X25519 key of the dApp +//@manifest_url URL of the manifest of the dApp +createTonConnectSession dapp_client_id:string manifest_url:string = TonConnectSession; + +//@description Sets wallet_client_id for a pending TON Connect session. Then, sendTonConnectSessionConnectResult must be used to accept or reject the session +//@session_id Unique identifier of the session +//@wallet_client_id Hex-encoded public X25519 key of the current user's application calculated from the TON wallet private key and session parameters +setTonConnectSessionWalletClientId session_id:int64 wallet_client_id:string = TonConnectChallenge; + +//@description Accepts or rejects a TON Connect session +//@session_id Unique identifier of the session +//@challenge_answer Answer to the challenge received from setTonConnectSessionWalletClientId +//@is_error Pass true to reject the request; pass false to accept it +//@body Body of the result +//@trace_id Identifier to trace the connection request +sendTonConnectSessionConnectResult session_id:int64 challenge_answer:bytes is_error:Bool body:bytes trace_id:string = Ok; + +//@description Returns pending requests in a TON Connect session @session_id Unique identifier of the session +getTonConnectSessionPendingRequests session_id:int64 = TonConnectRequests; + +//@description Returns pending requests with a dApp through TON Connect @dapp_client_id Hex-encoded public X25519 key of the dApp +getTonConnectDAppPendingRequests dapp_client_id:string = TonConnectRequests; + +//@description Claims a request received through TON Connect for processing on this device +//@session_id Unique identifier of the TON Connect session +//@message_id Identifier of the message with the request +//@dapp_request_id Identifier of the request assigned by the dApp +//@is_rejected Pass true to reject the request +claimTonConnectRequest session_id:int64 message_id:int53 dapp_request_id:string is_rejected:Bool = Ok; + +//@description Sends an answer for a request received through TON Connect +//@session_id Unique identifier of the TON Connect session +//@message_id Identifier of the message with the request +//@trace_id Identifier to trace the request +//@body Body of the response +answerTonConnectRequest session_id:int64 message_id:int53 trace_id:string body:bytes = Ok; + +//@description Returns the next event identifier for the given TON Connect session @session_id Unique identifier of the TON Connect session +getTonConnectSessionNextEventId session_id:int64 = TonConnectSessionEventId; + +//@description Closes a TON Connect session +//@session_id Unique identifier of the TON Connect session to close +//@body Encrypted body of the disconnect event; may be empty if the session has already been closed. Use getTonConnectSessionNextEventId to get event identifier for the event +disconnectTonConnectSession session_id:int64 body:bytes = Ok; + + +//@description Returns available on-ramp providers @cryptocurrency Pass a cryptocurrency to receive only providers that support it; pass an empty string to receive all providers +getOnRampProviders cryptocurrency:string = OnRampProviders; + +//@description Returns the list of fiat currencies supported by an on-ramp provider for the given cryptocurrency +//@provider_id Unique identifier of the on-ramp provider; only for providers that supports base currencies +//@cryptocurrency The cryptocurrency that will be bought +getOnRampProviderBaseCurrencies provider_id:string cryptocurrency:string = Currencies; + +//@description Returns the available on-ramp payment methods based on the current user location +//@provider_id Unique identifier of the on-ramp provider +//@cryptocurrency The cryptocurrency that will be bought +//@base_currency ISO 4217 currency code of the currency that will be used for the purchase; pass an empty string if unknown +getOnRampPaymentAvailability provider_id:string cryptocurrency:string base_currency:string = OnRampPaymentAvailability; + +//@description Returns the limits for an on-ramp payment; only for providers that supports limits retrieval +//@provider_id Unique identifier of the on-ramp provider +//@cryptocurrency The cryptocurrency that will be bought +//@base_currency ISO 4217 currency code of the currency that will be used for the purchase +//@payment_method_name Name of the chosen payment method; pass an empty string if none +getOnRampPaymentLimits provider_id:string cryptocurrency:string base_currency:string payment_method_name:string = OnRampPaymentLimits; + +//@description Returns a quote for an on-ramp payment; only for providers that supports quote retrieval +//@provider_id Unique identifier of the on-ramp provider +//@cryptocurrency The cryptocurrency that will be bought +//@base_currency ISO 4217 currency code of the currency that will be used for the purchase +//@cryptocurrency_amount The amount of the cryptocurrency to buy; pass an empty string if the user selected base_currency_amount +//@base_currency_amount The amount of the base currency to spend; pass an empty string if the user selected cryptocurrency_amount +//@payment_method_name Name of the chosen payment method; pass an empty string if none +getOnRampPaymentQuote provider_id:string cryptocurrency:string base_currency:string cryptocurrency_amount:string base_currency_amount:string payment_method_name:string = OnRampPaymentQuote; + +//@description Creates a session for an on-ramp payment +//@provider_id Unique identifier of the on-ramp provider +//@cryptocurrency The cryptocurrency that will be bought +//@address Address to which the cryptocurrency will be sent +//@payment_method_name Name of the chosen payment method; pass an empty string if none +//@base_currency ISO 4217 currency code of the currency that will be used for the purchase; pass an empty string if unknown +//@cryptocurrency_amount The amount of the cryptocurrency to buy; pass an empty string if the user selected base_currency_amount +//@base_currency_amount The amount of the base currency to spend; pass an empty string if the user selected cryptocurrency_amount +//@memo Memo for the query; pass an empty string if none +//@theme Preferred theme for the WebView; pass "light" for a light theme, "dark" for a dark theme, or leave empty for a default theme +//@success_return_url The URL opened on successful payment; pass an empty string if none +//@fail_return_url The URL opened on failed payment; pass an empty string if none +createOnRampPaymentSession provider_id:string cryptocurrency:string address:string payment_method_name:string base_currency:string cryptocurrency_amount:string base_currency_amount:string memo:string theme:string success_return_url:string fail_return_url:string = OnRampPaymentSession; + +//@description Sends a request to TON Center API and returns its response in JSON format +//@endpoint The path of the requested endpoint. See https://toncenter.com/api/v3/index.html for the list of supported endpoints +//@type Type of the request +sendTonCenterApiRequest endpoint:string type:TonCenterApiRequestType = Text; + +//@description Returns a URL for TON Center Streaming API +getTonCenterStreamingApiUrl = TonCenterStreamingApiUrl; + //@description Returns detailed Telegram Star revenue statistics //@owner_id Identifier of the owner of the Telegram Stars; can be identifier of the current user, an owned bot, or a supergroup or a channel chat with supergroupFullInfo.can_get_star_revenue_statistics == true @@ -4904,6 +5117,10 @@ getCollectibleItemInfo type:CollectibleItemType = CollectibleItemInfo; getDeepLinkInfo link:string = DeepLinkInfo; +//@description Dismissess a received web token without consumption; for official Telegram apps only @token The token to dismiss +dismissWebToken token:string = Ok; + + //@description Returns application config, provided by the server. Can be called before authorization getApplicationConfig = JsonValue; diff --git a/TdLib.CodeGen/Object.tpl b/TdLib.CodeGen/Object.tpl index 57ad4f78..da52133b 100644 --- a/TdLib.CodeGen/Object.tpl +++ b/TdLib.CodeGen/Object.tpl @@ -2,32 +2,31 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { /// - /// Autogenerated TDLib APIs + /// $TYPE_DESCRIPTION /// - public static partial class TdApi + public partial class $TYPE_NAME : Object { /// - /// $TYPE_DESCRIPTION + /// Data type for serialization /// - public partial class $TYPE_NAME : Object - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "$TL_TYPE_NAME"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "$TL_TYPE_NAME"; - /// - /// Extra data attached to the object - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the object. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } $TYPE_FIELDS - } } } // REUSE-IgnoreEnd diff --git a/TdLib.CodeGen/Types.tl b/TdLib.CodeGen/Types.tl index 184b899c..d59d1ad3 100644 --- a/TdLib.CodeGen/Types.tl +++ b/TdLib.CodeGen/Types.tl @@ -629,7 +629,8 @@ voiceNote duration:int32 waveform:bytes mime_type:string speech_recognition_resu //@sticker_height Expected height of the sticker, which can be used if the sticker is null //@fitzpatrick_type Emoji modifier fitzpatrick type; 0-6; 0 if none //@sound File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container -animatedEmoji sticker:sticker sticker_width:int32 sticker_height:int32 fitzpatrick_type:int32 sound:file = AnimatedEmoji; +//@is_regular_emoji True, if the emoji is a regular emoji +animatedEmoji sticker:sticker sticker_width:int32 sticker_height:int32 fitzpatrick_type:int32 sound:file is_regular_emoji:Bool = AnimatedEmoji; //@description Describes a contact of a user //@phone_number Phone number of the user @@ -849,7 +850,7 @@ botVerificationParameters icon_custom_emoji_id:int64 organization_name:string de //@description Describes verification status provided by a bot //@bot_user_id Identifier of the bot that provided the verification //@icon_custom_emoji_id Identifier of the custom emoji that is used as the verification sign -//@custom_description Custom description of verification reason set by the bot. Can contain only Mention, Hashtag, Cashtag, PhoneNumber, BankCardNumber, Url, and EmailAddress entities +//@custom_description Custom description of verification reason set by the bot. Can contain only Mention, Hashtag, Cashtag, PhoneNumber, BankCardNumber, TonAddress, Url, and EmailAddress entities botVerification bot_user_id:int53 icon_custom_emoji_id:int64 custom_description:formattedText = BotVerification; //@description Contains information about verification status of a chat or a user @@ -2168,6 +2169,312 @@ tonTransaction id:string gram_amount:int53 is_refund:Bool date:int32 type:TonTra tonTransactions gram_amount:int53 transactions:vector next_offset:string = TonTransactions; +//@class TonCenterApiRequestType @description Describes state of active stories posted by a chat + +//@description A GET request @query URL-encoded query of the request +tonCenterApiRequestTypeGet query:string = TonCenterApiRequestType; + +//@description A POST request @payload Payload of the request +tonCenterApiRequestTypePost payload:string = TonCenterApiRequestType; + + +//@class TonWalletTransferReceiver @description Represents expected receiver of a TON wallet transfer + +//@description The receiver is specified by its username @username Username of the user. Use searchPublicChat to find the user, check that it is a regular user, +//-and then use createUserTonWallet to get information about the user's TON wallet +tonWalletTransferReceiverUser username:string = TonWalletTransferReceiver; + +//@description The receiver is specified by its address @address Address of the receiver. Use getAddressTonWallet to get information about the user's TON wallet +tonWalletTransferReceiverAddress address:string = TonWalletTransferReceiver; + + +//@description Contains an HTTP URL for TON Center Streaming API @url The URL @expires_in Time after which the URL expires +tonCenterStreamingApiUrl url:string expires_in:int32 = TonCenterStreamingApiUrl; + +//@description Describes balance of the current user in the bot https://t.me/walt +//@has_balance True, if the user has positive TON Gram balance +//@url The URL to open to launch the bot; may be empty if none +walletBotBalance has_balance:Bool url:string = WalletBotBalance; + +//@description Contains TON wallet address of a user +//@user_id Identifier of the user; 0 if unknown +//@wallet_address Address of the user's wallet in the TON blockchain +//@public_key Public key of the user +userTonWalletAddress user_id:int53 wallet_address:string public_key:bytes = UserTonWalletAddress; + +//@description Represents a list of TON wallet addresses of users @addresses A list of TON wallet addresses +userTonWalletAddresses addresses:vector = UserTonWalletAddresses; + +//@description Represents a challenge for TON wallet ownership proof +//@payload Payload of the challenge +//@domain Domain of the proof requester +tonWalletOwnershipProofChallenge payload:string domain:string = TonWalletOwnershipProofChallenge; + +//@description Represents a proof of TON wallet ownership +//@public_key Public key of the wallet +//@timestamp The current UNIX timestamp which was used to create the proof +//@signature The signature prooving the ownership +tonWalletOwnershipProof public_key:bytes timestamp:int32 signature:bytes = TonWalletOwnershipProof; + +//@description Represents state of gasless transfers for the current user +//@left_count Number of left gasless transfers. The daily available number of gasless transfers is available as getOption("ton_wallet_gasless_transfer_daily_count_max") +//@reset_date Point in time (Unix timestamp) when the number of left transfers will be reset; 0 if never +//@relayer_address Address of the relayer for gasless transfers; may be empty if unavailable +tonWalletGaslessTransfersInfo left_count:int32 reset_date:int32 relayer_address:string = TonWalletGaslessTransfersInfo; + +//@description Describes exchange rate of a currency to USD +//@currency ISO 4217 currency code of the payment currency +//@rate Exchange rate of the currency to USD +currencyExchangeRate currency:string rate:double = CurrencyExchangeRate; + +//@description Represents a list of currency exchange rates @rates A list of currency exchange rates +currencyExchangeRates rates:vector = CurrencyExchangeRates; + +//@description Describes an on-ramp provider +//@id Unique identifier of the provider +//@name Name of the provider +//@cryptocurrencies List of cryptocurrencies supported by the provider +//@supports_base_currencies True, if the provider supports base currencies and can be used in the method getOnRampProviderBaseCurrencies +//@supports_limits True, if the provider supports limits retrieval using the method getOnRampPaymentLimits +//@supports_quote True, if the provider supports quote retrieval using the method getOnRampPaymentQuote +onRampProvider id:string name:string cryptocurrencies:vector supports_base_currencies:Bool supports_limits:Bool supports_quote:Bool = OnRampProvider; + +//@description Represents a list of on-ramp providers @providers A list of providers +onRampProviders providers:vector = OnRampProviders; + +//@description Represents a list of currencies @currencies A list of ISO 4217 currency codes +currencies currencies:vector = Currencies; + +//@description Describes a payment method of an on-ramp provider +//@name Name of the method +//@is_available True, if the method is available to the user +onRampPaymentMethod name:string is_available:Bool = OnRampPaymentMethod; + +//@description Describes availability of cryptocurrency purchase through an on-ramp provider +//@is_allowed True, if the current user can use the provider +//@is_purchase_allowed True, if the current user can purchase through the provider +//@methods The list of available payment methods +//@country_code A two-letter ISO 3166-1 alpha-2 country code of the current user's country +//@state Code of the state of the current user; may be empty if unknown +onRampPaymentAvailability is_allowed:Bool is_purchase_allowed:Bool methods:vector country_code:string state:string = OnRampPaymentAvailability; + +//@description Describes limits for an on-ramp purchase +//@payment_method The payment method to be used +//@base_currency_min_amount The minimum allowed amount of the base currency +//@base_currency_max_amount The maximum allowed amount of the base currency +//@cryptocurrency_min_amount The minimum allowed amount of the bought cryptocurrency +//@cryptocurrency_max_amount The maximum allowed amount of the bought cryptocurrency +onRampPaymentLimits payment_method:string base_currency_min_amount:string base_currency_max_amount:string cryptocurrency_min_amount:string cryptocurrency_max_amount:string = OnRampPaymentLimits; + +//@description Describes a quote for an on-ramp purchase +//@payment_method The payment method to be used +//@expiration_date Point in time (Unix timestamp) when the quote will expire +//@base_currency_amount Paid amount of the base currency +//@cryptocurrency_amount Purchased amount of the cryptocurrency +//@cryptocurrency_price The price of the cryptocurrency +//@fee_amount Fee amount +//@extra_fee_amount Extra fee amount +//@network_fee_amount Network fee amount +//@total_amount Total paid amount +onRampPaymentQuote payment_method:string expiration_date:int32 base_currency_amount:string cryptocurrency_amount:string cryptocurrency_price:string fee_amount:string extra_fee_amount:string network_fee_amount:string total_amount:string = OnRampPaymentQuote; + +//@description Describes a session for an on-ramp purchase +//@session_id Identifier of the session +//@expiration_date Point in time (Unix timestamp) when the session will expire +//@url HTTPS URL to be opened in a WebView to complete the purchase +onRampPaymentSession session_id:string expiration_date:int32 url:string = OnRampPaymentSession; + +//@description Describes state of the wallet of the current user in the TON blockchain +//@address Address of the wallet; may be empty if none +//@public_key Public key of the wallet; may be empty if none +//@gram_amount The total amount of owned TON Grams, in the smallest units of the cryptocurrency +//@is_being_created True, if the wallet is being created +//@is_backup_enabled True, if backup for the wallet key is enabled +//@can_enable_backup True, if the user can enable backup for the wallet key +//@can_export_phrase True, if the wallet key can be exported using getTonWalletSecretPhrase +tonWalletState address:string public_key:bytes gram_amount:int53 is_being_created:Bool is_backup_enabled:Bool can_enable_backup:Bool can_export_phrase:Bool = TonWalletState; + +//@description Represents an attribute of an NFT in the TON blockchain +//@trait_type Trait type +//@value Value of the attribute +tonNftAttribute trait_type:string value:string = TonNftAttribute; + +//@description Represents an NFT in the TON blockchain +//@collection_address Address of the collection to which the NFT belongs; may be empty if unknown +//@address Address of the NFT +//@owner_address Address of the owner of the NFT +//@index Index of the NFT among all NFTs from the collection as a decimal number +//@name Name of the NFT +//@param_description Description of the NFT +//@image Image of the NFT; may be null if none +//@thumbnail Thumbnail of the NFT; may be null if none +//@content Content of the NFT; may be null if none +//@sticker Sticker of the NFT; may be null if none +//@attributes Attributes of the NFT +//@extra Additional data about the NFT; may be null if none +tonNft collection_address:string address:string owner_address:string index:string name:string description:string image:photoSize thumbnail:photoSize content:document sticker:sticker attributes:vector extra:JsonValue = TonNft; + +//@description Represents a list of TON NFTs +//@nfts List of NFTs +//@next_offset The offset for the next request. If empty, then there are no more results +tonNfts nfts:vector next_offset:string = TonNfts; + + +//@class TonWalletTransactionState @description Describes state of a transaction with a TON wallet + +//@description The transaction succeeded @tx_hash Hash of the transaction +tonWalletTransactionStateSucceeded tx_hash:string = TonWalletTransactionState; + +//@description The transaction failed +tonWalletTransactionStateFailed = TonWalletTransactionState; + + +//@class TonWalletTransactionType @description Describes type of transaction with a TON wallet + +//@description The transaction is a deposit from an on-ramp provider +//@amount The amount of received cryptocurrency, in the smallest units of the cryptocurrency +//@provider_name Name of the on-ramp provider +tonWalletTransactionTypeOnRampDeposit amount:int53 provider_name:string = TonWalletTransactionType; + +//@description A transfer of TON Grams to or from the wallet +//@amount The amount of received cryptocurrency, in the smallest units of the cryptocurrency; negative for outgoing transactions +//@is_gasless True, if the fee was paid by Telegram +//@comment Comment added to the transaction +//@is_comment_encrypted True, if the comment is encrypted and must be decrypted using the user's private key +tonWalletTransactionTypeTransfer amount:int53 is_gasless:Bool comment:string is_comment_encrypted:Bool = TonWalletTransactionType; + +//@description A transfer of a TON NFT to or from the wallet +//@nft The transferred NFT +//@is_outgoing True, if the transfer is outgoing +//@comment Comment added to the transaction +//@is_comment_encrypted True, if the comment is encrypted and must be decrypted using the user's private key +tonWalletTransactionTypeNftTransfer nft:tonNft is_outgoing:Bool comment:string is_comment_encrypted:Bool = TonWalletTransactionType; + +//@description Change of the wallet key +tonWalletTransactionTypeKeyChange = TonWalletTransactionType; + + +//@description Represents a transaction with the TON wallet of the current user +//@id Unique identifier of the transaction +//@peer_address Address in the TON blockchain of the transaction peer; may be empty if the transaction isn't a wallet transfer +//@peer_user_id Identifier of the other user who participated in the transaction; 0 if unknown +//@peer_domain Identifier of the domain assigned to the peer address; may be empty if none +//@date Point in time (Unix timestamp) when the transaction was completed +//@fee_amount The fee amount paid for the transaction in TON Grams, in the smallest units of the cryptocurrency +//@state State of the transaction +//@type Type of the transaction +tonWalletTransaction id:string peer_address:string peer_user_id:int53 peer_domain:string date:int32 fee_amount:int53 state:TonWalletTransactionState type:TonWalletTransactionType = TonWalletTransaction; + +//@description Represents a list of TON Gram transactions +//@gram_amount The total amount of owned TON Grams, in the smallest units of the cryptocurrency +//@transactions List of transactions +//@next_offset The offset for the next request. If empty, then there are no more results +tonWalletTransactions gram_amount:int53 transactions:vector next_offset:string = TonWalletTransactions; + + +//@class TonConnectRequestState @description Describes state of a request received from a dApp through TON Connect + +//@description The request must be accepted or rejected if it isn't expired yet +//@expiration_date Point in time (Unix timestamp) when the request will expire or has expired +tonConnectRequestStatePending expiration_date:int32 = TonConnectRequestState; + +//@description The request was accepted +tonConnectRequestStateAccepted = TonConnectRequestState; + +//@description The request was rejected +tonConnectRequestStateRejected = TonConnectRequestState; + + +//@class TonConnectManifest @description Describes manifest of the dApp that is being connected using TON Connect + +//@description The manifest is being downloaded +tonConnectManifestPending = TonConnectManifest; + +//@description The manifest is available +//@url URL of the dApp +//@name Name of the dApp +//@icon App icon in PNG or ICO format +tonConnectManifestInfo url:string name:string icon:document = TonConnectManifest; + +//@description The manifest has failed to download +tonConnectManifestFailed = TonConnectManifest; + +//@description The manifest is invalid +tonConnectManifestInvalid = TonConnectManifest; + + +//@class TonConnectSessionState @description Describes state of a TON Connect session + +//@description The session is pending +tonConnectSessionStatePending = TonConnectSessionState; + +//@description The session is ready +tonConnectSessionStateReady = TonConnectSessionState; + +//@description The session is being closed +tonConnectSessionStateClosing = TonConnectSessionState; + +//@description The session is closed +tonConnectSessionStateClosed = TonConnectSessionState; + + +//@class TonConnectConnectItem @description Represents a data item to share with a dApp + +//@description Address of the wallet @network Stringified TON network global_id (e.g. "-239" for mainnet); may be empty +tonConnectConnectItemAddress network:string = TonConnectConnectItem; + +//@description Proof of the wallet ownership @payload Payload to be used for the proof (e.g. nonce + expiration timestamp) +tonConnectConnectItemProof payload:string = TonConnectConnectItem; + + +//@description Contains information about a request to connect the user's TON wallet to a dApp using TON Connect +//@manifest_url URL of the manifest of the dApp +//@items Items requested from the wallet +tonConnectConnectRequest manifest_url:string items:vector = TonConnectConnectRequest; + +//@description Represents a TON Connect session. See https://github.com/ton-blockchain/ton-connect/tree/main/spec for full TON Connect protocol documentation +//@id Unique identifier of the session +//@dapp_client_id Hex-encoded public X25519 key of the dApp +//@wallet_client_id Hex-encoded public X25519 key of the current user's application; may be empty if none +//@creation_date Point in time (Unix timestamp) when the session was created +//@manifest Manifest of the dApp +//@nonce Nonce used for the session +//@state Session state +tonConnectSession id:int64 dapp_client_id:string wallet_client_id:string creation_date:int32 manifest:TonConnectManifest nonce:bytes state:TonConnectSessionState = TonConnectSession; + +//@description Contains a list of TON Connect sessions @sessions The list of sessions +tonConnectSessions sessions:vector = TonConnectSessions; + +//@description Represents a pending TON Connect request +//@session_id Unique identifier of the session +//@message_id Unique identifier of the service message in the chat 777000 with the request +//@body Body of the request +//@expiration_date Point in time (Unix timestamp) when the request will expire; 0 if never +//@topic Topic of the request; may be empty if none +//@trace_id Identifier to trace the request; may be empty if none +tonConnectRequest session_id:int64 message_id:int53 body:bytes expiration_date:int32 topic:string trace_id:string = TonConnectRequest; + +//@description Represents a session with its pending TON Connect requests +//@session The session +//@requests The requests +tonConnectRequests session:tonConnectSession requests:vector = TonConnectRequests; + +//@description Represents a TON Connect challenge +//@challenge 104-byte challenge +//@event_id Unique identifier of the first outgoing event +tonConnectChallenge challenge:bytes event_id:int64 = TonConnectChallenge; + +//@description Represents identifier of an event in a TON Connect session @event_id The event identifier +tonConnectSessionEventId event_id:int64 = TonConnectSessionEventId; + + +//@description Represents result of cryptocurrency transfer from the current user's TON wallet +//@is_gasless True, if the transfer is gasless +//@msg_hash Unique identifier of the sent message; use getTonWalletTransactionByMsgHash to poll information about the transaction +//@transaction The completed transaction; may be null if the transaction is still pending +tonWalletTransferResult is_gasless:Bool msg_hash:bytes transaction:tonWalletTransaction = TonWalletTransferResult; + + //@class ActiveStoryState @description Describes state of active stories posted by a chat //@description The chat has an active live story @story_id Identifier of the active live story @@ -2369,7 +2676,9 @@ emojiStatusCustomEmojis custom_emoji_ids:vector = EmojiStatusCustomEmojis //@disabled_usernames List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive //@editable_username Active or disabled username, which may be changed with setUsername or setSupergroupUsername //@collectible_usernames Collectible usernames that were purchased at https://fragment.com and can be passed to getCollectibleItemInfo for more details -usernames active_usernames:vector disabled_usernames:vector editable_username:string collectible_usernames:vector = Usernames; +//@secondary_username Secondary non-collectible username; for bots only. Can't be used in toggleBotUsernameIsActive; use addBotSecondaryUsername or deleteBotSecondaryUsername to edit it. +//-If the username is disabled, then Telegram Premium subscription is required to re-enable it +usernames active_usernames:vector disabled_usernames:vector editable_username:string collectible_usernames:vector secondary_username:string = Usernames; //@description Represents a user @@ -2622,7 +2931,8 @@ chatJoinRequestResultQueued = ChatJoinRequestResult; //@expired_member_count Number of chat members, which joined the chat using the link, but have already left because of expired subscription; for subscription links only //@pending_join_request_count Number of pending join requests created using this link //@creates_join_request True, if the link only creates join request. If true, total number of joining members will be unlimited -//@is_primary True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one primary invite link for each administrator with can_invite_users right at a given time +//@is_primary True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. Primary link can create join requests only if this is set up using toggleSupergroupJoinByRequest. +//-There is exactly one primary invite link for each administrator with can_invite_users right at a given time //@is_revoked True, if the link was revoked chatInviteLink invite_link:string name:string creator_user_id:int53 date:int32 edit_date:int32 expiration_date:int32 subscription_pricing:starSubscriptionPricing member_limit:int32 member_count:int32 expired_member_count:int32 pending_join_request_count:int32 creates_join_request:Bool is_primary:Bool is_revoked:Bool = ChatInviteLink; @@ -4016,8 +4326,9 @@ builtInThemeArctic = BuiltInTheme; //@background The background to be used in chats; may be null //@outgoing_message_fill The fill to be used as a background for outgoing messages; may be null if the fill from the base theme must be used instead //@animate_outgoing_message_fill If true, the freeform gradient fill needs to be animated on every sent message -//@outgoing_message_accent_color Accent color of outgoing messages in ARGB format -themeSettings base_theme:BuiltInTheme accent_color:int32 background:background outgoing_message_fill:BackgroundFill animate_outgoing_message_fill:Bool outgoing_message_accent_color:int32 = ThemeSettings; +//@has_outgoing_message_accent_color True, if there is chosen accent color for outgoing messages; otherwise, the color must be deduced from other theme settings +//@outgoing_message_accent_color Accent color of outgoing messages in ARGB format; must be ignored if has_outgoing_message_accent_color is false +themeSettings base_theme:BuiltInTheme accent_color:int32 background:background outgoing_message_fill:BackgroundFill animate_outgoing_message_fill:Bool has_outgoing_message_accent_color:Bool outgoing_message_accent_color:int32 = ThemeSettings; //@description Represents a button inside a rich message @@ -4077,6 +4388,9 @@ richTextCashtag text:RichText cashtag:string = RichText; //@description A bank card number @text Text @bank_card_number The number of the bank card richTextBankCardNumber text:RichText bank_card_number:string = RichText; +//@description An address in the TON blockchain @text Text @address The address +richTextTonAddress text:RichText address:string = RichText; + //@description A bot command @text Text @bot_command The bot command richTextBotCommand text:RichText bot_command:string = RichText; @@ -5546,6 +5860,23 @@ messageGiftedGrams gifter_user_id:int53 receiver_user_id:int53 gram_amount:int53 //@sticker A sticker to be shown in the message; may be null if unknown messageGiveawayPrizeStars star_count:int53 transaction_id:string boosted_chat_id:int53 giveaway_message_id:int53 is_unclaimed:Bool sticker:sticker = MessageContent; +//@description Represents a transfer with the TON wallet of the current user +//@sender_user_id Sender of the transfer; 0 if unknown +//@transaction_id Unique identifier of the transaction; may be empty if the transfer isn't send yet. Use getTonWalletTransaction to get additional information about the transaction +//@peer_address Address in the TON blockchain of the transaction peer +//@amount The amount of received cryptocurrency, in the smallest units of the cryptocurrency; negative for outgoing transactions +//@comment Comment added to the transaction +//@is_comment_encrypted True, if the comment is encrypted and must be decrypted using the receiver's or sender's private key +messageTonWalletTransfer sender_user_id:int53 transaction_id:string peer_address:string amount:int53 comment:string is_comment_encrypted:Bool = MessageContent; + +//@description A request from a dApp was received through TON Connect +//@session_id Unique identifier of the TON Connect session +//@state State of the request +//@dapp_name Name of the dApp; may be empty if unknown +//@topic Topic of the request; may be empty if none +//@trace_id Identifier to trace the request; may be empty if none +messageTonConnectRequest session_id:int64 state:TonConnectRequestState dapp_name:string topic:string trace_id:string = MessageContent; + //@description A regular gift was received or sent by the current user, or the current user was notified about a channel gift //@gift The gift //@sender_id Sender of the gift; may be null for outgoing messages about prepaid upgrade of gifts from unknown users @@ -5739,6 +6070,9 @@ textEntityTypePhoneNumber = TextEntityType; //@description A bank card number. The getBankCardInfo method can be used to get information about the bank card textEntityTypeBankCardNumber = TextEntityType; +//@description An address in the TON blockchain +textEntityTypeTonAddress = TextEntityType; + //@description A bold text textEntityTypeBold = TextEntityType; @@ -6256,10 +6590,11 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep //@can_report_reactions True, if reactions on the message can be reported through reportMessageReactions //@can_report_supergroup_spam True, if the message can be reported using reportSupergroupSpam //@can_set_fact_check True, if fact check for the message can be changed through setMessageFactCheck +//@custom_emoji_ids Identifiers of custom emoji used in the message //@has_protected_content_by_current_user True, if content of the message can't be saved locally, because it is protected by the current user; if true, then can_be_saved is false //@has_protected_content_by_other_user True, if content of the message can't be saved locally, because it is protected by the other user; if true, then can_be_saved is false //@need_show_statistics True, if message statistics must be available from context menu of the message -messageProperties can_add_offer:Bool can_add_tasks:Bool can_be_approved:Bool can_be_copied:Bool can_be_copied_to_secret_chat:Bool can_be_declined:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_edited:Bool can_be_forwarded:Bool can_be_paid:Bool can_be_pinned:Bool can_be_replied:Bool can_be_replied_in_another_chat:Bool can_be_saved:Bool can_be_shared_in_story:Bool can_delete_reactions:Bool can_edit_media:Bool can_edit_scheduling_state:Bool can_edit_suggested_post_info:Bool can_get_author:Bool can_get_embedding_code:Bool can_get_link:Bool can_get_media_timestamp_links:Bool can_get_message_thread:Bool can_get_poll_vote_statistics:Bool can_get_read_date:Bool can_get_statistics:Bool can_get_video_advertisements:Bool can_get_viewers:Bool can_mark_tasks_as_done:Bool can_recognize_speech:Bool can_report_chat:Bool can_report_reactions:Bool can_report_supergroup_spam:Bool can_set_fact_check:Bool has_protected_content_by_current_user:Bool has_protected_content_by_other_user:Bool need_show_statistics:Bool = MessageProperties; +messageProperties can_add_offer:Bool can_add_tasks:Bool can_be_approved:Bool can_be_copied:Bool can_be_copied_to_secret_chat:Bool can_be_declined:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_edited:Bool can_be_forwarded:Bool can_be_paid:Bool can_be_pinned:Bool can_be_replied:Bool can_be_replied_in_another_chat:Bool can_be_saved:Bool can_be_shared_in_story:Bool can_delete_reactions:Bool can_edit_media:Bool can_edit_scheduling_state:Bool can_edit_suggested_post_info:Bool can_get_author:Bool can_get_embedding_code:Bool can_get_link:Bool can_get_media_timestamp_links:Bool can_get_message_thread:Bool can_get_poll_vote_statistics:Bool can_get_read_date:Bool can_get_statistics:Bool can_get_video_advertisements:Bool can_get_viewers:Bool can_mark_tasks_as_done:Bool can_recognize_speech:Bool can_report_chat:Bool can_report_reactions:Bool can_report_supergroup_spam:Bool can_set_fact_check:Bool custom_emoji_ids:vector has_protected_content_by_current_user:Bool has_protected_content_by_other_user:Bool need_show_statistics:Bool = MessageProperties; //@description Contains properties of a poll option and describes actions that can be done with the option right now //@can_be_deleted True, if the option can be deleted using deletePollOption @@ -7861,7 +8196,7 @@ chatEventAccentColorChanged old_accent_color_id:int32 old_background_custom_emoj //@new_profile_background_custom_emoji_id New identifier of the custom emoji; 0 if none chatEventProfileAccentColorChanged old_profile_accent_color_id:int32 old_profile_background_custom_emoji_id:int64 new_profile_accent_color_id:int32 new_profile_background_custom_emoji_id:int64 = ChatEventAction; -//@description The has_protected_content setting of a channel was toggled @has_protected_content New value of has_protected_content +//@description The has_protected_content setting of a chat was toggled @has_protected_content New value of has_protected_content chatEventHasProtectedContentToggled has_protected_content:Bool = ChatEventAction; //@description The can_invite_users permission of a supergroup chat was toggled @can_invite_users New value of can_invite_users permission @@ -7906,7 +8241,7 @@ chatEventVideoChatParticipantIsMutedToggled participant_id:MessageSender is_mute //@description A video chat participant volume level was changed @participant_id Identifier of the affected group call participant @volume_level New value of volume_level; 1-20000 in hundreds of percents chatEventVideoChatParticipantVolumeLevelChanged participant_id:MessageSender volume_level:int32 = ChatEventAction; -//@description The is_forum setting of a channel was toggled @is_forum New value of is_forum +//@description The is_forum setting of a supergroup was toggled @is_forum New value of is_forum chatEventIsForumToggled is_forum:Bool = ChatEventAction; //@description A new forum topic was created @topic_info Information about the topic @@ -8360,7 +8695,8 @@ telegramPaymentPurposePremiumGiveaway parameters:giveawayParameters currency:str //@currency ISO 4217 currency code of the payment currency //@amount Paid amount, in the smallest units of the currency //@star_count Number of bought Telegram Stars -//@chat_id Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none +//@chat_id Identifier of the chat that is supposed to receive the Telegram Stars; pass 0 if none. If non-zero and getOption("star_top_up_disabled"), +//-then the payment isn't allowed and the user can't buy Telegram Stars in this place telegramPaymentPurposeStars currency:string amount:int53 star_count:int53 chat_id:int53 = TelegramPaymentPurpose; //@description The user buying Telegram Stars for other users @@ -8693,6 +9029,16 @@ pushMessageContentPremiumGiftCode month_count:int32 = PushMessageContent; //@is_pinned True, if the message is a pinned message with the specified content pushMessageContentGiveaway winner_count:int32 prize:GiveawayPrize is_pinned:Bool = PushMessageContent; +//@description A message with a TON wallet transfer +//@sender_user_id Sender of the transfer; 0 if unknown +//@amount String representation of the received amount +//@comment Comment added to the transaction if it is public +pushMessageContentTonWalletTransfer sender_user_id:int53 amount:string comment:string = PushMessageContent; + +//@description A message with a request from a dApp was received through TON Connect +//@dapp_name Name of the dApp; may be empty if unknown +pushMessageContentTonConnectRequest dapp_name:string = PushMessageContent; + //@description A message with a gift //@star_count Number of Telegram Stars that sender paid for the gift //@is_prepaid_upgrade True, if the message is about prepaid upgrade of the gift by another user instead of actual receiving of a new gift @@ -9580,7 +9926,7 @@ internalLinkTypeQrCodeAuthentication = InternalLinkType; //-If the chat is found, the chat is a chat with a bot and the bot has can_manage_bots == true, then show bot creation confirmation dialog //-with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot //@manager_bot_username Username of the bot which will manage the new bot -//@suggested_bot_username Suggested username for the bot; always ends with "bot" case-insensitive +//@suggested_bot_username Suggested username for the bot; always ends with "bot" or a string from updateAllowedBotUsernamePremiumSuffixes case-insensitive //@suggested_bot_name Suggested name for the bot; may be empty if not specified internalLinkTypeRequestManagedBot manager_bot_username:string suggested_bot_username:string suggested_bot_name:string = InternalLinkType; @@ -9626,6 +9972,20 @@ internalLinkTypeTextCompositionStyle style_name:string = InternalLinkType; //@description The link is a link to a cloud theme. TDLib has no theme support yet @theme_name Name of the theme internalLinkTypeTheme theme_name:string = InternalLinkType; +//@description The link is a universal TON Connect link +//@version TON Connect version +//@dapp_client_id Hex-encoded public X25519 key of the dApp +//@connect_request TON Connect connect request +//@return_strategy Request return strategy; one of "back", "none", or a URL to open +//@rpc_request Embedded RPC request represented as base64url-encoded JSON +//@trace_id Identifier to trace the connection request +internalLinkTypeTonConnect version:int32 dapp_client_id:string connect_request:tonConnectConnectRequest return_strategy:string rpc_request:string trace_id:string = InternalLinkType; + +//@description The link is a link for sending Grams from the user's TON wallet +//@receiver Chosen receiver of the transfer; may be null if none +//@gram_amount The pre-filled amount of TON Grams to send; in the smallest units of the cryptocurrency +internalLinkTypeTonWalletTransfer receiver:TonWalletTransferReceiver gram_amount:int53 = InternalLinkType; + //@description The link is an unknown tg: link. Call getDeepLinkInfo to process the link @link Link to be passed to getDeepLinkInfo internalLinkTypeUnknownDeepLink link:string = InternalLinkType; @@ -10017,6 +10377,9 @@ suggestedActionCheckPhoneNumber = SuggestedAction; //@description Suggests the user to view a hint about the meaning of one and two check marks on sent messages suggestedActionViewChecksHint = SuggestedAction; +//@description Suggests the user to view a hint about receiving of the first TON wallet transfer +suggestedActionViewFirstTonWalletTransferHint = SuggestedAction; + //@description Suggests the user to convert specified supergroup to a broadcast group @supergroup_id Supergroup identifier suggestedActionConvertToBroadcastGroup supergroup_id:int53 = SuggestedAction; @@ -10245,7 +10608,7 @@ chatRevenueAmount cryptocurrency:string total_amount:int64 balance_amount:int64 //@revenue_by_hour_graph A graph containing amount of revenue in a given hour //@revenue_graph A graph containing amount of revenue //@revenue_amount Amount of earned revenue -//@usd_rate Current conversion rate of the cryptocurrency in which revenue is calculated to USD +//@usd_rate Current exchange rate of the cryptocurrency in which revenue is calculated to USD chatRevenueStatistics revenue_by_hour_graph:StatisticalGraph revenue_graph:StatisticalGraph revenue_amount:chatRevenueAmount usd_rate:double = ChatRevenueStatistics; //@description A detailed statistics about a message @@ -10324,7 +10687,7 @@ starRevenueStatus total_amount:starAmount current_amount:starAmount available_am //@description A detailed statistics about Telegram Stars earned by a user or a chat //@revenue_by_day_graph A graph containing amount of revenue in a given day //@status Telegram Star revenue status -//@usd_rate Current conversion rate of a Telegram Star to USD +//@usd_rate Current exchange rate of a Telegram Star to USD starRevenueStatistics revenue_by_day_graph:StatisticalGraph status:starRevenueStatus usd_rate:double = StarRevenueStatistics; //@description Contains information about TON Grams earned by the current user @@ -10337,7 +10700,7 @@ gramRevenueStatus total_amount:int64 balance_amount:int64 available_amount:int64 //@description A detailed statistics about TON Grams earned by the current user //@revenue_by_day_graph A graph containing amount of revenue in a given day //@status Amount of earned revenue -//@usd_rate Current conversion rate of nanogram to USD cents +//@usd_rate Current exchange rate of nanogram to USD cents gramRevenueStatistics revenue_by_day_graph:StatisticalGraph status:gramRevenueStatus usd_rate:double = GramRevenueStatistics; @@ -10771,7 +11134,7 @@ updateFile file:file = Update; //@original_path The original path specified by the application in inputFileGenerated //@destination_path The path to a file that must be created and where the new file must be generated by the application. //-If the application has no access to the path, it can use writeGeneratedFilePart to generate the file -//@conversion If the conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the application. +//@conversion If the conversion is "#url#", then original_path contains an HTTP/HTTPS URL of a file that must be downloaded by the application. //-Otherwise, this is the conversion specified by the application in inputFileGenerated updateFileGenerationStart generation_id:int64 original_path:string destination_path:string conversion:string = Update; @@ -10918,6 +11281,10 @@ updateStoryListChatCount story_list:StoryList chat_count:int32 = Update; //@cooldown_until_date Point in time (Unix timestamp) when stealth mode can be enabled again; 0 if there is no active cooldown updateStoryStealthMode active_until_date:int32 cooldown_until_date:int32 = Update; +//@description Lists of suffixes allowed in secondary bot usernames, which can be added additionally to the main username if the bot's owner has a Telegram Premium subscription +//@suffixes The list of allowed suffixes +updateAllowedBotUsernamePremiumSuffixes suffixes:vector = Update; + //@description Lists of bots which Mini Apps must be allowed to read text from clipboard and must be opened without a warning //@bot_user_ids List of user identifiers of the bots; the corresponding users may not be sent using updateUser updates and may not be accessible updateTrustedMiniAppBots bot_user_ids:vector = Update; @@ -11024,6 +11391,18 @@ updateOwnedStarCount star_amount:starAmount = Update; //@description The number of TON Grams owned by the current user has changed @gram_amount The new amount of owned Grams; in the smallest units of the cryptocurrency updateOwnedGramCount gram_amount:int53 = Update; +//@description The state of the TON wallet of the current user has changed @state The new state of the wallet +updateTonWalletState state:tonWalletState = Update; + +//@description The information about gasless transfers has changed @info The new state of the wallet +updateTonWalletGaslessTransfersInfo info:tonWalletGaslessTransfersInfo = Update; + +//@description A session of a TON Connect has changed @session The new state of the session +updateTonWalletTonConnectSession session:tonConnectSession = Update; + +//@description TON Connect sessions must be disconnected in a regular way @session_ids Identifiers of the sessions +updateTonWalletTonConnectSessionDisconnectRequired session_ids:vector = Update; + //@description The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then getChatRevenueTransactions may be called to fetch new transactions //@chat_id Identifier of the chat //@revenue_amount New amount of earned revenue diff --git a/TdLib.CodeGen/Union.tpl b/TdLib.CodeGen/Union.tpl index 69cc4b22..742c4c98 100644 --- a/TdLib.CodeGen/Union.tpl +++ b/TdLib.CodeGen/Union.tpl @@ -2,34 +2,33 @@ using Newtonsoft.Json; // REUSE-IgnoreStart -namespace TdLib +namespace TdLib; + +/// +/// Autogenerated TDLib APIs +/// +public static partial class TdApi { - /// - /// Autogenerated TDLib APIs - /// - public static partial class TdApi + public partial class $BASE_TYPE_NAME : Object { - public partial class $BASE_TYPE_NAME : Object + /// + /// $TYPE_DESCRIPTION + /// + public class $TYPE_NAME : $BASE_TYPE_NAME { /// - /// $TYPE_DESCRIPTION + /// Data type for serialization /// - public class $TYPE_NAME : $BASE_TYPE_NAME - { - /// - /// Data type for serialization - /// - [JsonProperty("@type")] - public override string DataType { get; set; } = "$TL_TYPE_NAME"; + [JsonProperty("@type")] + public override string DataType { get; set; } = "$TL_TYPE_NAME"; - /// - /// Extra data attached to the message - /// - [JsonProperty("@extra")] - public override string Extra { get; set; } + /// + /// Extra data attached to the message. + /// + [JsonProperty("@extra")] + public override string ExtraData { get; set; } $TYPE_FIELDS - } } } } diff --git a/TdLib/TdClient.cs b/TdLib/TdClient.cs index df4895ef..1244f485 100644 --- a/TdLib/TdClient.cs +++ b/TdLib/TdClient.cs @@ -118,7 +118,7 @@ public override event EventHandler UpdateReceived private void OnReceived(object _, TdApi.Object obj) { - if (int.TryParse(obj.Extra, NumberStyles.Integer, CultureInfo.InvariantCulture, out int id) + if (int.TryParse(obj.ExtraData, NumberStyles.Integer, CultureInfo.InvariantCulture, out int id) && _tasks.TryRemove(id, out var action)) { action(obj); @@ -196,7 +196,7 @@ public override Task ExecuteAsync(TdApi.Function func var id = Interlocked.Increment(ref _taskId); var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); - function.Extra = id.ToString(CultureInfo.InvariantCulture); + function.ExtraData = id.ToString(CultureInfo.InvariantCulture); _tasks.TryAdd(id, structure => { if (structure is TdApi.Error error)