From 59425a910a005e57df01d428de9b40dc361b5af3 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Mon, 2 Mar 2026 18:28:15 +0100 Subject: [PATCH] api doc --- src/TL.Schema.cs | 84 ++++++++++++++++++++++++++++++++++--------- src/TL.SchemaFuncs.cs | 71 +++++++++++++++++++----------------- 2 files changed, 105 insertions(+), 50 deletions(-) diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index e5d7470..cd05e81 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -119,6 +119,7 @@ namespace TL [TLDef(0x6A1DC4BE)] public sealed partial class InputPhoneContact : InputContact { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; /// An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using Contacts_ImportContacts, in order to retry importing only the contacts that weren't imported successfully, according to the client_ids returned in .retry_contacts. public long client_id; @@ -171,7 +172,7 @@ namespace TL public InputDocument id; } - /// Defines media content of a message. See Derived classes: , , , , , , , , , , , , , , , , , + /// Defines media content of a message. See Derived classes: , , , , , , , , , , , , , , , , , , /// a value means inputMediaEmpty public abstract partial class InputMedia : IObject { } /// Photo See @@ -2072,7 +2073,7 @@ namespace TL public override int TtlPeriod => ttl_period; } - /// Media See Derived classes: , , , , , , , , , , , , , , , , + /// Media See Derived classes: , , , , , , , , , , , , , , , , , /// a value means messageMediaEmpty public abstract partial class MessageMedia : IObject { } /// Attached photo. See @@ -2280,6 +2281,7 @@ namespace TL [TLDef(0x08CBEC07)] public sealed partial class MessageMediaDice : MessageMedia { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; /// Dice value public int value; @@ -2424,6 +2426,7 @@ namespace TL [TLDef(0xCA5CAB89)] public sealed partial class MessageMediaVideoStream : MessageMedia { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public InputGroupCallBase call; @@ -2433,7 +2436,7 @@ namespace TL } } - /// Object describing actions connected to a service message. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , + /// Object describing actions connected to a service message. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , /// a value means messageActionEmpty public abstract partial class MessageAction : IObject { } /// Group created See @@ -3285,6 +3288,7 @@ namespace TL [TLDef(0x774278D4)] public sealed partial class MessageActionStarGiftPurchaseOffer : MessageAction { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public StarGiftBase gift; public StarsAmountBase price; @@ -3300,6 +3304,7 @@ namespace TL [TLDef(0x73ADA76B)] public sealed partial class MessageActionStarGiftPurchaseOfferDeclined : MessageAction { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public StarGiftBase gift; public StarsAmountBase price; @@ -4470,7 +4475,7 @@ namespace TL [TLDef(0x1BB00451)] public sealed partial class InputMessagesFilterPinned : MessagesFilter { } - /// Object contains info on events occurred. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , + /// Object contains info on events occurred. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , public abstract partial class Update : IObject { public virtual (long mbox_id, int pts, int pts_count) GetMBox() => default; @@ -4517,6 +4522,7 @@ namespace TL [TLDef(0x2A17BF5C)] public sealed partial class UpdateUserTyping : Update { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; /// User id public long user_id; @@ -6317,6 +6323,7 @@ namespace TL [TLDef(0x683B2C52)] public sealed partial class UpdatePinnedForumTopic : Update { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public Peer peer; public int topic_id; @@ -6330,12 +6337,14 @@ namespace TL [TLDef(0xDEF143D0)] public sealed partial class UpdatePinnedForumTopics : Update { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public Peer peer; [IfFlag(0)] public int[] order; [Flags] public enum Flags : uint { + /// Field has a value has_order = 0x1, } } @@ -7375,7 +7384,7 @@ namespace TL public int top_msg_id; } - /// User actions. Use this to provide users with detailed info about their chat partner's actions: typing or sending attachments of all kinds. See Derived classes: , , , , , , , , , , , , , , , , , + /// User actions. Use this to provide users with detailed info about their chat partner's actions: typing or sending attachments of all kinds. See Derived classes: , , , , , , , , , , , , , , , , , , public abstract partial class SendMessageAction : IObject { } /// User is typing. See [TLDef(0x16BF744E)] @@ -7926,7 +7935,7 @@ namespace TL public string display_url; /// Hash used for caching, for more info click here public int hash; - /// Type of the web page. One of the following:

- app
- article
- document
- gif
- photo
- profile
- telegram_album
- telegram_background
- telegram_bot
- telegram_botapp
- telegram_call
- telegram_channel
- telegram_channel_boost
- telegram_channel_direct
- telegram_channel_request
- telegram_chat
- telegram_chat_request
- telegram_chatlist
- telegram_collection
- telegram_community
- telegram_giftcode
- telegram_group_boost
- telegram_livestream
- telegram_megagroup
- telegram_megagroup_request
- telegram_message
- telegram_nft
- telegram_stickerset
- telegram_story
- telegram_story_album
- telegram_theme
- telegram_user
- telegram_videochat
- telegram_voicechat
- video

+ /// Type of the web page. One of the following:

- app
- article
- document
- gif
- photo
- profile
- telegram_album
- telegram_auction
- telegram_background
- telegram_bot
- telegram_botapp
- telegram_call
- telegram_channel
- telegram_channel_boost
- telegram_channel_direct
- telegram_channel_request
- telegram_chat
- telegram_chat_request
- telegram_chatlist
- telegram_collection
- telegram_community
- telegram_giftcode
- telegram_group_boost
- telegram_livestream
- telegram_megagroup
- telegram_megagroup_request
- telegram_message
- telegram_nft
- telegram_stickerset
- telegram_story
- telegram_story_album
- telegram_theme
- telegram_user
- telegram_videochat
- telegram_voicechat
- video

[IfFlag(0)] public string type; /// Short name of the site (e.g., Google Docs, App Store) [IfFlag(1)] public string site_name; @@ -8506,6 +8515,7 @@ namespace TL [TLDef(0x7D170CFF)] public sealed partial class KeyboardButton : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8525,6 +8535,7 @@ namespace TL [TLDef(0xD80C25EC)] public sealed partial class KeyboardButtonUrl : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button label @@ -8570,6 +8581,7 @@ namespace TL [TLDef(0x417EFD8F)] public sealed partial class KeyboardButtonRequestPhone : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8589,6 +8601,7 @@ namespace TL [TLDef(0xAA40F94D)] public sealed partial class KeyboardButtonRequestGeoLocation : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8636,6 +8649,7 @@ namespace TL [TLDef(0x89C590F9)] public sealed partial class KeyboardButtonGame : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8655,6 +8669,7 @@ namespace TL [TLDef(0x3FA53905)] public sealed partial class KeyboardButtonBuy : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8756,6 +8771,7 @@ namespace TL [TLDef(0x7D5E07C7)] public sealed partial class InputKeyboardButtonUserProfile : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8777,6 +8793,7 @@ namespace TL [TLDef(0xC0FD5D09)] public sealed partial class KeyboardButtonUserProfile : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8798,6 +8815,7 @@ namespace TL [TLDef(0xE846B1A0)] public sealed partial class KeyboardButtonWebView : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8819,6 +8837,7 @@ namespace TL [TLDef(0xE15C4370)] public sealed partial class KeyboardButtonSimpleWebView : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8840,6 +8859,7 @@ namespace TL [TLDef(0x5B0F15F5)] public sealed partial class KeyboardButtonRequestPeer : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Button text @@ -8897,6 +8917,7 @@ namespace TL [TLDef(0xBCC4AF10)] public sealed partial class KeyboardButtonCopy : KeyboardButtonBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(10)] public KeyboardButtonStyle style; /// Title of the button @@ -14491,6 +14512,7 @@ namespace TL [TLDef(0x623A8FA0)] public sealed partial class UrlAuthResultAccepted : UrlAuthResult { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; /// The URL name of the website on which the user has logged in. [IfFlag(0)] public string url; @@ -14763,7 +14785,7 @@ namespace TL } } - /// Webpage attributes See Derived classes: , , , , + /// Webpage attributes See Derived classes: , , , , , public abstract partial class WebPageAttribute : IObject { } /// Page theme See [TLDef(0x54B56617)] @@ -16745,7 +16767,7 @@ namespace TL Broadcast = 0x7BFBDEFC, } - /// An invoice See Derived classes: , , , , , , , , , , , + /// An invoice See Derived classes: , , , , , , , , , , , , , , public abstract partial class InputInvoice : IObject { } /// An invoice contained in a message or paid media ». See [TLDef(0xC5B56859)] @@ -16903,6 +16925,7 @@ namespace TL [TLDef(0x1ECAFA10)] public sealed partial class InputInvoiceStarGiftAuctionBid : InputInvoice { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(3)] public InputPeer peer; public long gift_id; @@ -16912,8 +16935,10 @@ namespace TL [Flags] public enum Flags : uint { hide_name = 0x1, + /// Field has a value has_message = 0x2, update_bid = 0x4, + /// Field has a value has_peer = 0x8, } } @@ -19172,7 +19197,7 @@ namespace TL public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); } - /// Represents a color palette ». See Derived classes: + /// Represents a color palette ». See Derived classes: , , public abstract partial class PeerColorBase : IObject { } /// Represents a color palette ». See [TLDef(0xB54B5ACF)] @@ -19197,6 +19222,7 @@ namespace TL [TLDef(0xB9C0639A)] public sealed partial class PeerColorCollectible : PeerColorBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public long collectible_id; public long gift_emoji_id; @@ -19208,7 +19234,9 @@ namespace TL [Flags] public enum Flags : uint { + /// Field has a value has_dark_accent_color = 0x1, + /// Field has a value has_dark_colors = 0x2, } } @@ -20254,13 +20282,13 @@ namespace TL { /// Localized description of the option. public string text; - /// Option identifier to pass to Channels_ReportSponsoredMessage. + /// Option identifier to pass to Messages_ReportSponsoredMessage. public byte[] option; } /// Status of the method call used to report a sponsored message ». See Derived classes: , , public abstract partial class Channels_SponsoredMessageReportResult : IObject { } - /// The user must choose a report option from the localized options available in options, and after selection, Channels_ReportSponsoredMessage must be invoked again, passing the option's option field to the option param of the method. See + /// The user must choose a report option from the localized options available in options, and after selection, Messages_ReportSponsoredMessage must be invoked again, passing the option's option field to the option param of the method. See [TLDef(0x846F9E42)] public sealed partial class Channels_SponsoredMessageReportResultChooseOption : Channels_SponsoredMessageReportResult { @@ -21409,6 +21437,7 @@ namespace TL [TLDef(0x565251E2)] public sealed partial class StarGiftAttributeModel : StarGiftAttribute { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; /// Name of the model public string name; @@ -22225,6 +22254,7 @@ namespace TL [TLDef(0x1A8AFC7E)] public sealed partial class GroupCallMessage : IObject { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public int id; public Peer from_id; @@ -22234,6 +22264,7 @@ namespace TL [Flags] public enum Flags : uint { + /// Field has a value has_paid_message_stars = 0x1, from_admin = 0x2, } @@ -22243,6 +22274,7 @@ namespace TL [TLDef(0xEE430C85)] public sealed partial class GroupCallDonor : IObject { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(3)] public Peer peer_id; public long stars; @@ -22251,6 +22283,7 @@ namespace TL { top = 0x1, my = 0x2, + /// Field has a value has_peer_id = 0x8, } } @@ -22271,12 +22304,14 @@ namespace TL [TLDef(0x711D692D)] public sealed partial class RecentStory : IObject { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(1)] public int max_id; [Flags] public enum Flags : uint { live = 0x1, + /// Field has a value has_max_id = 0x2, } } @@ -22290,7 +22325,7 @@ namespace TL public DateTime date; } - /// See + /// See Derived classes: , /// a value means starGiftAuctionStateNotModified public abstract partial class StarGiftAuctionStateBase : IObject { @@ -22321,6 +22356,7 @@ namespace TL [TLDef(0x972DABBF)] public sealed partial class StarGiftAuctionStateFinished : StarGiftAuctionStateBase { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public DateTime start_date; public DateTime end_date; @@ -22331,7 +22367,9 @@ namespace TL [Flags] public enum Flags : uint { + /// Field has a value has_listed_count = 0x1, + /// Fields and have a value has_fragment_listed_count = 0x2, } @@ -22343,6 +22381,7 @@ namespace TL [TLDef(0x2EEED1C4)] public sealed partial class StarGiftAuctionUserState : IObject { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(0)] public long bid_amount; [IfFlag(0)] public DateTime bid_date; @@ -22352,6 +22391,7 @@ namespace TL [Flags] public enum Flags : uint { + /// Fields , , and have a value has_bid_amount = 0x1, returned = 0x2, } @@ -22375,6 +22415,7 @@ namespace TL [TLDef(0x42B00348)] public sealed partial class StarGiftAuctionAcquiredGift : IObject { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public Peer peer; public DateTime date; @@ -22387,7 +22428,9 @@ namespace TL [Flags] public enum Flags : uint { name_hidden = 0x1, + /// Field has a value has_message = 0x2, + /// Field has a value has_gift_num = 0x4, } } @@ -22424,7 +22467,7 @@ namespace TL public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); } - /// See + /// See Derived classes: , public abstract partial class InputStarGiftAuctionBase : IObject { } /// See [TLDef(0x02E16C98)] @@ -22443,6 +22486,7 @@ namespace TL [TLDef(0x98613EBF)] public sealed partial class Passkey : IObject { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public string id; public string name; @@ -22452,7 +22496,9 @@ namespace TL [Flags] public enum Flags : uint { + /// Field has a value has_software_emoji_id = 0x1, + /// Field has a value has_last_usage_date = 0x2, } } @@ -22478,7 +22524,7 @@ namespace TL public DataJSON options; } - /// See + /// See Derived classes: , public abstract partial class InputPasskeyResponse : IObject { public DataJSON client_data; @@ -22498,7 +22544,7 @@ namespace TL public string user_handle; } - /// See + /// See Derived classes: , public abstract partial class InputPasskeyCredential : IObject { } /// See [TLDef(0x3C27B78F)] @@ -22555,7 +22601,7 @@ namespace TL public long ton_amount; } - /// See + /// See Derived classes: , public abstract partial class Messages_EmojiGameInfo : IObject { } /// See [TLDef(0x59E65335)] @@ -22564,6 +22610,7 @@ namespace TL [TLDef(0x44E56023)] public sealed partial class Messages_EmojiGameDiceInfo : Messages_EmojiGameInfo { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; public string game_hash; public long prev_stake; @@ -22573,11 +22620,12 @@ namespace TL [Flags] public enum Flags : uint { + /// Field has a value has_plays_left = 0x1, } } - /// See + /// See Derived classes: , , , , public abstract partial class StarGiftAttributeRarityBase : IObject { } /// See [TLDef(0x36437737)] @@ -22602,6 +22650,7 @@ namespace TL [TLDef(0x4FDD3430)] public sealed partial class KeyboardButtonStyle : IObject { + /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; [IfFlag(3)] public long icon; @@ -22610,6 +22659,7 @@ namespace TL bg_primary = 0x1, bg_danger = 0x2, bg_success = 0x4, + /// Field has a value has_icon = 0x8, } } diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index c7ded16..72fb740 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -387,7 +387,7 @@ namespace TL mnc = mnc, }); - /// See + /// See Possible codes: 400 (details) public static Task Auth_CheckPaidAuth(this Client client, string phone_number, string phone_code_hash, long form_id) => client.Invoke(new Auth_CheckPaidAuth { @@ -396,7 +396,7 @@ namespace TL form_id = form_id, }); - /// See + /// See Possible codes: 400,500 (details) public static Task Auth_InitPasskeyLogin(this Client client, int api_id, string api_hash) => client.Invoke(new Auth_InitPasskeyLogin { @@ -404,7 +404,7 @@ namespace TL api_hash = api_hash, }); - /// See + /// See Possible codes: 400,500 (details) public static Task Auth_FinishPasskeyLogin(this Client client, InputPasskeyCredential credential, int? from_dc_id = null, long? from_auth_key_id = null) => client.Invoke(new Auth_FinishPasskeyLogin { @@ -1528,13 +1528,13 @@ namespace TL hash = hash, }); - /// See + /// See Possible codes: 403 (details) public static Task Account_InitPasskeyRegistration(this Client client) => client.Invoke(new Account_InitPasskeyRegistration { }); - /// See + /// See Possible codes: 400 (details) public static Task Account_RegisterPasskey(this Client client, InputPasskeyCredential credential) => client.Invoke(new Account_RegisterPasskey { @@ -1588,7 +1588,7 @@ namespace TL id = id, }); - /// Get songs pinned to the user's profile, see here » for more info. See Possible codes: 400 (details) + /// Get songs pinned to the user's profile, see here » for more info. See [bots: ✓] Possible codes: 400 (details) /// The ID of the user. /// Offset for pagination. /// Maximum number of results to return, see pagination @@ -1612,7 +1612,7 @@ namespace TL documents = documents, }); - /// See + /// See Possible codes: 400 (details) public static Task Users_SuggestBirthday(this Client client, InputUserBase id, Birthday birthday) => client.Invoke(new Users_SuggestBirthday { @@ -1879,7 +1879,7 @@ namespace TL q = q, }); - /// See + /// See Possible codes: 400 (details) public static Task Contacts_UpdateContactNote(this Client client, InputUserBase id, TextWithEntities note) => client.Invoke(new Contacts_UpdateContactNote { @@ -1915,7 +1915,7 @@ namespace TL hash = hash, }); - /// Returns the conversation history with one interlocutor / within a chat See Possible codes: 400,406 (details) + /// Returns the conversation history with one interlocutor / within a chat See Possible codes: 400,406,500 (details) /// Target peer /// Only return messages starting from the specified message ID /// Only return messages sent before the specified date @@ -2243,7 +2243,7 @@ namespace TL user_id = user_id, }); - /// Creates a new chat. See Possible codes: 400,403,500 (details) + /// Creates a new chat. See Possible codes: 400,406,500 (details) /// List of user IDs to be invited /// Chat name /// Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use Messages_SetDefaultHistoryTTL to edit this value later. @@ -2290,7 +2290,7 @@ namespace TL key_fingerprint = key_fingerprint, }); - /// Cancels a request for creation and/or delete info on secret chat. See Possible codes: 400 (details) + /// Cancels a request for creation and/or delete info on secret chat. See Possible codes: 400,500 (details) /// Whether to delete the entire chat history for the other user as well /// Secret chat ID public static Task Messages_DiscardEncryption(this Client client, int chat_id, bool delete_history = false) @@ -3085,7 +3085,7 @@ namespace TL hash = hash, }); - /// Send an album or grouped media See [bots: ✓] Possible codes: 400,403,420,500 (details) + /// Send an album or grouped media See [bots: ✓] Possible codes: 400,403,406,420,500 (details) /// Whether to send the album silently (no notification triggered) /// Send in background? /// Whether to clear drafts @@ -4863,7 +4863,7 @@ namespace TL { }); - /// See + /// See Possible codes: 400 (details) public static Task Messages_SummarizeText(this Client client, InputPeer peer, int id, string to_lang = null) => client.Invoke(new Messages_SummarizeText { @@ -5367,7 +5367,7 @@ namespace TL channel = channel, }); - /// Create a supergroup/channel. See Possible codes: 400,403,500 (details) + /// Create a supergroup/channel. See Possible codes: 400,406,500 (details) /// Whether to create a channel /// Whether to create a supergroup /// Whether the supergroup is being created to import messages from a foreign chat service using Messages_InitHistoryImport @@ -5842,7 +5842,7 @@ namespace TL restricted = restricted, }); - /// Globally search for posts from public channels » (including those we aren't a member of) containing either a specific hashtag, or a full text query. See Possible codes: 420 (details) + /// Globally search for posts from public channels » (including those we aren't a member of) containing either a specific hashtag, or a full text query. See Possible codes: 403,420 (details) /// The hashtag to search, without the # character. /// The full text query: each user has a limited amount of free full text search slots, after which payment is required, see here » for more info on the full flow. /// Initially 0, then set to the next_rate parameter of messages.messagesSlice, or if that is absent, the date of the last returned message. @@ -5914,7 +5914,7 @@ namespace TL tab = tab, }); - /// See + /// See Possible codes: 400 (details) public static Task Channels_GetFutureCreatorAfterLeave(this Client client, InputChannelBase channel) => client.Invoke(new Channels_GetFutureCreatorAfterLeave { @@ -6674,7 +6674,7 @@ namespace TL slug = slug, }); - /// Fetch the full list of gifts owned by a peer. See Possible codes: 400 (details) + /// Fetch the full list of gifts owned by a peer. See [bots: ✓] Possible codes: 400 (details) /// Exclude gifts not pinned on the profile. /// Exclude gifts pinned on the profile. /// Exclude gifts that do not have the .limited flag set. @@ -6849,7 +6849,7 @@ namespace TL gift_id = gift_id, }); - /// See + /// See Possible codes: 400 (details) public static Task Payments_GetStarGiftAuctionState(this Client client, InputStarGiftAuctionBase auction, int version) => client.Invoke(new Payments_GetStarGiftAuctionState { @@ -6857,7 +6857,7 @@ namespace TL version = version, }); - /// See + /// See Possible codes: 400 (details) public static Task Payments_GetStarGiftAuctionAcquiredGifts(this Client client, long gift_id) => client.Invoke(new Payments_GetStarGiftAuctionAcquiredGifts { @@ -6872,7 +6872,7 @@ namespace TL hash = hash, }); - /// See + /// See [bots: ✓] Possible codes: 400 (details) public static Task Payments_ResolveStarGiftOffer(this Client client, int offer_msg_id, bool decline = false) => client.Invoke(new Payments_ResolveStarGiftOffer { @@ -6880,7 +6880,8 @@ namespace TL offer_msg_id = offer_msg_id, }); - /// See + /// See Possible codes: 400 (details) + /// You can use public static Task Payments_SendStarGiftOffer(this Client client, InputPeer peer, string slug, StarsAmountBase price, int duration, long random_id, long? allow_paid_stars = null) => client.Invoke(new Payments_SendStarGiftOffer { @@ -6893,14 +6894,15 @@ namespace TL allow_paid_stars = allow_paid_stars ?? default, }); - /// See + /// See Possible codes: 400 (details) public static Task Payments_GetStarGiftUpgradeAttributes(this Client client, long gift_id) => client.Invoke(new Payments_GetStarGiftUpgradeAttributes { gift_id = gift_id, }); - /// See + /// See Possible codes: 400 (details) + /// Maximum number of results to return, see pagination public static Task Payments_GetCraftStarGifts(this Client client, long gift_id, string offset, int limit = int.MaxValue) => client.Invoke(new Payments_GetCraftStarGifts { @@ -6909,7 +6911,7 @@ namespace TL limit = limit, }); - /// See + /// See Possible codes: 400 (details) public static Task Payments_CraftStarGift(this Client client, params InputSavedStarGift[] stargift) => client.Invoke(new Payments_CraftStarGift { @@ -7052,7 +7054,7 @@ namespace TL { }); - /// Start a telegram phone call See Possible codes: 400,403 (details) + /// Start a telegram phone call See Possible codes: 400,403,500 (details) /// Whether to start a video call /// Destination of the phone call /// Random ID to avoid resending the same object @@ -7168,7 +7170,7 @@ namespace TL schedule_date = schedule_date ?? default, }); - /// Join a group call See Possible codes: 400,403 (details) + /// Join a group call See Possible codes: 400,403,500 (details) /// If set, the user will be muted by default upon joining. /// If set, the user's video will be disabled by default upon joining. /// The group call @@ -7485,7 +7487,8 @@ namespace TL limit = limit, }); - /// See + /// See Possible codes: 400 (details) + /// You can use public static Task Phone_SendGroupCallMessage(this Client client, InputGroupCallBase call, long random_id, TextWithEntities message, long? allow_paid_stars = null, InputPeer send_as = null) => client.Invoke(new Phone_SendGroupCallMessage { @@ -7497,7 +7500,7 @@ namespace TL send_as = send_as, }); - /// See + /// See Possible codes: 400 (details) public static Task Phone_SendGroupCallEncryptedMessage(this Client client, InputGroupCallBase call, byte[] encrypted_message) => client.Invoke(new Phone_SendGroupCallEncryptedMessage { @@ -7505,7 +7508,7 @@ namespace TL encrypted_message = encrypted_message, }); - /// See + /// See Possible codes: 400 (details) public static Task Phone_DeleteGroupCallMessages(this Client client, InputGroupCallBase call, int[] messages, bool report_spam = false) => client.Invoke(new Phone_DeleteGroupCallMessages { @@ -7514,7 +7517,7 @@ namespace TL messages = messages, }); - /// See + /// See Possible codes: 400 (details) public static Task Phone_DeleteGroupCallParticipantMessages(this Client client, InputGroupCallBase call, InputPeer participant, bool report_spam = false) => client.Invoke(new Phone_DeleteGroupCallParticipantMessages { @@ -7523,14 +7526,14 @@ namespace TL participant = participant, }); - /// See + /// See Possible codes: 400 (details) public static Task Phone_GetGroupCallStars(this Client client, InputGroupCallBase call) => client.Invoke(new Phone_GetGroupCallStars { call = call, }); - /// See + /// See Possible codes: 400 (details) public static Task Phone_SaveDefaultSendAs(this Client client, InputGroupCallBase call, InputPeer send_as) => client.Invoke(new Phone_SaveDefaultSendAs { @@ -8180,7 +8183,9 @@ namespace TL limit = limit, }); - /// See + /// See Possible codes: 400 (details) + /// Message entities for styled text + /// You can use public static Task Stories_StartLive(this Client client, InputPeer peer, InputPrivacyRule[] privacy_rules, long random_id, string caption = null, MessageEntity[] entities = null, bool? messages_enabled = default, long? send_paid_messages_stars = null, bool pinned = false, bool noforwards = false, bool rtmp_stream = false) => client.Invoke(new Stories_StartLive {