From 6afb0803bbd3b61acb569c6cafcb2ee6b8e2f0e2 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Tue, 30 Jul 2024 01:54:00 +0200 Subject: [PATCH] api doc --- src/TL.Schema.cs | 101 +++++++++++++++------------- src/TL.SchemaFuncs.cs | 153 ++++++++++++++++++++++-------------------- 2 files changed, 136 insertions(+), 118 deletions(-) diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 9eb400e..171d176 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -752,7 +752,7 @@ namespace TL /// User identifier or 0 public long id; } - /// Indicates info about a certain user See + /// Indicates info about a certain user. See [TLDef(0x215C4438)] public sealed partial class User : UserBase { @@ -760,23 +760,23 @@ namespace TL public Flags flags; /// Extra bits of information, use flags2.HasFlag(...) to test for those public Flags2 flags2; - /// ID of the user + /// ID of the user, see here » for more info. public long id; - /// Access hash of the user + /// Access hash of the user, see here » for more info.
If this flag is set, when updating the local peer database, generate a virtual flag called min_access_hash, which is:
- Set to true if min is set AND
- The phone flag is not set OR
- The phone flag is set and the associated phone number string is non-empty
- Set to false otherwise.

Then, apply both access_hash and min_access_hash to the local database if:
- min_access_hash is false OR
- min_access_hash is true AND
- There is no locally cached object for this user OR
- There is no access_hash in the local cache OR
- The cached object's min_access_hash is also true
If the final merged object stored to the database has the min_access_hash field set to true, the related access_hash is only suitable to use in inputPeerPhotoFileLocation », to directly download the profile pictures of users, everywhere else a inputPeer*FromMessage constructor will have to be generated as specified here ».
Bots can also use min access hashes in some conditions, by passing 0 instead of the min access hash.
[IfFlag(0)] public long access_hash; - /// First name + /// First name.
When updating the local peer database, apply changes to this field only if:
- The min flag is not set OR
- The min flag is set AND
- The min flag of the locally cached user entry is set.
[IfFlag(1)] public string first_name; - /// Last name + /// Last name.
When updating the local peer database, apply changes to this field only if:
- The min flag is not set OR
- The min flag is set AND
- The min flag of the locally cached user entry is set.
[IfFlag(2)] public string last_name; - /// Username + /// Main active username.
When updating the local peer database, apply changes to this field only if:
- The min flag is not set OR
- The min flag is set AND
- The min flag of the locally cached user entry is set.
[IfFlag(3)] public string username; - /// Phone number + /// Phone number.
When updating the local peer database, apply changes to this field only if:
- The min flag is not set OR
- The min flag is set AND
- The min flag of the locally cached user entry is set.
[IfFlag(4)] public string phone; - /// Profile picture of user + /// Profile picture of user.
When updating the local peer database, apply changes to this field only if:
- The min flag is not set OR
- The min flag is set AND
- The apply_min_photo flag is set OR
- The min flag of the locally cached user entry is set.
[IfFlag(5)] public UserProfilePhoto photo; - /// Online status of user + /// Online status of user.
When updating the local peer database, apply changes to this field only if:
- The min flag is not set OR
- The min flag is set AND
- The min flag of the locally cached user entry is set OR
- The locally cached user entry is equal to .
[IfFlag(6)] public UserStatus status; - /// Version of the bot_info field in userFull, incremented every time it changes + /// Version of the bot_info field in userFull, incremented every time it changes.
Changes to this flag should invalidate the local cache for this user ID.
[IfFlag(14)] public int bot_info_version; /// Contains the reason why access to this user must be restricted. [IfFlag(18)] public RestrictionReason[] restriction_reason; @@ -786,7 +786,7 @@ namespace TL [IfFlag(22)] public string lang_code; /// Emoji status [IfFlag(30)] public EmojiStatus emoji_status; - /// Additional usernames + /// Additional usernames.
When updating the local peer database, apply changes to this field only if:
- The min flag is not set OR
- The min flag is set AND
- The min flag of the locally cached user entry is set.
Changes to this flag (if the above conditions are respected) should invalidate the local cache for this user ID.
[IfFlag(32)] public Username[] usernames; /// ID of the maximum read story. [IfFlag(37)] public int stories_max_id; @@ -813,13 +813,13 @@ namespace TL has_status = 0x40, /// Whether this user indicates the currently logged in user self = 0x400, - /// Whether this user is a contact + /// Whether this user is a contact
When updating the local peer database, do not apply changes to this field if the min flag is set.
contact = 0x800, - /// Whether this user is a mutual contact + /// Whether this user is a mutual contact.
When updating the local peer database, do not apply changes to this field if the min flag is set.
mutual_contact = 0x1000, /// Whether the account of this user was deleted deleted = 0x2000, - /// Is this user a bot? + /// Is this user a bot?
Changes to this flag should invalidate the local cache for this user ID.
bot = 0x4000, /// Can the bot see all messages in groups? bot_chat_history = 0x8000, @@ -841,15 +841,15 @@ namespace TL support = 0x800000, /// This may be a scam user scam = 0x1000000, - /// If set, the profile picture for this user should be refetched + /// If set and min is set, the value of photo can be used to update the local database, see the documentation of that flag for more info. apply_min_photo = 0x2000000, /// If set, this user was reported by many users as a fake or scam user: be careful when interacting with them. fake = 0x4000000, /// Whether this bot offers an attachment menu web app bot_attach_menu = 0x8000000, - /// Whether this user is a Telegram Premium user + /// Whether this user is a Telegram Premium user
Changes to this flag should invalidate the local cache for this user ID.
Changes to this flag if the self flag is set should also trigger the following calls, to refresh the respective caches:
- The Help_GetConfig cache
- The Messages_GetTopReactions cache if the bot flag is not set
premium = 0x10000000, - /// Whether we installed the attachment menu web app offered by this bot + /// Whether we installed the attachment menu web app offered by this bot.
When updating the local peer database, do not apply changes to this field if the min flag is set.
attach_menu_enabled = 0x20000000, /// Field has a value has_emoji_status = 0x40000000, @@ -859,11 +859,11 @@ namespace TL { /// Field has a value has_usernames = 0x1, - /// Whether we can edit the profile picture, name, about text and description of this bot because we own it. + /// Whether we can edit the profile picture, name, about text and description of this bot because we own it.
When updating the local peer database, do not apply changes to this field if the min flag is set.
Changes to this flag (if min is not set) should invalidate the local cache for this user ID.
bot_can_edit = 0x2, - /// Whether we marked this user as a close friend, see here » for more info + /// Whether we marked this user as a close friend, see here » for more info.
When updating the local peer database, do not apply changes to this field if the min flag is set.
close_friend = 0x4, - /// Whether we have hidden » all active stories of this user. + /// Whether we have hidden » all active stories of this user.
When updating the local peer database, do not apply changes to this field if the min flag is set.
stories_hidden = 0x8, /// No stories from this user are visible. stories_unavailable = 0x10, @@ -931,6 +931,7 @@ namespace TL [Flags] public enum Flags : uint { + /// If set, the exact user status of this user is actually available to us, but to view it we must first purchase a Premium subscription, or allow this user to see our exact last online status. See here » for more info. by_me = 0x1, } } @@ -943,6 +944,7 @@ namespace TL [Flags] public enum Flags : uint { + /// If set, the exact user status of this user is actually available to us, but to view it we must first purchase a Premium subscription, or allow this user to see our exact last online status. See here » for more info. by_me = 0x1, } } @@ -955,6 +957,7 @@ namespace TL [Flags] public enum Flags : uint { + /// If set, the exact user status of this user is actually available to us, but to view it we must first purchase a Premium subscription, or allow this user to see our exact last online status. See here » for more info. by_me = 0x1, } } @@ -962,7 +965,7 @@ namespace TL /// Object defines a group. See Derived classes: , , , , public abstract partial class ChatBase : IObject { - /// ID of the group + /// ID of the group, see here » for more info public virtual long ID => default; /// Title public virtual string Title => default; @@ -983,7 +986,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// ID of the group + /// ID of the group, see here » for more info public long id; /// Title public string title; @@ -1024,7 +1027,7 @@ namespace TL noforwards = 0x2000000, } - /// ID of the group + /// ID of the group, see here » for more info public override long ID => id; /// Title public override string Title => title; @@ -1051,13 +1054,13 @@ namespace TL public Flags flags; /// Extra bits of information, use flags2.HasFlag(...) to test for those public Flags2 flags2; - /// ID of the channel + /// ID of the channel, see here » for more info public long id; - /// Access hash + /// Access hash, see here » for more info [IfFlag(13)] public long access_hash; /// Title public string title; - /// Username + /// Main active username. [IfFlag(6)] public string username; /// Profile photo public ChatPhoto photo; @@ -1164,7 +1167,7 @@ namespace TL has_level = 0x400, } - /// ID of the channel + /// ID of the channel, see here » for more info public override long ID => id; /// Title public override string Title => title; @@ -2053,7 +2056,7 @@ namespace TL [IfFlag(0)] public WebDocumentBase photo; /// Message ID of receipt: if set, clients should change the text of the first button always attached to the to a localized version of the word Receipt [IfFlag(2)] public int receipt_msg_id; - /// Three-letter ISO 4217 currency code + /// Three-letter ISO 4217 currency code, or XTR for Telegram Stars. public string currency; /// Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long total_amount; @@ -2308,7 +2311,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// Three-letter ISO 4217 currency code + /// Three-letter ISO 4217 currency code, or XTR for Telegram Stars. public string currency; /// Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long total_amount; @@ -2339,7 +2342,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// Three-letter ISO 4217 currency code + /// Three-letter ISO 4217 currency code, or XTR for Telegram Stars. public string currency; /// Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long total_amount; @@ -4447,7 +4450,7 @@ namespace TL [IfFlag(0)] public PaymentRequestedInfo info; /// Identifier of the shipping option chosen by the user [IfFlag(1)] public string shipping_option_id; - /// Three-letter ISO 4217 currency code + /// Three-letter ISO 4217 currency code, or XTR for Telegram Stars. public string currency; /// Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long total_amount; @@ -5414,6 +5417,7 @@ namespace TL { /// Story ID. public int story_id; + /// The peer where the story was posted. public Peer peer; /// The reaction. public Reaction reaction; @@ -6578,7 +6582,7 @@ namespace TL /// Privacy keys together with privacy rules » indicate what can or can't someone do and are specified by a constructor, and its input counterpart . See public enum InputPrivacyKey : uint { - ///Whether people will be able to see our exact last online timestamp.

Note that if we decide to hide our exact last online timestamp to someone and we do not have a
Premium subscription, we won't be able to see the exact last online timestamp of any user, including those that do share it with us.
+ ///Whether people will be able to see our exact last online timestamp.

Note that if we decide to hide our exact last online timestamp to someone (i.e., users A, B, C, or all users) and we do not have a Premium subscription, we won't be able to see the exact last online timestamp of those users (A, B, C, or all users), even if those users do share it with us.

If those users do share their exact online status with us, but we can't see it due to the reason mentioned above, the by_me flag of , , will be set.
StatusTimestamp = 0x4F96CB18, ///Whether people will be able to invite you to chats ChatInvite = 0xBDFB0426, @@ -6594,7 +6598,7 @@ namespace TL PhoneNumber = 0x0352DAFA, ///Whether people can add you to their contact list by your phone number AddedByPhone = 0xD1219BDD, - ///Whether people can send you voice messages + ///Whether people can send you voice messages or round videos (Premium users only). VoiceMessages = 0xAEE69D68, ///Whether people can see your bio About = 0x3823CC40, @@ -6605,7 +6609,7 @@ namespace TL /// Privacy keys together with privacy rules » indicate what can or can't someone do and are specified by a constructor, and its input counterpart . See public enum PrivacyKey : uint { - ///Whether we can see the last online timestamp of this user.

Note that if we decide to hide our exact last online timestamp to someone and we do not have a
Premium subscription, we won't be able to see the exact last online timestamp of any user, including those that do share it with us.
+ ///Whether we can see the last online timestamp of this user.

Note that if we decide to hide our exact last online timestamp to someone (i.e., users A, B, C, or all users) and we do not have a Premium subscription, we won't be able to see the exact last online timestamp of those users (A, B, C, or all users), even if those users do share it with us.

If those users do share their exact online status with us, but we can't see it due to the reason mentioned above, the by_me flag of , , will be set.
StatusTimestamp = 0xBC2EAB30, ///Whether the user can be invited to chats ChatInvite = 0x500E6DFA, @@ -8762,7 +8766,7 @@ namespace TL public string description; /// Product photo [IfFlag(0)] public WebDocumentBase photo; - /// Three-letter ISO 4217 currency code + /// Three-letter ISO 4217 currency code, or XTR for Telegram Stars. public string currency; /// Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long total_amount; @@ -10106,7 +10110,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// Three-letter ISO 4217 currency code + /// Three-letter ISO 4217 currency code, or XTR for Telegram Stars. public string currency; /// Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) public LabeledPrice[] prices; @@ -10625,7 +10629,9 @@ namespace TL [IfFlag(2)] public WebDocumentBase photo; /// Invoice public Invoice invoice; + /// Currency, always XTR. public string currency; + /// Amount of Telegram Stars. public long total_amount; /// Transaction ID public string transaction_id; @@ -10650,7 +10656,9 @@ namespace TL public override WebDocumentBase Photo => photo; /// Invoice public override Invoice Invoice => invoice; + /// Currency, always XTR. public override string Currency => currency; + /// Amount of Telegram Stars. public override long TotalAmount => total_amount; /// Info about users mentioned in the other fields. public override Dictionary Users => users; @@ -10941,7 +10949,7 @@ namespace TL public long key_fingerprint; /// Call protocol info to be passed to libtgvoip public PhoneCallProtocol protocol; - /// List of endpoints the user can connect to to exchange call data + /// List of endpoints the user can connect to exchange call data public PhoneConnectionBase[] connections; /// When was the call actually started public DateTime start_date; @@ -14779,19 +14787,19 @@ namespace TL public Flags flags; /// Message ID public byte[] random_id; - /// If set, contains a URL to open when the user clicks on the sponsored message. + /// Contains the URL to open when the user clicks on the sponsored message. public string url; - /// If set, contains a custom sender name should be displayed for the sponsored message, like for messages sent in groups. + /// Contains the title of the sponsored message. public string title; /// Sponsored message public string message; - /// Message entities for styled text + /// Message entities for styled text in message. [IfFlag(1)] public MessageEntity[] entities; /// If set, contains a custom profile photo bubble that should be displayed for the sponsored message, like for messages sent in groups. [IfFlag(6)] public PhotoBase photo; /// If set, the sponsored message should use the message accent color » specified in color. [IfFlag(13)] public PeerColor color; - /// Text of the sponsored message button. + /// Label of the sponsored message button. public string button_text; /// If set, contains additional information about the sponsor to be shown along with the message. [IfFlag(7)] public string sponsor_info; @@ -14810,7 +14818,7 @@ namespace TL has_sponsor_info = 0x80, /// Field has a value has_additional_info = 0x100, - /// Whether this message can be reported as specified here ». + /// Whether this message can be reported as specified here ». can_report = 0x1000, /// Field has a value has_color = 0x2000, @@ -18064,9 +18072,9 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// Title of the introduction message + /// Title of the introduction message (max intro_title_length_limit » UTF-8 characters). public string title; - /// Profile introduction + /// Profile introduction (max intro_description_length_limit » UTF-8 characters). public string description; /// Optional introduction sticker. [IfFlag(0)] public DocumentBase sticker; @@ -18209,7 +18217,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// ID of the user. If neither of the flags below are set, we could not add the user because of their privacy settings, and we can create and directly share an invite link with them using a normal message, instead. + /// ID of the user. If neither of the flags below are set, we could not add the user because of their privacy settings, and we can create and directly share an invite link with them using a normal message, instead. public long user_id; [Flags] public enum Flags : uint @@ -18608,6 +18616,7 @@ namespace TL [Flags] public enum Flags : uint { + /// If set, the country/text fields will not be set, and the fact check must be fetched manually by the client (if it isn't already cached with the key specified in hash) using bundled Messages_GetFactCheck requests, when the message with the factcheck scrolls into view. need_check = 0x1, /// Fields and have a value has_country = 0x2, @@ -18625,7 +18634,7 @@ namespace TL /// Describes a Telegram Star transaction with the Play Store, used when purchasing Telegram Stars through the Play Store. See [TLDef(0x7B560A0B)] public sealed partial class StarsTransactionPeerPlayMarket : StarsTransactionPeerBase { } - /// See + /// Describes a Telegram Star transaction made using @PremiumBot (i.e. using the flow described here »). See [TLDef(0x250DBAF8)] public sealed partial class StarsTransactionPeerPremiumBot : StarsTransactionPeerBase { } /// Describes a Telegram Star transaction with Fragment, used when purchasing Telegram Stars through Fragment. See diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index 65c2ffa..6ed2e97 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -142,6 +142,7 @@ namespace TL }); /// Registers a validated phone number in the system. See Possible codes: 400,406 (details) + /// If set, users on Telegram that have already added phone_number to their contacts will not receive signup notifications about this user. /// Phone number in the international format /// SMS-message ID /// New user first name @@ -259,6 +260,7 @@ namespace TL /// Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info. See Possible codes: 400,406 (details) /// The phone number /// The phone code hash obtained from Auth_SendCode + /// Official clients only, used if the device integrity verification failed, and no secret could be obtained to invoke Auth_RequestFirebaseSms: in this case, the device integrity verification failure reason must be passed here. [Obsolete("Use LoginUserIfNeeded instead of this method. See https://wiz0u.github.io/WTelegramClient/FAQ#tlsharp")] public static Task Auth_ResendCode(this Client client, string phone_number, string phone_code_hash, string reason = null) => client.Invoke(new Auth_ResendCode @@ -363,7 +365,10 @@ namespace TL phone_code_hash = phone_code_hash, }); - /// See Possible codes: 400 (details) + /// Official apps only, reports that the SMS authentication code wasn't delivered. See Possible codes: 400 (details) + /// Phone number where we were supposed to receive the code + /// The phone code hash obtained from Auth_SendCode + /// MNC of the current network operator. public static Task Auth_ReportMissingCode(this Client client, string phone_number, string phone_code_hash, string mnc) => client.Invoke(new Auth_ReportMissingCode { @@ -931,7 +936,7 @@ namespace TL settings = settings, }); - /// Save a theme See + /// Save a theme See Possible codes: 400 (details) /// Theme to save /// Unsave public static Task Account_SaveTheme(this Client client, InputThemeBase theme, bool unsave) @@ -1078,7 +1083,7 @@ namespace TL hash = hash, }); - /// Save or remove saved notification sound. See + /// Save or remove saved notification sound. See Possible codes: 400 (details) /// Notification sound uploaded using Account_UploadRingtone /// Whether to add or delete the notification sound public static Task Account_SaveRingtone(this Client client, InputDocument id, bool unsave) @@ -1088,7 +1093,7 @@ namespace TL unsave = unsave, }); - /// Upload notification sound, use Account_SaveRingtone to convert it and add it to the list of saved notification sounds. See + /// Upload notification sound, use Account_SaveRingtone to convert it and add it to the list of saved notification sounds. See Possible codes: 400 (details) /// Notification sound /// File name /// MIME type of file @@ -1174,7 +1179,7 @@ namespace TL { }); - /// Modify autosave settings See [bots: ✓] Possible codes: 400 (details) + /// Modify autosave settings See Possible codes: 400 (details) /// Whether the new settings should affect all private chats /// Whether the new settings should affect all groups /// Whether the new settings should affect all channels @@ -1202,7 +1207,7 @@ namespace TL codes = codes, }); - /// Update the accent color and background custom emoji » of the current account. See Possible codes: 400 (details) + /// Update the accent color and background custom emoji » of the current account. See Possible codes: 400,403 (details) /// Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed. /// ID of the accent color palette » to use (not RGB24, see here » for more info). /// Custom emoji ID used in the accent color pattern. @@ -1279,7 +1284,7 @@ namespace TL message = message, }); - /// Connect a business bot » to the current account, or to change the current connection settings. See + /// Connect a business bot » to the current account, or to change the current connection settings. See Possible codes: 400,403 (details) /// Whether the bot can reply to messages it receives from us, on behalf of us using the business connection. /// Whether to fully disconnect the bot from the current account. /// The bot to connect or disconnect @@ -1333,7 +1338,7 @@ namespace TL peer = peer, }); - /// Update our birthday, see here » for more info. See + /// Update our birthday, see here » for more info. See Possible codes: 400 (details) /// Birthday. public static Task Account_UpdateBirthday(this Client client, Birthday birthday = null) => client.Invoke(new Account_UpdateBirthday @@ -1342,7 +1347,7 @@ namespace TL birthday = birthday, }); - /// Create a business chat deep link ». See + /// Create a business chat deep link ». See Possible codes: 400,403 (details) /// Info about the link to create. public static Task Account_CreateBusinessChatLink(this Client client, InputBusinessChatLink link) => client.Invoke(new Account_CreateBusinessChatLink @@ -1350,7 +1355,7 @@ namespace TL link = link, }); - /// Edit a created business chat deep link ». See Possible codes: 400 (details) + /// Edit a created business chat deep link ». See Possible codes: 400,403 (details) /// Slug of the link, obtained as specified here ». /// New link information. public static Task Account_EditBusinessChatLink(this Client client, string slug, InputBusinessChatLink link) @@ -1438,7 +1443,7 @@ namespace TL errors = errors, }); - /// Check whether we can write to the specified user (non-Premium users only), see here » for more info on the full flow. See + /// Check whether we can write to the specified user (this method can only be called by non-Premium users), see here » for more info on the full flow. See /// Users to fetch info about. public static Task Users_GetIsPremiumRequiredToContact(this Client client, params InputUserBase[] id) => client.Invoke(new Users_GetIsPremiumRequiredToContact @@ -1657,7 +1662,7 @@ namespace TL { }); - /// Obtain user info from a temporary profile link. See [bots: ✓] Possible codes: 400 (details) + /// Obtain user info from a temporary profile link. See Possible codes: 400 (details) /// The token extracted from the temporary profile link. public static Task Contacts_ImportContactToken(this Client client, string token) => client.Invoke(new Contacts_ImportContactToken @@ -2629,7 +2634,7 @@ namespace TL hash = hash, }); - /// Get stickers attached to a photo or video See + /// Get stickers attached to a photo or video See Possible codes: 400 (details) /// Stickered media public static Task Messages_GetAttachedStickers(this Client client, InputStickeredMedia media) => client.Invoke(new Messages_GetAttachedStickers @@ -2705,7 +2710,7 @@ namespace TL /// Get instant view page See Possible codes: 400 (details) /// URL of IV page to fetch - /// Hash used for caching, for more info click here + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call or if the previous call did not return a . public static Task Messages_GetWebPage(this Client client, string url, int hash = default) => client.Invoke(new Messages_GetWebPage { @@ -2884,7 +2889,7 @@ namespace TL effect = effect.GetValueOrDefault(), }); - /// Upload encrypted file and associate it to a secret chat See + /// Upload encrypted file and associate it to a secret chat See Possible codes: 400 (details) /// The secret chat to associate the file to /// The file /// a null value means encryptedFileEmpty @@ -3082,7 +3087,7 @@ namespace TL url = url, }); - /// Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the action bar ». See + /// Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the action bar ». See Possible codes: 400 (details) /// Peer public static Task Messages_HidePeerSettingsBar(this Client client, InputPeer peer) => client.Invoke(new Messages_HidePeerSettingsBar @@ -3092,7 +3097,7 @@ namespace TL /// Get scheduled messages See Possible codes: 400 (details) /// Peer - /// Hash used for caching, for more info click here + /// Hash used for caching, for more info click here.
To generate the hash, populate the ids array with the id, date and edit_date (in this order) of the previously returned messages (in order, i.e. ids = [id1, date1, edit_date1, id2, date2, edit_date2, ...]). public static Task Messages_GetScheduledHistory(this Client client, InputPeer peer, long hash = default) => client.Invoke(new Messages_GetScheduledHistory { @@ -3471,7 +3476,7 @@ namespace TL offset_date = offset_date, }); - /// Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. See + /// Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. See Possible codes: 400 (details) /// Peer where to search /// Search within the saved message dialog » with this ID. /// Message filter, , filters are not supported by this method. @@ -3717,7 +3722,7 @@ namespace TL send_as = send_as, }); - /// Indicate to the server (from the user side) that the user is still using a web app. See + /// Indicate to the server (from the user side) that the user is still using a web app. See Possible codes: 400 (details) /// Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is Messages_SendWebViewResultMessage should be sent silently (no notifications for the receivers). /// Dialog where the web app was opened. /// Bot that owns the web app @@ -3764,7 +3769,7 @@ namespace TL result = result, }); - /// Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it. See + /// Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it. See Possible codes: 400 (details) /// Bot that owns the web app /// Unique client message ID to prevent duplicate sending of the same event You can use /// Text of the that was pressed to open the web app. @@ -3877,7 +3882,7 @@ namespace TL id = id, }); - /// Changes the default value of the Time-To-Live setting, applied to all new chats. See [bots: ✓] Possible codes: 400 (details) + /// Changes the default value of the Time-To-Live setting, applied to all new chats. See Possible codes: 400 (details) /// The new default Time-To-Live of all messages sent in new chats. public static Task Messages_SetDefaultHistoryTTL(this Client client, int period) => client.Invoke(new Messages_SetDefaultHistoryTTL @@ -3885,13 +3890,13 @@ namespace TL period = period, }); - /// Gets the default value of the Time-To-Live setting, applied to all new chats. See [bots: ✓] + /// Gets the default value of the Time-To-Live setting, applied to all new chats. See public static Task Messages_GetDefaultHistoryTTL(this Client client) => client.Invoke(new Messages_GetDefaultHistoryTTL { }); - /// Send one or more chosen peers, as requested by a button. See + /// Send one or more chosen peers, as requested by a button. See Possible codes: 400 (details) /// The bot that sent the button. /// ID of the message that contained the reply keyboard with the button. /// The button_id field from the . @@ -3905,7 +3910,7 @@ namespace TL requested_peers = requested_peers, }); - /// Represents a list of emoji categories. See [bots: ✓] + /// Represents a list of emoji categories. See /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.emojiGroupsNotModified public static Task Messages_GetEmojiGroups(this Client client, int hash = default) @@ -3914,7 +3919,7 @@ namespace TL hash = hash, }); - /// Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status. See [bots: ✓] + /// Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status. See /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.emojiGroupsNotModified public static Task Messages_GetEmojiStatusGroups(this Client client, int hash = default) @@ -3923,7 +3928,7 @@ namespace TL hash = hash, }); - /// Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture. See [bots: ✓] + /// Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture. See /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.emojiGroupsNotModified public static Task Messages_GetEmojiProfilePhotoGroups(this Client client, int hash = default) @@ -3932,7 +3937,7 @@ namespace TL hash = hash, }); - /// Look for custom emojis associated to a UTF8 emoji See [bots: ✓] Possible codes: 400 (details) + /// Look for custom emojis associated to a UTF8 emoji See Possible codes: 400 (details) /// The emoji /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means emojiListNotModified @@ -3943,7 +3948,7 @@ namespace TL hash = hash, }); - /// Show or hide the real-time chat translation popup for a certain chat See [bots: ✓] + /// Show or hide the real-time chat translation popup for a certain chat See Possible codes: 400 (details) /// Whether to disable or enable the real-time chat translation popup /// The peer public static Task Messages_TogglePeerTranslations(this Client client, InputPeer peer, bool disabled = false) @@ -3981,7 +3986,7 @@ namespace TL platform = platform, }); - /// Set a custom wallpaper » in a specific private chat with another user. See [bots: ✓] Possible codes: 400 (details) + /// Set a custom wallpaper » in a specific private chat with another user. See Possible codes: 400 (details) /// Only for Premium users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user. /// If we don't like the new wallpaper the other user of the chat has chosen for us using the for_both flag, we can re-set our previous wallpaper just on our side using this flag. /// The private chat where the wallpaper will be set @@ -4104,7 +4109,7 @@ namespace TL hash = hash, }); - /// Update the description of a saved message tag ». See Possible codes: 400 (details) + /// Update the description of a saved message tag ». See Possible codes: 400,403 (details) /// Reaction associated to the tag /// Tag description, max 12 UTF-8 characters; to remove the description call the method without setting this flag. public static Task Messages_UpdateSavedReactionTag(this Client client, Reaction reaction, string title = null) @@ -4143,7 +4148,7 @@ namespace TL hash = hash, }); - /// Reorder quick reply shortcuts. See + /// Reorder quick reply shortcuts. See Possible codes: 403 (details) /// IDs of all created quick reply shortcuts, in the desired order. public static Task Messages_ReorderQuickReplies(this Client client, params int[] order) => client.Invoke(new Messages_ReorderQuickReplies @@ -4151,7 +4156,7 @@ namespace TL order = order, }); - /// Before offering the user the choice to add a message to a quick reply shortcut, to make sure that none of the limits specified here » were reached. See + /// Before offering the user the choice to add a message to a quick reply shortcut, to make sure that none of the limits specified here » were reached. See Possible codes: 403 (details) /// Shorcut name (not ID!). public static Task Messages_CheckQuickReplyShortcut(this Client client, string shortcut) => client.Invoke(new Messages_CheckQuickReplyShortcut @@ -4159,7 +4164,7 @@ namespace TL shortcut = shortcut, }); - /// Rename a quick reply shortcut.
This will emit an update to other logged-in sessions. See Possible codes: 400 (details)
+ /// Rename a quick reply shortcut.
This will emit an update to other logged-in sessions. See Possible codes: 400,403 (details)
/// Shortcut ID. /// New shortcut name. public static Task Messages_EditQuickReplyShortcut(this Client client, int shortcut_id, string shortcut) @@ -4190,7 +4195,7 @@ namespace TL hash = hash, }); - /// Send a quick reply shortcut ». See Possible codes: 400 (details) + /// Send a quick reply shortcut ». See Possible codes: 400,403 (details) /// The peer where to send the shortcut (users only, for now). /// The ID of the quick reply shortcut to send. /// Specify a subset of messages from the shortcut to send; if empty, defaults to all of them. @@ -4214,7 +4219,7 @@ namespace TL id = id, }); - /// Enable or disable folder tags ». See + /// Enable or disable folder tags ». See Possible codes: 403 (details) /// Enable or disable folder tags. public static Task Messages_ToggleDialogFilterTags(this Client client, bool enabled) => client.Invoke(new Messages_ToggleDialogFilterTags @@ -4222,7 +4227,7 @@ namespace TL enabled = enabled, }); - /// Fetch stickerset owned by the current user. See + /// Fetch all stickersets » owned by the current user. See /// Offsets for pagination, for more info click here /// Maximum number of results to return, see pagination public static Task Messages_GetMyStickers(this Client client, long offset_id = default, int limit = int.MaxValue) @@ -4250,7 +4255,7 @@ namespace TL hash = hash, }); - /// Edit/create a fact-check on a message. See Possible codes: 400 (details) + /// Edit/create a fact-check on a message. See Possible codes: 400,403 (details) /// Peer where the message was sent /// Message ID /// Fact-check (maximum UTF-8 length specified in appConfig.factcheck_length_limit). @@ -4262,7 +4267,7 @@ namespace TL text = text, }); - /// Delete a fact-check from a message. See Possible codes: 400 (details) + /// Delete a fact-check from a message. See Possible codes: 400,403 (details) /// Peer where the message was sent. /// Message ID public static Task Messages_DeleteFactCheck(this Client client, InputPeer peer, int msg_id) @@ -4272,7 +4277,9 @@ namespace TL msg_id = msg_id, }); - /// See Possible codes: 400 (details) + /// Fetch one or more factchecks, see here » for the full flow. See Possible codes: 400 (details) + /// Peer where the messages were sent. + /// Messages that have associated s with the need_check flag set. public static Task Messages_GetFactCheck(this Client client, InputPeer peer, params int[] msg_id) => client.Invoke(new Messages_GetFactCheck { @@ -4373,7 +4380,7 @@ namespace TL limit = limit, }); - /// Upload a custom profile picture for a contact, or suggest a new profile picture to a contact. See [bots: ✓] Possible codes: 400 (details) + /// Upload a custom profile picture for a contact, or suggest a new profile picture to a contact. See Possible codes: 400 (details) /// If set, will send a service message to user_id, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user). /// If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the service message with Messages_DeleteMessages). /// The contact @@ -4520,7 +4527,7 @@ namespace TL { }); - /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only See [bots: ✓] + /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only See [bots: ✓] Possible codes: 400 (details) /// Number of pending updates /// Error message, if present public static Task Help_SetBotUpdatesStatus(this Client client, int pending_updates_count, string message) @@ -5120,7 +5127,7 @@ namespace TL enabled = enabled, }); - /// Reorder active usernames See [bots: ✓] Possible codes: 400 (details) + /// Reorder active usernames See Possible codes: 400 (details) /// The supergroup or channel /// The new order for active usernames. All active usernames must be specified. public static Task Channels_ReorderUsernames(this Client client, InputChannelBase channel, params string[] order) @@ -5142,7 +5149,7 @@ namespace TL active = active, }); - /// Disable all purchased usernames of a supergroup or channel See [bots: ✓] + /// Disable all purchased usernames of a supergroup or channel See Possible codes: 400 (details) /// Supergroup or channel public static Task Channels_DeactivateAllUsernames(this Client client, InputChannelBase channel) => client.Invoke(new Channels_DeactivateAllUsernames @@ -5150,7 +5157,7 @@ namespace TL channel = channel, }); - /// Enable or disable forum functionality in a supergroup. See [bots: ✓] Possible codes: 400 (details) + /// Enable or disable forum functionality in a supergroup. See Possible codes: 400 (details) /// Supergroup ID /// Enable or disable forum functionality public static Task Channels_ToggleForum(this Client client, InputChannelBase channel, bool enabled) @@ -5198,7 +5205,7 @@ namespace TL limit = limit, }); - /// Get forum topics by their ID See [bots: ✓] Possible codes: 400 (details) + /// Get forum topics by their ID See Possible codes: 400 (details) /// Forum /// Topic IDs public static Task Channels_GetForumTopicsByID(this Client client, InputChannelBase channel, params int[] topics) @@ -5227,7 +5234,7 @@ namespace TL hidden = hidden.GetValueOrDefault(), }); - /// Pin or unpin forum topics See [bots: ✓] Possible codes: 400 (details) + /// Pin or unpin forum topics See Possible codes: 400 (details) /// Supergroup ID /// Forum topic ID /// Whether to pin or unpin the topic @@ -5249,7 +5256,7 @@ namespace TL top_msg_id = top_msg_id, }, channel.ChannelId); - /// Reorder pinned forum topics See [bots: ✓] + /// Reorder pinned forum topics See Possible codes: 400 (details) /// If not set, the order of only the topics present both server-side and in order will be changed (i.e. mentioning topics not pinned server-side in order will not pin them, and not mentioning topics pinned server-side will not unpin them).
If set, the entire server-side pinned topic list will be replaced with order (i.e. mentioning topics not pinned server-side in order will pin them, and not mentioning topics pinned server-side will unpin them) /// Supergroup ID /// Topic IDs » @@ -5261,7 +5268,7 @@ namespace TL order = order, }); - /// Enable or disable the native antispam system. See [bots: ✓] Possible codes: 400 (details) + /// Enable or disable the native antispam system. See Possible codes: 400 (details) /// Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters. /// Enable or disable the native antispam system. public static Task Channels_ToggleAntiSpam(this Client client, InputChannelBase channel, bool enabled) @@ -5271,7 +5278,7 @@ namespace TL enabled = enabled, }); - /// Report a native antispam false positive See [bots: ✓] + /// Report a native antispam false positive See Possible codes: 400 (details) /// Supergroup ID /// Message ID that was mistakenly deleted by the native antispam system, taken from the admin log public static Task Channels_ReportAntiSpamFalsePositive(this Client client, InputChannelBase channel, int msg_id) @@ -5281,7 +5288,7 @@ namespace TL msg_id = msg_id, }); - /// Hide or display the participants list in a supergroup. See [bots: ✓] Possible codes: 400 (details) + /// Hide or display the participants list in a supergroup. See Possible codes: 400 (details) /// Supergroup ID /// If true, will hide the participants list; otherwise will unhide it. public static Task Channels_ToggleParticipantsHidden(this Client client, InputChannelBase channel, bool enabled) @@ -5517,7 +5524,7 @@ namespace TL lang_code = lang_code, }); - /// Reorder usernames associated to a bot we own. See [bots: ✓] Possible codes: 400 (details) + /// Reorder usernames associated to a bot we own. See Possible codes: 400 (details) /// The bot /// The new order for active usernames. All active usernames must be specified. public static Task Bots_ReorderUsernames(this Client client, InputUserBase bot, params string[] order) @@ -5650,7 +5657,7 @@ namespace TL invoice_media = invoice_media, }); - /// Informs server about a purchase made through the App Store: for official applications only. See + /// Informs server about a purchase made through the App Store: for official applications only. See Possible codes: 400 (details) /// Receipt /// Payment purpose public static Task Payments_AssignAppStoreTransaction(this Client client, byte[] receipt, InputStorePaymentPurpose purpose) @@ -5660,7 +5667,7 @@ namespace TL purpose = purpose, }); - /// Informs server about a purchase made through the Play Store: for official applications only. See + /// Informs server about a purchase made through the Play Store: for official applications only. See Possible codes: 400 (details) /// Receipt /// Payment purpose public static Task Payments_AssignPlayMarketTransaction(this Client client, DataJSON receipt, InputStorePaymentPurpose purpose) @@ -5740,6 +5747,8 @@ namespace TL }); /// Fetch Telegram Stars transactions. See [bots: ✓] Possible codes: 400 (details) + /// If set, fetches only incoming transactions. + /// If set, fetches only outgoing transactions. /// Fetch the transaction history of the peer ( or a bot we own). /// Offset for pagination, obtained from the returned next_offset, initially an empty string ». public static Task Payments_GetStarsTransactions(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, bool inbound = false, bool outbound = false, bool ascending = false) @@ -6030,7 +6039,7 @@ namespace TL debug = debug, }); - /// Send VoIP signaling data See + /// Send VoIP signaling data See Possible codes: 400 (details) /// Phone call /// Signaling payload public static Task Phone_SendSignalingData(this Client client, InputPhoneCall peer, byte[] data) @@ -6073,7 +6082,7 @@ namespace TL params_ = params_, }); - /// Leave a group call See + /// Leave a group call See Possible codes: 400 (details) /// The group call /// Your source ID public static Task Phone_LeaveGroupCall(this Client client, InputGroupCall call, int source) @@ -6123,7 +6132,7 @@ namespace TL limit = limit, }); - /// Get group call participants See + /// Get group call participants See Possible codes: 400 (details) /// Group call /// If specified, will fetch group participant info about the specified peers /// If specified, will fetch group participant info about the specified WebRTC source IDs @@ -6205,7 +6214,7 @@ namespace TL peer = peer, }); - /// Get an invite link for a group call or livestream See Possible codes: 403 (details) + /// Get an invite link for a group call or livestream See Possible codes: 400,403 (details) /// For livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand). /// The group call public static Task Phone_ExportGroupCallInvite(this Client client, InputGroupCall call, bool can_self_unmute = false) @@ -6215,7 +6224,7 @@ namespace TL call = call, }); - /// Subscribe or unsubscribe to a scheduled group call See Possible codes: 403 (details) + /// Subscribe or unsubscribe to a scheduled group call See Possible codes: 400,403 (details) /// Scheduled group call /// Enable or disable subscription public static Task Phone_ToggleGroupCallStartSubscription(this Client client, InputGroupCall call, bool subscribed) @@ -6225,7 +6234,7 @@ namespace TL subscribed = subscribed, }); - /// Start a scheduled group call. See + /// Start a scheduled group call. See Possible codes: 400 (details) /// The scheduled group call public static Task Phone_StartScheduledGroupCall(this Client client, InputGroupCall call) => client.Invoke(new Phone_StartScheduledGroupCall @@ -6243,7 +6252,7 @@ namespace TL join_as = join_as, }); - /// Start screen sharing in a call See Possible codes: 403 (details) + /// Start screen sharing in a call See Possible codes: 400,403 (details) /// The group call /// WebRTC parameters public static Task Phone_JoinGroupCallPresentation(this Client client, InputGroupCall call, DataJSON params_) @@ -6253,7 +6262,7 @@ namespace TL params_ = params_, }); - /// Stop screen sharing in a group call See + /// Stop screen sharing in a group call See Possible codes: 400 (details) /// The group call public static Task Phone_LeaveGroupCallPresentation(this Client client, InputGroupCall call) => client.Invoke(new Phone_LeaveGroupCallPresentation @@ -6279,7 +6288,7 @@ namespace TL revoke = revoke, }); - /// Save phone call debug information See + /// Save phone call debug information See Possible codes: 400 (details) /// Phone call /// Logs public static Task Phone_SaveCallLog(this Client client, InputPhoneCall peer, InputFileBase file) @@ -6476,7 +6485,7 @@ namespace TL peers = peers, }); - /// Delete a previously created chat folder deep link ». See [bots: ✓] Possible codes: 400 (details) + /// Delete a previously created chat folder deep link ». See Possible codes: 400 (details) /// The related folder /// slug obtained from the chat folder deep link ». public static Task Chatlists_DeleteExportedInvite(this Client client, InputChatlist chatlist, string slug) @@ -6486,7 +6495,7 @@ namespace TL slug = slug, }); - /// Edit a chat folder deep link ». See [bots: ✓] Possible codes: 400 (details) + /// Edit a chat folder deep link ». See Possible codes: 400 (details) /// Folder ID /// slug obtained from the chat folder deep link ». /// If set, sets a new name for the link @@ -6501,7 +6510,7 @@ namespace TL peers = peers, }); - /// List all chat folder deep links » associated to a folder See [bots: ✓] + /// List all chat folder deep links » associated to a folder See Possible codes: 400 (details) /// The folder public static Task Chatlists_GetExportedInvites(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_GetExportedInvites @@ -6517,7 +6526,7 @@ namespace TL slug = slug, }); - /// Import a chat folder deep link », joining some or all the chats in the folder. See [bots: ✓] Possible codes: 400 (details) + /// Import a chat folder deep link », joining some or all the chats in the folder. See Possible codes: 400 (details) /// slug obtained from a chat folder deep link ». /// List of new chats to join, fetched using Chatlists_CheckChatlistInvite and filtered as specified in the documentation ». public static Task Chatlists_JoinChatlistInvite(this Client client, string slug, params InputPeer[] peers) @@ -6527,7 +6536,7 @@ namespace TL peers = peers, }); - /// Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »). See [bots: ✓] Possible codes: 400 (details) + /// Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »). See Possible codes: 400 (details) /// The folder public static Task Chatlists_GetChatlistUpdates(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_GetChatlistUpdates @@ -6535,7 +6544,7 @@ namespace TL chatlist = chatlist, }); - /// Join channels and supergroups recently added to a chat folder deep link ». See [bots: ✓] Possible codes: 400 (details) + /// Join channels and supergroups recently added to a chat folder deep link ». See Possible codes: 400 (details) /// The folder /// List of new chats to join, fetched using Chatlists_GetChatlistUpdates and filtered as specified in the documentation ». public static Task Chatlists_JoinChatlistUpdates(this Client client, InputChatlist chatlist, params InputPeer[] peers) @@ -6545,7 +6554,7 @@ namespace TL peers = peers, }); - /// Dismiss new pending peers recently added to a chat folder deep link ». See [bots: ✓] Possible codes: 400 (details) + /// Dismiss new pending peers recently added to a chat folder deep link ». See Possible codes: 400 (details) /// The folder public static Task Chatlists_HideChatlistUpdates(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_HideChatlistUpdates @@ -6553,7 +6562,7 @@ namespace TL chatlist = chatlist, }); - /// Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted. See [bots: ✓] Possible codes: 400 (details) + /// Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted. See Possible codes: 400 (details) /// Folder ID public static Task Chatlists_GetLeaveChatlistSuggestions(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_GetLeaveChatlistSuggestions @@ -6561,7 +6570,7 @@ namespace TL chatlist = chatlist, }); - /// Delete a folder imported using a chat folder deep link » See [bots: ✓] + /// Delete a folder imported using a chat folder deep link » See Possible codes: 400 (details) /// Folder ID /// Also leave the specified channels and groups public static Task Chatlists_LeaveChatlist(this Client client, InputChatlist chatlist, params InputPeer[] peers) @@ -6779,7 +6788,7 @@ namespace TL message = message, }); - /// Activates stories stealth mode, see here » for more info. See + /// Activates stories stealth mode, see here » for more info. See Possible codes: 400 (details) /// Whether to erase views from any stories opened in the past stories_stealth_past_period seconds », as specified by the client configuration. /// Whether to hide future story views for the next stories_stealth_future_period seconds », as specified by the client configuration. public static Task Stories_ActivateStealthMode(this Client client, bool past = false, bool future = false)