diff --git a/EXAMPLES.md b/EXAMPLES.md index 176cb83..1c25d5d 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -396,7 +396,7 @@ WTelegram.Helpers.Log = (lvl, str) => _logger.Log((LogLevel)lvl, str); ### Change 2FA password ```csharp -const string old_password = "password"; // current password if any +const string old_password = "password"; // current password if any (unused otherwise) const string new_password = "new_password"; // or null to disable 2FA var accountPassword = await client.Account_GetPassword(); var password = accountPassword.current_algo == null ? null : await WTelegram.Client.InputCheckPassword(accountPassword, old_password); @@ -408,7 +408,7 @@ await client.Account_UpdatePasswordSettings(password, new Account_PasswordInputS new_password_hash = new_password_hash?.A, new_algo = accountPassword.new_algo, hint = "new hint", -} +}); ``` diff --git a/src/TL.MTProto.cs b/src/TL.MTProto.cs index 661590a..a44c017 100644 --- a/src/TL.MTProto.cs +++ b/src/TL.MTProto.cs @@ -302,11 +302,13 @@ namespace TL { nonce = nonce, }); + public static Task ReqPqMulti(this Client client, Int128 nonce) => client.InvokeBare(new ReqPqMulti { nonce = nonce, }); + public static Task ReqDHParams(this Client client, Int128 nonce, Int128 server_nonce, byte[] p, byte[] q, long public_key_fingerprint, byte[] encrypted_data) => client.InvokeBare(new ReqDHParams { @@ -317,6 +319,7 @@ namespace TL public_key_fingerprint = public_key_fingerprint, encrypted_data = encrypted_data, }); + public static Task SetClientDHParams(this Client client, Int128 nonce, Int128 server_nonce, byte[] encrypted_data) => client.InvokeBare(new SetClientDHParams { @@ -324,31 +327,37 @@ namespace TL server_nonce = server_nonce, encrypted_data = encrypted_data, }); + public static Task DestroyAuthKey(this Client client) => client.InvokeBare(new DestroyAuthKey { }); + public static Task RpcDropAnswer(this Client client, long req_msg_id) => client.InvokeBare(new Methods.RpcDropAnswer { req_msg_id = req_msg_id, }); + public static Task GetFutureSalts(this Client client, int num) => client.Invoke(new GetFutureSalts { num = num, }); + public static Task Ping(this Client client, long ping_id) => client.Invoke(new Ping { ping_id = ping_id, }); + public static Task PingDelayDisconnect(this Client client, long ping_id, int disconnect_delay) => client.Invoke(new PingDelayDisconnect { ping_id = ping_id, disconnect_delay = disconnect_delay, }); + public static Task DestroySession(this Client client, long session_id) => client.InvokeBare(new DestroySession { diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 09e026d..5c8e697 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -12551,6 +12551,7 @@ namespace TL msg_id = msg_id, query = query, }); + /// Invokes a query after a successfull completion of previous queries See /// List of messages on which a current query depends /// The query itself @@ -12560,6 +12561,7 @@ namespace TL msg_ids = msg_ids, query = query, }); + /// Initialize connection See Possible codes: 400 (details) /// Application identifier (see. App configuration) /// Device model @@ -12586,6 +12588,7 @@ namespace TL params_ = params_, query = query, }); + /// Invoke the specified query using the specified API layer See Possible codes: 400,403 (details) /// The layer to use /// The query @@ -12595,6 +12598,7 @@ namespace TL layer = layer, query = query, }); + /// Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries). See /// The query public static Task InvokeWithoutUpdates(this Client client, IMethod query) @@ -12602,6 +12606,7 @@ namespace TL { query = query, }); + /// Invoke with the given message range See /// Message range /// Query @@ -12611,6 +12616,7 @@ namespace TL range = range, query = query, }); + /// Invoke a method within a takeout session See /// Takeout session ID /// Query @@ -12620,6 +12626,7 @@ namespace TL takeout_id = takeout_id, query = query, }); + /// Send the verification code for login See Possible codes: 303,400,401,406 (details) /// Phone number in international format /// Application identifier (see App configuration) @@ -12633,6 +12640,7 @@ namespace TL api_hash = api_hash, settings = settings, }); + /// Registers a validated phone number in the system. See Possible codes: 400 (details) /// Phone number in the international format /// SMS-message ID @@ -12646,6 +12654,7 @@ namespace TL first_name = first_name, last_name = last_name, }); + /// Signs in a user with a validated phone number. See Possible codes: 400 (details) /// Phone number in the international format /// SMS-message ID, obtained from auth.sendCode @@ -12657,16 +12666,19 @@ namespace TL phone_code_hash = phone_code_hash, phone_code = phone_code, }); + /// Logs out the user. See [bots: ✓] public static Task Auth_LogOut(this Client client) => client.Invoke(new Auth_LogOut { }); + /// Terminates all user's authorized sessions except for the current one. See Possible codes: 406 (details) public static Task Auth_ResetAuthorizations(this Client client) => client.Invoke(new Auth_ResetAuthorizations { }); + /// Returns data for copying authorization to another data-centre. See [bots: ✓] Possible codes: 400 (details) /// Number of a target data-centre public static Task Auth_ExportAuthorization(this Client client, int dc_id) @@ -12674,6 +12686,7 @@ namespace TL { dc_id = dc_id, }); + /// Logs in a user using a key transmitted from his native data-centre. See [bots: ✓] Possible codes: 400 (details) /// User ID /// Authorization key @@ -12683,6 +12696,7 @@ namespace TL id = id, bytes = bytes, }); + /// Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one. See [bots: ✓] Possible codes: 400 (details) /// Permanent auth_key_id to bind to /// Random long from Binding message contents @@ -12696,6 +12710,7 @@ namespace TL expires_at = expires_at, encrypted_message = encrypted_message, }); + /// Login as a bot See [bots: ✓] Possible codes: 400,401 (details) /// Application identifier (see. App configuration) /// Application identifier hash (see. App configuration) @@ -12708,6 +12723,7 @@ namespace TL api_hash = api_hash, bot_auth_token = bot_auth_token, }); + /// Try logging to an account protected by a 2FA password. See Possible codes: 400 (details) /// The account's password (see SRP) public static Task Auth_CheckPassword(this Client client, InputCheckPasswordSRP password) @@ -12715,11 +12731,13 @@ namespace TL { password = password, }); + /// Request recovery code of a 2FA password, only for accounts with a recovery email configured. See Possible codes: 400 (details) public static Task Auth_RequestPasswordRecovery(this Client client) => client.Invoke(new Auth_RequestPasswordRecovery { }); + /// Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery. See Possible codes: 400 (details) /// Code received via email /// New password @@ -12730,6 +12748,7 @@ namespace TL code = code, new_settings = new_settings, }); + /// 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 @@ -12739,6 +12758,7 @@ namespace TL phone_number = phone_number, phone_code_hash = phone_code_hash, }); + /// Cancel the login verification code See Possible codes: 400 (details) /// Phone number /// Phone code hash from auth.sendCode @@ -12748,6 +12768,7 @@ namespace TL phone_number = phone_number, phone_code_hash = phone_code_hash, }); + /// Delete all temporary authorization keys except for the ones specified See [bots: ✓] /// The auth keys that shouldn't be dropped. public static Task Auth_DropTempAuthKeys(this Client client, long[] except_auth_keys) @@ -12755,6 +12776,7 @@ namespace TL { except_auth_keys = except_auth_keys, }); + /// Generate a login token, for login via QR code.
The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code. See Possible codes: 400 (details)
/// Application identifier (see. App configuration) /// Application identifier hash (see. App configuration) @@ -12766,6 +12788,7 @@ namespace TL api_hash = api_hash, except_ids = except_ids, }); + /// Login using a redirected login token, generated in case of DC mismatch during QR code login. See Possible codes: 400 (details) /// Login token public static Task Auth_ImportLoginToken(this Client client, byte[] token) @@ -12773,6 +12796,7 @@ namespace TL { token = token, }); + /// Accept QR code login token, logging in the app that generated it. See Possible codes: 400 (details) /// Login token embedded in QR code, for more info, see login via QR code. public static Task Auth_AcceptLoginToken(this Client client, byte[] token) @@ -12780,6 +12804,7 @@ namespace TL { token = token, }); + /// Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword. See Possible codes: 400 (details) /// Code received via email public static Task Auth_CheckRecoveryPassword(this Client client, string code) @@ -12787,6 +12812,7 @@ namespace TL { code = code, }); + /// Register device to receive PUSH notifications See Possible codes: 400 (details) /// Avoid receiving (silent and invisible background) notifications. Useful to save battery. /// Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates @@ -12804,6 +12830,7 @@ namespace TL secret = secret, other_uids = other_uids, }); + /// Deletes a device by its token, stops sending PUSH-notifications to it. See Possible codes: 400 (details) /// Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates /// Device token @@ -12815,6 +12842,7 @@ namespace TL token = token, other_uids = other_uids, }); + /// Edits notification settings from a given user/group, from all users/all groups. See Possible codes: 400 (details) /// Notification source /// Notification settings @@ -12824,6 +12852,7 @@ namespace TL peer = peer, settings = settings, }); + /// Gets current notification settings for a given user/group, from all users/all groups. See Possible codes: 400 (details) /// Notification source public static Task Account_GetNotifySettings(this Client client, InputNotifyPeerBase peer) @@ -12831,11 +12860,13 @@ namespace TL { peer = peer, }); + /// Resets all notification settings from users and groups. See public static Task Account_ResetNotifySettings(this Client client) => client.Invoke(new Account_ResetNotifySettings { }); + /// Updates user profile. See Possible codes: 400 (details) /// New user first name /// New user last name @@ -12848,6 +12879,7 @@ namespace TL last_name = last_name, about = about, }); + /// Updates online user status. See /// If is transmitted, user status will change to . public static Task Account_UpdateStatus(this Client client, bool offline) @@ -12855,6 +12887,7 @@ namespace TL { offline = offline, }); + /// Returns a list of available wallpapers. See /// Hash for pagination, for more info click here /// a null value means account.wallPapersNotModified @@ -12863,6 +12896,7 @@ namespace TL { hash = hash, }); + /// Report a peer for violation of telegram's Terms of Service See Possible codes: 400 (details) /// The peer to report /// The reason why this peer is being reported @@ -12874,6 +12908,7 @@ namespace TL reason = reason, message = message, }); + /// Validates a username and checks availability. See Possible codes: 400 (details) /// username
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters. public static Task Account_CheckUsername(this Client client, string username) @@ -12881,6 +12916,7 @@ namespace TL { username = username, }); + /// Changes username for the current user. See Possible codes: 400,401 (details) /// username or empty string if username is to be removed
Accepted characters: a-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters. public static Task Account_UpdateUsername(this Client client, string username) @@ -12888,6 +12924,7 @@ namespace TL { username = username, }); + /// Get privacy settings of current account See Possible codes: 400 (details) /// Peer category whose privacy settings should be fetched public static Task Account_GetPrivacy(this Client client, InputPrivacyKey key) @@ -12895,6 +12932,7 @@ namespace TL { key = key, }); + /// Change privacy settings of current account See Possible codes: 400 (details) /// Peers to which the privacy rules apply /// New privacy rules @@ -12904,6 +12942,7 @@ namespace TL key = key, rules = rules, }); + /// Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured. See Possible codes: 420 (details) /// Why is the account being deleted, can be empty public static Task Account_DeleteAccount(this Client client, string reason) @@ -12911,11 +12950,13 @@ namespace TL { reason = reason, }); + /// Get days to live of account See public static Task Account_GetAccountTTL(this Client client) => client.Invoke(new Account_GetAccountTTL { }); + /// Set account self-destruction period See Possible codes: 400 (details) /// Time to live in days public static Task Account_SetAccountTTL(this Client client, AccountDaysTTL ttl) @@ -12923,6 +12964,7 @@ namespace TL { ttl = ttl, }); + /// Verify a new phone number to associate to the current account See Possible codes: 400,406 (details) /// New phone number /// Phone code settings @@ -12932,6 +12974,7 @@ namespace TL phone_number = phone_number, settings = settings, }); + /// Change the phone number of the current account See Possible codes: 400 (details) /// New phone number /// Phone code hash received when calling account.sendChangePhoneCode @@ -12943,6 +12986,7 @@ namespace TL phone_code_hash = phone_code_hash, phone_code = phone_code, }); + /// When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications. See /// Inactivity period after which to start hiding message texts in PUSH notifications. public static Task Account_UpdateDeviceLocked(this Client client, int period) @@ -12950,11 +12994,13 @@ namespace TL { period = period, }); + /// Get logged-in sessions See public static Task Account_GetAuthorizations(this Client client) => client.Invoke(new Account_GetAuthorizations { }); + /// Log out an active authorized session by its hash See Possible codes: 400,406 (details) /// Session hash public static Task Account_ResetAuthorization(this Client client, long hash) @@ -12962,11 +13008,13 @@ namespace TL { hash = hash, }); + /// Obtain configuration for two-factor authorization with password See public static Task Account_GetPassword(this Client client) => client.Invoke(new Account_GetPassword { }); + /// Get private info associated to the password info (recovery email, telegram passport info & so on) See Possible codes: 400 (details) /// The password (see SRP) public static Task Account_GetPasswordSettings(this Client client, InputCheckPasswordSRP password) @@ -12974,6 +13022,7 @@ namespace TL { password = password, }); + /// Set a new 2FA password See Possible codes: 400 (details) /// The old password (see SRP) /// The new password (see SRP) @@ -12983,6 +13032,7 @@ namespace TL password = password, new_settings = new_settings, }); + /// Send confirmation code to cancel account deletion, for more info click here » See Possible codes: 400 (details) /// The hash from the service notification, for more info click here » /// Phone code settings @@ -12992,6 +13042,7 @@ namespace TL hash = hash, settings = settings, }); + /// Confirm a phone number to cancel account deletion, for more info click here » See Possible codes: 400 (details) /// Phone code hash, for more info click here » /// SMS code, for more info click here » @@ -13001,6 +13052,7 @@ namespace TL phone_code_hash = phone_code_hash, phone_code = phone_code, }); + /// Get temporary payment password See Possible codes: 400 (details) /// SRP password parameters /// Time during which the temporary password will be valid, in seconds; should be between 60 and 86400 @@ -13010,11 +13062,13 @@ namespace TL password = password, period = period, }); + /// Get web login widget authorizations See public static Task Account_GetWebAuthorizations(this Client client) => client.Invoke(new Account_GetWebAuthorizations { }); + /// Log out an active web telegram login session See Possible codes: 400 (details) /// hash public static Task Account_ResetWebAuthorization(this Client client, long hash) @@ -13022,16 +13076,19 @@ namespace TL { hash = hash, }); + /// Reset all active web telegram login sessions See public static Task Account_ResetWebAuthorizations(this Client client) => client.Invoke(new Account_ResetWebAuthorizations { }); + /// Get all saved Telegram Passport documents, for more info see the passport docs » See public static Task Account_GetAllSecureValues(this Client client) => client.Invoke(new Account_GetAllSecureValues { }); + /// Get saved Telegram Passport document, for more info see the passport docs » See /// Requested value types public static Task Account_GetSecureValue(this Client client, SecureValueType[] types) @@ -13039,6 +13096,7 @@ namespace TL { types = types, }); + /// Securely save Telegram Passport document, for more info see the passport docs » See Possible codes: 400 (details) /// Secure value, for more info see the passport docs » /// Passport secret hash, for more info see the passport docs » @@ -13048,6 +13106,7 @@ namespace TL value = value, secure_secret_id = secure_secret_id, }); + /// Delete stored Telegram Passport documents, for more info see the passport docs » See /// Document types to delete public static Task Account_DeleteSecureValue(this Client client, SecureValueType[] types) @@ -13055,6 +13114,7 @@ namespace TL { types = types, }); + /// Returns a Telegram Passport authorization form for sharing data with a service See Possible codes: 400 (details) /// User identifier of the service's bot /// Telegram Passport element types requested by the service @@ -13066,6 +13126,7 @@ namespace TL scope = scope, public_key = public_key, }); + /// Sends a Telegram Passport authorization form, effectively sharing data with the service See /// Bot ID /// Telegram Passport element types requested by the service @@ -13081,6 +13142,7 @@ namespace TL value_hashes = value_hashes, credentials = credentials, }); + /// Send the verification phone code for telegram passport. See Possible codes: 400 (details) /// The phone number to verify /// Phone code settings @@ -13090,6 +13152,7 @@ namespace TL phone_number = phone_number, settings = settings, }); + /// Verify a phone number for telegram passport. See Possible codes: 400 (details) /// Phone number /// Phone code hash received from the call to account.sendVerifyPhoneCode @@ -13101,6 +13164,7 @@ namespace TL phone_code_hash = phone_code_hash, phone_code = phone_code, }); + /// Send the verification email code for telegram passport. See Possible codes: 400 (details) /// The email where to send the code public static Task Account_SendVerifyEmailCode(this Client client, string email) @@ -13108,6 +13172,7 @@ namespace TL { email = email, }); + /// Verify an email address for telegram passport. See Possible codes: 400 (details) /// The email to verify /// The verification code that was received @@ -13117,6 +13182,7 @@ namespace TL email = email, code = code, }); + /// Initialize account takeout session See Possible codes: 420 (details) /// Whether to export contacts /// Whether to export messages in private chats @@ -13131,6 +13197,7 @@ namespace TL flags = (Account_InitTakeoutSession.Flags)((contacts ? 0x1 : 0) | (message_users ? 0x2 : 0) | (message_chats ? 0x4 : 0) | (message_megagroups ? 0x8 : 0) | (message_channels ? 0x10 : 0) | (files ? 0x20 : 0) | (file_max_size != null ? 0x20 : 0)), file_max_size = file_max_size.GetValueOrDefault(), }); + /// Finish account takeout session See Possible codes: 403 (details) /// Data exported successfully public static Task Account_FinishTakeoutSession(this Client client, bool success = false) @@ -13138,6 +13205,7 @@ namespace TL { flags = (Account_FinishTakeoutSession.Flags)(success ? 0x1 : 0), }); + /// Verify an email to use as 2FA recovery method. See Possible codes: 400 (details) /// The phone code that was received after setting a recovery email public static Task Account_ConfirmPasswordEmail(this Client client, string code) @@ -13145,21 +13213,25 @@ namespace TL { code = code, }); + /// Resend the code to verify an email to use as 2FA recovery method. See public static Task Account_ResendPasswordEmail(this Client client) => client.Invoke(new Account_ResendPasswordEmail { }); + /// Cancel the code that was sent to verify an email to use as 2FA recovery method. See public static Task Account_CancelPasswordEmail(this Client client) => client.Invoke(new Account_CancelPasswordEmail { }); + /// Whether the user will receive notifications when contacts sign up See public static Task Account_GetContactSignUpNotification(this Client client) => client.Invoke(new Account_GetContactSignUpNotification { }); + /// Toggle contact sign up notifications See /// Whether to disable contact sign up notifications public static Task Account_SetContactSignUpNotification(this Client client, bool silent) @@ -13167,6 +13239,7 @@ namespace TL { silent = silent, }); + /// Returns list of chats with non-default notification settings See /// If true, chats with non-default sound will also be returned /// If specified, only chats of the specified category will be returned @@ -13176,6 +13249,7 @@ namespace TL flags = (Account_GetNotifyExceptions.Flags)((compare_sound ? 0x2 : 0) | (peer != null ? 0x1 : 0)), peer = peer, }); + /// Get info about a certain wallpaper See Possible codes: 400 (details) /// The wallpaper to get info about public static Task Account_GetWallPaper(this Client client, InputWallPaperBase wallpaper) @@ -13183,6 +13257,7 @@ namespace TL { wallpaper = wallpaper, }); + /// Create and upload a new wallpaper See Possible codes: 400 (details) /// The JPG/PNG wallpaper /// MIME type of uploaded wallpaper @@ -13194,6 +13269,7 @@ namespace TL mime_type = mime_type, settings = settings, }); + /// Install/uninstall wallpaper See Possible codes: 400 (details) /// Wallpaper to save /// Uninstall wallpaper? @@ -13205,6 +13281,7 @@ namespace TL unsave = unsave, settings = settings, }); + /// Install wallpaper See Possible codes: 400 (details) /// Wallpaper to install /// Wallpaper settings @@ -13214,16 +13291,19 @@ namespace TL wallpaper = wallpaper, settings = settings, }); + /// Delete installed wallpapers See public static Task Account_ResetWallPapers(this Client client) => client.Invoke(new Account_ResetWallPapers { }); + /// Get media autodownload settings See public static Task Account_GetAutoDownloadSettings(this Client client) => client.Invoke(new Account_GetAutoDownloadSettings { }); + /// Change media autodownload settings See /// Whether to save settings in the low data usage preset /// Whether to save settings in the high data usage preset @@ -13234,6 +13314,7 @@ namespace TL flags = (Account_SaveAutoDownloadSettings.Flags)((low ? 0x1 : 0) | (high ? 0x2 : 0)), settings = settings, }); + /// Upload theme See Possible codes: 400 (details) /// Theme file uploaded as described in files » /// Thumbnail @@ -13248,6 +13329,7 @@ namespace TL file_name = file_name, mime_type = mime_type, }); + /// Create a theme See Possible codes: 400 (details) /// Unique theme ID /// Theme name @@ -13262,6 +13344,7 @@ namespace TL document = document, settings = settings, }); + /// Update theme See Possible codes: 400 (details) /// Theme format, a string that identifies the theming engines supported by the client /// Theme to update @@ -13280,6 +13363,7 @@ namespace TL document = document, settings = settings, }); + /// Save a theme See /// Theme to save /// Unsave @@ -13289,6 +13373,7 @@ namespace TL theme = theme, unsave = unsave, }); + /// Install a theme See /// Whether to install the dark version /// Theme format, a string that identifies the theming engines supported by the client @@ -13301,6 +13386,7 @@ namespace TL format = format, base_theme = base_theme, }); + /// Get theme information See Possible codes: 400 (details) /// Theme format, a string that identifies the theming engines supported by the client /// Theme @@ -13312,6 +13398,7 @@ namespace TL theme = theme, document_id = document_id, }); + /// Get installed themes See /// Theme format, a string that identifies the theming engines supported by the client /// Hash for pagination, for more info click here @@ -13322,6 +13409,7 @@ namespace TL format = format, hash = hash, }); + /// Set sensitive content settings (for viewing or hiding NSFW content) See Possible codes: 403 (details) /// Enable NSFW content public static Task Account_SetContentSettings(this Client client, bool sensitive_enabled = false) @@ -13329,11 +13417,13 @@ namespace TL { flags = (Account_SetContentSettings.Flags)(sensitive_enabled ? 0x1 : 0), }); + /// Get sensitive content settings See public static Task Account_GetContentSettings(this Client client) => client.Invoke(new Account_GetContentSettings { }); + /// Get info about multiple wallpapers See /// Wallpapers to fetch info about public static Task Account_GetMultiWallPapers(this Client client, InputWallPaperBase[] wallpapers) @@ -13341,11 +13431,13 @@ namespace TL { wallpapers = wallpapers, }); + /// Get global privacy settings See public static Task Account_GetGlobalPrivacySettings(this Client client) => client.Invoke(new Account_GetGlobalPrivacySettings { }); + /// Set global privacy settings See Possible codes: 400 (details) /// Global privacy settings public static Task Account_SetGlobalPrivacySettings(this Client client, GlobalPrivacySettings settings) @@ -13353,6 +13445,7 @@ namespace TL { settings = settings, }); + /// Report a profile photo of a dialog See /// The dialog /// Dialog photo ID @@ -13366,16 +13459,19 @@ namespace TL reason = reason, message = message, }); + /// Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info » See public static Task Account_ResetPassword(this Client client) => client.Invoke(new Account_ResetPassword { }); + /// Abort a pending 2FA password reset, see here for more info » See Possible codes: 400 (details) public static Task Account_DeclinePasswordReset(this Client client) => client.Invoke(new Account_DeclinePasswordReset { }); + /// Get all available chat themes See /// Hash for pagination, for more info click here /// a null value means account.themesNotModified @@ -13384,12 +13480,14 @@ namespace TL { hash = hash, }); + /// See public static Task Account_SetAuthorizationTTL(this Client client, int authorization_ttl_days) => client.Invoke(new Account_SetAuthorizationTTL { authorization_ttl_days = authorization_ttl_days, }); + /// See public static Task Account_ChangeAuthorizationSettings(this Client client, long hash, bool? encrypted_requests_disabled = default, bool? call_requests_disabled = default) => client.Invoke(new Account_ChangeAuthorizationSettings @@ -13399,6 +13497,7 @@ namespace TL encrypted_requests_disabled = encrypted_requests_disabled.GetValueOrDefault(), call_requests_disabled = call_requests_disabled.GetValueOrDefault(), }); + /// Returns basic user info according to their identifiers. See [bots: ✓] Possible codes: 400,401 (details) /// List of user identifiers public static Task Users_GetUsers(this Client client, InputUserBase[] id) @@ -13406,6 +13505,7 @@ namespace TL { id = id, }); + /// Returns extended user info by ID. See [bots: ✓] Possible codes: 400 (details) /// User ID public static Task Users_GetFullUser(this Client client, InputUserBase id) @@ -13413,6 +13513,7 @@ namespace TL { id = id, }); + /// Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). See [bots: ✓] Possible codes: 400 (details) /// The user /// Errors @@ -13422,6 +13523,7 @@ namespace TL id = id, errors = errors, }); + /// Get contact by telegram IDs See /// Hash for pagination, for more info click here public static Task Contacts_GetContactIDs(this Client client, long hash) @@ -13429,11 +13531,13 @@ namespace TL { hash = hash, }); + /// Returns the list of contact statuses. See public static Task Contacts_GetStatuses(this Client client) => client.Invoke(new Contacts_GetStatuses { }); + /// Returns the current user's contact list. See /// If there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, will be returned. /// a null value means contacts.contactsNotModified @@ -13442,6 +13546,7 @@ namespace TL { hash = hash, }); + /// Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info. See /// List of contacts to import public static Task Contacts_ImportContacts(this Client client, InputContact[] contacts) @@ -13449,6 +13554,7 @@ namespace TL { contacts = contacts, }); + /// Deletes several contacts from the list. See /// User ID list public static Task Contacts_DeleteContacts(this Client client, InputUserBase[] id) @@ -13456,6 +13562,7 @@ namespace TL { id = id, }); + /// Delete contacts by phone number See /// Phone numbers public static Task Contacts_DeleteByPhones(this Client client, string[] phones) @@ -13463,6 +13570,7 @@ namespace TL { phones = phones, }); + /// Adds the user to the blacklist. See Possible codes: 400 (details) /// User ID public static Task Contacts_Block(this Client client, InputPeer id) @@ -13470,6 +13578,7 @@ namespace TL { id = id, }); + /// Deletes the user from the blacklist. See Possible codes: 400 (details) /// User ID public static Task Contacts_Unblock(this Client client, InputPeer id) @@ -13477,6 +13586,7 @@ namespace TL { id = id, }); + /// Returns the list of blocked users. See /// The number of list elements to be skipped /// The number of list elements to be returned @@ -13486,6 +13596,7 @@ namespace TL offset = offset, limit = limit, }); + /// Returns users found by username substring. See Possible codes: 400 (details) /// Target substring /// Maximum number of users to be returned @@ -13495,6 +13606,7 @@ namespace TL q = q, limit = limit, }); + /// Resolve a @username to get peer info See [bots: ✓] Possible codes: 400,401 (details) /// @username to resolve public static Task Contacts_ResolveUsername(this Client client, string username) @@ -13502,6 +13614,7 @@ namespace TL { username = username, }); + /// Get most used peers See Possible codes: 400 (details) /// Users we've chatted most frequently with /// Most used bots @@ -13523,6 +13636,7 @@ namespace TL limit = limit, hash = hash, }); + /// Reset rating of top peer See Possible codes: 400 (details) /// Top peer category /// Peer whose rating should be reset @@ -13532,16 +13646,19 @@ namespace TL category = category, peer = peer, }); + /// Delete saved contacts See public static Task Contacts_ResetSaved(this Client client) => client.Invoke(new Contacts_ResetSaved { }); + /// Get all contacts See Possible codes: 403 (details) public static Task Contacts_GetSaved(this Client client) => client.Invoke(new Contacts_GetSaved { }); + /// Enable/disable top peers See /// Enable/disable public static Task Contacts_ToggleTopPeers(this Client client, bool enabled) @@ -13549,6 +13666,7 @@ namespace TL { enabled = enabled, }); + /// Add an existing telegram user as contact. See Possible codes: 400 (details) /// Allow the other user to see our phone number? /// Telegram ID of the other user @@ -13564,6 +13682,7 @@ namespace TL last_name = last_name, phone = phone, }); + /// If the of a new user allow us to add him as contact, add that user as contact See Possible codes: 400 (details) /// The user to add as contact public static Task Contacts_AcceptContact(this Client client, InputUserBase id) @@ -13571,6 +13690,7 @@ namespace TL { id = id, }); + /// Get contacts near you See Possible codes: 400,406 (details) /// While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.
Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown. /// Geolocation @@ -13582,6 +13702,7 @@ namespace TL geo_point = geo_point, self_expires = self_expires.GetValueOrDefault(), }); + /// Stop getting notifications about thread replies of a certain user in @replies See /// Whether to delete the specified message as well /// Whether to delete all @replies messages from this user as well @@ -13593,13 +13714,15 @@ namespace TL flags = (Contacts_BlockFromReplies.Flags)((delete_message ? 0x1 : 0) | (delete_history ? 0x2 : 0) | (report_spam ? 0x4 : 0)), msg_id = msg_id, }); - /// Returns the list of messages by their IDs. See [bots: ✓] + + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Returns the list of messages by their IDs. See
[bots: ✓]
/// Message ID list public static Task Messages_GetMessages(this Client client, InputMessage[] id) => client.Invoke(new Messages_GetMessages { id = id, }); + /// Returns the current user dialog list. See Possible codes: 400 (details) /// Exclude pinned dialogs /// Peer folder ID, for more info click here @@ -13619,6 +13742,7 @@ namespace TL limit = limit, hash = hash, }); + /// Gets back the conversation history with one interlocutor / within a chat See Possible codes: 400,401 (details) /// Target peer /// Only return messages starting from the specified message ID @@ -13640,6 +13764,7 @@ namespace TL min_id = min_id, hash = hash, }); + /// Gets back found messages See Possible codes: 400 (details) /// User or chat, histories with which are searched, or constructor for global search /// Text search request @@ -13672,6 +13797,7 @@ namespace TL min_id = min_id, hash = hash, }); + /// Marks message history as read. See Possible codes: 400 (details) /// Target user or group /// If a positive value is passed, only messages with identifiers less or equal than the given one will be read @@ -13681,6 +13807,7 @@ namespace TL peer = peer, max_id = max_id, }); + /// Deletes communication history. See Possible codes: 400 (details) /// Just clear history for the current user, without actually removing messages for every chat user /// Whether to delete the message history for all chat participants @@ -13695,7 +13822,8 @@ namespace TL min_date = min_date.GetValueOrDefault(), max_date = max_date.GetValueOrDefault(), }); - /// Deletes messages by their identifiers. See [bots: ✓] Possible codes: 403 (details) + + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Deletes messages by their identifiers. See [bots: ✓] Possible codes: 403 (details)
/// Whether to delete messages for all participants of the chat /// Message ID list public static Task Messages_DeleteMessages(this Client client, int[] id, bool revoke = false) @@ -13704,13 +13832,15 @@ namespace TL flags = (Messages_DeleteMessages.Flags)(revoke ? 0x1 : 0), id = id, }); - /// Confirms receipt of messages by a client, cancels PUSH-notification sending. See + + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Confirms receipt of messages by a client, cancels PUSH-notification sending. See
/// Maximum message ID available in a client. public static Task Messages_ReceivedMessages(this Client client, int max_id) => client.Invoke(new Messages_ReceivedMessages { max_id = max_id, }); + /// Sends a current user typing event (see for all event types) to a conversation partner or group. See [bots: ✓] Possible codes: 400,403 (details) /// Target user or group /// Thread ID @@ -13723,6 +13853,7 @@ namespace TL top_msg_id = top_msg_id.GetValueOrDefault(), action = action, }); + /// Sends a message to a chat See [bots: ✓] Possible codes: 400,401,403,420 (details) /// Set this flag to disable generation of the webpage preview /// Send this message silently (no notifications for the receivers) @@ -13748,6 +13879,7 @@ namespace TL schedule_date = schedule_date.GetValueOrDefault(), send_as = send_as, }); + /// Send a media See [bots: ✓] Possible codes: 400,403,420 (details) /// Send message silently (no notification should be triggered) /// Send message in background @@ -13774,6 +13906,7 @@ namespace TL schedule_date = schedule_date.GetValueOrDefault(), send_as = send_as, }); + /// Forwards messages by their IDs. See [bots: ✓] Possible codes: 400,403,420 (details) /// Whether to send messages silently (no notification will be triggered on the destination clients) /// Whether to send the message in background @@ -13796,6 +13929,7 @@ namespace TL schedule_date = schedule_date.GetValueOrDefault(), send_as = send_as, }); + /// Report a new incoming chat for spam, if the of the chat allow us to do that See Possible codes: 400 (details) /// Peer to report public static Task Messages_ReportSpam(this Client client, InputPeer peer) @@ -13803,6 +13937,7 @@ namespace TL { peer = peer, }); + /// Get peer settings See Possible codes: 400 (details) /// The peer public static Task Messages_GetPeerSettings(this Client client, InputPeer peer) @@ -13810,6 +13945,7 @@ namespace TL { peer = peer, }); + /// Report a message in a chat for violation of telegram's Terms of Service See Possible codes: 400 (details) /// Peer /// IDs of messages to report @@ -13823,6 +13959,7 @@ namespace TL reason = reason, message = message, }); + /// Returns chat basic info on their IDs. See [bots: ✓] Possible codes: 400 (details) /// List of chat IDs public static Task Messages_GetChats(this Client client, long[] id) @@ -13830,6 +13967,7 @@ namespace TL { id = id, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Returns full chat info according to its ID. See [bots: ✓] Possible codes: 400 (details)
/// Chat ID public static Task Messages_GetFullChat(this Client client, long chat_id) @@ -13837,6 +13975,7 @@ namespace TL { chat_id = chat_id, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Chanages chat name and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
/// Chat ID /// New chat name, different from the old one @@ -13846,6 +13985,7 @@ namespace TL chat_id = chat_id, title = title, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Changes chat photo and sends a service message on it See [bots: ✓] Possible codes: 400 (details)
/// Chat ID /// Photo to be set @@ -13855,6 +13995,7 @@ namespace TL chat_id = chat_id, photo = photo, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Adds a user to a chat and sends a service message on it. See Possible codes: 400,403 (details)
/// Chat ID /// User ID to be added @@ -13866,6 +14007,7 @@ namespace TL user_id = user_id, fwd_limit = fwd_limit, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Deletes a user from a chat and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
/// Remove the entire chat history of the specified user in this chat. /// Chat ID @@ -13877,6 +14019,7 @@ namespace TL chat_id = chat_id, user_id = user_id, }); + /// Creates a new chat. See Possible codes: 400,403 (details) /// List of user IDs to be invited /// Chat name @@ -13886,6 +14029,7 @@ namespace TL users = users, title = title, }); + /// Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. See Possible codes: 400 (details) /// Value of the version parameter from , avialable at the client /// Length of the required random sequence @@ -13895,6 +14039,7 @@ namespace TL version = version, random_length = random_length, }); + /// Sends a request to start a secret chat to the user. See Possible codes: 400 (details) /// User ID /// Unique client request ID required to prevent resending. This also doubles as the chat ID. @@ -13906,6 +14051,7 @@ namespace TL random_id = random_id, g_a = g_a, }); + /// Confirms creation of a secret chat See Possible codes: 400 (details) /// Secret chat ID /// B = g ^ b mod p, see Wikipedia @@ -13917,6 +14063,7 @@ namespace TL g_b = g_b, key_fingerprint = key_fingerprint, }); + /// Cancels a request for creation and/or delete info on secret chat. See Possible codes: 400 (details) /// Whether to delete the entire chat history for the other user as well /// Secret chat ID @@ -13926,6 +14073,7 @@ namespace TL flags = (Messages_DiscardEncryption.Flags)(delete_history ? 0x1 : 0), chat_id = chat_id, }); + /// Send typing event by the current user to a secret chat. See Possible codes: 400 (details) /// Secret chat ID /// Typing.
Possible values:
, if the user started typing and more than 5 seconds have passed since the last request
, if the user stopped typing @@ -13935,6 +14083,7 @@ namespace TL peer = peer, typing = typing, }); + /// Marks message history within a secret chat as read. See Possible codes: 400 (details) /// Secret chat ID /// Maximum date value for received messages in history @@ -13944,6 +14093,7 @@ namespace TL peer = peer, max_date = max_date, }); + /// Sends a text message to a secret chat. See Possible codes: 400,403 (details) /// Send encrypted message without a notification /// Secret chat ID @@ -13957,6 +14107,7 @@ namespace TL random_id = random_id, data = data, }); + /// Sends a message with a file attachment to a secret chat See Possible codes: 400 (details) /// Whether to send the file without triggering a notification /// Secret chat ID @@ -13972,6 +14123,7 @@ namespace TL data = data, file = file, }); + /// Sends a service message to a secret chat. See Possible codes: 400,403 (details) /// Secret chat ID /// Unique client message ID required to prevent message resending @@ -13983,6 +14135,7 @@ namespace TL random_id = random_id, data = data, }); + /// Confirms receipt of messages in a secret chat by client, cancels push notifications. See Possible codes: 400 (details) /// Maximum qts value available at the client public static Task Messages_ReceivedQueue(this Client client, int max_qts) @@ -13990,6 +14143,7 @@ namespace TL { max_qts = max_qts, }); + /// Report a secret chat for spam See Possible codes: 400 (details) /// The secret chat to report public static Task Messages_ReportEncryptedSpam(this Client client, InputEncryptedChat peer) @@ -13997,13 +14151,15 @@ namespace TL { peer = peer, }); - /// Notifies the sender about the recipient having listened a voice message or watched a video. See + + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Notifies the sender about the recipient having listened a voice message or watched a video. See
/// Message ID list public static Task Messages_ReadMessageContents(this Client client, int[] id) => client.Invoke(new Messages_ReadMessageContents { id = id, }); + /// Get stickers by emoji See Possible codes: 400 (details) /// The emoji /// Hash for pagination, for more info click here @@ -14014,6 +14170,7 @@ namespace TL emoticon = emoticon, hash = hash, }); + /// Get all installed stickers See /// Hash for pagination, for more info click here /// a null value means messages.allStickersNotModified @@ -14022,6 +14179,7 @@ namespace TL { hash = hash, }); + /// Get preview of webpage See Possible codes: 400 (details) /// Message from which to extract the preview /// Message entities for styled text @@ -14033,6 +14191,7 @@ namespace TL message = message, entities = entities, }); + /// Export an invite link for a chat See [bots: ✓] Possible codes: 400,403 (details) /// Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients. /// Chat @@ -14047,6 +14206,7 @@ namespace TL usage_limit = usage_limit.GetValueOrDefault(), title = title, }); + /// Check the validity of a chat invite link and get basic info about it See Possible codes: 400 (details) /// Invite hash in t.me/joinchat/hash public static Task Messages_CheckChatInvite(this Client client, string hash) @@ -14054,6 +14214,7 @@ namespace TL { hash = hash, }); + /// Import a chat invite and join a private chat/supergroup/channel See Possible codes: 400 (details) /// hash from t.me/joinchat/hash public static Task Messages_ImportChatInvite(this Client client, string hash) @@ -14061,6 +14222,7 @@ namespace TL { hash = hash, }); + /// Get info about a stickerset See [bots: ✓] Possible codes: 400 (details) /// Stickerset /// a null value means messages.stickerSetNotModified @@ -14070,6 +14232,7 @@ namespace TL stickerset = stickerset, hash = hash, }); + /// Install a stickerset See Possible codes: 400 (details) /// Stickerset to install /// Whether to archive stickerset @@ -14079,6 +14242,7 @@ namespace TL stickerset = stickerset, archived = archived, }); + /// Uninstall a stickerset See Possible codes: 400 (details) /// The stickerset to uninstall public static Task Messages_UninstallStickerSet(this Client client, InputStickerSet stickerset) @@ -14086,6 +14250,7 @@ namespace TL { stickerset = stickerset, }); + /// Start a conversation with a bot using a deep linking parameter See Possible codes: 400 (details) /// The bot /// The chat where to start the bot, can be the bot's private chat or a group @@ -14099,6 +14264,7 @@ namespace TL random_id = random_id, start_param = start_param, }); + /// Get and increase the view counter of a message sent or forwarded from a channel See Possible codes: 400 (details) /// Peer where the message was found /// ID of message @@ -14110,6 +14276,7 @@ namespace TL id = id, increment = increment, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Make a user admin in a legacy group. See Possible codes: 400 (details)
/// The ID of the group /// The user to make admin @@ -14121,6 +14288,7 @@ namespace TL user_id = user_id, is_admin = is_admin, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Turn a legacy group into a supergroup See Possible codes: 400,403 (details)
/// Legacy group to migrate public static Task Messages_MigrateChat(this Client client, long chat_id) @@ -14128,6 +14296,7 @@ namespace TL { chat_id = chat_id, }); + /// Search for messages and peers globally See Possible codes: 400 (details) /// Peer folder ID, for more info click here /// Query @@ -14152,6 +14321,7 @@ namespace TL offset_id = offset_id, limit = limit, }); + /// Reorder installed stickersets See /// Reorder mask stickersets /// New stickerset order by stickerset IDs @@ -14161,6 +14331,7 @@ namespace TL flags = (Messages_ReorderStickerSets.Flags)(masks ? 0x1 : 0), order = order, }); + /// Get a document by its SHA256 hash, mainly used for gifs See [bots: ✓] Possible codes: 400 (details) /// SHA256 of file /// Size of the file in bytes @@ -14172,6 +14343,7 @@ namespace TL size = size, mime_type = mime_type, }); + /// Get saved GIFs See /// Hash for pagination, for more info click here /// a null value means messages.savedGifsNotModified @@ -14180,6 +14352,7 @@ namespace TL { hash = hash, }); + /// Add GIF to saved gifs list See Possible codes: 400 (details) /// GIF to save /// Whether to remove GIF from saved gifs list @@ -14189,6 +14362,7 @@ namespace TL id = id, unsave = unsave, }); + /// Query an inline bot See Possible codes: -503,400 (details) /// The bot to query /// The currently opened chat @@ -14205,6 +14379,7 @@ namespace TL query = query, offset = offset, }); + /// Answer an inline query, for bots only See [bots: ✓] Possible codes: 400,403 (details) /// Set this flag if the results are composed of media files /// Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query @@ -14223,6 +14398,7 @@ namespace TL next_offset = next_offset, switch_pm = switch_pm, }); + /// Send a result obtained using messages.getInlineBotResults. See Possible codes: 400,403,420 (details) /// Whether to send the message silently (no notification will be triggered on the other client) /// Whether to send the message in background @@ -14246,6 +14422,7 @@ namespace TL schedule_date = schedule_date.GetValueOrDefault(), send_as = send_as, }); + /// Find out if a media message's caption can be edited See Possible codes: 400,403 (details) /// Peer where the media was sent /// ID of message @@ -14255,6 +14432,7 @@ namespace TL peer = peer, id = id, }); + /// Edit message See [bots: ✓] Possible codes: 400,403 (details) /// Disable webpage preview /// Where was the message sent @@ -14276,6 +14454,7 @@ namespace TL entities = entities, schedule_date = schedule_date.GetValueOrDefault(), }); + /// Edit an inline bot message See [bots: ✓] Possible codes: 400 (details) /// Disable webpage preview /// Sent inline message ID @@ -14293,6 +14472,7 @@ namespace TL reply_markup = reply_markup, entities = entities, }); + /// Press an inline callback button and get a callback answer from the bot See Possible codes: -503,400 (details) /// Whether this is a "play game" button /// Where was the inline keyboard sent @@ -14308,6 +14488,7 @@ namespace TL data = data, password = password, }); + /// Set the callback answer to a user button press (bots only) See [bots: ✓] Possible codes: 400 (details) /// Whether to show the message as a popup instead of a toast notification /// Query ID @@ -14323,6 +14504,7 @@ namespace TL url = url, cache_time = cache_time, }); + /// Get dialog info of specified peers See Possible codes: 400 (details) /// Peers public static Task Messages_GetPeerDialogs(this Client client, InputDialogPeerBase[] peers) @@ -14330,6 +14512,7 @@ namespace TL { peers = peers, }); + /// Save a message draft associated to a chat. See Possible codes: 400 (details) /// Disable generation of the webpage preview /// Message ID the message should reply to @@ -14345,11 +14528,13 @@ namespace TL message = message, entities = entities, }); + /// Save get all message drafts. See public static Task Messages_GetAllDrafts(this Client client) => client.Invoke(new Messages_GetAllDrafts { }); + /// Get featured stickers See /// Hash for pagination, for more info click here public static Task Messages_GetFeaturedStickers(this Client client, long hash) @@ -14357,6 +14542,7 @@ namespace TL { hash = hash, }); + /// Mark new featured stickers as read See /// IDs of stickersets to mark as read public static Task Messages_ReadFeaturedStickers(this Client client, long[] id) @@ -14364,6 +14550,7 @@ namespace TL { id = id, }); + /// Get recent stickers See /// Get stickers recently attached to photo or video files /// Hash for pagination, for more info click here @@ -14374,6 +14561,7 @@ namespace TL flags = (Messages_GetRecentStickers.Flags)(attached ? 0x1 : 0), hash = hash, }); + /// Add/remove sticker from recent stickers list See Possible codes: 400 (details) /// Whether to add/remove stickers recently attached to photo or video files /// Sticker @@ -14385,6 +14573,7 @@ namespace TL id = id, unsave = unsave, }); + /// Clear recent stickers See /// Set this flag to clear the list of stickers recently attached to photo or video files public static Task Messages_ClearRecentStickers(this Client client, bool attached = false) @@ -14392,6 +14581,7 @@ namespace TL { flags = (Messages_ClearRecentStickers.Flags)(attached ? 0x1 : 0), }); + /// Get all archived stickers See /// Get mask stickers /// Offsets for pagination, for more info click here @@ -14403,6 +14593,7 @@ namespace TL offset_id = offset_id, limit = limit, }); + /// Get installed mask stickers See /// Hash for pagination, for more info click here /// a null value means messages.allStickersNotModified @@ -14411,6 +14602,7 @@ namespace TL { hash = hash, }); + /// Get stickers attached to a photo or video See /// Stickered media public static Task Messages_GetAttachedStickers(this Client client, InputStickeredMedia media) @@ -14418,6 +14610,7 @@ namespace TL { media = media, }); + /// Use this method to set the score of the specified user in a game sent as a normal message (bots only). See [bots: ✓] Possible codes: 400 (details) /// Set this flag if the game message should be automatically edited to include the current scoreboard /// Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters @@ -14434,6 +14627,7 @@ namespace TL user_id = user_id, score = score, }); + /// Use this method to set the score of the specified user in a game sent as an inline message (bots only). See [bots: ✓] Possible codes: 400 (details) /// Set this flag if the game message should be automatically edited to include the current scoreboard /// Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters @@ -14448,6 +14642,7 @@ namespace TL user_id = user_id, score = score, }); + /// Get highscores of a game See [bots: ✓] Possible codes: 400 (details) /// Where was the game sent /// ID of message with game media attachment @@ -14459,6 +14654,7 @@ namespace TL id = id, user_id = user_id, }); + /// Get highscores of a game sent using an inline bot See [bots: ✓] Possible codes: 400 (details) /// ID of inline message /// Get high scores of a certain user @@ -14468,6 +14664,7 @@ namespace TL id = id, user_id = user_id, }); + /// Get chats in common with a user See Possible codes: 400 (details) /// User ID /// Maximum ID of chat to return (see pagination) @@ -14479,6 +14676,7 @@ namespace TL max_id = max_id, limit = limit, }); + /// Get all chats, channels and supergroups See /// Except these chats/channels/supergroups public static Task Messages_GetAllChats(this Client client, long[] except_ids) @@ -14486,6 +14684,7 @@ namespace TL { except_ids = except_ids, }); + /// Get instant view page See Possible codes: 400 (details) /// URL of IV page to fetch /// Hash for pagination, for more info click here @@ -14495,6 +14694,7 @@ namespace TL url = url, hash = hash, }); + /// Pin/unpin a dialog See Possible codes: 400 (details) /// Whether to pin or unpin the dialog /// The dialog to pin @@ -14504,6 +14704,7 @@ namespace TL flags = (Messages_ToggleDialogPin.Flags)(pinned ? 0x1 : 0), peer = peer, }); + /// Reorder pinned dialogs See Possible codes: 400 (details) /// If set, dialogs pinned server-side but not present in the order field will be unpinned. /// Peer folder ID, for more info click here @@ -14515,6 +14716,7 @@ namespace TL folder_id = folder_id, order = order, }); + /// Get pinned dialogs See Possible codes: 400 (details) /// Peer folder ID, for more info click here public static Task Messages_GetPinnedDialogs(this Client client, int folder_id) @@ -14522,6 +14724,7 @@ namespace TL { folder_id = folder_id, }); + /// If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an update. Use this method to reply to shipping queries. See [bots: ✓] Possible codes: 400 (details) /// Unique identifier for the query to be answered /// Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user. @@ -14534,6 +14737,7 @@ namespace TL error = error, shipping_options = shipping_options, }); + /// Once the user has confirmed their payment and shipping details, the bot receives an update.
Use this method to respond to such pre-checkout queries.
Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent. See [bots: ✓] Possible codes: 400 (details)
/// Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead /// Unique identifier for the query to be answered @@ -14545,6 +14749,7 @@ namespace TL query_id = query_id, error = error, }); + /// Upload a file and associate it to a chat (without actually sending it to the chat) See [bots: ✓] Possible codes: 400,403 (details) /// The chat, can be an for bots /// File uploaded in chunks as described in files » @@ -14555,6 +14760,7 @@ namespace TL peer = peer, media = media, }); + /// Notify the other user in a private chat that a screenshot of the chat was taken See Possible codes: 400 (details) /// Other user /// ID of message that was screenshotted, can be 0 @@ -14566,6 +14772,7 @@ namespace TL reply_to_msg_id = reply_to_msg_id, random_id = random_id, }); + /// Get faved stickers See /// Hash for pagination, for more info click here /// a null value means messages.favedStickersNotModified @@ -14574,6 +14781,7 @@ namespace TL { hash = hash, }); + /// Mark a sticker as favorite See Possible codes: 400 (details) /// Sticker to mark as favorite /// Unfavorite @@ -14583,6 +14791,7 @@ namespace TL id = id, unfave = unfave, }); + /// Get unread messages where we were mentioned See Possible codes: 400 (details) /// Peer where to look for mentions /// Offsets for pagination, for more info click here @@ -14600,6 +14809,7 @@ namespace TL max_id = max_id, min_id = min_id, }); + /// Mark mentions as read See Possible codes: 400 (details) /// Dialog public static Task Messages_ReadMentions(this Client client, InputPeer peer) @@ -14607,6 +14817,7 @@ namespace TL { peer = peer, }); + /// Get live location history of a certain user See /// User /// Maximum number of results to return, see pagination @@ -14618,6 +14829,7 @@ namespace TL limit = limit, hash = hash, }); + /// Send an album or grouped media See [bots: ✓] Possible codes: 400,420 (details) /// Whether to send the album silently (no notification triggered) /// Send in background? @@ -14636,6 +14848,7 @@ namespace TL schedule_date = schedule_date.GetValueOrDefault(), send_as = send_as, }); + /// Upload encrypted file and associate it to a secret chat See /// The secret chat to associate the file to /// The file @@ -14646,6 +14859,7 @@ namespace TL peer = peer, file = file, }); + /// Search for stickersets See /// Exclude featured stickersets from results /// Query string @@ -14658,11 +14872,13 @@ namespace TL q = q, hash = hash, }); + /// Get message ranges for saving the user's chat history See public static Task Messages_GetSplitRanges(this Client client) => client.Invoke(new Messages_GetSplitRanges { }); + /// Manually mark dialog as unread See /// Mark as unread/read /// Dialog @@ -14672,16 +14888,19 @@ namespace TL flags = (Messages_MarkDialogUnread.Flags)(unread ? 0x1 : 0), peer = peer, }); + /// Get dialogs manually marked as unread See public static Task Messages_GetDialogUnreadMarks(this Client client) => client.Invoke(new Messages_GetDialogUnreadMarks { }); + /// Clear all drafts. See public static Task Messages_ClearAllDrafts(this Client client) => client.Invoke(new Messages_ClearAllDrafts { }); + /// Pin a message See [bots: ✓] Possible codes: 400,403 (details) /// Pin the message silently, without triggering a notification /// Whether the message should unpinned or pinned @@ -14695,6 +14914,7 @@ namespace TL peer = peer, id = id, }); + /// Vote in a See Possible codes: 400 (details) /// The chat where the poll was sent /// The message ID of the poll @@ -14706,6 +14926,7 @@ namespace TL msg_id = msg_id, options = options, }); + /// Get poll results See Possible codes: 400 (details) /// Peer where the poll was found /// Message ID of poll message @@ -14715,6 +14936,7 @@ namespace TL peer = peer, msg_id = msg_id, }); + /// Get count of online users in a chat See Possible codes: 400 (details) /// The chat public static Task Messages_GetOnlines(this Client client, InputPeer peer) @@ -14722,6 +14944,7 @@ namespace TL { peer = peer, }); + /// Edit the description of a group/supergroup/channel. See [bots: ✓] Possible codes: 400,403 (details) /// The group/supergroup/channel. /// The new description @@ -14731,6 +14954,7 @@ namespace TL peer = peer, about = about, }); + /// Edit the default banned rights of a channel/supergroup/group. See [bots: ✓] Possible codes: 400,403 (details) /// The peer /// The new global rights @@ -14740,6 +14964,7 @@ namespace TL peer = peer, banned_rights = banned_rights, }); + /// Get localized emoji keywords See /// Language code public static Task Messages_GetEmojiKeywords(this Client client, string lang_code) @@ -14747,6 +14972,7 @@ namespace TL { lang_code = lang_code, }); + /// Get changed emoji keywords See /// Language code /// Previous emoji keyword localization version @@ -14756,6 +14982,7 @@ namespace TL lang_code = lang_code, from_version = from_version, }); + /// Get info about an emoji keyword localization See /// Language codes public static Task Messages_GetEmojiKeywordsLanguages(this Client client, string[] lang_codes) @@ -14763,6 +14990,7 @@ namespace TL { lang_codes = lang_codes, }); + /// Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation See /// Language code for which the emoji replacements will be suggested public static Task Messages_GetEmojiURL(this Client client, string lang_code) @@ -14770,6 +14998,7 @@ namespace TL { lang_code = lang_code, }); + /// Get the number of results that would be found by a messages.search call with the same parameters See Possible codes: 400 (details) /// Peer where to search /// Search filters @@ -14779,6 +15008,7 @@ namespace TL peer = peer, filters = filters, }); + /// Get more info about a Seamless Telegram Login authorization request, for more info click here » See /// Peer where the message is located /// The message @@ -14793,6 +15023,7 @@ namespace TL button_id = button_id.GetValueOrDefault(), url = url, }); + /// Use this to accept a Seamless Telegram Login authorization request, for more info click here » See /// Set this flag to allow the bot to send messages to you (if requested) /// The location of the message @@ -14808,6 +15039,7 @@ namespace TL button_id = button_id.GetValueOrDefault(), 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 . See /// Peer public static Task Messages_HidePeerSettingsBar(this Client client, InputPeer peer) @@ -14815,6 +15047,7 @@ namespace TL { peer = peer, }); + /// Get scheduled messages See Possible codes: 400 (details) /// Peer /// Hash for pagination, for more info click here @@ -14824,6 +15057,7 @@ namespace TL peer = peer, hash = hash, }); + /// Get scheduled messages See Possible codes: 400 (details) /// Peer /// IDs of scheduled messages @@ -14833,6 +15067,7 @@ namespace TL peer = peer, id = id, }); + /// Send scheduled messages right away See Possible codes: 400 (details) /// Peer /// Scheduled message IDs @@ -14842,6 +15077,7 @@ namespace TL peer = peer, id = id, }); + /// Delete scheduled messages See /// Peer /// Scheduled message IDs @@ -14851,6 +15087,7 @@ namespace TL peer = peer, id = id, }); + /// Get poll results for non-anonymous polls See Possible codes: 400,403 (details) /// Chat where the poll was sent /// Message ID @@ -14867,6 +15104,7 @@ namespace TL offset = offset, limit = limit, }); + /// Apply changes to multiple stickersets See /// Uninstall the specified stickersets /// Archive the specified stickersets @@ -14878,16 +15116,19 @@ namespace TL flags = (Messages_ToggleStickerSets.Flags)((uninstall ? 0x1 : 0) | (archive ? 0x2 : 0) | (unarchive ? 0x4 : 0)), stickersets = stickersets, }); + /// Get folders See public static Task Messages_GetDialogFilters(this Client client) => client.Invoke(new Messages_GetDialogFilters { }); + /// Get suggested folders See public static Task Messages_GetSuggestedDialogFilters(this Client client) => client.Invoke(new Messages_GetSuggestedDialogFilters { }); + /// Update folder See Possible codes: 400 (details) /// Folder ID /// Folder info @@ -14898,6 +15139,7 @@ namespace TL id = id, filter = filter, }); + /// Reorder folders See /// New folder order public static Task Messages_UpdateDialogFiltersOrder(this Client client, int[] order) @@ -14905,6 +15147,7 @@ namespace TL { order = order, }); + /// Method for fetching previously featured stickers See /// Offset /// Maximum number of results to return, see pagination @@ -14916,6 +15159,7 @@ namespace TL limit = limit, hash = hash, }); + /// Get messages in a reply thread See Possible codes: 400 (details) /// Peer /// Message ID @@ -14939,6 +15183,7 @@ namespace TL min_id = min_id, hash = hash, }); + /// Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group See Possible codes: 400 (details) /// Channel ID /// Message ID @@ -14948,6 +15193,7 @@ namespace TL peer = peer, msg_id = msg_id, }); + /// Mark a thread as read See Possible codes: 400 (details) /// Group ID /// ID of message that started the thread @@ -14959,6 +15205,7 @@ namespace TL msg_id = msg_id, read_max_id = read_max_id, }); + /// Unpin all pinned messages See [bots: ✓] /// Chat where to unpin public static Task Messages_UnpinAllMessages(this Client client, InputPeer peer) @@ -14966,6 +15213,7 @@ namespace TL { peer = peer, }); + /// This method is only for small private Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Delete a
chat See Possible codes: 400 (details)
/// Chat ID public static Task Messages_DeleteChat(this Client client, long chat_id) @@ -14973,6 +15221,7 @@ namespace TL { chat_id = chat_id, }); + /// Delete the entire phone call history. See /// Whether to remove phone call history for participants as well public static Task Messages_DeletePhoneCallHistory(this Client client, bool revoke = false) @@ -14980,6 +15229,7 @@ namespace TL { flags = (Messages_DeletePhoneCallHistory.Flags)(revoke ? 0x1 : 0), }); + /// Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ». See /// Beginning of the message file; up to 100 lines. public static Task Messages_CheckHistoryImport(this Client client, string import_head) @@ -14987,6 +15237,7 @@ namespace TL { import_head = import_head, }); + /// Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ». See Possible codes: 400,406 (details) /// The Telegram chat where the history should be imported. /// File with messages to import. @@ -14998,6 +15249,7 @@ namespace TL file = file, media_count = media_count, }); + /// Upload a media file associated with an imported chat, click here for more info ». See /// The Telegram chat where the media will be imported /// Identifier of a history import session, returned by messages.initHistoryImport @@ -15012,6 +15264,7 @@ namespace TL file_name = file_name, media = media, }); + /// Complete the history import process, importing all messages into the chat.
To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia. See Possible codes: 400 (details)
/// The Telegram chat where the messages should be imported, click here for more info » /// Identifier of a history import session, returned by messages.initHistoryImport. @@ -15021,6 +15274,7 @@ namespace TL peer = peer, import_id = import_id, }); + /// Get info about the chat invites of a specific chat See /// Whether to fetch revoked chat invites /// Chat @@ -15038,6 +15292,7 @@ namespace TL offset_link = offset_link, limit = limit, }); + /// Get info about a chat invite See /// Chat /// Invite link @@ -15047,6 +15302,7 @@ namespace TL peer = peer, link = link, }); + /// Edit an exported chat invite See [bots: ✓] Possible codes: 400 (details) /// Whether to revoke the chat invite /// Chat @@ -15064,6 +15320,7 @@ namespace TL request_needed = request_needed.GetValueOrDefault(), title = title, }); + /// Delete all revoked chat invites See /// Chat /// ID of the admin that originally generated the revoked chat invites @@ -15073,6 +15330,7 @@ namespace TL peer = peer, admin_id = admin_id, }); + /// Delete a chat invite See /// Peer /// Invite link @@ -15082,6 +15340,7 @@ namespace TL peer = peer, link = link, }); + /// Get info about chat invites generated by admins. See /// Chat public static Task Messages_GetAdminsWithInvites(this Client client, InputPeer peer) @@ -15089,6 +15348,7 @@ namespace TL { peer = peer, }); + /// Get info about the users that joined the chat using a specific chat invite See /// Chat /// Invite link @@ -15106,6 +15366,7 @@ namespace TL offset_user = offset_user, limit = limit, }); + /// Set maximum Time-To-Live of all messages in the specified chat See Possible codes: 400 (details) /// The dialog /// Automatically delete all messages sent in the chat after this many seconds @@ -15115,6 +15376,7 @@ namespace TL peer = peer, period = period, }); + /// Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ». See Possible codes: 400 (details) /// The chat where we want to import history ». public static Task Messages_CheckHistoryImportPeer(this Client client, InputPeer peer) @@ -15122,6 +15384,7 @@ namespace TL { peer = peer, }); + /// Change the chat theme of a certain chat See Possible codes: 400 (details) /// Private chat where to change theme /// Emoji, identifying a specific chat theme; a list of chat themes can be fetched using account.getChatThemes @@ -15131,6 +15394,7 @@ namespace TL peer = peer, emoticon = emoticon, }); + /// Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent, see client configuration for more info ». See Possible codes: 400 (details) /// Dialog /// Message ID @@ -15140,6 +15404,7 @@ namespace TL peer = peer, msg_id = msg_id, }); + /// See public static Task Messages_GetSearchResultsCalendar(this Client client, InputPeer peer, MessagesFilter filter, int offset_id, DateTime offset_date) => client.Invoke(new Messages_GetSearchResultsCalendar @@ -15149,6 +15414,7 @@ namespace TL offset_id = offset_id, offset_date = offset_date, }); + /// See public static Task Messages_GetSearchResultsPositions(this Client client, InputPeer peer, MessagesFilter filter, int offset_id, int limit) => client.Invoke(new Messages_GetSearchResultsPositions @@ -15158,6 +15424,7 @@ namespace TL offset_id = offset_id, limit = limit, }); + /// See public static Task Messages_HideChatJoinRequest(this Client client, InputPeer peer, InputUserBase user_id, bool approved = false) => client.Invoke(new Messages_HideChatJoinRequest @@ -15166,6 +15433,7 @@ namespace TL peer = peer, user_id = user_id, }); + /// See public static Task Messages_HideAllChatJoinRequests(this Client client, InputPeer peer, bool approved = false, string link = null) => client.Invoke(new Messages_HideAllChatJoinRequests @@ -15174,6 +15442,7 @@ namespace TL peer = peer, link = link, }); + /// See public static Task Messages_ToggleNoForwards(this Client client, InputPeer peer, bool enabled) => client.Invoke(new Messages_ToggleNoForwards @@ -15181,6 +15450,7 @@ namespace TL peer = peer, enabled = enabled, }); + /// See public static Task Messages_SaveDefaultSendAs(this Client client, InputPeer peer, InputPeer send_as) => client.Invoke(new Messages_SaveDefaultSendAs @@ -15188,6 +15458,7 @@ namespace TL peer = peer, send_as = send_as, }); + /// Send reaction to message See [bots: ✓] Possible codes: 400 (details) /// Peer /// Message ID to react to @@ -15200,6 +15471,7 @@ namespace TL msg_id = msg_id, reaction = reaction, }); + /// Get message reactions See [bots: ✓] /// Peer /// Message IDs @@ -15209,6 +15481,7 @@ namespace TL peer = peer, id = id, }); + /// Get full message reaction list See [bots: ✓] /// Peer /// Message ID @@ -15225,6 +15498,7 @@ namespace TL offset = offset, limit = limit, }); + /// See public static Task Messages_SetChatAvailableReactions(this Client client, InputPeer peer, string[] available_reactions) => client.Invoke(new Messages_SetChatAvailableReactions @@ -15232,6 +15506,7 @@ namespace TL peer = peer, available_reactions = available_reactions, }); + /// See /// a null value means messages.availableReactionsNotModified public static Task Messages_GetAvailableReactions(this Client client, int hash) @@ -15239,17 +15514,20 @@ namespace TL { hash = hash, }); + /// See public static Task Messages_SetDefaultReaction(this Client client, string reaction) => client.Invoke(new Messages_SetDefaultReaction { reaction = reaction, }); + /// Returns a current state of updates. See [bots: ✓] public static Task Updates_GetState(this Client client) => client.Invoke(new Updates_GetState { }); + /// Get new updates. See [bots: ✓] Possible codes: 400,401,403 (details) /// PTS, see updates. /// For fast updating: if provided and pts + pts_total_limit < remote pts, will be returned.
Simply tells the server to not return the difference if it is bigger than pts_total_limit
If the remote pts is too big (> ~4000000), this field will default to 1000000 @@ -15264,6 +15542,7 @@ namespace TL date = date, qts = qts, }); + /// Returns the difference between the current state of updates of a certain channel and transmitted. See [bots: ✓] Possible codes: 400,403 (details) /// Set to true to skip some possibly unneeded updates and reduce server-side load /// The channel @@ -15279,6 +15558,7 @@ namespace TL pts = pts, limit = limit, }); + /// Installs a previously uploaded photo as a profile photo. See Possible codes: 400 (details) /// Input photo public static Task Photos_UpdateProfilePhoto(this Client client, InputPhoto id) @@ -15286,6 +15566,7 @@ namespace TL { id = id, }); + /// Updates current user profile photo. See Possible codes: 400 (details) /// File saved in parts by means of upload.saveFilePart method /// Animated profile picture video @@ -15298,6 +15579,7 @@ namespace TL video = video, video_start_ts = video_start_ts.GetValueOrDefault(), }); + /// Deletes profile photos. See /// Input photos to delete public static Task Photos_DeletePhotos(this Client client, InputPhoto[] id) @@ -15305,6 +15587,7 @@ namespace TL { id = id, }); + /// Returns the list of user photos. See [bots: ✓] Possible codes: 400 (details) /// User ID /// Number of list elements to be skipped @@ -15318,6 +15601,7 @@ namespace TL max_id = max_id, limit = limit, }); + /// Saves a part of file for futher sending to one of the methods. See [bots: ✓] Possible codes: 400 (details) /// Random file identifier created by the client /// Numerical order of a part @@ -15329,6 +15613,7 @@ namespace TL file_part = file_part, bytes = bytes, }); + /// Returns content of a whole file or its part. See [bots: ✓] Possible codes: 400,401,406 (details) /// Disable some checks on limit and offset values, useful for example to stream videos by keyframes /// Whether the current client supports CDN downloads @@ -15343,6 +15628,7 @@ namespace TL offset = offset, limit = limit, }); + /// Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. See [bots: ✓] Possible codes: 400 (details) /// Random file id, created by the client /// Part sequence number @@ -15356,6 +15642,7 @@ namespace TL file_total_parts = file_total_parts, bytes = bytes, }); + /// Returns content of an HTTP file or a part, by proxying the request through telegram. See Possible codes: 400 (details) /// The file to download /// Number of bytes to be skipped @@ -15367,6 +15654,7 @@ namespace TL offset = offset, limit = limit, }); + /// Download a CDN file. See /// File token /// Offset of chunk to download @@ -15378,6 +15666,7 @@ namespace TL offset = offset, limit = limit, }); + /// Request a reupload of a certain file to a CDN DC. See [bots: ✓] Possible codes: 400 (details) /// File token /// Request token @@ -15387,6 +15676,7 @@ namespace TL file_token = file_token, request_token = request_token, }); + /// Get SHA256 hashes for verifying downloaded CDN files See [bots: ✓] Possible codes: 400 (details) /// File /// Offset from which to start getting hashes @@ -15396,6 +15686,7 @@ namespace TL file_token = file_token, offset = offset, }); + /// Get SHA256 hashes for verifying downloaded files See [bots: ✓] Possible codes: 400 (details) /// File /// Offset from which to get file hashes @@ -15405,16 +15696,19 @@ namespace TL location = location, offset = offset, }); + /// Returns current configuration, including data center configuration. See [bots: ✓] Possible codes: 400,403 (details) public static Task Help_GetConfig(this Client client) => client.Invoke(new Help_GetConfig { }); + /// Returns info on data centre nearest to the user. See public static Task Help_GetNearestDc(this Client client) => client.Invoke(new Help_GetNearestDc { }); + /// Returns information on update availability for the current application. See /// Source /// a null value means help.noAppUpdate @@ -15423,16 +15717,19 @@ namespace TL { source = source, }); + /// Returns localized text of a text message with an invitation. See public static Task Help_GetInviteText(this Client client) => client.Invoke(new Help_GetInviteText { }); + /// Returns the support user for the 'ask a question' feature. See public static Task Help_GetSupport(this Client client) => client.Invoke(new Help_GetSupport { }); + /// Get changelog of current app.
Typically, an constructor will be returned, containing one or more updates with app-specific changelogs. See
/// Previous app version public static Task Help_GetAppChangelog(this Client client, string prev_app_version) @@ -15440,6 +15737,7 @@ namespace TL { prev_app_version = prev_app_version, }); + /// 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: ✓] /// Number of pending updates /// Error message, if present @@ -15449,11 +15747,13 @@ namespace TL pending_updates_count = pending_updates_count, message = message, }); + /// Get configuration for CDN file downloads. See [bots: ✓] Possible codes: 401 (details) public static Task Help_GetCdnConfig(this Client client) => client.Invoke(new Help_GetCdnConfig { }); + /// Get recently used t.me links See /// Referer public static Task Help_GetRecentMeUrls(this Client client, string referer) @@ -15461,11 +15761,13 @@ namespace TL { referer = referer, }); + /// Look for updates of telegram's terms of service See public static Task Help_GetTermsOfServiceUpdate(this Client client) => client.Invoke(new Help_GetTermsOfServiceUpdate { }); + /// Accept the new terms of service See /// ID of terms of service public static Task Help_AcceptTermsOfService(this Client client, DataJSON id) @@ -15473,6 +15775,7 @@ namespace TL { id = id, }); + /// Get info about a t.me link See /// Path in t.me/path /// a null value means help.deepLinkInfoEmpty @@ -15481,11 +15784,13 @@ namespace TL { path = path, }); + /// Get app-specific configuration, see client configuration for more info on the result. See public static Task Help_GetAppConfig(this Client client) => client.Invoke(new Help_GetAppConfig { }); + /// Saves logs of application on the server. See /// List of input events public static Task Help_SaveAppLog(this Client client, InputAppEvent[] events) @@ -15493,6 +15798,7 @@ namespace TL { events = events, }); + /// Get passport configuration See /// Hash for pagination, for more info click here /// a null value means help.passportConfigNotModified @@ -15501,11 +15807,13 @@ namespace TL { hash = hash, }); + /// Get localized name of the telegram support user See Possible codes: 403 (details) public static Task Help_GetSupportName(this Client client) => client.Invoke(new Help_GetSupportName { }); + /// Internal use See Possible codes: 403 (details) /// User ID /// a null value means help.userInfoEmpty @@ -15514,6 +15822,7 @@ namespace TL { user_id = user_id, }); + /// Internal use See Possible codes: 400 (details) /// User /// Message @@ -15526,11 +15835,13 @@ namespace TL message = message, entities = entities, }); + /// Get MTProxy/Public Service Announcement information See public static Task Help_GetPromoData(this Client client) => client.Invoke(new Help_GetPromoData { }); + /// Hide MTProxy/Public Service Announcement information See /// Peer to hide public static Task Help_HidePromoData(this Client client, InputPeer peer) @@ -15538,6 +15849,7 @@ namespace TL { peer = peer, }); + /// Dismiss a suggestion, see here for more info ». See /// In the case of pending suggestions in , the channel ID. /// Suggestion, see here for more info ». @@ -15547,6 +15859,7 @@ namespace TL peer = peer, suggestion = suggestion, }); + /// Get name, ISO code, localized name and phone codes/patterns of all available countries See /// Language code of the current user /// Hash for pagination, for more info click here @@ -15557,6 +15870,7 @@ namespace TL lang_code = lang_code, hash = hash, }); + /// Mark channel/supergroup history as read See Possible codes: 400 (details) /// Channel/supergroup /// ID of message up to which messages should be marked as read @@ -15566,6 +15880,7 @@ namespace TL channel = channel, max_id = max_id, }); + /// Delete messages in a channel/supergroup See [bots: ✓] Possible codes: 400,403 (details) /// Channel/supergroup /// IDs of messages to delete @@ -15575,6 +15890,7 @@ namespace TL channel = channel, id = id, }); + /// Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup See Possible codes: 400 (details) /// Supergroup /// IDs of spam messages @@ -15585,6 +15901,7 @@ namespace TL participant = participant, id = id, }); + /// Get channel/supergroup messages See [bots: ✓] Possible codes: 400 (details) /// Channel/supergroup /// IDs of messages to get @@ -15594,6 +15911,7 @@ namespace TL channel = channel, id = id, }); + /// Get the participants of a supergroup/channel See [bots: ✓] Possible codes: 400 (details) /// Channel /// Which participant types to fetch @@ -15610,6 +15928,7 @@ namespace TL limit = limit, hash = hash, }); + /// Get info about a channel/supergroup participant See [bots: ✓] Possible codes: 400 (details) /// Channel/supergroup /// Participant to get info about @@ -15619,6 +15938,7 @@ namespace TL channel = channel, participant = participant, }); + /// Get info about channels/supergroups See [bots: ✓] Possible codes: 400 (details) /// IDs of channels/supergroups to get info about public static Task Channels_GetChannels(this Client client, InputChannelBase[] id) @@ -15626,6 +15946,7 @@ namespace TL { id = id, }); + /// Get full info about a channel See [bots: ✓] Possible codes: 400,403 (details) /// The channel to get info about public static Task Channels_GetFullChannel(this Client client, InputChannelBase channel) @@ -15633,6 +15954,7 @@ namespace TL { channel = channel, }); + /// Create a supergroup/channel. See Possible codes: 400,403 (details) /// Whether to create a channel /// Whether to create a supergroup @@ -15650,6 +15972,7 @@ namespace TL geo_point = geo_point, address = address, }); + /// Modify the admin rights of a user in a supergroup/channel. See [bots: ✓] Possible codes: 400,403,406 (details) /// The supergroup/channel. /// The ID of the user whose admin rights should be modified @@ -15663,6 +15986,7 @@ namespace TL admin_rights = admin_rights, rank = rank, }); + /// Edit the name of a channel/supergroup See [bots: ✓] Possible codes: 400,403 (details) /// Channel/supergroup /// New name @@ -15672,6 +15996,7 @@ namespace TL channel = channel, title = title, }); + /// Change the photo of a channel/supergroup See [bots: ✓] Possible codes: 400,403 (details) /// Channel/supergroup whose photo should be edited /// New photo @@ -15681,6 +16006,7 @@ namespace TL channel = channel, photo = photo, }); + /// Check if a username is free and can be assigned to a channel/supergroup See Possible codes: 400 (details) /// The channel/supergroup that will assigned the specified username /// The username to check @@ -15690,6 +16016,7 @@ namespace TL channel = channel, username = username, }); + /// Change the username of a supergroup/channel See Possible codes: 400,403 (details) /// Channel /// New username @@ -15699,6 +16026,7 @@ namespace TL channel = channel, username = username, }); + /// Join a channel/supergroup See Possible codes: 400 (details) /// Channel/supergroup to join public static Task Channels_JoinChannel(this Client client, InputChannelBase channel) @@ -15706,6 +16034,7 @@ namespace TL { channel = channel, }); + /// Leave a channel/supergroup See [bots: ✓] Possible codes: 400,403 (details) /// Channel/supergroup to leave public static Task Channels_LeaveChannel(this Client client, InputChannelBase channel) @@ -15713,6 +16042,7 @@ namespace TL { channel = channel, }); + /// Invite users to a channel/supergroup See Possible codes: 400,403 (details) /// Channel/supergroup /// Users to invite @@ -15722,6 +16052,7 @@ namespace TL channel = channel, users = users, }); + /// Delete a channel/supergroup See Possible codes: 400,403 (details) /// Channel/supergroup to delete public static Task Channels_DeleteChannel(this Client client, InputChannelBase channel) @@ -15729,6 +16060,7 @@ namespace TL { channel = channel, }); + /// Get link and embed info of a message in a channel/supergroup See Possible codes: 400 (details) /// Whether to include other grouped media (for albums) /// Whether to also include a thread ID, if available, inside of the link @@ -15741,6 +16073,7 @@ namespace TL channel = channel, id = id, }); + /// Enable/disable message signatures in channels See Possible codes: 400 (details) /// Channel /// Value @@ -15750,6 +16083,7 @@ namespace TL channel = channel, enabled = enabled, }); + /// Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups. See Possible codes: 400 (details) /// Get geogroups /// If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified errors will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in channels.checkUsername/channels.updateUsername. @@ -15758,6 +16092,7 @@ namespace TL { flags = (Channels_GetAdminedPublicChannels.Flags)((by_location ? 0x1 : 0) | (check_limit ? 0x2 : 0)), }); + /// Ban/unban/kick a user in a supergroup/channel. See [bots: ✓] Possible codes: 400,403 (details) /// The supergroup/channel. /// Participant to ban @@ -15769,6 +16104,7 @@ namespace TL participant = participant, banned_rights = banned_rights, }); + /// Get the admin log of a channel/supergroup See Possible codes: 400,403 (details) /// Channel /// Search query, can be empty @@ -15789,6 +16125,7 @@ namespace TL min_id = min_id, limit = limit, }); + /// Associate a stickerset to the supergroup See [bots: ✓] Possible codes: 400,406 (details) /// Supergroup /// The stickerset to associate @@ -15798,6 +16135,7 @@ namespace TL channel = channel, stickerset = stickerset, }); + /// Mark channel/supergroup message contents as read See Possible codes: 400 (details) /// Channel/supergroup /// IDs of messages whose contents should be marked as read @@ -15807,6 +16145,7 @@ namespace TL channel = channel, id = id, }); + /// Delete the history of a supergroup See Possible codes: 400 (details) /// Supergroup whose history must be deleted /// ID of message up to which the history must be deleted @@ -15816,6 +16155,7 @@ namespace TL channel = channel, max_id = max_id, }); + /// Hide/unhide message history for new channel/supergroup users See Possible codes: 400 (details) /// Channel/supergroup /// Hide/unhide @@ -15825,6 +16165,7 @@ namespace TL channel = channel, enabled = enabled, }); + /// Get a list of channels/supergroups we left See Possible codes: 403 (details) /// Offset for pagination public static Task Channels_GetLeftChannels(this Client client, int offset) @@ -15832,11 +16173,13 @@ namespace TL { offset = offset, }); + /// Get all groups that can be used as discussion groups. See public static Task Channels_GetGroupsForDiscussion(this Client client) => client.Invoke(new Channels_GetGroupsForDiscussion { }); + /// Associate a group to a channel as discussion group for that channel See Possible codes: 400 (details) /// Channel /// Discussion group to associate to the channel @@ -15846,6 +16189,7 @@ namespace TL broadcast = broadcast, group = group, }); + /// Transfer channel ownership See Possible codes: 400,403 (details) /// Channel /// New channel owner @@ -15857,6 +16201,7 @@ namespace TL user_id = user_id, password = password, }); + /// Edit location of geogroup See Possible codes: 400 (details) /// Geogroup /// New geolocation @@ -15868,6 +16213,7 @@ namespace TL geo_point = geo_point, address = address, }); + /// Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds See Possible codes: 400 (details) /// The supergroup /// Users will only be able to send one message every seconds seconds, 0 to disable the limitation @@ -15877,11 +16223,13 @@ namespace TL channel = channel, seconds = seconds, }); + /// Get inactive channels and supergroups See public static Task Channels_GetInactiveChannels(this Client client) => client.Invoke(new Channels_GetInactiveChannels { }); + /// Convert a supergroup to a gigagroup, when requested by channel suggestions. See Possible codes: 400 (details) /// The supergroup to convert public static Task Channels_ConvertToGigagroup(this Client client, InputChannelBase channel) @@ -15889,6 +16237,7 @@ namespace TL { channel = channel, }); + /// Mark a specific sponsored message as read See Possible codes: 400 (details) /// Peer /// Message ID @@ -15898,6 +16247,7 @@ namespace TL channel = channel, random_id = random_id, }); + /// Get a list of sponsored messages See /// Peer public static Task Channels_GetSponsoredMessages(this Client client, InputChannelBase channel) @@ -15905,12 +16255,14 @@ namespace TL { channel = channel, }); + /// See public static Task Channels_GetSendAs(this Client client, InputPeer peer) => client.Invoke(new Channels_GetSendAs { peer = peer, }); + /// See public static Task Channels_DeleteParticipantHistory(this Client client, InputChannelBase channel, InputPeer participant) => client.Invoke(new Channels_DeleteParticipantHistory @@ -15918,6 +16270,7 @@ namespace TL channel = channel, participant = participant, }); + /// Sends a custom request; for bots only See [bots: ✓] Possible codes: 400 (details) /// The method name /// JSON-serialized method parameters @@ -15927,6 +16280,7 @@ namespace TL custom_method = custom_method, params_ = params_, }); + /// Answers a custom query; for bots only See [bots: ✓] Possible codes: 400 (details) /// Identifier of a custom query /// JSON-serialized answer to the query @@ -15936,6 +16290,7 @@ namespace TL query_id = query_id, data = data, }); + /// Set bot command list See [bots: ✓] Possible codes: 400 (details) /// Command scope /// Language code @@ -15947,6 +16302,7 @@ namespace TL lang_code = lang_code, commands = commands, }); + /// Clear bot commands for the specified bot scope and language code See [bots: ✓] /// Command scope /// Language code @@ -15956,6 +16312,7 @@ namespace TL scope = scope, lang_code = lang_code, }); + /// Obtain a list of bot commands for the specified bot scope and language code See [bots: ✓] /// Command scope /// Language code @@ -15965,6 +16322,7 @@ namespace TL scope = scope, lang_code = lang_code, }); + /// Get a payment form See Possible codes: 400 (details) /// The peer where the payment form was sent /// Message ID of payment form @@ -15977,6 +16335,7 @@ namespace TL msg_id = msg_id, theme_params = theme_params, }); + /// Get payment receipt See Possible codes: 400 (details) /// The peer where the payment receipt was sent /// Message ID of receipt @@ -15986,6 +16345,7 @@ namespace TL peer = peer, msg_id = msg_id, }); + /// Submit requested order information for validation See Possible codes: 400 (details) /// Save order information to re-use it for future orders /// Peer where the payment form was sent @@ -15999,6 +16359,7 @@ namespace TL msg_id = msg_id, info = info, }); + /// Send compiled payment form See Possible codes: 400 (details) /// Form ID /// The peer where the payment form was sent @@ -16019,11 +16380,13 @@ namespace TL credentials = credentials, tip_amount = tip_amount.GetValueOrDefault(), }); + /// Get saved payment information See public static Task Payments_GetSavedInfo(this Client client) => client.Invoke(new Payments_GetSavedInfo { }); + /// Clear saved payment information See /// Remove saved payment credentials /// Clear the last order settings saved by the user @@ -16032,6 +16395,7 @@ namespace TL { flags = (Payments_ClearSavedInfo.Flags)((credentials ? 0x1 : 0) | (info ? 0x2 : 0)), }); + /// Get info about a credit card See Possible codes: 400 (details) /// Credit card number public static Task Payments_GetBankCardData(this Client client, string number) @@ -16039,6 +16403,7 @@ namespace TL { number = number, }); + /// Create a stickerset, bots only. See [bots: ✓] Possible codes: 400 (details) /// Whether this is a mask stickerset /// Whether this is an animated stickerset @@ -16060,6 +16425,7 @@ namespace TL stickers = stickers, software = software, }); + /// Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. See [bots: ✓] Possible codes: 400 (details) /// The sticker to remove /// a null value means messages.stickerSetNotModified @@ -16068,6 +16434,7 @@ namespace TL { sticker = sticker, }); + /// Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot See [bots: ✓] Possible codes: 400 (details) /// The sticker /// The new position of the sticker, zero-based @@ -16078,6 +16445,7 @@ namespace TL sticker = sticker, position = position, }); + /// Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot. See [bots: ✓] Possible codes: 400 (details) /// The stickerset /// The sticker @@ -16088,6 +16456,7 @@ namespace TL stickerset = stickerset, sticker = sticker, }); + /// Set stickerset thumbnail See [bots: ✓] Possible codes: 400 (details) /// Stickerset /// Thumbnail @@ -16098,6 +16467,7 @@ namespace TL stickerset = stickerset, thumb = thumb, }); + /// Check whether the given short name is available See Possible codes: 400 (details) /// Short name public static Task Stickers_CheckShortName(this Client client, string short_name) @@ -16105,6 +16475,7 @@ namespace TL { short_name = short_name, }); + /// Suggests a short name for a given stickerpack name See Possible codes: 400 (details) /// Sticker pack name public static Task Stickers_SuggestShortName(this Client client, string title) @@ -16112,11 +16483,13 @@ namespace TL { title = title, }); + /// Get phone call configuration to be passed to libtgvoip's shared config See public static Task Phone_GetCallConfig(this Client client) => client.Invoke(new Phone_GetCallConfig { }); + /// Start a telegram phone call See Possible codes: 400,403 (details) /// Whether to start a video call /// Destination of the phone call @@ -16132,6 +16505,7 @@ namespace TL g_a_hash = g_a_hash, protocol = protocol, }); + /// Accept incoming call See Possible codes: 400 (details) /// The call to accept /// Parameter for E2E encryption key exchange » @@ -16143,6 +16517,7 @@ namespace TL g_b = g_b, protocol = protocol, }); + /// Complete phone call E2E encryption key exchange » See Possible codes: 400 (details) /// The phone call /// Parameter for E2E encryption key exchange » @@ -16156,6 +16531,7 @@ namespace TL key_fingerprint = key_fingerprint, protocol = protocol, }); + /// Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended. See Possible codes: 400 (details) /// The phone call we're currently in public static Task Phone_ReceivedCall(this Client client, InputPhoneCall peer) @@ -16163,6 +16539,7 @@ namespace TL { peer = peer, }); + /// Refuse or end running call See Possible codes: 400 (details) /// Whether this is a video call /// The phone call @@ -16178,6 +16555,7 @@ namespace TL reason = reason, connection_id = connection_id, }); + /// Rate a call See Possible codes: 400 (details) /// Whether the user decided on their own initiative to rate the call /// The call to rate @@ -16191,6 +16569,7 @@ namespace TL rating = rating, comment = comment, }); + /// Send phone call debug data to server See Possible codes: 400 (details) /// Phone call /// Debug statistics obtained from libtgvoip @@ -16200,6 +16579,7 @@ namespace TL peer = peer, debug = debug, }); + /// Send VoIP signaling data See /// Phone call /// Signaling payload @@ -16209,6 +16589,7 @@ namespace TL peer = peer, data = data, }); + /// Create a group call or livestream See Possible codes: 400 (details) /// Associate the group call or livestream to the provided group/supergroup/channel /// Unique client message ID required to prevent creation of duplicate group calls @@ -16223,6 +16604,7 @@ namespace TL title = title, schedule_date = schedule_date.GetValueOrDefault(), }); + /// Join a group call See Possible codes: 400 (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. @@ -16239,6 +16621,7 @@ namespace TL invite_hash = invite_hash, params_ = params_, }); + /// Leave a group call See /// The group call /// Your source ID @@ -16248,6 +16631,7 @@ namespace TL call = call, source = source, }); + /// Invite a set of users to a group call. See Possible codes: 403 (details) /// The group call /// The users to invite. @@ -16257,6 +16641,7 @@ namespace TL call = call, users = users, }); + /// Terminate a group call See /// The group call to terminate public static Task Phone_DiscardGroupCall(this Client client, InputGroupCall call) @@ -16264,6 +16649,7 @@ namespace TL { call = call, }); + /// Change group call settings See Possible codes: 400 (details) /// Invalidate existing invite links /// Group call @@ -16275,6 +16661,7 @@ namespace TL call = call, join_muted = join_muted.GetValueOrDefault(), }); + /// Get info about a group call See /// The group call /// Maximum number of results to return, see pagination @@ -16284,6 +16671,7 @@ namespace TL call = call, limit = limit, }); + /// Get group call participants See /// Group call /// If specified, will fetch group participant info about the specified peers @@ -16299,6 +16687,7 @@ namespace TL offset = offset, limit = limit, }); + /// Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs See /// Group call /// Source IDs @@ -16308,6 +16697,7 @@ namespace TL call = call, sources = sources, }); + /// Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves). See /// Whether to start or stop recording /// Whether to also record video streams @@ -16322,6 +16712,7 @@ namespace TL title = title, video_portrait = video_portrait.GetValueOrDefault(), }); + /// Edit information about a given group call participant See Possible codes: 400 (details) /// The group call /// The group call participant (can also be the user itself) @@ -16344,6 +16735,7 @@ namespace TL video_paused = video_paused.GetValueOrDefault(), presentation_paused = presentation_paused.GetValueOrDefault(), }); + /// Edit the title of a group call or livestream See /// Group call /// New title @@ -16353,6 +16745,7 @@ namespace TL call = call, title = title, }); + /// Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel. See /// The dialog whose group call or livestream we're trying to join public static Task Phone_GetGroupCallJoinAs(this Client client, InputPeer peer) @@ -16360,6 +16753,7 @@ namespace TL { peer = peer, }); + /// Get an invite link for a group call or livestream See /// For livestreams, 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 @@ -16369,6 +16763,7 @@ namespace TL flags = (Phone_ExportGroupCallInvite.Flags)(can_self_unmute ? 0x1 : 0), call = call, }); + /// Subscribe or unsubscribe to a scheduled group call See /// Scheduled group call /// Enable or disable subscription @@ -16378,6 +16773,7 @@ namespace TL call = call, subscribed = subscribed, }); + /// Start a scheduled group call. See /// The scheduled group call public static Task Phone_StartScheduledGroupCall(this Client client, InputGroupCall call) @@ -16385,6 +16781,7 @@ namespace TL { call = call, }); + /// Set the default peer that will be used to join a group call in a specific dialog. See /// The dialog /// The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel. @@ -16394,6 +16791,7 @@ namespace TL peer = peer, join_as = join_as, }); + /// Start screen sharing in a call See Possible codes: 403 (details) /// The group call /// WebRTC parameters @@ -16403,6 +16801,7 @@ namespace TL call = call, params_ = params_, }); + /// Stop screen sharing in a group call See /// The group call public static Task Phone_LeaveGroupCallPresentation(this Client client, InputGroupCall call) @@ -16410,6 +16809,7 @@ namespace TL { call = call, }); + /// Get localization pack strings See Possible codes: 400 (details) /// Language pack name /// Language code @@ -16419,6 +16819,7 @@ namespace TL lang_pack = lang_pack, lang_code = lang_code, }); + /// Get strings from a language pack See Possible codes: 400 (details) /// Language pack name /// Language code @@ -16430,6 +16831,7 @@ namespace TL lang_code = lang_code, keys = keys, }); + /// Get new strings in languagepack See Possible codes: 400 (details) /// Language pack /// Language code @@ -16441,6 +16843,7 @@ namespace TL lang_code = lang_code, from_version = from_version, }); + /// Get information about all languages in a localization pack See Possible codes: 400 (details) /// Language pack public static Task Langpack_GetLanguages(this Client client, string lang_pack) @@ -16448,6 +16851,7 @@ namespace TL { lang_pack = lang_pack, }); + /// Get information about a language in a localization pack See /// Language pack name /// Language code @@ -16457,6 +16861,7 @@ namespace TL lang_pack = lang_pack, lang_code = lang_code, }); + /// Edit peers in peer folder See Possible codes: 400 (details) /// New peer list public static Task Folders_EditPeerFolders(this Client client, InputFolderPeer[] folder_peers) @@ -16464,6 +16869,7 @@ namespace TL { folder_peers = folder_peers, }); + /// Delete a peer folder See Possible codes: 400 (details) /// Peer folder ID, for more info click here public static Task Folders_DeleteFolder(this Client client, int folder_id) @@ -16471,6 +16877,7 @@ namespace TL { folder_id = folder_id, }); + /// Get channel statistics See Possible codes: 400 (details) /// Whether to enable dark theme for graph colors /// The channel @@ -16480,6 +16887,7 @@ namespace TL flags = (Stats_GetBroadcastStats.Flags)(dark ? 0x1 : 0), channel = channel, }); + /// Load channel statistics graph asynchronously See Possible codes: 400 (details) /// Graph token from constructor /// Zoom value, if required @@ -16490,6 +16898,7 @@ namespace TL token = token, x = x.GetValueOrDefault(), }); + /// Get supergroup statistics See Possible codes: 400 (details) /// Whether to enable dark theme for graph colors /// Supergroup ID @@ -16499,6 +16908,7 @@ namespace TL flags = (Stats_GetMegagroupStats.Flags)(dark ? 0x1 : 0), channel = channel, }); + /// Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of with peer_id equal to the public channel to which this message was forwarded. See Possible codes: 400 (details)
/// Source channel /// Source message ID @@ -16516,6 +16926,7 @@ namespace TL offset_id = offset_id, limit = limit, }); + /// Get message statistics See Possible codes: 400 (details) /// Whether to enable dark theme for graph colors /// Channel ID